arm
stringlengths
122
13.2M
x86
stringlengths
122
12.4M
filename
stringlengths
18
26
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: mov w0, #0 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/1136579.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: 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 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/40764038.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #240 .cfi_def_cfa_offset 240 stp x29, x30, [sp, #224] ; 16-byte Folded Spill add x29, sp, #224 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] stur x8, [x29, #-104] ; 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 wzr, [x29, #-44] stur w0, [x29, #-48] stur x1, [x29, #-56] ; kill: def $x8 killed $xzr stur xzr, [x29, #-64] stur xzr, [x29, #-72] stur wzr, [x29, #-76] stur wzr, [x29, #-84] ldur w8, [x29, #-48] subs w8, w8, #3 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur x8, [x29, #-104] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-56] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-44] b LBB0_27 LBB0_2: ldur x8, [x29, #-56] ldr x0, [x8, #8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen stur x0, [x29, #-64] ldur x8, [x29, #-64] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldur x8, [x29, #-104] ; 8-byte Folded Reload ldr x8, [x8] str x8, [sp, #112] ; 8-byte Folded Spill ldur x8, [x29, #-56] ldr x8, [x8] str x8, [sp, #96] ; 8-byte Folded Spill ldur x8, [x29, #-56] ldr x8, [x8, #8] str x8, [sp, #104] ; 8-byte Folded Spill bl ___error ldr w0, [x0] bl _strerror ldr x11, [sp, #96] ; 8-byte Folded Reload ldr x10, [sp, #104] ; 8-byte Folded Reload mov x8, x0 ldr x0, [sp, #112] ; 8-byte Folded Reload mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-84] b LBB0_22 LBB0_4: ldur x8, [x29, #-56] ldr x0, [x8, #16] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fopen stur x0, [x29, #-72] ldur x8, [x29, #-72] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldur x8, [x29, #-104] ; 8-byte Folded Reload ldr x8, [x8] str x8, [sp, #88] ; 8-byte Folded Spill ldur x8, [x29, #-56] ldr x8, [x8] str x8, [sp, #72] ; 8-byte Folded Spill ldur x8, [x29, #-56] ldr x8, [x8, #16] str x8, [sp, #80] ; 8-byte Folded Spill bl ___error ldr w0, [x0] bl _strerror ldr x11, [sp, #72] ; 8-byte Folded Reload ldr x10, [sp, #80] ; 8-byte Folded Reload mov x8, x0 ldr x0, [sp, #88] ; 8-byte Folded Reload mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-84] b LBB0_22 LBB0_6: mov x0, #0 bl _time mov x8, x0 sub x0, x29, #96 stur x8, [x29, #-96] ldur x8, [x29, #-72] str x8, [sp, #64] ; 8-byte Folded Spill ldur x8, [x29, #-56] ldr x8, [x8] str x8, [sp, #56] ; 8-byte Folded Spill bl _ctime ldr x10, [sp, #56] ; 8-byte Folded Reload mov x8, x0 ldr x0, [sp, #64] ; 8-byte Folded Reload mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fprintf ldur x0, [x29, #-72] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fprintf ldur x0, [x29, #-72] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fprintf ldur x0, [x29, #-72] adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _fprintf b LBB0_7 LBB0_7: ; =>This Inner Loop Header: Depth=1 ldur x0, [x29, #-64] mov x9, sp sub x8, x29, #80 str x8, [x9] sub x8, x29, #40 str x8, [x9, #8] adrp x1, l_.str.8@PAGE add x1, x1, l_.str.8@PAGEOFF bl _fscanf subs w8, w0, #2 cset w8, ne tbnz w8, #0, LBB0_13 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=1 ldur w8, [x29, #-80] ldur w9, [x29, #-76] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ldur x8, [x29, #-104] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-56] ldr x11, [x8] ldur w8, [x29, #-80] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-76] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x1, l_.str.9@PAGE add x1, x1, l_.str.9@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-84] b LBB0_22 LBB0_10: ; in Loop: Header=BB0_7 Depth=1 ldur x0, [x29, #-72] ldur w1, [x29, #-76] sub x2, x29, #40 bl _write_rop3_func subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: b LBB0_22 LBB0_12: ; in Loop: Header=BB0_7 Depth=1 ldur w8, [x29, #-76] add w8, w8, #1 stur w8, [x29, #-76] b LBB0_7 LBB0_13: ldur x0, [x29, #-72] adrp x1, l_.str.10@PAGE add x1, x1, l_.str.10@PAGEOFF bl _fprintf stur wzr, [x29, #-80] b LBB0_14 LBB0_14: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-80] ldur w9, [x29, #-76] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_17 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_14 Depth=1 ldur x0, [x29, #-72] ldur w8, [x29, #-80] ; implicit-def: $x13 mov x13, x8 ldur w8, [x29, #-80] ; implicit-def: $x12 mov x12, x8 ldur w8, [x29, #-80] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-80] ; implicit-def: $x10 mov x10, x8 ldur w8, [x29, #-80] ldur w9, [x29, #-76] subs w9, w9, #1 subs w8, w8, w9 cset w8, lt and w14, w8, #0x1 adrp x9, l_.str.13@PAGE add x9, x9, l_.str.13@PAGEOFF adrp x8, l_.str.12@PAGE add x8, x8, l_.str.12@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.11@PAGE add x1, x1, l_.str.11@PAGEOFF bl _fprintf b LBB0_16 LBB0_16: ; in Loop: Header=BB0_14 Depth=1 ldur w8, [x29, #-80] add w8, w8, #1 stur w8, [x29, #-80] b LBB0_14 LBB0_17: ldur x0, [x29, #-72] adrp x1, l_.str.14@PAGE add x1, x1, l_.str.14@PAGEOFF bl _fprintf ldur x0, [x29, #-72] ldur w9, [x29, #-76] ; 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 ldur x0, [x29, #-72] adrp x1, l_.str.16@PAGE add x1, x1, l_.str.16@PAGEOFF bl _fprintf stur wzr, [x29, #-80] b LBB0_18 LBB0_18: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-80] ldur w9, [x29, #-76] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_21 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_18 Depth=1 ldur x0, [x29, #-72] ldur w8, [x29, #-80] ; implicit-def: $x13 mov x13, x8 ldur w8, [x29, #-80] ; implicit-def: $x12 mov x12, x8 ldur w8, [x29, #-80] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-80] ; implicit-def: $x10 mov x10, x8 ldur w8, [x29, #-80] ldur w9, [x29, #-76] subs w9, w9, #1 subs w8, w8, w9 cset w8, lt and w14, w8, #0x1 adrp x9, l_.str.13@PAGE add x9, x9, l_.str.13@PAGEOFF adrp x8, l_.str.12@PAGE add x8, x8, l_.str.12@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.17@PAGE add x1, x1, l_.str.17@PAGEOFF bl _fprintf b LBB0_20 LBB0_20: ; in Loop: Header=BB0_18 Depth=1 ldur w8, [x29, #-80] add w8, w8, #1 stur w8, [x29, #-80] b LBB0_18 LBB0_21: ldur x0, [x29, #-72] adrp x1, l_.str.14@PAGE add x1, x1, l_.str.14@PAGEOFF bl _fprintf ldur x0, [x29, #-72] ldur w9, [x29, #-76] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.18@PAGE add x1, x1, l_.str.18@PAGEOFF bl _fprintf b LBB0_22 LBB0_22: ldur x8, [x29, #-64] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_24 b LBB0_23 LBB0_23: ldur x0, [x29, #-64] bl _fclose b LBB0_24 LBB0_24: ldur x8, [x29, #-72] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_26 b LBB0_25 LBB0_25: ldur x0, [x29, #-72] bl _fclose b LBB0_26 LBB0_26: ldur w8, [x29, #-84] stur w8, [x29, #-44] b LBB0_27 LBB0_27: ldur w8, [x29, #-44] str w8, [sp, #52] ; 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_29 b LBB0_28 LBB0_28: bl ___stack_chk_fail LBB0_29: ldr w0, [sp, #52] ; 4-byte Folded Reload ldp x29, x30, [sp, #224] ; 16-byte Folded Reload add sp, sp, #240 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function write_rop3_func _write_rop3_func: ; @write_rop3_func .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, #4432 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #1, lsl #12 ; =4096 sub sp, sp, #336 sub x8, x29, #56 str x8, [sp, #128] ; 8-byte Folded Spill adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #136] ; 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 x0, [sp, #216] str w1, [sp, #212] str x2, [sp, #200] str wzr, [sp, #196] str wzr, [sp, #192] str wzr, [sp, #180] str wzr, [sp, #176] str wzr, [sp, #172] str xzr, [sp, #160] str xzr, [sp, #152] strb wzr, [sp, #2280] strb wzr, [sp, #232] ldr x8, [sp, #200] str x8, [sp, #184] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #184] ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_43 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #184] ldrsb w8, [x8] subs w8, w8, #48 ; kill: def $x8 killed $w8 str x8, [sp, #120] ; 8-byte Folded Spill subs x8, x8, #72 cset w8, hi tbnz w8, #0, LBB1_40 ; %bb.3: ; in Loop: Header=BB1_1 Depth=1 ldr x11, [sp, #120] ; 8-byte Folded Reload adrp x10, lJTI1_0@PAGE add x10, x10, lJTI1_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #184] ldrsb w8, [x8] subs w8, w8, #48 cset w8, eq and w10, w8, #0x1 mov w9, #255 mov w8, #0 ands w10, w10, #0x1 csel w8, w8, w9, ne str w8, [sp, #148] mov w8, #1 str w8, [sp, #196] str w8, [sp, #192] ldr x8, [sp, #184] ldr x9, [sp, #200] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #184] ldrsb w8, [x8, #1] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_7 b LBB1_6 LBB1_6: ldr x8, [sp, #136] ; 8-byte Folded Reload ldr x0, [x8] ldr x8, [sp, #184] ldrsb w11, [x8] ldr x8, [sp, #200] mov x9, sp ; implicit-def: $x10 mov x10, x11 str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.19@PAGE add x1, x1, l_.str.19@PAGEOFF bl _fprintf mov w8, #-1 str w8, [sp, #228] b LBB1_88 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 ldr w9, [sp, #148] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] add x0, sp, #2280 mov x1, #2048 add x2, sp, #160 adrp x3, l_.str.20@PAGE add x3, x3, l_.str.20@PAGEOFF bl _apprintf subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_9 b LBB1_8 LBB1_8: mov w8, #-1 str w8, [sp, #228] b LBB1_88 LBB1_9: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #184] ldrsb w8, [x8] subs w8, w8, #48 cset w8, eq and w10, w8, #0x1 adrp x9, l_.str.23@PAGE add x9, x9, l_.str.23@PAGEOFF adrp x8, l_.str.22@PAGE add x8, x8, l_.str.22@PAGEOFF ands w10, w10, #0x1 csel x8, x8, x9, ne mov x9, sp str x8, [x9] add x0, sp, #232 mov x1, #2048 add x2, sp, #152 adrp x3, l_.str.21@PAGE add x3, x3, l_.str.21@PAGEOFF bl _apprintf subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_11 b LBB1_10 LBB1_10: mov w8, #-1 str w8, [sp, #228] b LBB1_88 LBB1_11: ; in Loop: Header=BB1_1 Depth=1 b LBB1_41 LBB1_12: ; in Loop: Header=BB1_1 Depth=1 ldrsw x8, [sp, #196] subs x8, x8, #31 cset w8, lo tbnz w8, #0, LBB1_14 b LBB1_13 LBB1_13: ldr x8, [sp, #136] ; 8-byte Folded Reload ldr x0, [x8] ldr x8, [sp, #200] mov x9, sp str x8, [x9] adrp x1, l_.str.24@PAGE add x1, x1, l_.str.24@PAGEOFF bl _fprintf mov w8, #-1 str w8, [sp, #228] b LBB1_88 LBB1_14: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #184] ldrb w8, [x8] ldrsw x10, [sp, #196] sub x9, x29, #56 add x9, x9, x10 strb w8, [x9] ldr w8, [sp, #196] add w8, w8, #1 str w8, [sp, #196] ldr x8, [sp, #184] ldrsb w8, [x8] subs w8, w8, #68 cset w8, ne tbnz w8, #0, LBB1_16 b LBB1_15 LBB1_15: ; in Loop: Header=BB1_1 Depth=1 mov w8, #1 str w8, [sp, #180] b LBB1_16 LBB1_16: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #184] ldrsb w8, [x8] subs w8, w8, #84 cset w8, ne tbnz w8, #0, LBB1_18 b LBB1_17 LBB1_17: ; in Loop: Header=BB1_1 Depth=1 mov w8, #1 str w8, [sp, #172] b LBB1_18 LBB1_18: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #184] ldrsb w8, [x8] subs w8, w8, #83 cset w8, ne tbnz w8, #0, LBB1_20 b LBB1_19 LBB1_19: ; in Loop: Header=BB1_1 Depth=1 mov w8, #1 str w8, [sp, #176] b LBB1_20 LBB1_20: ; in Loop: Header=BB1_1 Depth=1 b LBB1_41 LBB1_21: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #196] subs w8, w8, #1 cset w8, ge tbnz w8, #0, LBB1_23 b LBB1_22 LBB1_22: ldr x8, [sp, #136] ; 8-byte Folded Reload ldr x0, [x8] ldr x8, [sp, #200] mov x9, sp str x8, [x9] adrp x1, l_.str.25@PAGE add x1, x1, l_.str.25@PAGEOFF bl _fprintf mov w8, #-1 str w8, [sp, #228] b LBB1_88 LBB1_23: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #196] subs w3, w8, #2 sub x0, x29, #88 mov x1, #32 str x1, [sp, #104] ; 8-byte Folded Spill sub x2, x29, #56 str x2, [sp, #112] ; 8-byte Folded Spill bl _mk_operand ldr x1, [sp, #104] ; 8-byte Folded Reload ldr x2, [sp, #112] ; 8-byte Folded Reload ldr w8, [sp, #196] subs w3, w8, #1 sub x0, x29, #120 bl _mk_operand ldr x8, [sp, #184] ldrsb w8, [x8] subs w8, w8, #111 cset w8, ne tbnz w8, #0, LBB1_25 b LBB1_24 LBB1_24: ; in Loop: Header=BB1_1 Depth=1 mov w8, #124 str w8, [sp, #100] ; 4-byte Folded Spill b LBB1_26 LBB1_25: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #184] ldrsb w8, [x8] subs w8, w8, #97 cset w8, eq and w10, w8, #0x1 mov w9, #94 mov w8, #38 ands w10, w10, #0x1 csel w8, w8, w9, ne str w8, [sp, #100] ; 4-byte Folded Spill b LBB1_26 LBB1_26: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #100] ; 4-byte Folded Reload strb w8, [sp, #171] ldr w8, [sp, #196] subs w11, w8, #1 ldrsb w10, [sp, #171] mov x9, sp ; implicit-def: $x8 mov x8, x11 str x8, [x9] sub x8, x29, #88 str x8, [x9, #8] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #16] sub x8, x29, #120 str x8, [x9, #24] add x0, sp, #2280 mov x1, #2048 add x2, sp, #160 adrp x3, l_.str.26@PAGE add x3, x3, l_.str.26@PAGEOFF bl _apprintf subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_28 b LBB1_27 LBB1_27: mov w8, #-1 str w8, [sp, #228] b LBB1_88 LBB1_28: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #196] subs w3, w8, #2 sub x0, x29, #88 str x0, [sp, #80] ; 8-byte Folded Spill mov x1, #32 str x1, [sp, #64] ; 8-byte Folded Spill sub x2, x29, #56 str x2, [sp, #72] ; 8-byte Folded Spill bl _mk_xoperand ldr x1, [sp, #64] ; 8-byte Folded Reload ldr x2, [sp, #72] ; 8-byte Folded Reload ldr w8, [sp, #196] subs w3, w8, #1 sub x0, x29, #120 str x0, [sp, #88] ; 8-byte Folded Spill bl _mk_xoperand ldr x10, [sp, #80] ; 8-byte Folded Reload ldr x8, [sp, #88] ; 8-byte Folded Reload ldr w9, [sp, #196] subs w13, w9, #1 ldrsb w11, [sp, #171] mov x9, sp ; implicit-def: $x12 mov x12, x13 str x12, [x9] str x10, [x9, #8] ; implicit-def: $x10 mov x10, x11 str x10, [x9, #16] str x8, [x9, #24] add x0, sp, #232 mov x1, #2048 add x2, sp, #152 adrp x3, l_.str.26@PAGE add x3, x3, l_.str.26@PAGEOFF bl _apprintf subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_30 b LBB1_29 LBB1_29: mov w8, #-1 str w8, [sp, #228] b LBB1_88 LBB1_30: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #196] subs w8, w8, #1 str w8, [sp, #196] ldr w8, [sp, #196] ldr w9, [sp, #192] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB1_32 b LBB1_31 LBB1_31: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #196] str w8, [sp, #192] b LBB1_32 LBB1_32: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #196] subs w9, w8, #1 sub x8, x29, #56 add x8, x8, w9, sxtw strb wzr, [x8] b LBB1_41 LBB1_33: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #196] subs w3, w8, #1 sub x0, x29, #88 str x0, [sp, #56] ; 8-byte Folded Spill mov x1, #32 sub x2, x29, #56 bl _mk_operand ldr x8, [sp, #56] ; 8-byte Folded Reload ldr w9, [sp, #196] ; implicit-def: $x10 mov x10, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] add x0, sp, #2280 mov x1, #2048 add x2, sp, #160 adrp x3, l_.str.27@PAGE add x3, x3, l_.str.27@PAGEOFF bl _apprintf subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_35 b LBB1_34 LBB1_34: mov w8, #-1 str w8, [sp, #228] b LBB1_88 LBB1_35: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #196] subs w3, w8, #1 sub x0, x29, #88 str x0, [sp, #48] ; 8-byte Folded Spill mov x1, #32 sub x2, x29, #56 bl _mk_xoperand ldr x8, [sp, #48] ; 8-byte Folded Reload ldr w9, [sp, #196] ; implicit-def: $x10 mov x10, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] add x0, sp, #232 mov x1, #2048 add x2, sp, #152 adrp x3, l_.str.27@PAGE add x3, x3, l_.str.27@PAGEOFF bl _apprintf subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_37 b LBB1_36 LBB1_36: mov w8, #-1 str w8, [sp, #228] b LBB1_88 LBB1_37: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #196] ldr w9, [sp, #192] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB1_39 b LBB1_38 LBB1_38: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #196] str w8, [sp, #192] b LBB1_39 LBB1_39: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #196] subs w9, w8, #1 sub x8, x29, #56 add x8, x8, w9, sxtw strb wzr, [x8] b LBB1_41 LBB1_40: ldr x8, [sp, #136] ; 8-byte Folded Reload ldr x0, [x8] ldr x8, [sp, #184] ldrsb w11, [x8] ldr x8, [sp, #200] mov x9, sp ; implicit-def: $x10 mov x10, x11 str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.28@PAGE add x1, x1, l_.str.28@PAGEOFF bl _fprintf mov w8, #-1 str w8, [sp, #228] b LBB1_88 LBB1_41: ; in Loop: Header=BB1_1 Depth=1 b LBB1_42 LBB1_42: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #184] add x8, x8, #1 str x8, [sp, #184] b LBB1_1 LBB1_43: ldr w8, [sp, #196] subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB1_45 b LBB1_44 LBB1_44: ldr x8, [sp, #136] ; 8-byte Folded Reload ldr x0, [x8] ldr x8, [sp, #200] mov x9, sp str x8, [x9] adrp x1, l_.str.29@PAGE add x1, x1, l_.str.29@PAGEOFF bl _fprintf mov w8, #-1 str w8, [sp, #228] b LBB1_88 LBB1_45: sub x0, x29, #88 mov x1, #32 sub x2, x29, #56 mov w3, #0 bl _mk_operand ldr x0, [sp, #216] ldr x10, [sp, #200] ldr w9, [sp, #212] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.30@PAGE add x1, x1, l_.str.30@PAGEOFF bl _fprintf mov w8, #1 str w8, [sp, #148] b LBB1_46 LBB1_46: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #148] ldr w9, [sp, #192] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB1_49 b LBB1_47 LBB1_47: ; in Loop: Header=BB1_46 Depth=1 ldr x0, [sp, #216] ldr w9, [sp, #148] ; 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 LBB1_48 LBB1_48: ; in Loop: Header=BB1_46 Depth=1 ldr w8, [sp, #148] add w8, w8, #1 str w8, [sp, #148] b LBB1_46 LBB1_49: ldr x1, [sp, #216] add x0, sp, #2280 bl _fputs ldr x8, [sp, #128] ; 8-byte Folded Reload ldrsb w8, [x8] subs w8, w8, #68 cset w8, eq tbnz w8, #0, LBB1_51 b LBB1_50 LBB1_50: ldr x0, [sp, #216] mov x9, sp sub x8, x29, #88 str x8, [x9] adrp x1, l_.str.32@PAGE add x1, x1, l_.str.32@PAGEOFF bl _fprintf b LBB1_51 LBB1_51: ldr x0, [sp, #216] adrp x1, l_.str.33@PAGE add x1, x1, l_.str.33@PAGEOFF bl _fprintf ldr x0, [sp, #216] ldr x10, [sp, #200] ldr w9, [sp, #212] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.34@PAGE add x1, x1, l_.str.34@PAGEOFF bl _fprintf mov w8, #1 str w8, [sp, #148] b LBB1_52 LBB1_52: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #148] ldr w9, [sp, #192] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB1_55 b LBB1_53 LBB1_53: ; in Loop: Header=BB1_52 Depth=1 ldr x0, [sp, #216] ldr w9, [sp, #148] ; 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 LBB1_54 LBB1_54: ; in Loop: Header=BB1_52 Depth=1 ldr w8, [sp, #148] add w8, w8, #1 str w8, [sp, #148] b LBB1_52 LBB1_55: ldr x1, [sp, #216] add x0, sp, #2280 bl _fputs ldr x0, [sp, #216] mov x9, sp sub x8, x29, #88 mov x10, x8 str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.35@PAGE add x1, x1, l_.str.35@PAGEOFF bl _fprintf ldr x0, [sp, #216] adrp x1, l_.str.33@PAGE add x1, x1, l_.str.33@PAGEOFF bl _fprintf ldr x0, [sp, #216] ldr x10, [sp, #200] ldr w9, [sp, #212] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.36@PAGE add x1, x1, l_.str.36@PAGEOFF bl _fprintf mov w8, #1 str w8, [sp, #148] b LBB1_56 LBB1_56: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #148] ldr w9, [sp, #192] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB1_59 b LBB1_57 LBB1_57: ; in Loop: Header=BB1_56 Depth=1 ldr x0, [sp, #216] ldr w9, [sp, #148] ; 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 LBB1_58 LBB1_58: ; in Loop: Header=BB1_56 Depth=1 ldr w8, [sp, #148] add w8, w8, #1 str w8, [sp, #148] b LBB1_56 LBB1_59: ldr x1, [sp, #216] add x0, sp, #2280 bl _fputs ldr x0, [sp, #216] mov x9, sp sub x8, x29, #88 str x8, [x9] adrp x1, l_.str.37@PAGE add x1, x1, l_.str.37@PAGEOFF bl _fprintf ldr x0, [sp, #216] adrp x1, l_.str.33@PAGE add x1, x1, l_.str.33@PAGEOFF bl _fprintf ldr x0, [sp, #216] ldr x10, [sp, #200] ldr w9, [sp, #212] ; 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 mov w8, #1 str w8, [sp, #148] b LBB1_60 LBB1_60: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #148] ldr w9, [sp, #192] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB1_63 b LBB1_61 LBB1_61: ; in Loop: Header=BB1_60 Depth=1 ldr x0, [sp, #216] ldr w9, [sp, #148] ; 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 LBB1_62 LBB1_62: ; in Loop: Header=BB1_60 Depth=1 ldr w8, [sp, #148] add w8, w8, #1 str w8, [sp, #148] b LBB1_60 LBB1_63: ldr x1, [sp, #216] add x0, sp, #2280 bl _fputs ldr x0, [sp, #216] mov x9, sp sub x8, x29, #88 str x8, [sp, #40] ; 8-byte Folded Spill str x8, [x9] adrp x1, l_.str.39@PAGE add x1, x1, l_.str.39@PAGEOFF bl _fprintf ldr x0, [sp, #216] adrp x1, l_.str.33@PAGE add x1, x1, l_.str.33@PAGEOFF bl _fprintf ldr x0, [sp, #40] ; 8-byte Folded Reload mov x1, #32 sub x2, x29, #56 mov w3, #0 bl _mk_xoperand ldr x0, [sp, #216] ldr x10, [sp, #200] ldr w9, [sp, #212] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.40@PAGE add x1, x1, l_.str.40@PAGEOFF bl _fprintf ldr w8, [sp, #180] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_65 b LBB1_64 LBB1_64: ldr x0, [sp, #216] adrp x1, l_.str.41@PAGE add x1, x1, l_.str.41@PAGEOFF bl _fprintf b LBB1_65 LBB1_65: ldr w8, [sp, #176] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_67 b LBB1_66 LBB1_66: ldr x0, [sp, #216] adrp x1, l_.str.42@PAGE add x1, x1, l_.str.42@PAGEOFF bl _fprintf b LBB1_67 LBB1_67: ldr w8, [sp, #172] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_69 b LBB1_68 LBB1_68: ldr x0, [sp, #216] adrp x1, l_.str.43@PAGE add x1, x1, l_.str.43@PAGEOFF bl _fprintf b LBB1_69 LBB1_69: mov w8, #1 str w8, [sp, #148] b LBB1_70 LBB1_70: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #148] ldr w9, [sp, #192] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB1_73 b LBB1_71 LBB1_71: ; in Loop: Header=BB1_70 Depth=1 ldr x0, [sp, #216] ldr w9, [sp, #148] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.44@PAGE add x1, x1, l_.str.44@PAGEOFF bl _fprintf b LBB1_72 LBB1_72: ; in Loop: Header=BB1_70 Depth=1 ldr w8, [sp, #148] add w8, w8, #1 str w8, [sp, #148] b LBB1_70 LBB1_73: ldr x1, [sp, #216] add x0, sp, #232 bl _fputs ldr x0, [sp, #216] mov x9, sp sub x8, x29, #88 str x8, [x9] adrp x1, l_.str.45@PAGE add x1, x1, l_.str.45@PAGEOFF bl _fprintf ldr x0, [sp, #216] adrp x1, l_.str.33@PAGE add x1, x1, l_.str.33@PAGEOFF bl _fprintf ldr x0, [sp, #216] ldr x10, [sp, #200] ldr w9, [sp, #212] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.46@PAGE add x1, x1, l_.str.46@PAGEOFF bl _fprintf ldr x0, [sp, #216] adrp x1, l_.str.41@PAGE add x1, x1, l_.str.41@PAGEOFF bl _fprintf ldr x0, [sp, #216] adrp x1, l_.str.42@PAGE add x1, x1, l_.str.42@PAGEOFF bl _fprintf ldr x0, [sp, #216] adrp x1, l_.str.43@PAGE add x1, x1, l_.str.43@PAGEOFF bl _fprintf mov w8, #1 str w8, [sp, #148] b LBB1_74 LBB1_74: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #148] ldr w9, [sp, #192] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB1_77 b LBB1_75 LBB1_75: ; in Loop: Header=BB1_74 Depth=1 ldr x0, [sp, #216] ldr w9, [sp, #148] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.44@PAGE add x1, x1, l_.str.44@PAGEOFF bl _fprintf b LBB1_76 LBB1_76: ; in Loop: Header=BB1_74 Depth=1 ldr w8, [sp, #148] add w8, w8, #1 str w8, [sp, #148] b LBB1_74 LBB1_77: ldr x1, [sp, #216] add x0, sp, #232 bl _fputs ldr x0, [sp, #216] mov x9, sp sub x8, x29, #88 mov x10, x8 str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.47@PAGE add x1, x1, l_.str.47@PAGEOFF bl _fprintf ldr x0, [sp, #216] adrp x1, l_.str.33@PAGE add x1, x1, l_.str.33@PAGEOFF bl _fprintf ldr x0, [sp, #216] ldr x10, [sp, #200] ldr w9, [sp, #212] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.48@PAGE add x1, x1, l_.str.48@PAGEOFF bl _fprintf ldr x0, [sp, #216] adrp x1, l_.str.41@PAGE add x1, x1, l_.str.41@PAGEOFF bl _fprintf ldr x0, [sp, #216] adrp x1, l_.str.42@PAGE add x1, x1, l_.str.42@PAGEOFF bl _fprintf ldr w8, [sp, #172] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_79 b LBB1_78 LBB1_78: ldr x0, [sp, #216] adrp x1, l_.str.43@PAGE add x1, x1, l_.str.43@PAGEOFF bl _fprintf b LBB1_79 LBB1_79: mov w8, #1 str w8, [sp, #148] b LBB1_80 LBB1_80: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #148] ldr w9, [sp, #192] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB1_83 b LBB1_81 LBB1_81: ; in Loop: Header=BB1_80 Depth=1 ldr x0, [sp, #216] ldr w9, [sp, #148] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.44@PAGE add x1, x1, l_.str.44@PAGEOFF bl _fprintf b LBB1_82 LBB1_82: ; in Loop: Header=BB1_80 Depth=1 ldr w8, [sp, #148] add w8, w8, #1 str w8, [sp, #148] b LBB1_80 LBB1_83: ldr x1, [sp, #216] add x0, sp, #232 bl _fputs ldr x0, [sp, #216] mov x9, sp sub x8, x29, #88 str x8, [x9] adrp x1, l_.str.49@PAGE add x1, x1, l_.str.49@PAGEOFF bl _fprintf ldr x0, [sp, #216] adrp x1, l_.str.33@PAGE add x1, x1, l_.str.33@PAGEOFF bl _fprintf ldr x0, [sp, #216] ldr x10, [sp, #200] ldr w9, [sp, #212] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.50@PAGE add x1, x1, l_.str.50@PAGEOFF bl _fprintf ldr x0, [sp, #216] adrp x1, l_.str.41@PAGE add x1, x1, l_.str.41@PAGEOFF bl _fprintf ldr x0, [sp, #216] adrp x1, l_.str.42@PAGE add x1, x1, l_.str.42@PAGEOFF bl _fprintf ldr x0, [sp, #216] adrp x1, l_.str.43@PAGE add x1, x1, l_.str.43@PAGEOFF bl _fprintf mov w8, #1 str w8, [sp, #148] b LBB1_84 LBB1_84: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #148] ldr w9, [sp, #192] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB1_87 b LBB1_85 LBB1_85: ; in Loop: Header=BB1_84 Depth=1 ldr x0, [sp, #216] ldr w9, [sp, #148] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.44@PAGE add x1, x1, l_.str.44@PAGEOFF bl _fprintf b LBB1_86 LBB1_86: ; in Loop: Header=BB1_84 Depth=1 ldr w8, [sp, #148] add w8, w8, #1 str w8, [sp, #148] b LBB1_84 LBB1_87: ldr x1, [sp, #216] add x0, sp, #232 bl _fputs ldr x0, [sp, #216] mov x9, sp sub x8, x29, #88 str x8, [x9] adrp x1, l_.str.51@PAGE add x1, x1, l_.str.51@PAGEOFF bl _fprintf ldr x0, [sp, #216] adrp x1, l_.str.33@PAGE add x1, x1, l_.str.33@PAGEOFF bl _fprintf str wzr, [sp, #228] b LBB1_88 LBB1_88: ldr w8, [sp, #228] str w8, [sp, #36] ; 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_90 b LBB1_89 LBB1_89: bl ___stack_chk_fail LBB1_90: ldr w0, [sp, #36] ; 4-byte Folded Reload add sp, sp, #1, lsl #12 ; =4096 add sp, sp, #336 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc .p2align 2 lJTI1_0: .long LBB1_4-Ltmp0 .long LBB1_4-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_12-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_12-Ltmp0 .long LBB1_12-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_21-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_33-Ltmp0 .long LBB1_21-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_40-Ltmp0 .long LBB1_21-Ltmp0 ; -- End function .p2align 2 ; -- Begin function apprintf _apprintf: ; @apprintf .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur x1, [x29, #-24] str x2, [sp, #32] str x3, [sp, #24] add x9, sp, #8 add x8, x29, #16 str x8, [x9] ldur x8, [x29, #-16] ldr x9, [sp, #32] ldr x9, [x9] ldur x10, [x29, #-24] ldr x11, [sp, #32] ldr x11, [x11] subs x1, x10, x11 ldr x4, [sp, #24] ldr x5, [sp, #8] add x0, x8, x9 mov w2, #0 mov x3, #-1 bl ___vsnprintf_chk str w0, [sp, #20] ldr w8, [sp, #20] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: adrp x0, l_.str.52@PAGE add x0, x0, l_.str.52@PAGEOFF bl _perror mov w8, #-1 stur w8, [x29, #-4] b LBB2_3 LBB2_2: ldrsw x10, [sp, #20] ldr x9, [sp, #32] ldr x8, [x9] add x8, x8, x10 str x8, [x9] stur wzr, [x29, #-4] b LBB2_3 LBB2_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function mk_operand _mk_operand: ; @mk_operand .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 w3, [sp, #20] ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] str w8, [sp, #16] ; 4-byte Folded Spill subs w8, w8, #68 cset w8, eq tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: ldr w8, [sp, #16] ; 4-byte Folded Reload subs w8, w8, #83 subs w8, w8, #1 cset w8, ls tbnz w8, #0, LBB3_3 b LBB3_4 LBB3_2: ldur x0, [x29, #-8] adrp x1, l_.str.53@PAGE add x1, x1, l_.str.53@PAGEOFF mov x2, #-1 bl ___strcpy_chk b LBB3_5 LBB3_3: ldr x8, [sp, #24] ldrsw x9, [sp, #20] add x8, x8, x9 ldrb w8, [x8] ldur x9, [x29, #-8] strb w8, [x9] ldur x8, [x29, #-8] strb wzr, [x8, #1] b LBB3_5 LBB3_4: ldur x0, [x29, #-8] ldur x1, [x29, #-16] ldr w8, [sp, #20] add w10, w8, #1 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] mov w2, #0 mov x3, #-1 adrp x4, l_.str.54@PAGE add x4, x4, l_.str.54@PAGEOFF bl ___snprintf_chk b LBB3_5 LBB3_5: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function mk_xoperand _mk_xoperand: ; @mk_xoperand .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 w3, [sp, #20] ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] str w8, [sp, #16] ; 4-byte Folded Spill subs w8, w8, #68 cset w8, eq tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: ldr w8, [sp, #16] ; 4-byte Folded Reload subs w8, w8, #83 subs w8, w8, #1 cset w8, ls tbnz w8, #0, LBB4_3 b LBB4_4 LBB4_2: ldur x0, [x29, #-8] adrp x1, l_.str.55@PAGE add x1, x1, l_.str.55@PAGEOFF mov x2, #-1 bl ___strcpy_chk b LBB4_5 LBB4_3: ldr x8, [sp, #24] ldrsw x9, [sp, #20] add x8, x8, x9 ldrb w8, [x8] ldur x9, [x29, #-8] strb w8, [x9] ldur x8, [x29, #-8] strb wzr, [x8, #1] b LBB4_5 LBB4_4: ldur x0, [x29, #-8] ldur x1, [x29, #-16] ldr w8, [sp, #20] add w10, w8, #1 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] mov w2, #0 mov x3, #-1 adrp x4, l_.str.54@PAGE add x4, x4, l_.str.54@PAGEOFF bl ___snprintf_chk b LBB4_5 LBB4_5: 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 "usage: %s <in> <out>.\n" l_.str.1: ; @.str.1 .asciz "rb" l_.str.2: ; @.str.2 .asciz "%s: Error opening file <%s>: %s.\n" l_.str.3: ; @.str.3 .asciz "wb" l_.str.4: ; @.str.4 .asciz "/* Generated automatically by %s at %.24s.\n" l_.str.5: ; @.str.5 .asciz " Do not edit!\n" l_.str.6: ; @.str.6 .asciz " */\n" l_.str.7: ; @.str.7 .asciz "#include <hpgs.h>\n\n" l_.str.8: ; @.str.8 .asciz "%d %31s" l_.str.9: ; @.str.9 .asciz "%s: Illegal count %d in stanza %d.\n" l_.str.10: ; @.str.10 .asciz "static hpgs_rop3_func_t rop3_table[][2][2] = {\n" l_.str.11: ; @.str.11 .asciz " {{rop3_%d_0_0,rop3_%d_0_1},{rop3_%d_1_0,rop3_%d_1_1}}%s\n" l_.str.12: ; @.str.12 .asciz "," l_.str.13: ; @.str.13 .space 1 l_.str.14: ; @.str.14 .asciz "};\n\n" l_.str.15: ; @.str.15 .asciz "hpgs_rop3_func_t hpgs_rop3_func(int rop3,\n hpgs_bool src_transparency,\n hpgs_bool pattern_transparency)\n{\n if (rop3 < 0 || rop3 >= %d) return 0;\n return rop3_table[rop3][src_transparency!=0][pattern_transparency!=0];\n}\n" l_.str.16: ; @.str.16 .asciz "static hpgs_xrop3_func_t xrop3_table[][2][2] = {\n" l_.str.17: ; @.str.17 .asciz " {{xrop3_%d_0_0,xrop3_%d_0_1},{xrop3_%d_1_0,xrop3_%d_1_1}}%s\n" l_.str.18: ; @.str.18 .asciz "hpgs_xrop3_func_t hpgs_xrop3_func(int rop3,\n hpgs_bool src_transparency,\n hpgs_bool pattern_transparency)\n{\n if (rop3 < 0 || rop3 >= %d) return 0;\n return xrop3_table[rop3][src_transparency!=0][pattern_transparency!=0];\n}\n" l_.str.19: ; @.str.19 .asciz "Misplaced %c in rop string %s.\n" l_.str.20: ; @.str.20 .asciz " stk1 = %d;\n" l_.str.21: ; @.str.21 .asciz " stk1 = %s;\n" l_.str.22: ; @.str.22 .asciz "0x0000" l_.str.23: ; @.str.23 .asciz "0xffff" l_.str.24: ; @.str.24 .asciz "Stack overflow in rop string %s.\n" l_.str.25: ; @.str.25 .asciz "Stack underflow in rop string %s.\n" l_.str.26: ; @.str.26 .asciz " stk%d = %s %c %s;\n" l_.str.27: ; @.str.27 .asciz " stk%d = ~%s;\n" l_.str.28: ; @.str.28 .asciz "Illegal character %c in rop string %s.\n" l_.str.29: ; @.str.29 .asciz "Unbalanced shift/reduce in rop string %s.\n" l_.str.30: ; @.str.30 .asciz "/* %s source/pattern opaque. */\nstatic void rop3_%d_0_0 (unsigned char *D, unsigned char S, unsigned char T)\n{\n" l_.str.31: ; @.str.31 .asciz " unsigned char stk%d;\n" l_.str.32: ; @.str.32 .asciz " *D = %s;\n" l_.str.33: ; @.str.33 .asciz "}\n\n" l_.str.34: ; @.str.34 .asciz "/* %s source opaque/pattern transparent. */\nstatic void rop3_%d_0_1 (unsigned char *D, unsigned char S, unsigned char T)\n{\n" l_.str.35: ; @.str.35 .asciz " *D = (%s & S) | (%s & (~T)) | (T & (~S) & *D);\n" l_.str.36: ; @.str.36 .asciz "/* %s source transparent/pattern opaque. */\nstatic void rop3_%d_1_0 (unsigned char *D, unsigned char S, unsigned char T)\n{\n" l_.str.37: ; @.str.37 .asciz " *D = (%s & (~S)) | (*D & S);\n" l_.str.38: ; @.str.38 .asciz "/* %s source/pattern transparent. */\nstatic void rop3_%d_1_1 (unsigned char *D, unsigned char S, unsigned char T)\n{\n" l_.str.39: ; @.str.39 .asciz " *D = (%s & (~S) & (~T)) | (*D & S) | (*D & T);\n" l_.str.40: ; @.str.40 .asciz "/* %s source/pattern opaque. */\nstatic unsigned xrop3_%d_0_0 (unsigned char s, unsigned char t)\n{\n" l_.str.41: ; @.str.41 .asciz " unsigned D = 0x00ff;\n" l_.str.42: ; @.str.42 .asciz " unsigned S = ((unsigned)s << 8) | s;\n" l_.str.43: ; @.str.43 .asciz " unsigned T = ((unsigned)t << 8) | t;\n" l_.str.44: ; @.str.44 .asciz " unsigned stk%d;\n" l_.str.45: ; @.str.45 .asciz " return %s;\n" l_.str.46: ; @.str.46 .asciz "/* %s source opaque/pattern transparent. */\nstatic unsigned xrop3_%d_0_1 (unsigned char s, unsigned char t)\n{\n" l_.str.47: ; @.str.47 .asciz " return (%s & S) | (%s & (~T)) | (T & (~S) & D);\n" l_.str.48: ; @.str.48 .asciz "/* %s source transparent/pattern opaque. */\nstatic unsigned xrop3_%d_1_0 (unsigned char s, unsigned char t)\n{\n" l_.str.49: ; @.str.49 .asciz " return (%s & (~S)) | (D & S);\n" l_.str.50: ; @.str.50 .asciz "/* %s source/pattern transparent. */\nstatic unsigned xrop3_%d_1_1 (unsigned char s, unsigned char t)\n{\n" l_.str.51: ; @.str.51 .asciz " return (%s & (~S) & (~T)) | (D & S) | (D & T);\n" l_.str.52: ; @.str.52 .asciz "snprintf" l_.str.53: ; @.str.53 .asciz "*D" l_.str.54: ; @.str.54 .asciz "stk%d" l_.str.55: ; @.str.55 .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 $192, %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) movq $0, -72(%rbp) movq $0, -80(%rbp) movl $0, -84(%rbp) movl $0, -92(%rbp) cmpl $3, -56(%rbp) je LBB0_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -64(%rbp), %rax movq (%rax), %rdx leaq L_.str(%rip), %rsi movb $0, %al callq _fprintf movl $1, -52(%rbp) jmp LBB0_27 LBB0_2: movq -64(%rbp), %rax movq 8(%rax), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -72(%rbp) cmpq $0, -72(%rbp) jne LBB0_4 ## %bb.3: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -128(%rbp) ## 8-byte Spill movq -64(%rbp), %rax movq (%rax), %rax movq %rax, -120(%rbp) ## 8-byte Spill movq -64(%rbp), %rax movq 8(%rax), %rax movq %rax, -112(%rbp) ## 8-byte Spill callq ___error movl (%rax), %edi callq _strerror movq -128(%rbp), %rdi ## 8-byte Reload movq -120(%rbp), %rdx ## 8-byte Reload movq -112(%rbp), %rcx ## 8-byte Reload movq %rax, %r8 leaq L_.str.2(%rip), %rsi movb $0, %al callq _fprintf movl $1, -92(%rbp) jmp LBB0_22 LBB0_4: movq -64(%rbp), %rax movq 16(%rax), %rdi leaq L_.str.3(%rip), %rsi callq _fopen movq %rax, -80(%rbp) cmpq $0, -80(%rbp) jne LBB0_6 ## %bb.5: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -152(%rbp) ## 8-byte Spill movq -64(%rbp), %rax movq (%rax), %rax movq %rax, -144(%rbp) ## 8-byte Spill movq -64(%rbp), %rax movq 16(%rax), %rax movq %rax, -136(%rbp) ## 8-byte Spill callq ___error movl (%rax), %edi callq _strerror movq -152(%rbp), %rdi ## 8-byte Reload movq -144(%rbp), %rdx ## 8-byte Reload movq -136(%rbp), %rcx ## 8-byte Reload movq %rax, %r8 leaq L_.str.2(%rip), %rsi movb $0, %al callq _fprintf movl $1, -92(%rbp) jmp LBB0_22 LBB0_6: xorl %eax, %eax movl %eax, %edi callq _time movq %rax, -104(%rbp) movq -80(%rbp), %rax movq %rax, -168(%rbp) ## 8-byte Spill movq -64(%rbp), %rax movq (%rax), %rax movq %rax, -160(%rbp) ## 8-byte Spill leaq -104(%rbp), %rdi callq _ctime movq -168(%rbp), %rdi ## 8-byte Reload movq -160(%rbp), %rdx ## 8-byte Reload movq %rax, %rcx leaq L_.str.4(%rip), %rsi movb $0, %al callq _fprintf movq -80(%rbp), %rdi leaq L_.str.5(%rip), %rsi movb $0, %al callq _fprintf movq -80(%rbp), %rdi leaq L_.str.6(%rip), %rsi movb $0, %al callq _fprintf movq -80(%rbp), %rdi leaq L_.str.7(%rip), %rsi movb $0, %al callq _fprintf LBB0_7: ## =>This Inner Loop Header: Depth=1 movq -72(%rbp), %rdi leaq -48(%rbp), %rcx leaq L_.str.8(%rip), %rsi leaq -88(%rbp), %rdx movb $0, %al callq _fscanf cmpl $2, %eax jne LBB0_13 ## %bb.8: ## in Loop: Header=BB0_7 Depth=1 movl -88(%rbp), %eax cmpl -84(%rbp), %eax je LBB0_10 ## %bb.9: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -64(%rbp), %rax movq (%rax), %rdx movl -88(%rbp), %ecx movl -84(%rbp), %r8d leaq L_.str.9(%rip), %rsi movb $0, %al callq _fprintf movl $1, -92(%rbp) jmp LBB0_22 LBB0_10: ## in Loop: Header=BB0_7 Depth=1 movq -80(%rbp), %rdi movl -84(%rbp), %esi leaq -48(%rbp), %rdx callq _write_rop3_func cmpl $0, %eax je LBB0_12 ## %bb.11: jmp LBB0_22 LBB0_12: ## in Loop: Header=BB0_7 Depth=1 movl -84(%rbp), %eax addl $1, %eax movl %eax, -84(%rbp) jmp LBB0_7 LBB0_13: movq -80(%rbp), %rdi leaq L_.str.10(%rip), %rsi movb $0, %al callq _fprintf movl $0, -88(%rbp) LBB0_14: ## =>This Inner Loop Header: Depth=1 movl -88(%rbp), %eax cmpl -84(%rbp), %eax jge LBB0_17 ## %bb.15: ## in Loop: Header=BB0_14 Depth=1 movq -80(%rbp), %rdi movl -88(%rbp), %edx movl -88(%rbp), %ecx movl -88(%rbp), %r8d movl -88(%rbp), %r9d movl -88(%rbp), %r10d movl -84(%rbp), %r11d subl $1, %r11d leaq L_.str.13(%rip), %rax leaq L_.str.12(%rip), %rsi cmpl %r11d, %r10d cmovlq %rsi, %rax leaq L_.str.11(%rip), %rsi movq %rax, (%rsp) movb $0, %al callq _fprintf ## %bb.16: ## in Loop: Header=BB0_14 Depth=1 movl -88(%rbp), %eax addl $1, %eax movl %eax, -88(%rbp) jmp LBB0_14 LBB0_17: movq -80(%rbp), %rdi leaq L_.str.14(%rip), %rsi movb $0, %al callq _fprintf movq -80(%rbp), %rdi movl -84(%rbp), %edx leaq L_.str.15(%rip), %rsi movb $0, %al callq _fprintf movq -80(%rbp), %rdi leaq L_.str.16(%rip), %rsi movb $0, %al callq _fprintf movl $0, -88(%rbp) LBB0_18: ## =>This Inner Loop Header: Depth=1 movl -88(%rbp), %eax cmpl -84(%rbp), %eax jge LBB0_21 ## %bb.19: ## in Loop: Header=BB0_18 Depth=1 movq -80(%rbp), %rdi movl -88(%rbp), %edx movl -88(%rbp), %ecx movl -88(%rbp), %r8d movl -88(%rbp), %r9d movl -88(%rbp), %r10d movl -84(%rbp), %r11d subl $1, %r11d leaq L_.str.13(%rip), %rax leaq L_.str.12(%rip), %rsi cmpl %r11d, %r10d cmovlq %rsi, %rax leaq L_.str.17(%rip), %rsi movq %rax, (%rsp) movb $0, %al callq _fprintf ## %bb.20: ## in Loop: Header=BB0_18 Depth=1 movl -88(%rbp), %eax addl $1, %eax movl %eax, -88(%rbp) jmp LBB0_18 LBB0_21: movq -80(%rbp), %rdi leaq L_.str.14(%rip), %rsi movb $0, %al callq _fprintf movq -80(%rbp), %rdi movl -84(%rbp), %edx leaq L_.str.18(%rip), %rsi movb $0, %al callq _fprintf LBB0_22: cmpq $0, -72(%rbp) je LBB0_24 ## %bb.23: movq -72(%rbp), %rdi callq _fclose LBB0_24: cmpq $0, -80(%rbp) je LBB0_26 ## %bb.25: movq -80(%rbp), %rdi callq _fclose LBB0_26: movl -92(%rbp), %eax movl %eax, -52(%rbp) LBB0_27: movl -52(%rbp), %eax movl %eax, -172(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_29 ## %bb.28: movl -172(%rbp), %eax ## 4-byte Reload addq $192, %rsp popq %rbp retq LBB0_29: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function write_rop3_func _write_rop3_func: ## @write_rop3_func .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $4336, %eax ## imm = 0x10F0 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -4224(%rbp) movl %esi, -4228(%rbp) movq %rdx, -4240(%rbp) movl $0, -4244(%rbp) movl $0, -4248(%rbp) movl $0, -4260(%rbp) movl $0, -4264(%rbp) movl $0, -4268(%rbp) movq $0, -4280(%rbp) movq $0, -4288(%rbp) movb $0, -2160(%rbp) movb $0, -4208(%rbp) movq -4240(%rbp), %rax movq %rax, -4256(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movq -4256(%rbp), %rax cmpb $0, (%rax) je LBB1_42 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -4256(%rbp), %rax movsbl (%rax), %eax addl $-48, %eax movl %eax, %ecx movq %rcx, -4304(%rbp) ## 8-byte Spill subl $72, %eax ja LBB1_39 ## %bb.90: ## in Loop: Header=BB1_1 Depth=1 movq -4304(%rbp), %rax ## 8-byte Reload leaq LJTI1_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB1_3: ## in Loop: Header=BB1_1 Depth=1 movq -4256(%rbp), %rax movsbl (%rax), %edx movl $255, %eax xorl %ecx, %ecx cmpl $48, %edx cmovel %ecx, %eax movl %eax, -4292(%rbp) movl $1, -4244(%rbp) movl $1, -4248(%rbp) movq -4256(%rbp), %rax cmpq -4240(%rbp), %rax jne LBB1_5 ## %bb.4: ## in Loop: Header=BB1_1 Depth=1 movq -4256(%rbp), %rax movsbl 1(%rax), %eax cmpl $0, %eax je LBB1_6 LBB1_5: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -4256(%rbp), %rax movsbl (%rax), %edx movq -4240(%rbp), %rcx leaq L_.str.19(%rip), %rsi movb $0, %al callq _fprintf movl $-1, -4212(%rbp) jmp LBB1_87 LBB1_6: ## in Loop: Header=BB1_1 Depth=1 leaq -2160(%rbp), %rdi movl -4292(%rbp), %r8d movl $2048, %esi ## imm = 0x800 leaq -4280(%rbp), %rdx leaq L_.str.20(%rip), %rcx movb $0, %al callq _apprintf cmpl $0, %eax je LBB1_8 ## %bb.7: movl $-1, -4212(%rbp) jmp LBB1_87 LBB1_8: ## in Loop: Header=BB1_1 Depth=1 leaq -4208(%rbp), %rdi movq -4256(%rbp), %rax movsbl (%rax), %ecx leaq L_.str.23(%rip), %r8 leaq L_.str.22(%rip), %rax cmpl $48, %ecx cmoveq %rax, %r8 movl $2048, %esi ## imm = 0x800 leaq -4288(%rbp), %rdx leaq L_.str.21(%rip), %rcx movb $0, %al callq _apprintf cmpl $0, %eax je LBB1_10 ## %bb.9: movl $-1, -4212(%rbp) jmp LBB1_87 LBB1_10: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_40 LBB1_11: ## in Loop: Header=BB1_1 Depth=1 movslq -4244(%rbp), %rax cmpq $31, %rax jb LBB1_13 ## %bb.12: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -4240(%rbp), %rdx leaq L_.str.24(%rip), %rsi movb $0, %al callq _fprintf movl $-1, -4212(%rbp) jmp LBB1_87 LBB1_13: ## in Loop: Header=BB1_1 Depth=1 movq -4256(%rbp), %rax movb (%rax), %cl movslq -4244(%rbp), %rax movb %cl, -48(%rbp,%rax) movl -4244(%rbp), %eax addl $1, %eax movl %eax, -4244(%rbp) movq -4256(%rbp), %rax movsbl (%rax), %eax cmpl $68, %eax jne LBB1_15 ## %bb.14: ## in Loop: Header=BB1_1 Depth=1 movl $1, -4260(%rbp) LBB1_15: ## in Loop: Header=BB1_1 Depth=1 movq -4256(%rbp), %rax movsbl (%rax), %eax cmpl $84, %eax jne LBB1_17 ## %bb.16: ## in Loop: Header=BB1_1 Depth=1 movl $1, -4268(%rbp) LBB1_17: ## in Loop: Header=BB1_1 Depth=1 movq -4256(%rbp), %rax movsbl (%rax), %eax cmpl $83, %eax jne LBB1_19 ## %bb.18: ## in Loop: Header=BB1_1 Depth=1 movl $1, -4264(%rbp) LBB1_19: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_40 LBB1_20: ## in Loop: Header=BB1_1 Depth=1 cmpl $1, -4244(%rbp) jge LBB1_22 ## %bb.21: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -4240(%rbp), %rdx leaq L_.str.25(%rip), %rsi movb $0, %al callq _fprintf movl $-1, -4212(%rbp) jmp LBB1_87 LBB1_22: ## in Loop: Header=BB1_1 Depth=1 leaq -80(%rbp), %rdi leaq -48(%rbp), %rdx movl -4244(%rbp), %ecx subl $2, %ecx movl $32, %esi callq _mk_operand leaq -112(%rbp), %rdi leaq -48(%rbp), %rdx movl -4244(%rbp), %ecx subl $1, %ecx movl $32, %esi callq _mk_operand movq -4256(%rbp), %rax movsbl (%rax), %eax cmpl $111, %eax jne LBB1_24 ## %bb.23: ## in Loop: Header=BB1_1 Depth=1 movl $124, %eax movl %eax, -4308(%rbp) ## 4-byte Spill jmp LBB1_25 LBB1_24: ## in Loop: Header=BB1_1 Depth=1 movq -4256(%rbp), %rax movsbl (%rax), %edx movl $94, %eax movl $38, %ecx cmpl $97, %edx cmovel %ecx, %eax movl %eax, -4308(%rbp) ## 4-byte Spill LBB1_25: ## in Loop: Header=BB1_1 Depth=1 movl -4308(%rbp), %eax ## 4-byte Reload ## kill: def $al killed $al killed $eax movb %al, -4269(%rbp) leaq -2160(%rbp), %rdi movl -4244(%rbp), %r8d subl $1, %r8d leaq -80(%rbp), %r9 movsbl -4269(%rbp), %r10d leaq -112(%rbp), %rax movl $2048, %esi ## imm = 0x800 leaq -4280(%rbp), %rdx leaq L_.str.26(%rip), %rcx movl %r10d, (%rsp) movq %rax, 8(%rsp) movb $0, %al callq _apprintf cmpl $0, %eax je LBB1_27 ## %bb.26: movl $-1, -4212(%rbp) jmp LBB1_87 LBB1_27: ## in Loop: Header=BB1_1 Depth=1 leaq -80(%rbp), %rdi leaq -48(%rbp), %rdx movl -4244(%rbp), %ecx subl $2, %ecx movl $32, %esi callq _mk_xoperand leaq -112(%rbp), %rdi leaq -48(%rbp), %rdx movl -4244(%rbp), %ecx subl $1, %ecx movl $32, %esi callq _mk_xoperand leaq -4208(%rbp), %rdi movl -4244(%rbp), %r8d subl $1, %r8d leaq -80(%rbp), %r9 movsbl -4269(%rbp), %r10d leaq -112(%rbp), %rax movl $2048, %esi ## imm = 0x800 leaq -4288(%rbp), %rdx leaq L_.str.26(%rip), %rcx movl %r10d, (%rsp) movq %rax, 8(%rsp) movb $0, %al callq _apprintf cmpl $0, %eax je LBB1_29 ## %bb.28: movl $-1, -4212(%rbp) jmp LBB1_87 LBB1_29: ## in Loop: Header=BB1_1 Depth=1 movl -4244(%rbp), %eax addl $-1, %eax movl %eax, -4244(%rbp) movl -4244(%rbp), %eax cmpl -4248(%rbp), %eax jle LBB1_31 ## %bb.30: ## in Loop: Header=BB1_1 Depth=1 movl -4244(%rbp), %eax movl %eax, -4248(%rbp) LBB1_31: ## in Loop: Header=BB1_1 Depth=1 movl -4244(%rbp), %eax subl $1, %eax cltq movb $0, -48(%rbp,%rax) jmp LBB1_40 LBB1_32: ## in Loop: Header=BB1_1 Depth=1 leaq -80(%rbp), %rdi leaq -48(%rbp), %rdx movl -4244(%rbp), %ecx subl $1, %ecx movl $32, %esi callq _mk_operand leaq -2160(%rbp), %rdi movl -4244(%rbp), %r8d leaq -80(%rbp), %r9 movl $2048, %esi ## imm = 0x800 leaq -4280(%rbp), %rdx leaq L_.str.27(%rip), %rcx movb $0, %al callq _apprintf cmpl $0, %eax je LBB1_34 ## %bb.33: movl $-1, -4212(%rbp) jmp LBB1_87 LBB1_34: ## in Loop: Header=BB1_1 Depth=1 leaq -80(%rbp), %rdi leaq -48(%rbp), %rdx movl -4244(%rbp), %ecx subl $1, %ecx movl $32, %esi callq _mk_xoperand leaq -4208(%rbp), %rdi movl -4244(%rbp), %r8d leaq -80(%rbp), %r9 movl $2048, %esi ## imm = 0x800 leaq -4288(%rbp), %rdx leaq L_.str.27(%rip), %rcx movb $0, %al callq _apprintf cmpl $0, %eax je LBB1_36 ## %bb.35: movl $-1, -4212(%rbp) jmp LBB1_87 LBB1_36: ## in Loop: Header=BB1_1 Depth=1 movl -4244(%rbp), %eax cmpl -4248(%rbp), %eax jle LBB1_38 ## %bb.37: ## in Loop: Header=BB1_1 Depth=1 movl -4244(%rbp), %eax movl %eax, -4248(%rbp) LBB1_38: ## in Loop: Header=BB1_1 Depth=1 movl -4244(%rbp), %eax subl $1, %eax cltq movb $0, -48(%rbp,%rax) jmp LBB1_40 LBB1_39: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -4256(%rbp), %rax movsbl (%rax), %edx movq -4240(%rbp), %rcx leaq L_.str.28(%rip), %rsi movb $0, %al callq _fprintf movl $-1, -4212(%rbp) jmp LBB1_87 LBB1_40: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_41 LBB1_41: ## in Loop: Header=BB1_1 Depth=1 movq -4256(%rbp), %rax addq $1, %rax movq %rax, -4256(%rbp) jmp LBB1_1 LBB1_42: cmpl $1, -4244(%rbp) je LBB1_44 ## %bb.43: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -4240(%rbp), %rdx leaq L_.str.29(%rip), %rsi movb $0, %al callq _fprintf movl $-1, -4212(%rbp) jmp LBB1_87 LBB1_44: leaq -80(%rbp), %rdi leaq -48(%rbp), %rdx movl $32, %esi xorl %ecx, %ecx callq _mk_operand movq -4224(%rbp), %rdi movq -4240(%rbp), %rdx movl -4228(%rbp), %ecx leaq L_.str.30(%rip), %rsi movb $0, %al callq _fprintf movl $1, -4292(%rbp) LBB1_45: ## =>This Inner Loop Header: Depth=1 movl -4292(%rbp), %eax cmpl -4248(%rbp), %eax jg LBB1_48 ## %bb.46: ## in Loop: Header=BB1_45 Depth=1 movq -4224(%rbp), %rdi movl -4292(%rbp), %edx leaq L_.str.31(%rip), %rsi movb $0, %al callq _fprintf ## %bb.47: ## in Loop: Header=BB1_45 Depth=1 movl -4292(%rbp), %eax addl $1, %eax movl %eax, -4292(%rbp) jmp LBB1_45 LBB1_48: leaq -2160(%rbp), %rdi movq -4224(%rbp), %rsi callq _fputs movsbl -48(%rbp), %eax cmpl $68, %eax je LBB1_50 ## %bb.49: movq -4224(%rbp), %rdi leaq -80(%rbp), %rdx leaq L_.str.32(%rip), %rsi movb $0, %al callq _fprintf LBB1_50: movq -4224(%rbp), %rdi leaq L_.str.33(%rip), %rsi movb $0, %al callq _fprintf movq -4224(%rbp), %rdi movq -4240(%rbp), %rdx movl -4228(%rbp), %ecx leaq L_.str.34(%rip), %rsi movb $0, %al callq _fprintf movl $1, -4292(%rbp) LBB1_51: ## =>This Inner Loop Header: Depth=1 movl -4292(%rbp), %eax cmpl -4248(%rbp), %eax jg LBB1_54 ## %bb.52: ## in Loop: Header=BB1_51 Depth=1 movq -4224(%rbp), %rdi movl -4292(%rbp), %edx leaq L_.str.31(%rip), %rsi movb $0, %al callq _fprintf ## %bb.53: ## in Loop: Header=BB1_51 Depth=1 movl -4292(%rbp), %eax addl $1, %eax movl %eax, -4292(%rbp) jmp LBB1_51 LBB1_54: leaq -2160(%rbp), %rdi movq -4224(%rbp), %rsi callq _fputs movq -4224(%rbp), %rdi leaq -80(%rbp), %rdx leaq -80(%rbp), %rcx leaq L_.str.35(%rip), %rsi movb $0, %al callq _fprintf movq -4224(%rbp), %rdi leaq L_.str.33(%rip), %rsi movb $0, %al callq _fprintf movq -4224(%rbp), %rdi movq -4240(%rbp), %rdx movl -4228(%rbp), %ecx leaq L_.str.36(%rip), %rsi movb $0, %al callq _fprintf movl $1, -4292(%rbp) LBB1_55: ## =>This Inner Loop Header: Depth=1 movl -4292(%rbp), %eax cmpl -4248(%rbp), %eax jg LBB1_58 ## %bb.56: ## in Loop: Header=BB1_55 Depth=1 movq -4224(%rbp), %rdi movl -4292(%rbp), %edx leaq L_.str.31(%rip), %rsi movb $0, %al callq _fprintf ## %bb.57: ## in Loop: Header=BB1_55 Depth=1 movl -4292(%rbp), %eax addl $1, %eax movl %eax, -4292(%rbp) jmp LBB1_55 LBB1_58: leaq -2160(%rbp), %rdi movq -4224(%rbp), %rsi callq _fputs movq -4224(%rbp), %rdi leaq -80(%rbp), %rdx leaq L_.str.37(%rip), %rsi movb $0, %al callq _fprintf movq -4224(%rbp), %rdi leaq L_.str.33(%rip), %rsi movb $0, %al callq _fprintf movq -4224(%rbp), %rdi movq -4240(%rbp), %rdx movl -4228(%rbp), %ecx leaq L_.str.38(%rip), %rsi movb $0, %al callq _fprintf movl $1, -4292(%rbp) LBB1_59: ## =>This Inner Loop Header: Depth=1 movl -4292(%rbp), %eax cmpl -4248(%rbp), %eax jg LBB1_62 ## %bb.60: ## in Loop: Header=BB1_59 Depth=1 movq -4224(%rbp), %rdi movl -4292(%rbp), %edx leaq L_.str.31(%rip), %rsi movb $0, %al callq _fprintf ## %bb.61: ## in Loop: Header=BB1_59 Depth=1 movl -4292(%rbp), %eax addl $1, %eax movl %eax, -4292(%rbp) jmp LBB1_59 LBB1_62: leaq -2160(%rbp), %rdi movq -4224(%rbp), %rsi callq _fputs movq -4224(%rbp), %rdi leaq -80(%rbp), %rdx leaq L_.str.39(%rip), %rsi movb $0, %al callq _fprintf movq -4224(%rbp), %rdi leaq L_.str.33(%rip), %rsi movb $0, %al callq _fprintf leaq -80(%rbp), %rdi leaq -48(%rbp), %rdx movl $32, %esi xorl %ecx, %ecx callq _mk_xoperand movq -4224(%rbp), %rdi movq -4240(%rbp), %rdx movl -4228(%rbp), %ecx leaq L_.str.40(%rip), %rsi movb $0, %al callq _fprintf cmpl $0, -4260(%rbp) je LBB1_64 ## %bb.63: movq -4224(%rbp), %rdi leaq L_.str.41(%rip), %rsi movb $0, %al callq _fprintf LBB1_64: cmpl $0, -4264(%rbp) je LBB1_66 ## %bb.65: movq -4224(%rbp), %rdi leaq L_.str.42(%rip), %rsi movb $0, %al callq _fprintf LBB1_66: cmpl $0, -4268(%rbp) je LBB1_68 ## %bb.67: movq -4224(%rbp), %rdi leaq L_.str.43(%rip), %rsi movb $0, %al callq _fprintf LBB1_68: movl $1, -4292(%rbp) LBB1_69: ## =>This Inner Loop Header: Depth=1 movl -4292(%rbp), %eax cmpl -4248(%rbp), %eax jg LBB1_72 ## %bb.70: ## in Loop: Header=BB1_69 Depth=1 movq -4224(%rbp), %rdi movl -4292(%rbp), %edx leaq L_.str.44(%rip), %rsi movb $0, %al callq _fprintf ## %bb.71: ## in Loop: Header=BB1_69 Depth=1 movl -4292(%rbp), %eax addl $1, %eax movl %eax, -4292(%rbp) jmp LBB1_69 LBB1_72: leaq -4208(%rbp), %rdi movq -4224(%rbp), %rsi callq _fputs movq -4224(%rbp), %rdi leaq -80(%rbp), %rdx leaq L_.str.45(%rip), %rsi movb $0, %al callq _fprintf movq -4224(%rbp), %rdi leaq L_.str.33(%rip), %rsi movb $0, %al callq _fprintf movq -4224(%rbp), %rdi movq -4240(%rbp), %rdx movl -4228(%rbp), %ecx leaq L_.str.46(%rip), %rsi movb $0, %al callq _fprintf movq -4224(%rbp), %rdi leaq L_.str.41(%rip), %rsi movb $0, %al callq _fprintf movq -4224(%rbp), %rdi leaq L_.str.42(%rip), %rsi movb $0, %al callq _fprintf movq -4224(%rbp), %rdi leaq L_.str.43(%rip), %rsi movb $0, %al callq _fprintf movl $1, -4292(%rbp) LBB1_73: ## =>This Inner Loop Header: Depth=1 movl -4292(%rbp), %eax cmpl -4248(%rbp), %eax jg LBB1_76 ## %bb.74: ## in Loop: Header=BB1_73 Depth=1 movq -4224(%rbp), %rdi movl -4292(%rbp), %edx leaq L_.str.44(%rip), %rsi movb $0, %al callq _fprintf ## %bb.75: ## in Loop: Header=BB1_73 Depth=1 movl -4292(%rbp), %eax addl $1, %eax movl %eax, -4292(%rbp) jmp LBB1_73 LBB1_76: leaq -4208(%rbp), %rdi movq -4224(%rbp), %rsi callq _fputs movq -4224(%rbp), %rdi leaq -80(%rbp), %rdx leaq -80(%rbp), %rcx leaq L_.str.47(%rip), %rsi movb $0, %al callq _fprintf movq -4224(%rbp), %rdi leaq L_.str.33(%rip), %rsi movb $0, %al callq _fprintf movq -4224(%rbp), %rdi movq -4240(%rbp), %rdx movl -4228(%rbp), %ecx leaq L_.str.48(%rip), %rsi movb $0, %al callq _fprintf movq -4224(%rbp), %rdi leaq L_.str.41(%rip), %rsi movb $0, %al callq _fprintf movq -4224(%rbp), %rdi leaq L_.str.42(%rip), %rsi movb $0, %al callq _fprintf cmpl $0, -4268(%rbp) je LBB1_78 ## %bb.77: movq -4224(%rbp), %rdi leaq L_.str.43(%rip), %rsi movb $0, %al callq _fprintf LBB1_78: movl $1, -4292(%rbp) LBB1_79: ## =>This Inner Loop Header: Depth=1 movl -4292(%rbp), %eax cmpl -4248(%rbp), %eax jg LBB1_82 ## %bb.80: ## in Loop: Header=BB1_79 Depth=1 movq -4224(%rbp), %rdi movl -4292(%rbp), %edx leaq L_.str.44(%rip), %rsi movb $0, %al callq _fprintf ## %bb.81: ## in Loop: Header=BB1_79 Depth=1 movl -4292(%rbp), %eax addl $1, %eax movl %eax, -4292(%rbp) jmp LBB1_79 LBB1_82: leaq -4208(%rbp), %rdi movq -4224(%rbp), %rsi callq _fputs movq -4224(%rbp), %rdi leaq -80(%rbp), %rdx leaq L_.str.49(%rip), %rsi movb $0, %al callq _fprintf movq -4224(%rbp), %rdi leaq L_.str.33(%rip), %rsi movb $0, %al callq _fprintf movq -4224(%rbp), %rdi movq -4240(%rbp), %rdx movl -4228(%rbp), %ecx leaq L_.str.50(%rip), %rsi movb $0, %al callq _fprintf movq -4224(%rbp), %rdi leaq L_.str.41(%rip), %rsi movb $0, %al callq _fprintf movq -4224(%rbp), %rdi leaq L_.str.42(%rip), %rsi movb $0, %al callq _fprintf movq -4224(%rbp), %rdi leaq L_.str.43(%rip), %rsi movb $0, %al callq _fprintf movl $1, -4292(%rbp) LBB1_83: ## =>This Inner Loop Header: Depth=1 movl -4292(%rbp), %eax cmpl -4248(%rbp), %eax jg LBB1_86 ## %bb.84: ## in Loop: Header=BB1_83 Depth=1 movq -4224(%rbp), %rdi movl -4292(%rbp), %edx leaq L_.str.44(%rip), %rsi movb $0, %al callq _fprintf ## %bb.85: ## in Loop: Header=BB1_83 Depth=1 movl -4292(%rbp), %eax addl $1, %eax movl %eax, -4292(%rbp) jmp LBB1_83 LBB1_86: leaq -4208(%rbp), %rdi movq -4224(%rbp), %rsi callq _fputs movq -4224(%rbp), %rdi leaq -80(%rbp), %rdx leaq L_.str.51(%rip), %rsi movb $0, %al callq _fprintf movq -4224(%rbp), %rdi leaq L_.str.33(%rip), %rsi movb $0, %al callq _fprintf movl $0, -4212(%rbp) LBB1_87: movl -4212(%rbp), %eax movl %eax, -4312(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_89 ## %bb.88: movl -4312(%rbp), %eax ## 4-byte Reload addq $4336, %rsp ## imm = 0x10F0 popq %rbp retq LBB1_89: callq ___stack_chk_fail ud2 .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L1_0_set_3, LBB1_3-LJTI1_0 .set L1_0_set_39, LBB1_39-LJTI1_0 .set L1_0_set_11, LBB1_11-LJTI1_0 .set L1_0_set_20, LBB1_20-LJTI1_0 .set L1_0_set_32, LBB1_32-LJTI1_0 LJTI1_0: .long L1_0_set_3 .long L1_0_set_3 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_11 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_11 .long L1_0_set_11 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_20 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_32 .long L1_0_set_20 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_39 .long L1_0_set_20 .end_data_region ## -- End function .p2align 4, 0x90 ## -- Begin function apprintf _apprintf: ## @apprintf .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $272, %rsp ## imm = 0x110 testb %al, %al je LBB2_7 ## %bb.6: movaps %xmm0, -208(%rbp) movaps %xmm1, -192(%rbp) movaps %xmm2, -176(%rbp) movaps %xmm3, -160(%rbp) movaps %xmm4, -144(%rbp) movaps %xmm5, -128(%rbp) movaps %xmm6, -112(%rbp) movaps %xmm7, -96(%rbp) LBB2_7: movq %r9, -216(%rbp) movq %r8, -224(%rbp) movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -48(%rbp) movq %rsi, -56(%rbp) movq %rdx, -64(%rbp) movq %rcx, -72(%rbp) leaq -32(%rbp), %rax leaq -256(%rbp), %rcx movq %rcx, 16(%rax) leaq 16(%rbp), %rcx movq %rcx, 8(%rax) movl $48, 4(%rax) movl $32, (%rax) movq -48(%rbp), %rdi movq -64(%rbp), %rax addq (%rax), %rdi movq -56(%rbp), %rsi movq -64(%rbp), %rax subq (%rax), %rsi movq -72(%rbp), %r8 leaq -32(%rbp), %r9 xorl %edx, %edx movq $-1, %rcx callq ___vsnprintf_chk movl %eax, -76(%rbp) leaq -32(%rbp), %rax cmpl $0, -76(%rbp) jge LBB2_2 ## %bb.1: leaq L_.str.52(%rip), %rdi callq _perror movl $-1, -36(%rbp) jmp LBB2_3 LBB2_2: movslq -76(%rbp), %rcx movq -64(%rbp), %rax addq (%rax), %rcx movq %rcx, (%rax) movl $0, -36(%rbp) LBB2_3: movl -36(%rbp), %eax movl %eax, -260(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_5 ## %bb.4: movl -260(%rbp), %eax ## 4-byte Reload addq $272, %rsp ## imm = 0x110 popq %rbp retq LBB2_5: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function mk_operand _mk_operand: ## @mk_operand .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) movl %ecx, -28(%rbp) movq -24(%rbp), %rax movslq -28(%rbp), %rcx movsbl (%rax,%rcx), %eax movl %eax, -32(%rbp) ## 4-byte Spill subl $68, %eax je LBB3_1 jmp LBB3_5 LBB3_5: movl -32(%rbp), %eax ## 4-byte Reload addl $-83, %eax subl $2, %eax jb LBB3_2 jmp LBB3_3 LBB3_1: movq -8(%rbp), %rdi leaq L_.str.53(%rip), %rsi movq $-1, %rdx callq ___strcpy_chk jmp LBB3_4 LBB3_2: movq -24(%rbp), %rax movslq -28(%rbp), %rcx movb (%rax,%rcx), %cl movq -8(%rbp), %rax movb %cl, (%rax) movq -8(%rbp), %rax movb $0, 1(%rax) jmp LBB3_4 LBB3_3: movq -8(%rbp), %rdi movq -16(%rbp), %rsi movl -28(%rbp), %r9d addl $1, %r9d xorl %edx, %edx movq $-1, %rcx leaq L_.str.54(%rip), %r8 movb $0, %al callq ___snprintf_chk LBB3_4: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function mk_xoperand _mk_xoperand: ## @mk_xoperand .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) movl %ecx, -28(%rbp) movq -24(%rbp), %rax movslq -28(%rbp), %rcx movsbl (%rax,%rcx), %eax movl %eax, -32(%rbp) ## 4-byte Spill subl $68, %eax je LBB4_1 jmp LBB4_5 LBB4_5: movl -32(%rbp), %eax ## 4-byte Reload addl $-83, %eax subl $2, %eax jb LBB4_2 jmp LBB4_3 LBB4_1: movq -8(%rbp), %rdi leaq L_.str.55(%rip), %rsi movq $-1, %rdx callq ___strcpy_chk jmp LBB4_4 LBB4_2: movq -24(%rbp), %rax movslq -28(%rbp), %rcx movb (%rax,%rcx), %cl movq -8(%rbp), %rax movb %cl, (%rax) movq -8(%rbp), %rax movb $0, 1(%rax) jmp LBB4_4 LBB4_3: movq -8(%rbp), %rdi movq -16(%rbp), %rsi movl -28(%rbp), %r9d addl $1, %r9d xorl %edx, %edx movq $-1, %rcx leaq L_.str.54(%rip), %r8 movb $0, %al callq ___snprintf_chk LBB4_4: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "usage: %s <in> <out>.\n" L_.str.1: ## @.str.1 .asciz "rb" L_.str.2: ## @.str.2 .asciz "%s: Error opening file <%s>: %s.\n" L_.str.3: ## @.str.3 .asciz "wb" L_.str.4: ## @.str.4 .asciz "/* Generated automatically by %s at %.24s.\n" L_.str.5: ## @.str.5 .asciz " Do not edit!\n" L_.str.6: ## @.str.6 .asciz " */\n" L_.str.7: ## @.str.7 .asciz "#include <hpgs.h>\n\n" L_.str.8: ## @.str.8 .asciz "%d %31s" L_.str.9: ## @.str.9 .asciz "%s: Illegal count %d in stanza %d.\n" L_.str.10: ## @.str.10 .asciz "static hpgs_rop3_func_t rop3_table[][2][2] = {\n" L_.str.11: ## @.str.11 .asciz " {{rop3_%d_0_0,rop3_%d_0_1},{rop3_%d_1_0,rop3_%d_1_1}}%s\n" L_.str.12: ## @.str.12 .asciz "," L_.str.13: ## @.str.13 .space 1 L_.str.14: ## @.str.14 .asciz "};\n\n" L_.str.15: ## @.str.15 .asciz "hpgs_rop3_func_t hpgs_rop3_func(int rop3,\n hpgs_bool src_transparency,\n hpgs_bool pattern_transparency)\n{\n if (rop3 < 0 || rop3 >= %d) return 0;\n return rop3_table[rop3][src_transparency!=0][pattern_transparency!=0];\n}\n" L_.str.16: ## @.str.16 .asciz "static hpgs_xrop3_func_t xrop3_table[][2][2] = {\n" L_.str.17: ## @.str.17 .asciz " {{xrop3_%d_0_0,xrop3_%d_0_1},{xrop3_%d_1_0,xrop3_%d_1_1}}%s\n" L_.str.18: ## @.str.18 .asciz "hpgs_xrop3_func_t hpgs_xrop3_func(int rop3,\n hpgs_bool src_transparency,\n hpgs_bool pattern_transparency)\n{\n if (rop3 < 0 || rop3 >= %d) return 0;\n return xrop3_table[rop3][src_transparency!=0][pattern_transparency!=0];\n}\n" L_.str.19: ## @.str.19 .asciz "Misplaced %c in rop string %s.\n" L_.str.20: ## @.str.20 .asciz " stk1 = %d;\n" L_.str.21: ## @.str.21 .asciz " stk1 = %s;\n" L_.str.22: ## @.str.22 .asciz "0x0000" L_.str.23: ## @.str.23 .asciz "0xffff" L_.str.24: ## @.str.24 .asciz "Stack overflow in rop string %s.\n" L_.str.25: ## @.str.25 .asciz "Stack underflow in rop string %s.\n" L_.str.26: ## @.str.26 .asciz " stk%d = %s %c %s;\n" L_.str.27: ## @.str.27 .asciz " stk%d = ~%s;\n" L_.str.28: ## @.str.28 .asciz "Illegal character %c in rop string %s.\n" L_.str.29: ## @.str.29 .asciz "Unbalanced shift/reduce in rop string %s.\n" L_.str.30: ## @.str.30 .asciz "/* %s source/pattern opaque. */\nstatic void rop3_%d_0_0 (unsigned char *D, unsigned char S, unsigned char T)\n{\n" L_.str.31: ## @.str.31 .asciz " unsigned char stk%d;\n" L_.str.32: ## @.str.32 .asciz " *D = %s;\n" L_.str.33: ## @.str.33 .asciz "}\n\n" L_.str.34: ## @.str.34 .asciz "/* %s source opaque/pattern transparent. */\nstatic void rop3_%d_0_1 (unsigned char *D, unsigned char S, unsigned char T)\n{\n" L_.str.35: ## @.str.35 .asciz " *D = (%s & S) | (%s & (~T)) | (T & (~S) & *D);\n" L_.str.36: ## @.str.36 .asciz "/* %s source transparent/pattern opaque. */\nstatic void rop3_%d_1_0 (unsigned char *D, unsigned char S, unsigned char T)\n{\n" L_.str.37: ## @.str.37 .asciz " *D = (%s & (~S)) | (*D & S);\n" L_.str.38: ## @.str.38 .asciz "/* %s source/pattern transparent. */\nstatic void rop3_%d_1_1 (unsigned char *D, unsigned char S, unsigned char T)\n{\n" L_.str.39: ## @.str.39 .asciz " *D = (%s & (~S) & (~T)) | (*D & S) | (*D & T);\n" L_.str.40: ## @.str.40 .asciz "/* %s source/pattern opaque. */\nstatic unsigned xrop3_%d_0_0 (unsigned char s, unsigned char t)\n{\n" L_.str.41: ## @.str.41 .asciz " unsigned D = 0x00ff;\n" L_.str.42: ## @.str.42 .asciz " unsigned S = ((unsigned)s << 8) | s;\n" L_.str.43: ## @.str.43 .asciz " unsigned T = ((unsigned)t << 8) | t;\n" L_.str.44: ## @.str.44 .asciz " unsigned stk%d;\n" L_.str.45: ## @.str.45 .asciz " return %s;\n" L_.str.46: ## @.str.46 .asciz "/* %s source opaque/pattern transparent. */\nstatic unsigned xrop3_%d_0_1 (unsigned char s, unsigned char t)\n{\n" L_.str.47: ## @.str.47 .asciz " return (%s & S) | (%s & (~T)) | (T & (~S) & D);\n" L_.str.48: ## @.str.48 .asciz "/* %s source transparent/pattern opaque. */\nstatic unsigned xrop3_%d_1_0 (unsigned char s, unsigned char t)\n{\n" L_.str.49: ## @.str.49 .asciz " return (%s & (~S)) | (D & S);\n" L_.str.50: ## @.str.50 .asciz "/* %s source/pattern transparent. */\nstatic unsigned xrop3_%d_1_1 (unsigned char s, unsigned char t)\n{\n" L_.str.51: ## @.str.51 .asciz " return (%s & (~S) & (~T)) | (D & S) | (D & T);\n" L_.str.52: ## @.str.52 .asciz "snprintf" L_.str.53: ## @.str.53 .asciz "*D" L_.str.54: ## @.str.54 .asciz "stk%d" L_.str.55: ## @.str.55 .asciz "D" .subsections_via_symbols
the_stack_data/38801.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/134812.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] str x1, [sp, #16] ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x8, [sp, #16] ldr x0, [x8, #8] bl _atoi scvtf s0, w0 str s0, [sp, #12] mov x9, sp add x8, sp, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldr s0, [sp, #8] ldr s1, [sp, #12] bl _powf 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_8 LBB0_2: ldur w8, [x29, #-8] subs w8, w8, #3 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_3 LBB0_3: ldr x8, [sp, #16] ldr x0, [x8, #8] 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_6 b LBB0_4 LBB0_4: ldr x8, [sp, #16] ldr x0, [x8, #16] bl _atoi scvtf s0, w0 str s0, [sp, #12] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 mov x9, sp add x8, sp, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldr s0, [sp, #8] ldr s1, [sp, #12] bl _powf fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x0, [x8] bl _fflush b LBB0_5 LBB0_6: b LBB0_7 LBB0_7: mov w8, #-1 stur w8, [x29, #-4] b LBB0_8 LBB0_8: 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 "%f" l_.str.1: ; @.str.1 .asciz "%f\n" l_.str.2: ; @.str.2 .asciz "-c" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $2, -8(%rbp) jne LBB0_2 ## %bb.1: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _atoi cvtsi2ss %eax, %xmm0 movss %xmm0, -20(%rbp) leaq L_.str(%rip), %rdi leaq -24(%rbp), %rsi movb $0, %al callq _scanf movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -20(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero callq _powf cvtss2sd %xmm0, %xmm0 leaq L_.str.1(%rip), %rdi movb $1, %al callq _printf movl $0, -4(%rbp) jmp LBB0_8 LBB0_2: cmpl $3, -8(%rbp) jne LBB0_7 ## %bb.3: movq -16(%rbp), %rax movq 8(%rax), %rdi leaq L_.str.2(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB0_6 ## %bb.4: movq -16(%rbp), %rax movq 16(%rax), %rdi callq _atoi cvtsi2ss %eax, %xmm0 movss %xmm0, -20(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 leaq L_.str(%rip), %rdi leaq -24(%rbp), %rsi movb $0, %al callq _scanf movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -20(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero callq _powf cvtss2sd %xmm0, %xmm0 leaq L_.str.1(%rip), %rdi movb $1, %al callq _printf movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fflush jmp LBB0_5 LBB0_6: jmp LBB0_7 LBB0_7: movl $-1, -4(%rbp) LBB0_8: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%f" L_.str.1: ## @.str.1 .asciz "%f\n" L_.str.2: ## @.str.2 .asciz "-c" .subsections_via_symbols
the_stack_data/31388962.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _reach_error ; -- Begin function reach_error .p2align 2 _reach_error: ; @reach_error .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .globl _fibo ; -- Begin function fibo .p2align 2 _fibo: ; @fibo .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str w0, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #1 cset w8, ge tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: stur wzr, [x29, #-4] b LBB1_5 LBB1_2: ldr w8, [sp, #8] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: mov w8, #1 stur w8, [x29, #-4] b LBB1_5 LBB1_4: ldr w8, [sp, #8] subs w0, w8, #1 bl _fibo str w0, [sp, #4] ; 4-byte Folded Spill ldr w8, [sp, #8] subs w0, w8, #2 bl _fibo mov x8, x0 ldr w0, [sp, #4] ; 4-byte Folded Reload add w8, w0, w8 stur w8, [x29, #-4] b LBB1_5 LBB1_5: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .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, #10 str w8, [sp, #8] ldr w0, [sp, #8] bl _fibo str w0, [sp, #4] ldr w8, [sp, #4] subs w8, w8, #55 cset w8, ne tbnz w8, #0, LBB2_3 b LBB2_1 LBB2_1: b LBB2_2 LBB2_2: bl _reach_error bl _abort LBB2_3: mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _reach_error ## -- Begin function reach_error .p2align 4, 0x90 _reach_error: ## @reach_error .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp retq .cfi_endproc ## -- End function .globl _fibo ## -- Begin function fibo .p2align 4, 0x90 _fibo: ## @fibo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -8(%rbp) cmpl $1, -8(%rbp) jge LBB1_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB1_5 LBB1_2: cmpl $1, -8(%rbp) jne LBB1_4 ## %bb.3: movl $1, -4(%rbp) jmp LBB1_5 LBB1_4: movl -8(%rbp), %edi subl $1, %edi callq _fibo movl %eax, -12(%rbp) ## 4-byte Spill movl -8(%rbp), %edi subl $2, %edi callq _fibo movl %eax, %ecx movl -12(%rbp), %eax ## 4-byte Reload addl %ecx, %eax movl %eax, -4(%rbp) LBB1_5: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $10, -8(%rbp) movl -8(%rbp), %edi callq _fibo movl %eax, -12(%rbp) cmpl $55, -12(%rbp) jne LBB2_3 ## %bb.1: jmp LBB2_2 LBB2_2: callq _reach_error callq _abort LBB2_3: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/31387974.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __DATA,__data .globl _EXP_CHARS ; @EXP_CHARS _EXP_CHARS: .asciz "eE" .globl _FLT_CHARS ; @FLT_CHARS _FLT_CHARS: .asciz "rRsSfFdDxXpP" .section __TEXT,__const .globl _comment_chars ; @comment_chars _comment_chars: .asciz "#" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __DATA,__data .globl _EXP_CHARS ## @EXP_CHARS _EXP_CHARS: .asciz "eE" .globl _FLT_CHARS ## @FLT_CHARS _FLT_CHARS: .asciz "rRsSfFdDxXpP" .section __TEXT,__const .globl _comment_chars ## @comment_chars _comment_chars: .asciz "#" .subsections_via_symbols
the_stack_data/146536.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _consoleLog ; -- Begin function consoleLog .p2align 2 _consoleLog: ; @consoleLog .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] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x0, [x8] bl _fflush ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _thread1 ; -- Begin function thread1 .p2align 2 _thread1: ; @thread1 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _consoleLog mov w0, #2000 bl _usleep adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _consoleLog adrp x0, _lock2@GOTPAGE ldr x0, [x0, _lock2@GOTPAGEOFF] str x0, [sp] ; 8-byte Folded Spill bl _pthread_mutex_lock adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _consoleLog ldr x0, [sp] ; 8-byte Folded Reload bl _pthread_mutex_unlock adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _consoleLog adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _consoleLog mov x0, #0 bl _pthread_exit .cfi_endproc ; -- End function .globl _thread2 ; -- Begin function thread2 .p2align 2 _thread2: ; @thread2 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _consoleLog mov w0, #2000 bl _usleep adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _consoleLog adrp x0, _lock1@GOTPAGE ldr x0, [x0, _lock1@GOTPAGEOFF] str x0, [sp] ; 8-byte Folded Spill bl _pthread_mutex_lock adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _consoleLog ldr x0, [sp] ; 8-byte Folded Reload bl _pthread_mutex_unlock adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _consoleLog adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _consoleLog mov x0, #0 bl _pthread_exit .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #12] ; 4-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _consoleLog adrp x0, _lock1@GOTPAGE ldr x0, [x0, _lock1@GOTPAGEOFF] mov x1, #0 str x1, [sp] ; 8-byte Folded Spill bl _pthread_mutex_init ldr x1, [sp] ; 8-byte Folded Reload adrp x0, _lock2@GOTPAGE ldr x0, [x0, _lock2@GOTPAGEOFF] bl _pthread_mutex_init ldr x3, [sp] ; 8-byte Folded Reload add x0, sp, #24 mov x1, x3 adrp x2, _thread1@PAGE add x2, x2, _thread1@PAGEOFF bl _pthread_create ldr x3, [sp] ; 8-byte Folded Reload add x0, sp, #16 mov x1, x3 adrp x2, _thread2@PAGE add x2, x2, _thread2@PAGEOFF bl _pthread_create ldr x1, [sp] ; 8-byte Folded Reload ldr x0, [sp, #24] bl _pthread_join ldr x1, [sp] ; 8-byte Folded Reload ldr x0, [sp, #16] bl _pthread_join adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _consoleLog ldr w0, [sp, #12] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s" l_.str.1: ; @.str.1 .asciz "T1: Started\n" l_.str.2: ; @.str.2 .asciz "T1: Trying to get resource2\n" .comm _lock2,64,3 ; @lock2 l_.str.3: ; @.str.3 .asciz "T1: Aquired resource2\n" l_.str.4: ; @.str.4 .asciz "T1: Job finished in resource2..\n" l_.str.5: ; @.str.5 .asciz "T1: Finished\n" l_.str.6: ; @.str.6 .asciz "T2: Started\n" l_.str.7: ; @.str.7 .asciz "T2: Trying to get resource1\n" .comm _lock1,64,3 ; @lock1 l_.str.8: ; @.str.8 .asciz "T2: Aquired resource1\n" l_.str.9: ; @.str.9 .asciz "T2: Job finished in resource1..\n" l_.str.10: ; @.str.10 .asciz "T2: Finished\n" l_.str.11: ; @.str.11 .asciz "Main: Started\n" l_.str.12: ; @.str.12 .asciz "Main: Finished\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _consoleLog ## -- Begin function consoleLog .p2align 4, 0x90 _consoleLog: ## @consoleLog .cfi_startproc ## %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 leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fflush addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _thread1 ## -- Begin function thread1 .p2align 4, 0x90 _thread1: ## @thread1 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) leaq L_.str.1(%rip), %rdi callq _consoleLog movl $2000, %edi ## imm = 0x7D0 callq _usleep leaq L_.str.2(%rip), %rdi callq _consoleLog movq _lock2@GOTPCREL(%rip), %rdi movq %rdi, -16(%rbp) ## 8-byte Spill callq _pthread_mutex_lock leaq L_.str.3(%rip), %rdi callq _consoleLog movq -16(%rbp), %rdi ## 8-byte Reload callq _pthread_mutex_unlock leaq L_.str.4(%rip), %rdi callq _consoleLog leaq L_.str.5(%rip), %rdi callq _consoleLog xorl %eax, %eax movl %eax, %edi callq _pthread_exit .cfi_endproc ## -- End function .globl _thread2 ## -- Begin function thread2 .p2align 4, 0x90 _thread2: ## @thread2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) leaq L_.str.6(%rip), %rdi callq _consoleLog movl $2000, %edi ## imm = 0x7D0 callq _usleep leaq L_.str.7(%rip), %rdi callq _consoleLog movq _lock1@GOTPCREL(%rip), %rdi movq %rdi, -16(%rbp) ## 8-byte Spill callq _pthread_mutex_lock leaq L_.str.8(%rip), %rdi callq _consoleLog movq -16(%rbp), %rdi ## 8-byte Reload callq _pthread_mutex_unlock leaq L_.str.9(%rip), %rdi callq _consoleLog leaq L_.str.10(%rip), %rdi callq _consoleLog xorl %eax, %eax movl %eax, %edi callq _pthread_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 $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) leaq L_.str.11(%rip), %rdi callq _consoleLog movq _lock1@GOTPCREL(%rip), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_mutex_init movq _lock2@GOTPCREL(%rip), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_mutex_init leaq -24(%rbp), %rdi xorl %eax, %eax movl %eax, %ecx leaq _thread1(%rip), %rdx movq %rcx, %rsi callq _pthread_create leaq -32(%rbp), %rdi xorl %eax, %eax movl %eax, %ecx leaq _thread2(%rip), %rdx movq %rcx, %rsi callq _pthread_create movq -24(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_join movq -32(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_join leaq L_.str.12(%rip), %rdi callq _consoleLog xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s" L_.str.1: ## @.str.1 .asciz "T1: Started\n" L_.str.2: ## @.str.2 .asciz "T1: Trying to get resource2\n" .comm _lock2,64,3 ## @lock2 L_.str.3: ## @.str.3 .asciz "T1: Aquired resource2\n" L_.str.4: ## @.str.4 .asciz "T1: Job finished in resource2..\n" L_.str.5: ## @.str.5 .asciz "T1: Finished\n" L_.str.6: ## @.str.6 .asciz "T2: Started\n" L_.str.7: ## @.str.7 .asciz "T2: Trying to get resource1\n" .comm _lock1,64,3 ## @lock1 L_.str.8: ## @.str.8 .asciz "T2: Aquired resource1\n" L_.str.9: ## @.str.9 .asciz "T2: Job finished in resource1..\n" L_.str.10: ## @.str.10 .asciz "T2: Finished\n" L_.str.11: ## @.str.11 .asciz "Main: Started\n" L_.str.12: ## @.str.12 .asciz "Main: Finished\n" .subsections_via_symbols
the_stack_data/141319.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo_alloc ; -- Begin function foo_alloc .p2align 2 _foo_alloc: ; @foo_alloc .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, #72 bl _malloc mov x8, x0 str x8, [sp] subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_1 LBB0_1: ldr x9, [sp] mov w8, #1 str w8, [x9] ldr x8, [sp] add x0, x8, #8 mov x1, #0 bl _pthread_mutex_init subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldr x0, [sp] bl _free ; kill: def $x8 killed $xzr str xzr, [sp, #8] b LBB0_5 LBB0_3: b LBB0_4 LBB0_4: ldr x8, [sp] str x8, [sp, #8] b LBB0_5 LBB0_5: ldr x0, [sp, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _foo_hold ; -- Begin function foo_hold .p2align 2 _foo_hold: ; @foo_hold .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] add x0, x8, #8 bl _pthread_mutex_lock ldr x9, [sp, #8] ldr w8, [x9] add w8, w8, #1 str w8, [x9] ldr x8, [sp, #8] add x0, x8, #8 bl _pthread_mutex_unlock ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _foo_rele ; -- Begin function foo_rele .p2align 2 _foo_rele: ; @foo_rele .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] add x0, x8, #8 bl _pthread_mutex_lock ldr x9, [sp, #8] ldr w8, [x9] subs w8, w8, #1 str w8, [x9] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldr x8, [sp, #8] add x0, x8, #8 bl _pthread_mutex_unlock ldr x8, [sp, #8] add x0, x8, #8 bl _pthread_mutex_destroy ldr x0, [sp, #8] bl _free b LBB2_3 LBB2_2: ldr x8, [sp, #8] add x0, x8, #8 bl _pthread_mutex_unlock b LBB2_3 LBB2_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo_alloc ## -- Begin function foo_alloc .p2align 4, 0x90 _foo_alloc: ## @foo_alloc .cfi_startproc ## %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 $72, %edi callq _malloc movq %rax, -16(%rbp) cmpq $0, %rax je LBB0_4 ## %bb.1: movq -16(%rbp), %rax movl $1, (%rax) movq -16(%rbp), %rdi addq $8, %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_mutex_init cmpl $0, %eax je LBB0_3 ## %bb.2: movq -16(%rbp), %rdi callq _free movq $0, -8(%rbp) jmp LBB0_5 LBB0_3: jmp LBB0_4 LBB0_4: movq -16(%rbp), %rax movq %rax, -8(%rbp) LBB0_5: movq -8(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _foo_hold ## -- Begin function foo_hold .p2align 4, 0x90 _foo_hold: ## @foo_hold .cfi_startproc ## %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 addq $8, %rdi callq _pthread_mutex_lock movq -8(%rbp), %rax movl (%rax), %ecx addl $1, %ecx movl %ecx, (%rax) movq -8(%rbp), %rdi addq $8, %rdi callq _pthread_mutex_unlock addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _foo_rele ## -- Begin function foo_rele .p2align 4, 0x90 _foo_rele: ## @foo_rele .cfi_startproc ## %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 addq $8, %rdi callq _pthread_mutex_lock movq -8(%rbp), %rcx movl (%rcx), %eax addl $-1, %eax movl %eax, (%rcx) cmpl $0, %eax jne LBB2_2 ## %bb.1: movq -8(%rbp), %rdi addq $8, %rdi callq _pthread_mutex_unlock movq -8(%rbp), %rdi addq $8, %rdi callq _pthread_mutex_destroy movq -8(%rbp), %rdi callq _free jmp LBB2_3 LBB2_2: movq -8(%rbp), %rdi addq $8, %rdi callq _pthread_mutex_unlock LBB2_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/97108.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, #2000 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #92] add x0, sp, #1744 str x0, [sp, #80] ; 8-byte Folded Spill adrp x1, l___const.main.words@PAGE add x1, x1, l___const.main.words@PAGEOFF mov x2, #248 bl _memcpy add x0, sp, #844 str x0, [sp, #72] ; 8-byte Folded Spill adrp x1, l___const.main.game@PAGE add x1, x1, l___const.main.game@PAGEOFF mov x2, #900 bl _memcpy ldr x0, [sp, #72] ; 8-byte Folded Reload ldr x1, [sp, #80] ; 8-byte Folded Reload add x2, sp, #96 bl _solve str wzr, [sp, #88] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #88] subs w8, w8, #31 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x8, [sp, #88] mov x10, #24 mul x9, x8, x10 add x8, sp, #96 ldr x9, [x8, x9] str x9, [sp, #48] ; 8-byte Folded Spill ldrsw x9, [sp, #88] mul x11, x9, x10 mov x9, x8 add x9, x9, x11 ldr w11, [x9, #8] ; implicit-def: $x9 mov x9, x11 str x9, [sp, #56] ; 8-byte Folded Spill ldrsw x9, [sp, #88] mul x11, x9, x10 mov x9, x8 add x9, x9, x11 ldr w11, [x9, #12] ; implicit-def: $x9 mov x9, x11 str x9, [sp, #64] ; 8-byte Folded Spill ldrsw x9, [sp, #88] mul x9, x9, x10 add x8, x8, x9 ldr w0, [x8, #16] bl _orientationString ldr x11, [sp, #48] ; 8-byte Folded Reload ldr x10, [sp, #56] ; 8-byte Folded Reload ldr x9, [sp, #64] ; 8-byte Folded Reload mov x8, sp str x11, [x8] str x10, [x8, #8] str x9, [x8, #16] str x0, [x8, #24] adrp x0, l_.str.31@PAGE add x0, x0, l_.str.31@PAGEOFF bl _printf b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #88] add w8, w8, #1 str w8, [sp, #88] b LBB0_1 LBB0_4: ldr w8, [sp, #92] str w8, [sp, #44] ; 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_6 b LBB0_5 LBB0_5: bl ___stack_chk_fail LBB0_6: ldr w0, [sp, #44] ; 4-byte Folded Reload add sp, sp, #2000 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _solve ; -- Begin function solve .p2align 2 _solve: ; @solve .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur x1, [x29, #-16] stur x2, [x29, #-24] stur wzr, [x29, #-28] stur wzr, [x29, #-32] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ; Child Loop BB1_7 Depth 3 ; Child Loop BB1_12 Depth 4 ldur w8, [x29, #-32] subs w8, w8, #31 cset w8, ge tbnz w8, #0, LBB1_26 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 stur wzr, [x29, #-36] str wzr, [sp, #40] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB1_7 Depth 3 ; Child Loop BB1_12 Depth 4 ldr w8, [sp, #40] subs w8, w8, #30 cset w8, ge mov w9, #0 str w9, [sp, #28] ; 4-byte Folded Spill tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, eq str w8, [sp, #28] ; 4-byte Folded Spill b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #28] ; 4-byte Folded Reload tbz w8, #0, LBB1_24 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_3 Depth=2 str wzr, [sp, #36] b LBB1_7 LBB1_7: ; Parent Loop BB1_1 Depth=1 ; Parent Loop BB1_3 Depth=2 ; => This Loop Header: Depth=3 ; Child Loop BB1_12 Depth 4 ldr w8, [sp, #36] subs w8, w8, #30 cset w8, ge mov w9, #0 str w9, [sp, #24] ; 4-byte Folded Spill tbnz w8, #0, LBB1_9 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_7 Depth=3 ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, eq str w8, [sp, #24] ; 4-byte Folded Spill b LBB1_9 LBB1_9: ; in Loop: Header=BB1_7 Depth=3 ldr w8, [sp, #24] ; 4-byte Folded Reload tbz w8, #0, LBB1_22 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_7 Depth=3 ldur x8, [x29, #-8] ldrsw x9, [sp, #40] mov x10, #30 mul x9, x9, x10 add x8, x8, x9 ldrsw x9, [sp, #36] ldrsb w8, [x8, x9] ldur x9, [x29, #-16] ldursw x10, [x29, #-32] ldr x9, [x9, x10, lsl #3] ldrsb w9, [x9] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_20 b LBB1_11 LBB1_11: ; in Loop: Header=BB1_7 Depth=3 str wzr, [sp, #32] b LBB1_12 LBB1_12: ; Parent Loop BB1_1 Depth=1 ; Parent Loop BB1_3 Depth=2 ; Parent Loop BB1_7 Depth=3 ; => This Inner Loop Header: Depth=4 ldr w8, [sp, #32] subs w8, w8, #7 cset w8, hi mov w9, #0 str w9, [sp, #20] ; 4-byte Folded Spill tbnz w8, #0, LBB1_14 b LBB1_13 LBB1_13: ; in Loop: Header=BB1_12 Depth=4 ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, eq str w8, [sp, #20] ; 4-byte Folded Spill b LBB1_14 LBB1_14: ; in Loop: Header=BB1_12 Depth=4 ldr w8, [sp, #20] ; 4-byte Folded Reload tbz w8, #0, LBB1_19 b LBB1_15 LBB1_15: ; in Loop: Header=BB1_12 Depth=4 ldur x8, [x29, #-8] str x8, [sp, #8] ; 8-byte Folded Spill ldur x8, [x29, #-16] ldursw x9, [x29, #-32] ldr x8, [x8, x9, lsl #3] str x8, [sp] ; 8-byte Folded Spill ldur x8, [x29, #-16] ldursw x9, [x29, #-32] ldr x0, [x8, x9, lsl #3] bl _strlen ldr x1, [sp] ; 8-byte Folded Reload mov x8, x0 ldr x0, [sp, #8] ; 8-byte Folded Reload mov x2, x8 ldr w3, [sp, #40] ldr w4, [sp, #36] ldr w5, [sp, #32] bl _checkOrientation subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_17 b LBB1_16 LBB1_16: ; in Loop: Header=BB1_12 Depth=4 mov w8, #1 stur w8, [x29, #-36] ldur x8, [x29, #-16] ldursw x9, [x29, #-32] ldr x8, [x8, x9, lsl #3] ldur x9, [x29, #-24] ldursw x10, [x29, #-28] mov x11, #24 mul x10, x10, x11 str x8, [x9, x10] ldr w8, [sp, #40] ldur x9, [x29, #-24] ldursw x10, [x29, #-28] mul x10, x10, x11 add x9, x9, x10 str w8, [x9, #8] ldr w8, [sp, #36] ldur x9, [x29, #-24] ldursw x10, [x29, #-28] mul x10, x10, x11 add x9, x9, x10 str w8, [x9, #12] ldr w8, [sp, #32] ldur x9, [x29, #-24] ldursw x10, [x29, #-28] mul x10, x10, x11 add x9, x9, x10 str w8, [x9, #16] ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB1_17 LBB1_17: ; in Loop: Header=BB1_12 Depth=4 b LBB1_18 LBB1_18: ; in Loop: Header=BB1_12 Depth=4 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB1_12 LBB1_19: ; in Loop: Header=BB1_7 Depth=3 b LBB1_20 LBB1_20: ; in Loop: Header=BB1_7 Depth=3 b LBB1_21 LBB1_21: ; in Loop: Header=BB1_7 Depth=3 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB1_7 LBB1_22: ; in Loop: Header=BB1_3 Depth=2 b LBB1_23 LBB1_23: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #40] b LBB1_3 LBB1_24: ; in Loop: Header=BB1_1 Depth=1 b LBB1_25 LBB1_25: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-32] add w8, w8, #1 stur w8, [x29, #-32] b LBB1_1 LBB1_26: ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _orientationString ; -- Begin function orientationString .p2align 2 _orientationString: ; @orientationString .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, #7 cset w8, hi tbnz w8, #0, LBB2_10 ; %bb.1: ldr x11, [sp, #8] ; 8-byte Folded Reload adrp x10, lJTI2_0@PAGE add x10, x10, lJTI2_0@PAGEOFF Ltmp1: adr x8, Ltmp1 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB2_2: adrp x8, l_.str.32@PAGE add x8, x8, l_.str.32@PAGEOFF str x8, [sp, #24] b LBB2_11 LBB2_3: adrp x8, l_.str.33@PAGE add x8, x8, l_.str.33@PAGEOFF str x8, [sp, #24] b LBB2_11 LBB2_4: adrp x8, l_.str.34@PAGE add x8, x8, l_.str.34@PAGEOFF str x8, [sp, #24] b LBB2_11 LBB2_5: adrp x8, l_.str.35@PAGE add x8, x8, l_.str.35@PAGEOFF str x8, [sp, #24] b LBB2_11 LBB2_6: adrp x8, l_.str.36@PAGE add x8, x8, l_.str.36@PAGEOFF str x8, [sp, #24] b LBB2_11 LBB2_7: adrp x8, l_.str.37@PAGE add x8, x8, l_.str.37@PAGEOFF str x8, [sp, #24] b LBB2_11 LBB2_8: adrp x8, l_.str.38@PAGE add x8, x8, l_.str.38@PAGEOFF str x8, [sp, #24] b LBB2_11 LBB2_9: adrp x8, l_.str.39@PAGE add x8, x8, l_.str.39@PAGEOFF str x8, [sp, #24] b LBB2_11 LBB2_10: ; kill: def $x8 killed $xzr str xzr, [sp, #24] b LBB2_11 LBB2_11: ldr x0, [sp, #24] add sp, sp, #32 ret .cfi_endproc .p2align 2 lJTI2_0: .long LBB2_2-Ltmp1 .long LBB2_3-Ltmp1 .long LBB2_4-Ltmp1 .long LBB2_5-Ltmp1 .long LBB2_6-Ltmp1 .long LBB2_7-Ltmp1 .long LBB2_8-Ltmp1 .long LBB2_9-Ltmp1 ; -- End function .globl _checkOrientation ; -- Begin function checkOrientation .p2align 2 _checkOrientation: ; @checkOrientation .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur x1, [x29, #-24] stur w2, [x29, #-28] str w3, [sp, #32] str w4, [sp, #28] str w5, [sp, #24] ldr w0, [sp, #24] bl _getRowIncrement str w0, [sp, #20] ldr w0, [sp, #24] bl _getColumnIncrement str w0, [sp, #16] str wzr, [sp, #12] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_12 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #12] ldr w9, [sp, #20] mul w8, w8, w9 ldr w9, [sp, #32] add w8, w8, w9 subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB3_9 b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #12] ldr w9, [sp, #20] mul w8, w8, w9 ldr w9, [sp, #32] add w8, w8, w9 subs w8, w8, #30 cset w8, ge tbnz w8, #0, LBB3_9 b LBB3_4 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #12] ldr w9, [sp, #16] mul w8, w8, w9 ldr w9, [sp, #28] add w8, w8, w9 subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB3_9 b LBB3_5 LBB3_5: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #12] ldr w9, [sp, #16] mul w8, w8, w9 ldr w9, [sp, #28] add w8, w8, w9 subs w8, w8, #30 cset w8, ge tbnz w8, #0, LBB3_9 b LBB3_6 LBB3_6: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-24] ldrsw x9, [sp, #12] ldrsb w8, [x8, x9] ldur x11, [x29, #-16] ldr w9, [sp, #12] ldr w10, [sp, #20] mul w9, w9, w10 ldr w10, [sp, #32] add w9, w9, w10 mov w10, #30 smaddl x9, w9, w10, x11 ldr w10, [sp, #12] ldr w11, [sp, #16] mul w10, w10, w11 ldr w11, [sp, #28] add w10, w10, w11 ldrsb w9, [x9, w10, sxtw] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB3_8 b LBB3_7 LBB3_7: stur wzr, [x29, #-4] b LBB3_13 LBB3_8: ; in Loop: Header=BB3_1 Depth=1 b LBB3_10 LBB3_9: stur wzr, [x29, #-4] b LBB3_13 LBB3_10: ; in Loop: Header=BB3_1 Depth=1 b LBB3_11 LBB3_11: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB3_1 LBB3_12: mov w8, #1 stur w8, [x29, #-4] b LBB3_13 LBB3_13: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _getRowIncrement ; -- Begin function getRowIncrement .p2align 2 _getRowIncrement: ; @getRowIncrement .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #0 ; kill: def $x8 killed $w8 str x8, [sp] ; 8-byte Folded Spill subs x8, x8, #7 cset w8, hi tbnz w8, #0, LBB4_10 ; %bb.1: ldr x11, [sp] ; 8-byte Folded Reload adrp x10, lJTI4_0@PAGE add x10, x10, lJTI4_0@PAGEOFF Ltmp3: adr x8, Ltmp3 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB4_2: str wzr, [sp, #12] b LBB4_11 LBB4_3: str wzr, [sp, #12] b LBB4_11 LBB4_4: mov w8, #-1 str w8, [sp, #12] b LBB4_11 LBB4_5: mov w8, #1 str w8, [sp, #12] b LBB4_11 LBB4_6: mov w8, #-1 str w8, [sp, #12] b LBB4_11 LBB4_7: mov w8, #-1 str w8, [sp, #12] b LBB4_11 LBB4_8: mov w8, #1 str w8, [sp, #12] b LBB4_11 LBB4_9: mov w8, #1 str w8, [sp, #12] b LBB4_11 LBB4_10: str wzr, [sp, #12] b LBB4_11 LBB4_11: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc .p2align 2 lJTI4_0: .long LBB4_2-Ltmp3 .long LBB4_3-Ltmp3 .long LBB4_4-Ltmp3 .long LBB4_5-Ltmp3 .long LBB4_6-Ltmp3 .long LBB4_7-Ltmp3 .long LBB4_8-Ltmp3 .long LBB4_9-Ltmp3 ; -- End function .globl _getColumnIncrement ; -- Begin function getColumnIncrement .p2align 2 _getColumnIncrement: ; @getColumnIncrement .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #0 ; kill: def $x8 killed $w8 str x8, [sp] ; 8-byte Folded Spill subs x8, x8, #7 cset w8, hi tbnz w8, #0, LBB5_10 ; %bb.1: ldr x11, [sp] ; 8-byte Folded Reload adrp x10, lJTI5_0@PAGE add x10, x10, lJTI5_0@PAGEOFF Ltmp5: adr x8, Ltmp5 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB5_2: mov w8, #1 str w8, [sp, #12] b LBB5_11 LBB5_3: mov w8, #-1 str w8, [sp, #12] b LBB5_11 LBB5_4: str wzr, [sp, #12] b LBB5_11 LBB5_5: str wzr, [sp, #12] b LBB5_11 LBB5_6: mov w8, #1 str w8, [sp, #12] b LBB5_11 LBB5_7: mov w8, #-1 str w8, [sp, #12] b LBB5_11 LBB5_8: mov w8, #1 str w8, [sp, #12] b LBB5_11 LBB5_9: mov w8, #-1 str w8, [sp, #12] b LBB5_11 LBB5_10: str wzr, [sp, #12] b LBB5_11 LBB5_11: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc .p2align 2 lJTI5_0: .long LBB5_2-Ltmp5 .long LBB5_3-Ltmp5 .long LBB5_4-Ltmp5 .long LBB5_5-Ltmp5 .long LBB5_6-Ltmp5 .long LBB5_7-Ltmp5 .long LBB5_8-Ltmp5 .long LBB5_9-Ltmp5 ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "ALMONDS" l_.str.1: ; @.str.1 .asciz "APPLES" l_.str.2: ; @.str.2 .asciz "BANANAS" l_.str.3: ; @.str.3 .asciz "BEANS" l_.str.4: ; @.str.4 .asciz "BLUEBERRIES" l_.str.5: ; @.str.5 .asciz "BROCCOLI" l_.str.6: ; @.str.6 .asciz "BROWNRICE" l_.str.7: ; @.str.7 .asciz "CARROTS" l_.str.8: ; @.str.8 .asciz "CASHEWS" l_.str.9: ; @.str.9 .asciz "CELERY" l_.str.10: ; @.str.10 .asciz "CHEESE" l_.str.11: ; @.str.11 .asciz "CHICKEN" l_.str.12: ; @.str.12 .asciz "CORN" l_.str.13: ; @.str.13 .asciz "CRANBERRIES" l_.str.14: ; @.str.14 .asciz "CUCUMBERS" l_.str.15: ; @.str.15 .asciz "EGGS" l_.str.16: ; @.str.16 .asciz "LEMONS" l_.str.17: ; @.str.17 .asciz "LETTUCE" l_.str.18: ; @.str.18 .asciz "OATMEAL" l_.str.19: ; @.str.19 .asciz "ORANGES" l_.str.20: ; @.str.20 .asciz "POTATOES" l_.str.21: ; @.str.21 .asciz "SALMON" l_.str.22: ; @.str.22 .asciz "SPINACH" l_.str.23: ; @.str.23 .asciz "TOFU" l_.str.24: ; @.str.24 .asciz "TOMATOES" l_.str.25: ; @.str.25 .asciz "WALNUTS" l_.str.26: ; @.str.26 .asciz "WATER" l_.str.27: ; @.str.27 .asciz "WATERMELON" l_.str.28: ; @.str.28 .asciz "WHOLEGRAINS" l_.str.29: ; @.str.29 .asciz "YOGURT" l_.str.30: ; @.str.30 .asciz "ZUCCHINI" .section __DATA,__const .p2align 3 ; @__const.main.words l___const.main.words: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .quad l_.str.4 .quad l_.str.5 .quad l_.str.6 .quad l_.str.7 .quad l_.str.8 .quad l_.str.9 .quad l_.str.10 .quad l_.str.11 .quad l_.str.12 .quad l_.str.13 .quad l_.str.14 .quad l_.str.15 .quad l_.str.16 .quad l_.str.17 .quad l_.str.18 .quad l_.str.19 .quad l_.str.20 .quad l_.str.21 .quad l_.str.22 .quad l_.str.23 .quad l_.str.24 .quad l_.str.25 .quad l_.str.26 .quad l_.str.27 .quad l_.str.28 .quad l_.str.29 .quad l_.str.30 .section __TEXT,__const l___const.main.game: ; @__const.main.game .ascii "SXXDLLQTSBWNOQBQOECSBZCIBXPMSW" .ascii "ZRDYQKOCTRPBASNICJEGRIRUQXCEQC" .ascii "UBEHPMCBUOSKVVYUIIITOEAAMVLROV" .ascii "VKHBAHWLNWWQYCTORUZWCZNWBPWRXT" .ascii "NLLTMANMLNSPYTSRBKCVCIBFPYTLNM" .ascii "TROBHUMJARVPEREGKXOEOWEAMZELKN" .ascii "XENQXTCKWIELIBBLZMRDLCRKCQXMYN" .ascii "SKSFWAHUQCOQENTMHQAHIMRXDXKWIJ" .ascii "GAGVNPSCCEVUMPAZUVNDAAIQUFJXAE" .ascii "BITYSETLGULREGUCNXGQQFEFRXUTMG" .ascii "EJUTAPRLZBYSONWXHUEOTXSIQPBVQG" .ascii "APKNGHAEWTEYQDLUSCSXJKCFAYHLCS" .ascii "NPACOLRLBEVLQBFBQQVLBEGMIIHEZS" .ascii "SMNAALOBHULLPZQVSWMDQWNFBVAVYN" .ascii "CSMFLSECYSGZYYXRZAOQEKTNQYQORI" .ascii "TTWGAMHMICPBIGEDPDMQOBMOQPCVRA" .ascii "RKGEAXOERIOBXTKKXXVCGEQDXOOBPR" .ascii "VHOKQOGNWEHJAIFTDQLPGANAHTRXEG" .ascii "NSFQFOIWDSTWDFEAMNVSNZRKXANUWE" .ascii "OATMEALGFSSALIXROYESWYKLYTTPNL" .ascii "XCSVLPEVLAWEWXMMOFZTRVTRVOYTYO" .ascii "OJPXIQPENFEQCHLGQUNOCVDZWETUCH" .ascii "SBQKERZABLLJDAUWCLORCEPSQSQDAW" .ascii "EQIEBMNOEBPGSRECACORAILXHRFABL" .ascii "UXXSAALEMONSTLHUSDVASWCEWWYPLA" .ascii "WYLIBNNMGXGNQIQQBKUCKNDARYSGRF" .ascii "CHICKENLQGUDNRYKOFXXXFUELYREYV" .ascii "TPYCHHGMQZBINFICONHIXBBCQZAXZO" .ascii "PNKUVONBMJVCOZUTAPMUXSJUDNMYOR" .ascii "VPOFDLHMZZOHYGOCITBSQTSAXNXEPG" .section __TEXT,__cstring,cstring_literals l_.str.31: ; @.str.31 .asciz "%s:\n\tRow: %d\n\tColumn: %d\n\tOrientation: %s\n" l_.str.32: ; @.str.32 .asciz "Right" l_.str.33: ; @.str.33 .asciz "Left" l_.str.34: ; @.str.34 .asciz "Up" l_.str.35: ; @.str.35 .asciz "Down" l_.str.36: ; @.str.36 .asciz "Up & Right" l_.str.37: ; @.str.37 .asciz "Up & Left" l_.str.38: ; @.str.38 .asciz "Down & Right" l_.str.39: ; @.str.39 .asciz "Down & Left" .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 $1952, %rsp ## imm = 0x7A0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -1924(%rbp) leaq -256(%rbp), %rdi leaq l___const.main.words(%rip), %rsi movl $248, %edx callq _memcpy leaq -1168(%rbp), %rdi leaq l___const.main.game(%rip), %rsi movl $900, %edx ## imm = 0x384 callq _memcpy leaq -1168(%rbp), %rdi leaq -256(%rbp), %rsi leaq -1920(%rbp), %rdx callq _solve movl $0, -1928(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $31, -1928(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -1928(%rbp), %rcx leaq -1920(%rbp), %rax imulq $24, %rcx, %rcx addq %rcx, %rax movq (%rax), %rax movq %rax, -1944(%rbp) ## 8-byte Spill movslq -1928(%rbp), %rcx leaq -1920(%rbp), %rax imulq $24, %rcx, %rcx addq %rcx, %rax movl 8(%rax), %eax movl %eax, -1936(%rbp) ## 4-byte Spill movslq -1928(%rbp), %rcx leaq -1920(%rbp), %rax imulq $24, %rcx, %rcx addq %rcx, %rax movl 12(%rax), %eax movl %eax, -1932(%rbp) ## 4-byte Spill movslq -1928(%rbp), %rcx leaq -1920(%rbp), %rax imulq $24, %rcx, %rcx addq %rcx, %rax movl 16(%rax), %edi callq _orientationString movq -1944(%rbp), %rsi ## 8-byte Reload movl -1936(%rbp), %edx ## 4-byte Reload movl -1932(%rbp), %ecx ## 4-byte Reload movq %rax, %r8 leaq L_.str.31(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -1928(%rbp), %eax addl $1, %eax movl %eax, -1928(%rbp) jmp LBB0_1 LBB0_4: movl -1924(%rbp), %eax movl %eax, -1948(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_6 ## %bb.5: movl -1948(%rbp), %eax ## 4-byte Reload addq $1952, %rsp ## imm = 0x7A0 popq %rbp retq LBB0_6: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _solve ## -- Begin function solve .p2align 4, 0x90 _solve: ## @solve .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, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movl $0, -28(%rbp) movl $0, -32(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 ## Child Loop BB1_7 Depth 3 ## Child Loop BB1_12 Depth 4 cmpl $31, -32(%rbp) jge LBB1_26 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl $0, -36(%rbp) movl $0, -40(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB1_7 Depth 3 ## Child Loop BB1_12 Depth 4 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $30, -40(%rbp) movb %al, -49(%rbp) ## 1-byte Spill jge LBB1_5 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 cmpl $0, -36(%rbp) setne %al xorb $-1, %al movb %al, -49(%rbp) ## 1-byte Spill LBB1_5: ## in Loop: Header=BB1_3 Depth=2 movb -49(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_6 jmp LBB1_24 LBB1_6: ## in Loop: Header=BB1_3 Depth=2 movl $0, -44(%rbp) LBB1_7: ## Parent Loop BB1_1 Depth=1 ## Parent Loop BB1_3 Depth=2 ## => This Loop Header: Depth=3 ## Child Loop BB1_12 Depth 4 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $30, -44(%rbp) movb %al, -50(%rbp) ## 1-byte Spill jge LBB1_9 ## %bb.8: ## in Loop: Header=BB1_7 Depth=3 cmpl $0, -36(%rbp) setne %al xorb $-1, %al movb %al, -50(%rbp) ## 1-byte Spill LBB1_9: ## in Loop: Header=BB1_7 Depth=3 movb -50(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_10 jmp LBB1_22 LBB1_10: ## in Loop: Header=BB1_7 Depth=3 movq -8(%rbp), %rax movslq -40(%rbp), %rcx imulq $30, %rcx, %rcx addq %rcx, %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax movq -16(%rbp), %rcx movslq -32(%rbp), %rdx movq (%rcx,%rdx,8), %rcx movsbl (%rcx), %ecx cmpl %ecx, %eax jne LBB1_20 ## %bb.11: ## in Loop: Header=BB1_7 Depth=3 movl $0, -48(%rbp) LBB1_12: ## Parent Loop BB1_1 Depth=1 ## Parent Loop BB1_3 Depth=2 ## Parent Loop BB1_7 Depth=3 ## => This Inner Loop Header: Depth=4 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $7, -48(%rbp) movb %al, -51(%rbp) ## 1-byte Spill ja LBB1_14 ## %bb.13: ## in Loop: Header=BB1_12 Depth=4 cmpl $0, -36(%rbp) setne %al xorb $-1, %al movb %al, -51(%rbp) ## 1-byte Spill LBB1_14: ## in Loop: Header=BB1_12 Depth=4 movb -51(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_15 jmp LBB1_19 LBB1_15: ## in Loop: Header=BB1_12 Depth=4 movq -8(%rbp), %rax movq %rax, -72(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movslq -32(%rbp), %rcx movq (%rax,%rcx,8), %rax movq %rax, -64(%rbp) ## 8-byte Spill movq -16(%rbp), %rax movslq -32(%rbp), %rcx movq (%rax,%rcx,8), %rdi callq _strlen movq -72(%rbp), %rdi ## 8-byte Reload movq -64(%rbp), %rsi ## 8-byte Reload movl %eax, %edx movl -40(%rbp), %ecx movl -44(%rbp), %r8d movl -48(%rbp), %r9d callq _checkOrientation cmpl $0, %eax je LBB1_17 ## %bb.16: ## in Loop: Header=BB1_12 Depth=4 movl $1, -36(%rbp) movq -16(%rbp), %rax movslq -32(%rbp), %rcx movq (%rax,%rcx,8), %rcx movq -24(%rbp), %rax movslq -28(%rbp), %rdx imulq $24, %rdx, %rdx addq %rdx, %rax movq %rcx, (%rax) movl -40(%rbp), %ecx movq -24(%rbp), %rax movslq -28(%rbp), %rdx imulq $24, %rdx, %rdx addq %rdx, %rax movl %ecx, 8(%rax) movl -44(%rbp), %ecx movq -24(%rbp), %rax movslq -28(%rbp), %rdx imulq $24, %rdx, %rdx addq %rdx, %rax movl %ecx, 12(%rax) movl -48(%rbp), %ecx movq -24(%rbp), %rax movslq -28(%rbp), %rdx imulq $24, %rdx, %rdx addq %rdx, %rax movl %ecx, 16(%rax) movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) LBB1_17: ## in Loop: Header=BB1_12 Depth=4 jmp LBB1_18 LBB1_18: ## in Loop: Header=BB1_12 Depth=4 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB1_12 LBB1_19: ## in Loop: Header=BB1_7 Depth=3 jmp LBB1_20 LBB1_20: ## in Loop: Header=BB1_7 Depth=3 jmp LBB1_21 LBB1_21: ## in Loop: Header=BB1_7 Depth=3 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB1_7 LBB1_22: ## in Loop: Header=BB1_3 Depth=2 jmp LBB1_23 LBB1_23: ## in Loop: Header=BB1_3 Depth=2 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB1_3 LBB1_24: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_25 LBB1_25: ## in Loop: Header=BB1_1 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB1_1 LBB1_26: addq $80, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _orientationString ## -- Begin function orientationString .p2align 4, 0x90 _orientationString: ## @orientationString .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 $7, %rax ja LBB2_9 ## %bb.11: movq -24(%rbp), %rax ## 8-byte Reload leaq LJTI2_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB2_1: leaq L_.str.32(%rip), %rax movq %rax, -8(%rbp) jmp LBB2_10 LBB2_2: leaq L_.str.33(%rip), %rax movq %rax, -8(%rbp) jmp LBB2_10 LBB2_3: leaq L_.str.34(%rip), %rax movq %rax, -8(%rbp) jmp LBB2_10 LBB2_4: leaq L_.str.35(%rip), %rax movq %rax, -8(%rbp) jmp LBB2_10 LBB2_5: leaq L_.str.36(%rip), %rax movq %rax, -8(%rbp) jmp LBB2_10 LBB2_6: leaq L_.str.37(%rip), %rax movq %rax, -8(%rbp) jmp LBB2_10 LBB2_7: leaq L_.str.38(%rip), %rax movq %rax, -8(%rbp) jmp LBB2_10 LBB2_8: leaq L_.str.39(%rip), %rax movq %rax, -8(%rbp) jmp LBB2_10 LBB2_9: movq $0, -8(%rbp) LBB2_10: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L2_0_set_1, LBB2_1-LJTI2_0 .set L2_0_set_2, LBB2_2-LJTI2_0 .set L2_0_set_3, LBB2_3-LJTI2_0 .set L2_0_set_4, LBB2_4-LJTI2_0 .set L2_0_set_5, LBB2_5-LJTI2_0 .set L2_0_set_6, LBB2_6-LJTI2_0 .set L2_0_set_7, LBB2_7-LJTI2_0 .set L2_0_set_8, LBB2_8-LJTI2_0 LJTI2_0: .long L2_0_set_1 .long L2_0_set_2 .long L2_0_set_3 .long L2_0_set_4 .long L2_0_set_5 .long L2_0_set_6 .long L2_0_set_7 .long L2_0_set_8 .end_data_region ## -- End function .globl _checkOrientation ## -- Begin function checkOrientation .p2align 4, 0x90 _checkOrientation: ## @checkOrientation .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movl %edx, -28(%rbp) movl %ecx, -32(%rbp) movl %r8d, -36(%rbp) movl %r9d, -40(%rbp) movl -40(%rbp), %edi callq _getRowIncrement movl %eax, -44(%rbp) movl -40(%rbp), %edi callq _getColumnIncrement movl %eax, -48(%rbp) movl $0, -52(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movl -52(%rbp), %eax cmpl -28(%rbp), %eax jge LBB3_12 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movl -52(%rbp), %eax imull -44(%rbp), %eax addl -32(%rbp), %eax cmpl $0, %eax jl LBB3_9 ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movl -52(%rbp), %eax imull -44(%rbp), %eax addl -32(%rbp), %eax cmpl $30, %eax jge LBB3_9 ## %bb.4: ## in Loop: Header=BB3_1 Depth=1 movl -52(%rbp), %eax imull -48(%rbp), %eax addl -36(%rbp), %eax cmpl $0, %eax jl LBB3_9 ## %bb.5: ## in Loop: Header=BB3_1 Depth=1 movl -52(%rbp), %eax imull -48(%rbp), %eax addl -36(%rbp), %eax cmpl $30, %eax jge LBB3_9 ## %bb.6: ## in Loop: Header=BB3_1 Depth=1 movq -24(%rbp), %rax movslq -52(%rbp), %rcx movsbl (%rax,%rcx), %eax movq -16(%rbp), %rcx movl -52(%rbp), %edx imull -44(%rbp), %edx addl -32(%rbp), %edx movslq %edx, %rdx imulq $30, %rdx, %rdx addq %rdx, %rcx movl -52(%rbp), %edx imull -48(%rbp), %edx addl -36(%rbp), %edx movslq %edx, %rdx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax je LBB3_8 ## %bb.7: movl $0, -4(%rbp) jmp LBB3_13 LBB3_8: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_10 LBB3_9: movl $0, -4(%rbp) jmp LBB3_13 LBB3_10: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_11 LBB3_11: ## in Loop: Header=BB3_1 Depth=1 movl -52(%rbp), %eax addl $1, %eax movl %eax, -52(%rbp) jmp LBB3_1 LBB3_12: movl $1, -4(%rbp) LBB3_13: movl -4(%rbp), %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _getRowIncrement ## -- Begin function getRowIncrement .p2align 4, 0x90 _getRowIncrement: ## @getRowIncrement .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 ## kill: def $rax killed $eax movq %rax, -16(%rbp) ## 8-byte Spill subq $7, %rax ja LBB4_9 ## %bb.11: movq -16(%rbp), %rax ## 8-byte Reload leaq LJTI4_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB4_1: movl $0, -4(%rbp) jmp LBB4_10 LBB4_2: movl $0, -4(%rbp) jmp LBB4_10 LBB4_3: movl $-1, -4(%rbp) jmp LBB4_10 LBB4_4: movl $1, -4(%rbp) jmp LBB4_10 LBB4_5: movl $-1, -4(%rbp) jmp LBB4_10 LBB4_6: movl $-1, -4(%rbp) jmp LBB4_10 LBB4_7: movl $1, -4(%rbp) jmp LBB4_10 LBB4_8: movl $1, -4(%rbp) jmp LBB4_10 LBB4_9: movl $0, -4(%rbp) LBB4_10: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L4_0_set_1, LBB4_1-LJTI4_0 .set L4_0_set_2, LBB4_2-LJTI4_0 .set L4_0_set_3, LBB4_3-LJTI4_0 .set L4_0_set_4, LBB4_4-LJTI4_0 .set L4_0_set_5, LBB4_5-LJTI4_0 .set L4_0_set_6, LBB4_6-LJTI4_0 .set L4_0_set_7, LBB4_7-LJTI4_0 .set L4_0_set_8, LBB4_8-LJTI4_0 LJTI4_0: .long L4_0_set_1 .long L4_0_set_2 .long L4_0_set_3 .long L4_0_set_4 .long L4_0_set_5 .long L4_0_set_6 .long L4_0_set_7 .long L4_0_set_8 .end_data_region ## -- End function .globl _getColumnIncrement ## -- Begin function getColumnIncrement .p2align 4, 0x90 _getColumnIncrement: ## @getColumnIncrement .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 ## kill: def $rax killed $eax movq %rax, -16(%rbp) ## 8-byte Spill subq $7, %rax ja LBB5_9 ## %bb.11: movq -16(%rbp), %rax ## 8-byte Reload leaq LJTI5_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB5_1: movl $1, -4(%rbp) jmp LBB5_10 LBB5_2: movl $-1, -4(%rbp) jmp LBB5_10 LBB5_3: movl $0, -4(%rbp) jmp LBB5_10 LBB5_4: movl $0, -4(%rbp) jmp LBB5_10 LBB5_5: movl $1, -4(%rbp) jmp LBB5_10 LBB5_6: movl $-1, -4(%rbp) jmp LBB5_10 LBB5_7: movl $1, -4(%rbp) jmp LBB5_10 LBB5_8: movl $-1, -4(%rbp) jmp LBB5_10 LBB5_9: movl $0, -4(%rbp) LBB5_10: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L5_0_set_1, LBB5_1-LJTI5_0 .set L5_0_set_2, LBB5_2-LJTI5_0 .set L5_0_set_3, LBB5_3-LJTI5_0 .set L5_0_set_4, LBB5_4-LJTI5_0 .set L5_0_set_5, LBB5_5-LJTI5_0 .set L5_0_set_6, LBB5_6-LJTI5_0 .set L5_0_set_7, LBB5_7-LJTI5_0 .set L5_0_set_8, LBB5_8-LJTI5_0 LJTI5_0: .long L5_0_set_1 .long L5_0_set_2 .long L5_0_set_3 .long L5_0_set_4 .long L5_0_set_5 .long L5_0_set_6 .long L5_0_set_7 .long L5_0_set_8 .end_data_region ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "ALMONDS" L_.str.1: ## @.str.1 .asciz "APPLES" L_.str.2: ## @.str.2 .asciz "BANANAS" L_.str.3: ## @.str.3 .asciz "BEANS" L_.str.4: ## @.str.4 .asciz "BLUEBERRIES" L_.str.5: ## @.str.5 .asciz "BROCCOLI" L_.str.6: ## @.str.6 .asciz "BROWNRICE" L_.str.7: ## @.str.7 .asciz "CARROTS" L_.str.8: ## @.str.8 .asciz "CASHEWS" L_.str.9: ## @.str.9 .asciz "CELERY" L_.str.10: ## @.str.10 .asciz "CHEESE" L_.str.11: ## @.str.11 .asciz "CHICKEN" L_.str.12: ## @.str.12 .asciz "CORN" L_.str.13: ## @.str.13 .asciz "CRANBERRIES" L_.str.14: ## @.str.14 .asciz "CUCUMBERS" L_.str.15: ## @.str.15 .asciz "EGGS" L_.str.16: ## @.str.16 .asciz "LEMONS" L_.str.17: ## @.str.17 .asciz "LETTUCE" L_.str.18: ## @.str.18 .asciz "OATMEAL" L_.str.19: ## @.str.19 .asciz "ORANGES" L_.str.20: ## @.str.20 .asciz "POTATOES" L_.str.21: ## @.str.21 .asciz "SALMON" L_.str.22: ## @.str.22 .asciz "SPINACH" L_.str.23: ## @.str.23 .asciz "TOFU" L_.str.24: ## @.str.24 .asciz "TOMATOES" L_.str.25: ## @.str.25 .asciz "WALNUTS" L_.str.26: ## @.str.26 .asciz "WATER" L_.str.27: ## @.str.27 .asciz "WATERMELON" L_.str.28: ## @.str.28 .asciz "WHOLEGRAINS" L_.str.29: ## @.str.29 .asciz "YOGURT" L_.str.30: ## @.str.30 .asciz "ZUCCHINI" .section __DATA,__const .p2align 4 ## @__const.main.words l___const.main.words: .quad L_.str .quad L_.str.1 .quad L_.str.2 .quad L_.str.3 .quad L_.str.4 .quad L_.str.5 .quad L_.str.6 .quad L_.str.7 .quad L_.str.8 .quad L_.str.9 .quad L_.str.10 .quad L_.str.11 .quad L_.str.12 .quad L_.str.13 .quad L_.str.14 .quad L_.str.15 .quad L_.str.16 .quad L_.str.17 .quad L_.str.18 .quad L_.str.19 .quad L_.str.20 .quad L_.str.21 .quad L_.str.22 .quad L_.str.23 .quad L_.str.24 .quad L_.str.25 .quad L_.str.26 .quad L_.str.27 .quad L_.str.28 .quad L_.str.29 .quad L_.str.30 .section __TEXT,__const .p2align 4 ## @__const.main.game l___const.main.game: .ascii "SXXDLLQTSBWNOQBQOECSBZCIBXPMSW" .ascii "ZRDYQKOCTRPBASNICJEGRIRUQXCEQC" .ascii "UBEHPMCBUOSKVVYUIIITOEAAMVLROV" .ascii "VKHBAHWLNWWQYCTORUZWCZNWBPWRXT" .ascii "NLLTMANMLNSPYTSRBKCVCIBFPYTLNM" .ascii "TROBHUMJARVPEREGKXOEOWEAMZELKN" .ascii "XENQXTCKWIELIBBLZMRDLCRKCQXMYN" .ascii "SKSFWAHUQCOQENTMHQAHIMRXDXKWIJ" .ascii "GAGVNPSCCEVUMPAZUVNDAAIQUFJXAE" .ascii "BITYSETLGULREGUCNXGQQFEFRXUTMG" .ascii "EJUTAPRLZBYSONWXHUEOTXSIQPBVQG" .ascii "APKNGHAEWTEYQDLUSCSXJKCFAYHLCS" .ascii "NPACOLRLBEVLQBFBQQVLBEGMIIHEZS" .ascii "SMNAALOBHULLPZQVSWMDQWNFBVAVYN" .ascii "CSMFLSECYSGZYYXRZAOQEKTNQYQORI" .ascii "TTWGAMHMICPBIGEDPDMQOBMOQPCVRA" .ascii "RKGEAXOERIOBXTKKXXVCGEQDXOOBPR" .ascii "VHOKQOGNWEHJAIFTDQLPGANAHTRXEG" .ascii "NSFQFOIWDSTWDFEAMNVSNZRKXANUWE" .ascii "OATMEALGFSSALIXROYESWYKLYTTPNL" .ascii "XCSVLPEVLAWEWXMMOFZTRVTRVOYTYO" .ascii "OJPXIQPENFEQCHLGQUNOCVDZWETUCH" .ascii "SBQKERZABLLJDAUWCLORCEPSQSQDAW" .ascii "EQIEBMNOEBPGSRECACORAILXHRFABL" .ascii "UXXSAALEMONSTLHUSDVASWCEWWYPLA" .ascii "WYLIBNNMGXGNQIQQBKUCKNDARYSGRF" .ascii "CHICKENLQGUDNRYKOFXXXFUELYREYV" .ascii "TPYCHHGMQZBINFICONHIXBBCQZAXZO" .ascii "PNKUVONBMJVCOZUTAPMUXSJUDNMYOR" .ascii "VPOFDLHMZZOHYGOCITBSQTSAXNXEPG" .section __TEXT,__cstring,cstring_literals L_.str.31: ## @.str.31 .asciz "%s:\n\tRow: %d\n\tColumn: %d\n\tOrientation: %s\n" L_.str.32: ## @.str.32 .asciz "Right" L_.str.33: ## @.str.33 .asciz "Left" L_.str.34: ## @.str.34 .asciz "Up" L_.str.35: ## @.str.35 .asciz "Down" L_.str.36: ## @.str.36 .asciz "Up & Right" L_.str.37: ## @.str.37 .asciz "Up & Left" L_.str.38: ## @.str.38 .asciz "Down & Right" L_.str.39: ## @.str.39 .asciz "Down & Left" .subsections_via_symbols
the_stack_data/34787.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] ldur w8, [x29, #-8] subs w8, w8, #4 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_1 LBB0_1: ldur x8, [x29, #-16] ldr x0, [x8, #8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF str x1, [sp, #24] ; 8-byte Folded Spill bl _fopen stur x0, [x29, #-24] ldur x8, [x29, #-16] ldr x0, [x8, #16] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen ldr x1, [sp, #24] ; 8-byte Folded Reload stur x0, [x29, #-32] ldur x8, [x29, #-16] ldr x0, [x8, #24] bl _fopen str x0, [sp, #40] ldur x8, [x29, #-24] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldr x8, [sp, #40] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldur x8, [x29, #-16] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf stur wzr, [x29, #-4] b LBB0_9 LBB0_4: b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr x3, [sp, #40] add x0, sp, #39 mov x2, #1 mov x1, x2 bl _fread subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldur x3, [x29, #-24] add x0, sp, #37 str x0, [sp, #16] ; 8-byte Folded Spill mov x2, #1 str x2, [sp, #8] ; 8-byte Folded Spill mov x1, x2 bl _fread ldr x2, [sp, #8] ; 8-byte Folded Reload ldr x0, [sp, #16] ; 8-byte Folded Reload ldrb w9, [sp, #39] ldrb w8, [sp, #37] eor w8, w8, w9 strb w8, [sp, #37] ldur x3, [x29, #-32] mov x1, x2 bl _fwrite b LBB0_5 LBB0_7: stur wzr, [x29, #-4] b LBB0_9 LBB0_8: ldur x8, [x29, #-16] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf stur wzr, [x29, #-4] b LBB0_9 LBB0_9: ldur w0, [x29, #-4] ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "rb" l_.str.1: ; @.str.1 .asciz "wb" l_.str.2: ; @.str.2 .asciz "Could not open one of the files\n Usage: %s <source> <destinatio> <key>" l_.str.3: ; @.str.3 .asciz "Usage: %s <source> <destinatio> <key>" .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) jne LBB0_8 ## %bb.1: movq -16(%rbp), %rax movq 8(%rax), %rdi leaq L_.str(%rip), %rsi callq _fopen movq %rax, -24(%rbp) movq -16(%rbp), %rax movq 16(%rax), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -32(%rbp) movq -16(%rbp), %rax movq 24(%rax), %rdi leaq L_.str(%rip), %rsi callq _fopen movq %rax, -40(%rbp) cmpq $0, -24(%rbp) je LBB0_3 ## %bb.2: cmpq $0, -40(%rbp) jne LBB0_4 LBB0_3: movq -16(%rbp), %rax movq (%rax), %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $0, -4(%rbp) jmp LBB0_9 LBB0_4: jmp LBB0_5 LBB0_5: ## =>This Inner Loop Header: Depth=1 leaq -41(%rbp), %rdi movq -40(%rbp), %rcx movl $1, %edx movq %rdx, %rsi callq _fread cmpq $0, %rax je LBB0_7 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 leaq -43(%rbp), %rdi movq -24(%rbp), %rcx movl $1, %edx movq %rdx, %rsi callq _fread movzbl -41(%rbp), %ecx movzbl -43(%rbp), %eax xorl %ecx, %eax ## kill: def $al killed $al killed $eax movb %al, -43(%rbp) leaq -43(%rbp), %rdi movq -32(%rbp), %rcx movl $1, %edx movq %rdx, %rsi callq _fwrite jmp LBB0_5 LBB0_7: movl $0, -4(%rbp) jmp LBB0_9 LBB0_8: movq -16(%rbp), %rax movq (%rax), %rsi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl $0, -4(%rbp) LBB0_9: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "rb" L_.str.1: ## @.str.1 .asciz "wb" L_.str.2: ## @.str.2 .asciz "Could not open one of the files\n Usage: %s <source> <destinatio> <key>" L_.str.3: ## @.str.3 .asciz "Usage: %s <source> <destinatio> <key>" .subsections_via_symbols
the_stack_data/103358.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _dcombssq_ ; -- Begin function dcombssq_ .p2align 2 _dcombssq_: ; @dcombssq_ .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, #8 str x8, [sp, #16] ldr x8, [sp, #24] subs x8, x8, #8 str x8, [sp, #24] ldr x8, [sp, #24] ldr d0, [x8, #8] ldr x8, [sp, #16] ldr d1, [x8, #8] fcmp d0, d1 cset w8, lt tbnz w8, #0, LBB0_5 b LBB0_1 LBB0_1: ldr x8, [sp, #24] ldr d0, [x8, #8] fcmp d0, #0.0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldr x8, [sp, #16] ldr d0, [x8, #8] ldr x8, [sp, #24] ldr d1, [x8, #8] fdiv d0, d0, d1 str d0, [sp, #8] ldr d0, [sp, #8] ldr d1, [sp, #8] fmul d0, d0, d1 ldr x8, [sp, #16] ldr d1, [x8, #16] ldr x8, [sp, #24] ldr d2, [x8, #16] fmadd d0, d0, d1, d2 str d0, [x8, #16] b LBB0_4 LBB0_3: ldr x8, [sp, #16] ldr d1, [x8, #16] ldr x8, [sp, #24] ldr d0, [x8, #16] fadd d0, d0, d1 str d0, [x8, #16] b LBB0_4 LBB0_4: b LBB0_6 LBB0_5: ldr x8, [sp, #24] ldr d0, [x8, #8] ldr x8, [sp, #16] ldr d1, [x8, #8] fdiv d0, d0, d1 str d0, [sp, #8] ldr x8, [sp, #16] ldr d2, [x8, #16] ldr d0, [sp, #8] ldr d1, [sp, #8] fmul d0, d0, d1 ldr x8, [sp, #24] ldr d1, [x8, #16] fmadd d0, d0, d1, d2 ldr x8, [sp, #24] str d0, [x8, #16] ldr x8, [sp, #16] ldr d0, [x8, #8] ldr x8, [sp, #24] str d0, [x8, #8] b LBB0_6 LBB0_6: mov w0, #0 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 _dcombssq_ ## -- Begin function dcombssq_ .p2align 4, 0x90 _dcombssq_: ## @dcombssq_ .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rax addq $-8, %rax movq %rax, -16(%rbp) movq -8(%rbp), %rax addq $-8, %rax movq %rax, -8(%rbp) movq -8(%rbp), %rax movsd 8(%rax), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax ucomisd 8(%rax), %xmm0 jb LBB0_5 ## %bb.1: movq -8(%rbp), %rax movsd 8(%rax), %xmm0 ## xmm0 = mem[0],zero xorps %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jne LBB0_2 jp LBB0_2 jmp LBB0_3 LBB0_2: movq -16(%rbp), %rax movsd 8(%rax), %xmm0 ## xmm0 = mem[0],zero movq -8(%rbp), %rax divsd 8(%rax), %xmm0 movsd %xmm0, -24(%rbp) movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -24(%rbp), %xmm0 movq -16(%rbp), %rax movsd 16(%rax), %xmm2 ## xmm2 = mem[0],zero movq -8(%rbp), %rax movsd 16(%rax), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, 16(%rax) jmp LBB0_4 LBB0_3: movq -16(%rbp), %rax movsd 16(%rax), %xmm0 ## xmm0 = mem[0],zero movq -8(%rbp), %rax addsd 16(%rax), %xmm0 movsd %xmm0, 16(%rax) LBB0_4: jmp LBB0_6 LBB0_5: movq -8(%rbp), %rax movsd 8(%rax), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax divsd 8(%rax), %xmm0 movsd %xmm0, -24(%rbp) movq -16(%rbp), %rax movsd 16(%rax), %xmm1 ## xmm1 = mem[0],zero movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -24(%rbp), %xmm0 movq -8(%rbp), %rax movsd 16(%rax), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movq -8(%rbp), %rax movsd %xmm0, 16(%rax) movq -16(%rbp), %rax movsd 8(%rax), %xmm0 ## xmm0 = mem[0],zero movq -8(%rbp), %rax movsd %xmm0, 8(%rax) LBB0_6: xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/97043.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _input_array ; -- Begin function input_array .p2align 2 _input_array: ; @input_array .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str wzr, [sp, #16] b LBB0_1 LBB0_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, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str@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: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 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.1@PAGE add x0, x0, l_.str.1@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.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _get_equilibrium_index ; -- Begin function get_equilibrium_index .p2align 2 _get_equilibrium_index: ; @get_equilibrium_index .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 w8, [x29, #-20] mov w9, #1 str w9, [sp, #4] ; 4-byte Folded Spill add w9, w8, #1 ; implicit-def: $x8 mov x8, x9 sxtw x8, w8 lsl x0, x8, #2 bl _malloc str x0, [sp, #16] ldur w8, [x29, #-20] add w9, w8, #1 ; implicit-def: $x8 mov x8, x9 sxtw x8, w8 lsl x0, x8, #2 bl _malloc ldr w8, [sp, #4] ; 4-byte Folded Reload str x0, [sp, #8] ldur x9, [x29, #-16] ldr w9, [x9] ldr x10, [sp, #16] str w9, [x10] ldur x9, [x29, #-16] ldur w10, [x29, #-20] subs w10, w10, #1 ldr w9, [x9, w10, sxtw #2] ldr x10, [sp, #8] str w9, [x10] str w8, [sp, #24] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #16] ldr w9, [sp, #24] subs w9, w9, #1 ldr w8, [x8, w9, sxtw #2] ldur x9, [x29, #-16] ldrsw x10, [sp, #24] ldr w9, [x9, x10, lsl #2] add w8, w8, w9 ldr x9, [sp, #16] ldrsw x10, [sp, #24] str w8, [x9, x10, lsl #2] b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB2_1 LBB2_4: mov w8, #1 str w8, [sp, #24] b LBB2_5 LBB2_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_8 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_5 Depth=1 ldr x8, [sp, #8] ldr w9, [sp, #24] subs w9, w9, #1 ldr w8, [x8, w9, sxtw #2] ldur x9, [x29, #-16] ldur w10, [x29, #-20] ldr w11, [sp, #24] subs w10, w10, w11 subs w10, w10, #1 ldr w9, [x9, w10, sxtw #2] add w8, w8, w9 ldr x9, [sp, #8] ldrsw x10, [sp, #24] str w8, [x9, x10, lsl #2] b LBB2_7 LBB2_7: ; in Loop: Header=BB2_5 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB2_5 LBB2_8: str wzr, [sp, #24] b LBB2_9 LBB2_9: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_14 b LBB2_10 LBB2_10: ; in Loop: Header=BB2_9 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #24] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #8] ldr w10, [sp, #24] add w10, w10, #1 ldr w9, [x9, w10, sxtw #2] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB2_12 b LBB2_11 LBB2_11: ldr w8, [sp, #24] stur w8, [x29, #-4] b LBB2_15 LBB2_12: ; in Loop: Header=BB2_9 Depth=1 b LBB2_13 LBB2_13: ; in Loop: Header=BB2_9 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB2_9 LBB2_14: mov w8, #-1 stur w8, [x29, #-4] b LBB2_15 LBB2_15: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldursw x8, [x29, #-8] lsl x0, x8, #2 bl _malloc str x0, [sp, #16] ldr x0, [sp, #16] ldur w1, [x29, #-8] bl _input_array ldr x0, [sp, #16] ldur w1, [x29, #-8] bl _get_equilibrium_index str w0, [sp, #12] ldr w8, [sp, #12] adds w8, w8, #1 cset w8, eq tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: ldr w9, [sp, #12] ; 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 LBB3_3 LBB3_2: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB3_3 LBB3_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 "%d " l_.str.2: ; @.str.2 .asciz "\n" l_.str.3: ; @.str.3 .asciz "\n%d is the equilibrium index\n" l_.str.4: ; @.str.4 .asciz "\nThere is no equilibrium index\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _input_array ## -- Begin function input_array .p2align 4, 0x90 _input_array: ## @input_array .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl $0, -16(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rsi movslq -16(%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 -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_1 LBB0_4: addq $16, %rsp 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.1(%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.2(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _get_equilibrium_index ## -- Begin function get_equilibrium_index .p2align 4, 0x90 _get_equilibrium_index: ## @get_equilibrium_index .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movl -20(%rbp), %eax addl $1, %eax movslq %eax, %rdi shlq $2, %rdi callq _malloc movq %rax, -32(%rbp) movl -20(%rbp), %eax addl $1, %eax movslq %eax, %rdi shlq $2, %rdi callq _malloc movq %rax, -40(%rbp) movq -16(%rbp), %rax movl (%rax), %ecx movq -32(%rbp), %rax movl %ecx, (%rax) movq -16(%rbp), %rax movl -20(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %ecx movq -40(%rbp), %rax movl %ecx, (%rax) movl $1, -24(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax cmpl -20(%rbp), %eax jge LBB2_4 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -32(%rbp), %rax movl -24(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %edx movq -16(%rbp), %rax movslq -24(%rbp), %rcx addl (%rax,%rcx,4), %edx movq -32(%rbp), %rax movslq -24(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB2_1 LBB2_4: movl $1, -24(%rbp) LBB2_5: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax cmpl -20(%rbp), %eax jge LBB2_8 ## %bb.6: ## in Loop: Header=BB2_5 Depth=1 movq -40(%rbp), %rax movl -24(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %edx movq -16(%rbp), %rax movl -20(%rbp), %ecx subl -24(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx addl (%rax,%rcx,4), %edx movq -40(%rbp), %rax movslq -24(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.7: ## in Loop: Header=BB2_5 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB2_5 LBB2_8: movl $0, -24(%rbp) LBB2_9: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax cmpl -20(%rbp), %eax jge LBB2_14 ## %bb.10: ## in Loop: Header=BB2_9 Depth=1 movq -32(%rbp), %rax movslq -24(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -40(%rbp), %rcx movl -24(%rbp), %edx addl $1, %edx movslq %edx, %rdx cmpl (%rcx,%rdx,4), %eax jne LBB2_12 ## %bb.11: movl -24(%rbp), %eax movl %eax, -4(%rbp) jmp LBB2_15 LBB2_12: ## in Loop: Header=BB2_9 Depth=1 jmp LBB2_13 LBB2_13: ## in Loop: Header=BB2_9 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB2_9 LBB2_14: movl $-1, -4(%rbp) LBB2_15: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) 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) movq -16(%rbp), %rdi movl -8(%rbp), %esi callq _input_array movq -16(%rbp), %rdi movl -8(%rbp), %esi callq _get_equilibrium_index movl %eax, -20(%rbp) cmpl $-1, -20(%rbp) je LBB3_2 ## %bb.1: movl -20(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB3_3 LBB3_2: leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf LBB3_3: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%d " L_.str.2: ## @.str.2 .asciz "\n" L_.str.3: ## @.str.3 .asciz "\n%d is the equilibrium index\n" L_.str.4: ## @.str.4 .asciz "\nThere is no equilibrium index\n" .subsections_via_symbols
the_stack_data/142094.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 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _scanf ldur w8, [x29, #-8] subs w8, w8, #1 ; kill: def $x8 killed $w8 str x8, [sp, #16] ; 8-byte Folded Spill subs x8, x8, #3 cset w8, hi tbnz w8, #0, LBB0_6 ; %bb.1: ldr x11, [sp, #16] ; 8-byte Folded Reload adrp x10, lJTI0_0@PAGE add x10, x10, lJTI0_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB0_2: bl _triangle fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB0_7 LBB0_3: bl _square 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_7 LBB0_4: bl _circle fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf b LBB0_7 LBB0_5: bl _rectangle mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf b LBB0_7 LBB0_6: adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf b LBB0_7 LBB0_7: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc .p2align 2 lJTI0_0: .long LBB0_2-Ltmp0 .long LBB0_3-Ltmp0 .long LBB0_4-Ltmp0 .long LBB0_5-Ltmp0 ; -- End function .globl _triangle ; -- Begin function triangle .p2align 2 _triangle: ; @triangle .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.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf mov x9, sp sub x8, x29, #4 str x8, [x9] sub x8, x29, #8 str x8, [x9, #8] adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _scanf ldur s1, [x29, #-4] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d1, d0 fmov d0, #0.50000000 fmul d0, d0, d1 ldur s2, [x29, #-8] ; 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 fcvt s0, d0 stur s0, [x29, #-12] ldur s0, [x29, #-12] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _square ; -- Begin function square .p2align 2 _square: ; @square .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _printf mov x9, sp sub x8, x29, #4 str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _scanf ldur w8, [x29, #-4] ldur w9, [x29, #-4] mul w0, w8, w9 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function circle lCPI3_0: .quad 0x40091eb851eb851f ; double 3.1400000000000001 .section __TEXT,__text,regular,pure_instructions .globl _circle .p2align 2 _circle: ; @circle .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.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf mov x9, sp sub x8, x29, #4 str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _scanf ldur s0, [x29, #-4] scvtf s0, s0 ldur s1, [x29, #-4] scvtf s1, s1 fmul s0, s0, s1 fcvt d0, s0 adrp x8, lCPI3_0@PAGE ldr d1, [x8, lCPI3_0@PAGEOFF] fmul d0, d0, d1 fcvt s0, d0 str s0, [sp, #8] ldr s0, [sp, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _rectangle ; -- Begin function rectangle .p2align 2 _rectangle: ; @rectangle .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.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf mov x9, sp sub x8, x29, #4 str x8, [x9] sub x8, x29, #8 str x8, [x9, #8] adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _scanf ldur w8, [x29, #-4] ldur w9, [x29, #-8] mul w0, w8, w9 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 "\n------MENU------\n\n" l_.str.1: ; @.str.1 .asciz "1. Triangle \n" l_.str.2: ; @.str.2 .asciz "2. Square\n" l_.str.3: ; @.str.3 .asciz "3. Circle \n" l_.str.4: ; @.str.4 .asciz "4. Rectangle \n" l_.str.5: ; @.str.5 .asciz "\nEnter a choice : " l_.str.6: ; @.str.6 .asciz "%d" l_.str.7: ; @.str.7 .asciz "\nArea of Triangle = %f \n" l_.str.8: ; @.str.8 .asciz "\nArea of Square = %d \n" l_.str.9: ; @.str.9 .asciz "\nArea of Circle = %f \n" l_.str.10: ; @.str.10 .asciz "\nArea of Rectangle = %d \n" l_.str.11: ; @.str.11 .asciz "\nInvalid input \n" l_.str.12: ; @.str.12 .asciz "\nEnter height and base of triangle : " l_.str.13: ; @.str.13 .asciz "%d %d" l_.str.14: ; @.str.14 .asciz "\nEnter side of square : " l_.str.15: ; @.str.15 .asciz "\nEnter radius of circle : " l_.str.16: ; @.str.16 .asciz "\nEnter length and breath of rectangle : " .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 xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -17(%rbp) ## 1-byte Spill callq _printf ## kill: def $ecx killed $eax movb -17(%rbp), %al ## 1-byte Reload leaq L_.str.1(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -17(%rbp), %al ## 1-byte Reload leaq L_.str.2(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -17(%rbp), %al ## 1-byte Reload leaq L_.str.3(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -17(%rbp), %al ## 1-byte Reload leaq L_.str.4(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -17(%rbp), %al ## 1-byte Reload leaq L_.str.5(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -17(%rbp), %al ## 1-byte Reload leaq L_.str.6(%rip), %rdi leaq -8(%rbp), %rsi callq _scanf movl -8(%rbp), %eax decl %eax movl %eax, %ecx movq %rcx, -16(%rbp) ## 8-byte Spill subl $3, %eax ja LBB0_5 ## %bb.7: movq -16(%rbp), %rax ## 8-byte Reload leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_1: callq _triangle cvtss2sd %xmm0, %xmm0 leaq L_.str.7(%rip), %rdi movb $1, %al callq _printf jmp LBB0_6 LBB0_2: callq _square movl %eax, %esi leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf jmp LBB0_6 LBB0_3: callq _circle cvtss2sd %xmm0, %xmm0 leaq L_.str.9(%rip), %rdi movb $1, %al callq _printf jmp LBB0_6 LBB0_4: callq _rectangle movl %eax, %esi leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf jmp LBB0_6 LBB0_5: leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf LBB0_6: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_1, LBB0_1-LJTI0_0 .set L0_0_set_2, LBB0_2-LJTI0_0 .set L0_0_set_3, LBB0_3-LJTI0_0 .set L0_0_set_4, LBB0_4-LJTI0_0 LJTI0_0: .long L0_0_set_1 .long L0_0_set_2 .long L0_0_set_3 .long L0_0_set_4 .end_data_region ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function triangle LCPI1_0: .quad 0x3fe0000000000000 ## double 0.5 .section __TEXT,__text,regular,pure_instructions .globl _triangle .p2align 4, 0x90 _triangle: ## @triangle .cfi_startproc ## %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.12(%rip), %rdi movb $0, %al callq _printf leaq L_.str.13(%rip), %rdi leaq -4(%rbp), %rsi leaq -8(%rbp), %rdx movb $0, %al callq _scanf cvtsi2sdl -4(%rbp), %xmm1 movsd LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 cvtsi2sdl -8(%rbp), %xmm1 mulsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -12(%rbp) movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _square ## -- Begin function square .p2align 4, 0x90 _square: ## @square .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp leaq L_.str.14(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi leaq -4(%rbp), %rsi movb $0, %al callq _scanf movl -4(%rbp), %eax imull -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function circle LCPI3_0: .quad 0x40091eb851eb851f ## double 3.1400000000000001 .section __TEXT,__text,regular,pure_instructions .globl _circle .p2align 4, 0x90 _circle: ## @circle .cfi_startproc ## %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.15(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi leaq -4(%rbp), %rsi movb $0, %al callq _scanf cvtsi2ssl -4(%rbp), %xmm0 cvtsi2ssl -4(%rbp), %xmm1 mulss %xmm1, %xmm0 cvtss2sd %xmm0, %xmm0 movsd LCPI3_0(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -8(%rbp) movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _rectangle ## -- Begin function rectangle .p2align 4, 0x90 _rectangle: ## @rectangle .cfi_startproc ## %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.16(%rip), %rdi movb $0, %al callq _printf leaq L_.str.13(%rip), %rdi leaq -4(%rbp), %rsi leaq -8(%rbp), %rdx movb $0, %al callq _scanf movl -4(%rbp), %eax imull -8(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\n------MENU------\n\n" L_.str.1: ## @.str.1 .asciz "1. Triangle \n" L_.str.2: ## @.str.2 .asciz "2. Square\n" L_.str.3: ## @.str.3 .asciz "3. Circle \n" L_.str.4: ## @.str.4 .asciz "4. Rectangle \n" L_.str.5: ## @.str.5 .asciz "\nEnter a choice : " L_.str.6: ## @.str.6 .asciz "%d" L_.str.7: ## @.str.7 .asciz "\nArea of Triangle = %f \n" L_.str.8: ## @.str.8 .asciz "\nArea of Square = %d \n" L_.str.9: ## @.str.9 .asciz "\nArea of Circle = %f \n" L_.str.10: ## @.str.10 .asciz "\nArea of Rectangle = %d \n" L_.str.11: ## @.str.11 .asciz "\nInvalid input \n" L_.str.12: ## @.str.12 .asciz "\nEnter height and base of triangle : " L_.str.13: ## @.str.13 .asciz "%d %d" L_.str.14: ## @.str.14 .asciz "\nEnter side of square : " L_.str.15: ## @.str.15 .asciz "\nEnter radius of circle : " L_.str.16: ## @.str.16 .asciz "\nEnter length and breath of rectangle : " .subsections_via_symbols
the_stack_data/3263709.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _createRaggedArray ; -- Begin function createRaggedArray .p2align 2 _createRaggedArray: ; @createRaggedArray .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] stur x1, [x29, #-16] ldursw x9, [x29, #-4] mov x8, #8 mul x0, x8, x9 bl _malloc stur x0, [x29, #-24] stur wzr, [x29, #-28] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldur w8, [x29, #-28] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-16] ldursw x9, [x29, #-28] ldrsw x9, [x8, x9, lsl #2] mov x8, #4 mul x0, x8, x9 bl _malloc str x0, [sp, #40] str wzr, [sp, #36] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #36] ldur x9, [x29, #-16] ldursw x10, [x29, #-28] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-28] ldr w9, [sp, #36] add w8, w8, w9 ldur w9, [x29, #-28] ldr w10, [sp, #36] mul w9, w9, w10 add w8, w8, w9 ldr x9, [sp, #40] ldrsw x10, [sp, #36] str w8, [x9, x10, lsl #2] ldur w8, [x29, #-28] ; implicit-def: $x11 mov x11, x8 ldr w9, [sp, #36] ; implicit-def: $x8 mov x8, x9 ldur w9, [x29, #-28] ldr w10, [sp, #36] add w9, w9, w10 ldur w10, [x29, #-28] ldr w12, [sp, #36] mul w10, w10, w12 add w10, w9, w10 mov x9, sp str x11, [x9] str x8, [x9, #8] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #40] ldur x9, [x29, #-24] ldursw x10, [x29, #-28] str x8, [x9, x10, lsl #3] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB0_1 LBB0_8: ldur x0, [x29, #-24] ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #28] adrp x9, l_constinit@PAGE add x9, x9, l_constinit@PAGEOFF ldr q0, [x9] add x8, sp, #32 str q0, [sp, #32] ldr w9, [x9, #16] str w9, [sp, #48] str x8, [sp, #16] ldr x1, [sp, #16] mov w0, #5 bl _createRaggedArray str x0, [sp, #8] ldr x8, [sp, #8] ldr x8, [x8, #8] ldr w9, [x8, #12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: bl ___stack_chk_fail LBB1_2: mov w0, #0 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Array %i number %i %d\n" .section __DATA,__data .p2align 2 ; @constinit l_constinit: .long 6 ; 0x6 .long 5 ; 0x5 .long 3 ; 0x3 .long 5 ; 0x5 .long 4 ; 0x4 .section __TEXT,__cstring,cstring_literals l_.str.1: ; @.str.1 .asciz "%d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _createRaggedArray ## -- Begin function createRaggedArray .p2align 4, 0x90 _createRaggedArray: ## @createRaggedArray .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) movq %rsi, -16(%rbp) movslq -4(%rbp), %rdi shlq $3, %rdi callq _malloc movq %rax, -24(%rbp) movl $0, -28(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -28(%rbp), %eax cmpl -4(%rbp), %eax jge LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movslq (%rax,%rcx,4), %rdi shlq $2, %rdi callq _malloc movq %rax, -40(%rbp) movl $0, -44(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -44(%rbp), %eax movq -16(%rbp), %rcx movslq -28(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl -28(%rbp), %edx addl -44(%rbp), %edx movl -28(%rbp), %eax imull -44(%rbp), %eax addl %eax, %edx movq -40(%rbp), %rax movslq -44(%rbp), %rcx movl %edx, (%rax,%rcx,4) movl -28(%rbp), %esi movl -44(%rbp), %edx movl -28(%rbp), %ecx addl -44(%rbp), %ecx movl -28(%rbp), %eax imull -44(%rbp), %eax addl %eax, %ecx leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rdx movq -24(%rbp), %rax movslq -28(%rbp), %rcx movq %rdx, (%rax,%rcx,8) ## %bb.7: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_1 LBB0_8: movq -24(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -32(%rbp) movq l_constinit(%rip), %rax movq %rax, -28(%rbp) movq l_constinit+8(%rip), %rax movq %rax, -20(%rbp) movl l_constinit+16(%rip), %eax movl %eax, -12(%rbp) leaq -28(%rbp), %rax movq %rax, -40(%rbp) movq -40(%rbp), %rsi movl $5, %edi callq _createRaggedArray movq %rax, -48(%rbp) movq -48(%rbp), %rax movq 8(%rax), %rax movl 12(%rax), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_2 ## %bb.1: xorl %eax, %eax addq $48, %rsp popq %rbp retq LBB1_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Array %i number %i %d\n" .section __DATA,__data .p2align 2 ## @constinit l_constinit: .long 6 ## 0x6 .long 5 ## 0x5 .long 3 ## 0x3 .long 5 ## 0x5 .long 4 ## 0x4 .section __TEXT,__cstring,cstring_literals L_.str.1: ## @.str.1 .asciz "%d" .subsections_via_symbols
the_stack_data/50243.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w8, [x29, #-8] subs w8, w8, #1 ; kill: def $x8 killed $w8 str x8, [sp, #16] ; 8-byte Folded Spill subs x8, x8, #6 cset w8, hi tbnz w8, #0, LBB0_9 ; %bb.1: ldr x11, [sp, #16] ; 8-byte Folded Reload adrp x10, lJTI0_0@PAGE add x10, x10, lJTI0_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB0_2: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_10 LBB0_3: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_10 LBB0_4: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_10 LBB0_5: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_10 LBB0_6: adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf b LBB0_10 LBB0_7: adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB0_10 LBB0_8: adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB0_10 LBB0_9: adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf b LBB0_10 LBB0_10: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc .p2align 2 lJTI0_0: .long LBB0_2-Ltmp0 .long LBB0_3-Ltmp0 .long LBB0_4-Ltmp0 .long LBB0_5-Ltmp0 .long LBB0_6-Ltmp0 .long LBB0_7-Ltmp0 .long LBB0_8-Ltmp0 ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter a number between 1 to 7 to check its weekday.\n" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "It's Monday" l_.str.3: ; @.str.3 .asciz "It's Tuesday" l_.str.4: ; @.str.4 .asciz "It's Wednesday" l_.str.5: ; @.str.5 .asciz "It's Thursday" l_.str.6: ; @.str.6 .asciz "It's Friday" l_.str.7: ; @.str.7 .asciz "It's Saturday" l_.str.8: ; @.str.8 .asciz "It's Sunday" l_.str.9: ; @.str.9 .asciz "You have not entered a valid number please enter a valid 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 $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -17(%rbp) ## 1-byte Spill callq _printf ## kill: def $ecx killed $eax movb -17(%rbp), %al ## 1-byte Reload leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi callq _scanf movl -8(%rbp), %eax decl %eax movl %eax, %ecx movq %rcx, -16(%rbp) ## 8-byte Spill subl $6, %eax ja LBB0_8 ## %bb.10: movq -16(%rbp), %rax ## 8-byte Reload leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_1: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_9 LBB0_2: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB0_9 LBB0_3: leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf jmp LBB0_9 LBB0_4: leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf jmp LBB0_9 LBB0_5: leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf jmp LBB0_9 LBB0_6: leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf jmp LBB0_9 LBB0_7: leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf jmp LBB0_9 LBB0_8: leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf LBB0_9: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_1, LBB0_1-LJTI0_0 .set L0_0_set_2, LBB0_2-LJTI0_0 .set L0_0_set_3, LBB0_3-LJTI0_0 .set L0_0_set_4, LBB0_4-LJTI0_0 .set L0_0_set_5, LBB0_5-LJTI0_0 .set L0_0_set_6, LBB0_6-LJTI0_0 .set L0_0_set_7, LBB0_7-LJTI0_0 LJTI0_0: .long L0_0_set_1 .long L0_0_set_2 .long L0_0_set_3 .long L0_0_set_4 .long L0_0_set_5 .long L0_0_set_6 .long L0_0_set_7 .end_data_region ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter a number between 1 to 7 to check its weekday.\n" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "It's Monday" L_.str.3: ## @.str.3 .asciz "It's Tuesday" L_.str.4: ## @.str.4 .asciz "It's Wednesday" L_.str.5: ## @.str.5 .asciz "It's Thursday" L_.str.6: ## @.str.6 .asciz "It's Friday" L_.str.7: ## @.str.7 .asciz "It's Saturday" L_.str.8: ## @.str.8 .asciz "It's Sunday" L_.str.9: ## @.str.9 .asciz "You have not entered a valid number please enter a valid number.\n" .subsections_via_symbols
the_stack_data/15762247.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, #192 .cfi_def_cfa_offset 192 stp x29, x30, [sp, #176] ; 16-byte Folded Spill add x29, sp, #176 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _keytab@PAGE add x8, x8, _keytab@PAGEOFF add x8, x8, #192 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 wzr, [sp, #64] str w0, [sp, #60] str x1, [sp, #48] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 add x0, sp, #68 mov w1, #100 bl _mgetword adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsb w0, [sp, #68] bl _isalpha subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 add x0, sp, #68 adrp x1, _keytab@PAGE add x1, x1, _keytab@PAGEOFF mov w2, #12 bl _binsearch mov x8, x0 str x8, [sp, #40] subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr x9, [sp, #40] ldr w8, [x9, #8] add w8, w8, #1 str w8, [x9, #8] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_7: adrp x8, _keytab@PAGE add x8, x8, _keytab@PAGEOFF str x8, [sp, #40] b LBB0_8 LBB0_8: ; =>This Inner Loop Header: Depth=1 ldr x9, [sp, #24] ; 8-byte Folded Reload ldr x8, [sp, #40] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_13 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_8 Depth=1 ldr x8, [sp, #40] ldr w8, [x8, #8] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_8 Depth=1 ldr x8, [sp, #40] ldr w8, [x8, #8] ; implicit-def: $x10 mov x10, x8 ldr x8, [sp, #40] ldr x8, [x8] 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 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_8 Depth=1 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_8 Depth=1 ldr x8, [sp, #40] add x8, x8, #16 str x8, [sp, #40] b LBB0_8 LBB0_13: 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_15 b LBB0_14 LBB0_14: bl ___stack_chk_fail LBB0_15: mov w0, #0 ldp x29, x30, [sp, #176] ; 16-byte Folded Reload add sp, sp, #192 ret .cfi_endproc ; -- End function .globl _mgetword ; -- Begin function mgetword .p2align 2 _mgetword: ; @mgetword .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur w1, [x29, #-20] ldur x8, [x29, #-16] str x8, [sp] str wzr, [sp, #8] str wzr, [sp, #12] str wzr, [sp, #16] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 bl _getch str w0, [sp, #24] bl _isspace subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 b LBB1_1 LBB1_3: ldr w8, [sp, #24] subs w8, w8, #47 cset w8, ne tbnz w8, #0, LBB1_8 b LBB1_4 LBB1_4: bl _getch str w0, [sp, #20] subs w8, w0, #42 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: mov w8, #1 str w8, [sp, #16] b LBB1_7 LBB1_6: str wzr, [sp, #16] ldr w0, [sp, #20] bl _ungetch b LBB1_7 LBB1_7: b LBB1_8 LBB1_8: ldr w8, [sp, #24] subs w8, w8, #34 cset w8, ne tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: mov w8, #1 str w8, [sp, #12] b LBB1_10 LBB1_10: ldr w8, [sp, #24] subs w8, w8, #35 cset w8, ne tbnz w8, #0, LBB1_12 b LBB1_11 LBB1_11: mov w8, #1 str w8, [sp, #8] b LBB1_12 LBB1_12: ldr w8, [sp, #24] subs w8, w8, #92 cset w8, ne tbnz w8, #0, LBB1_14 b LBB1_13 LBB1_13: bl _getch str w0, [sp, #24] b LBB1_14 LBB1_14: ldr w8, [sp, #16] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_30 b LBB1_15 LBB1_15: ldr w8, [sp, #12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_30 b LBB1_16 LBB1_16: ldr w8, [sp, #8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_30 b LBB1_17 LBB1_17: ldr w8, [sp, #24] adds w8, w8, #1 cset w8, eq tbnz w8, #0, LBB1_19 b LBB1_18 LBB1_18: ldr w8, [sp, #24] ldr x9, [sp] add x10, x9, #1 str x10, [sp] strb w8, [x9] b LBB1_19 LBB1_19: ldr w0, [sp, #24] bl _isalnum subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB1_22 b LBB1_20 LBB1_20: ldr w8, [sp, #24] subs w8, w8, #95 cset w8, eq tbnz w8, #0, LBB1_22 b LBB1_21 LBB1_21: ldr x8, [sp] strb wzr, [x8] ldr w8, [sp, #24] stur w8, [x29, #-4] b LBB1_58 LBB1_22: b LBB1_23 LBB1_23: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] subs w8, w8, #1 stur w8, [x29, #-20] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB1_29 b LBB1_24 LBB1_24: ; in Loop: Header=BB1_23 Depth=1 bl _getch ldr x8, [sp] strb w0, [x8] ldr x8, [sp] ldrsb w0, [x8] bl _isalnum subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB1_27 b LBB1_25 LBB1_25: ; in Loop: Header=BB1_23 Depth=1 ldr x8, [sp] ldrsb w8, [x8] subs w8, w8, #95 cset w8, eq tbnz w8, #0, LBB1_27 b LBB1_26 LBB1_26: ldr x8, [sp] ldrsb w0, [x8] bl _ungetch b LBB1_29 LBB1_27: ; in Loop: Header=BB1_23 Depth=1 b LBB1_28 LBB1_28: ; in Loop: Header=BB1_23 Depth=1 ldr x8, [sp] add x8, x8, #1 str x8, [sp] b LBB1_23 LBB1_29: ldr x8, [sp] strb wzr, [x8] ldur x8, [x29, #-16] ldrsb w8, [x8] stur w8, [x29, #-4] b LBB1_58 LBB1_30: ldr w8, [sp, #16] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_40 b LBB1_31 LBB1_31: ldr w8, [sp, #24] ldr x9, [sp] add x10, x9, #1 str x10, [sp] strb w8, [x9] ldr w8, [sp, #20] ldr x9, [sp] add x10, x9, #1 str x10, [sp] strb w8, [x9] b LBB1_32 LBB1_32: ; =>This Inner Loop Header: Depth=1 bl _getch str w0, [sp, #24] ldr x8, [sp] add x9, x8, #1 str x9, [sp] strb w0, [x8] ands w8, w0, #0xff cset w8, eq tbnz w8, #0, LBB1_39 b LBB1_33 LBB1_33: ; in Loop: Header=BB1_32 Depth=1 ldr w8, [sp, #24] subs w8, w8, #42 cset w8, ne tbnz w8, #0, LBB1_38 b LBB1_34 LBB1_34: ; in Loop: Header=BB1_32 Depth=1 bl _getch str w0, [sp, #24] subs w8, w0, #47 cset w8, ne tbnz w8, #0, LBB1_36 b LBB1_35 LBB1_35: ldr w8, [sp, #24] ldr x9, [sp] add x10, x9, #1 str x10, [sp] strb w8, [x9] str wzr, [sp, #16] b LBB1_39 LBB1_36: ; in Loop: Header=BB1_32 Depth=1 ldr w0, [sp, #24] bl _ungetch b LBB1_37 LBB1_37: ; in Loop: Header=BB1_32 Depth=1 b LBB1_38 LBB1_38: ; in Loop: Header=BB1_32 Depth=1 b LBB1_32 LBB1_39: ldr x8, [sp] strb wzr, [x8] b LBB1_56 LBB1_40: ldr w8, [sp, #12] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_47 b LBB1_41 LBB1_41: ldr w8, [sp, #24] ldr x9, [sp] add x10, x9, #1 str x10, [sp] strb w8, [x9] b LBB1_42 LBB1_42: ; =>This Inner Loop Header: Depth=1 bl _getch ldr x8, [sp] add x9, x8, #1 str x9, [sp] strb w0, [x8] sxtb w8, w0 subs w8, w8, #34 cset w8, eq tbnz w8, #0, LBB1_46 b LBB1_43 LBB1_43: ; in Loop: Header=BB1_42 Depth=1 ldr x8, [sp] ldrsb w8, [x8] subs w8, w8, #92 cset w8, ne tbnz w8, #0, LBB1_45 b LBB1_44 LBB1_44: ; in Loop: Header=BB1_42 Depth=1 bl _getch ldr x8, [sp] add x9, x8, #1 str x9, [sp] strb w0, [x8] b LBB1_45 LBB1_45: ; in Loop: Header=BB1_42 Depth=1 b LBB1_42 LBB1_46: str wzr, [sp, #12] ldr x8, [sp] strb wzr, [x8] b LBB1_55 LBB1_47: ldr w8, [sp, #8] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_54 b LBB1_48 LBB1_48: ldr w8, [sp, #24] ldr x9, [sp] add x10, x9, #1 str x10, [sp] strb w8, [x9] b LBB1_49 LBB1_49: ; =>This Inner Loop Header: Depth=1 bl _getch ldr x8, [sp] add x9, x8, #1 str x9, [sp] strb w0, [x8] sxtb w8, w0 subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB1_53 b LBB1_50 LBB1_50: ; in Loop: Header=BB1_49 Depth=1 ldr w8, [sp, #24] subs w8, w8, #92 cset w8, ne tbnz w8, #0, LBB1_52 b LBB1_51 LBB1_51: ; in Loop: Header=BB1_49 Depth=1 bl _getch ldr x8, [sp] add x9, x8, #1 str x9, [sp] strb w0, [x8] b LBB1_52 LBB1_52: ; in Loop: Header=BB1_49 Depth=1 b LBB1_49 LBB1_53: str wzr, [sp, #8] ldr x8, [sp] strb wzr, [x8] b LBB1_54 LBB1_54: b LBB1_55 LBB1_55: b LBB1_56 LBB1_56: b LBB1_57 LBB1_57: ldr w8, [sp, #24] stur w8, [x29, #-4] b LBB1_58 LBB1_58: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _binsearch ; -- Begin function binsearch .p2align 2 _binsearch: ; @binsearch .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur x1, [x29, #-24] stur w2, [x29, #-28] ldur x8, [x29, #-24] str x8, [sp, #24] ldur x8, [x29, #-24] ldursw x9, [x29, #-28] add x8, x8, x9, lsl #4 str x8, [sp, #16] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] ldr x9, [sp, #16] subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB2_9 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #24] ldr x9, [sp, #16] ldr x10, [sp, #24] subs x9, x9, x10 mov x10, #16 sdiv x9, x9, x10 mov x10, #2 sdiv x9, x9, x10 add x8, x8, x9, lsl #4 str x8, [sp, #8] ldur x0, [x29, #-16] ldr x8, [sp, #8] ldr x1, [x8] bl _strcmp str w0, [sp, #32] subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #8] str x8, [sp, #16] b LBB2_8 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #32] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #8] add x8, x8, #16 str x8, [sp, #24] b LBB2_7 LBB2_6: ldr x8, [sp, #8] stur x8, [x29, #-8] b LBB2_10 LBB2_7: ; in Loop: Header=BB2_1 Depth=1 b LBB2_8 LBB2_8: ; in Loop: Header=BB2_1 Depth=1 b LBB2_1 LBB2_9: ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB2_10 LBB2_10: ldur x0, [x29, #-8] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _getch ; -- Begin function getch .p2align 2 _getch: ; @getch .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, _bufp@PAGE ldr w8, [x8, _bufp@PAGEOFF] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: adrp x8, _bufp@PAGE ldr w9, [x8, _bufp@PAGEOFF] subs w9, w9, #1 str w9, [x8, _bufp@PAGEOFF] adrp x8, _buf@GOTPAGE ldr x8, [x8, _buf@GOTPAGEOFF] ldrsb w0, [x8, w9, sxtw] stur w0, [x29, #-4] ; 4-byte Folded Spill b LBB3_3 LBB3_2: bl _getchar stur w0, [x29, #-4] ; 4-byte Folded Spill b LBB3_3 LBB3_3: ldur w0, [x29, #-4] ; 4-byte Folded Reload ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _ungetch ; -- Begin function ungetch .p2align 2 _ungetch: ; @ungetch .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, _bufp@PAGE ldr w8, [x8, _bufp@PAGEOFF] subs w8, w8, #100 cset w8, lt tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf b LBB4_3 LBB4_2: ldur w8, [x29, #-4] adrp x11, _bufp@PAGE ldrsw x10, [x11, _bufp@PAGEOFF] mov x9, x10 add w9, w9, #1 str w9, [x11, _bufp@PAGEOFF] adrp x9, _buf@GOTPAGE ldr x9, [x9, _buf@GOTPAGEOFF] strb w8, [x9, x10] b LBB4_3 LBB4_3: 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 "auto" l_.str.1: ; @.str.1 .asciz "break" l_.str.2: ; @.str.2 .asciz "case" l_.str.3: ; @.str.3 .asciz "char" l_.str.4: ; @.str.4 .asciz "const" l_.str.5: ; @.str.5 .asciz "continue" l_.str.6: ; @.str.6 .asciz "default" l_.str.7: ; @.str.7 .asciz "printf" l_.str.8: ; @.str.8 .asciz "unsigned" l_.str.9: ; @.str.9 .asciz "void" l_.str.10: ; @.str.10 .asciz "volatile" l_.str.11: ; @.str.11 .asciz "while" .section __DATA,__data .globl _keytab ; @keytab .p2align 3 _keytab: .quad l_.str .long 0 ; 0x0 .space 4 .quad l_.str.1 .long 0 ; 0x0 .space 4 .quad l_.str.2 .long 0 ; 0x0 .space 4 .quad l_.str.3 .long 0 ; 0x0 .space 4 .quad l_.str.4 .long 0 ; 0x0 .space 4 .quad l_.str.5 .long 0 ; 0x0 .space 4 .quad l_.str.6 .long 0 ; 0x0 .space 4 .quad l_.str.7 .long 0 ; 0x0 .space 4 .quad l_.str.8 .long 0 ; 0x0 .space 4 .quad l_.str.9 .long 0 ; 0x0 .space 4 .quad l_.str.10 .long 0 ; 0x0 .space 4 .quad l_.str.11 .long 0 ; 0x0 .space 4 .section __TEXT,__cstring,cstring_literals l_.str.12: ; @.str.12 .asciz "%4d %s\n" .globl _bufp ; @bufp .zerofill __DATA,__common,_bufp,4,2 .comm _buf,100,0 ; @buf l_.str.13: ; @.str.13 .asciz "ungetch: too many characters \n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $144, %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) LBB0_1: ## =>This Inner Loop Header: Depth=1 leaq -112(%rbp), %rdi movl $100, %esi callq _mgetword cmpl $-1, %eax je LBB0_7 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movsbl -112(%rbp), %edi callq _isalpha cmpl $0, %eax je LBB0_6 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 leaq -112(%rbp), %rdi leaq _keytab(%rip), %rsi movl $12, %edx callq _binsearch movq %rax, -136(%rbp) cmpq $0, %rax je LBB0_5 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 movq -136(%rbp), %rax movl 8(%rax), %ecx addl $1, %ecx movl %ecx, 8(%rax) LBB0_5: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_6 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_7: leaq _keytab(%rip), %rax movq %rax, -136(%rbp) LBB0_8: ## =>This Inner Loop Header: Depth=1 leaq _keytab(%rip), %rax addq $192, %rax cmpq %rax, -136(%rbp) jae LBB0_13 ## %bb.9: ## in Loop: Header=BB0_8 Depth=1 movq -136(%rbp), %rax cmpl $0, 8(%rax) jle LBB0_11 ## %bb.10: ## in Loop: Header=BB0_8 Depth=1 movq -136(%rbp), %rax movl 8(%rax), %esi movq -136(%rbp), %rax movq (%rax), %rdx leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf LBB0_11: ## in Loop: Header=BB0_8 Depth=1 jmp LBB0_12 LBB0_12: ## in Loop: Header=BB0_8 Depth=1 movq -136(%rbp), %rax addq $16, %rax movq %rax, -136(%rbp) jmp LBB0_8 LBB0_13: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_15 ## %bb.14: xorl %eax, %eax addq $144, %rsp popq %rbp retq LBB0_15: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _mgetword ## -- Begin function mgetword .p2align 4, 0x90 _mgetword: ## @mgetword .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movq -16(%rbp), %rax movq %rax, -48(%rbp) movl $0, -40(%rbp) movl $0, -36(%rbp) movl $0, -32(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 callq _getch movl %eax, %edi movl %edi, -24(%rbp) callq _isspace cmpl $0, %eax je LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_1 LBB1_3: cmpl $47, -24(%rbp) jne LBB1_8 ## %bb.4: callq _getch movl %eax, -28(%rbp) cmpl $42, %eax jne LBB1_6 ## %bb.5: movl $1, -32(%rbp) jmp LBB1_7 LBB1_6: movl $0, -32(%rbp) movl -28(%rbp), %edi callq _ungetch LBB1_7: jmp LBB1_8 LBB1_8: cmpl $34, -24(%rbp) jne LBB1_10 ## %bb.9: movl $1, -36(%rbp) LBB1_10: cmpl $35, -24(%rbp) jne LBB1_12 ## %bb.11: movl $1, -40(%rbp) LBB1_12: cmpl $92, -24(%rbp) jne LBB1_14 ## %bb.13: callq _getch movl %eax, -24(%rbp) LBB1_14: cmpl $0, -32(%rbp) jne LBB1_30 ## %bb.15: cmpl $0, -36(%rbp) jne LBB1_30 ## %bb.16: cmpl $0, -40(%rbp) jne LBB1_30 ## %bb.17: cmpl $-1, -24(%rbp) je LBB1_19 ## %bb.18: movl -24(%rbp), %eax movb %al, %cl movq -48(%rbp), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, -48(%rbp) movb %cl, (%rax) LBB1_19: movl -24(%rbp), %edi callq _isalnum cmpl $0, %eax jne LBB1_22 ## %bb.20: cmpl $95, -24(%rbp) je LBB1_22 ## %bb.21: movq -48(%rbp), %rax movb $0, (%rax) movl -24(%rbp), %eax movl %eax, -4(%rbp) jmp LBB1_58 LBB1_22: jmp LBB1_23 LBB1_23: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax addl $-1, %eax movl %eax, -20(%rbp) cmpl $0, %eax jle LBB1_29 ## %bb.24: ## in Loop: Header=BB1_23 Depth=1 callq _getch movb %al, %cl movq -48(%rbp), %rax movb %cl, (%rax) movq -48(%rbp), %rax movsbl (%rax), %edi callq _isalnum cmpl $0, %eax jne LBB1_27 ## %bb.25: ## in Loop: Header=BB1_23 Depth=1 movq -48(%rbp), %rax movsbl (%rax), %eax cmpl $95, %eax je LBB1_27 ## %bb.26: movq -48(%rbp), %rax movsbl (%rax), %edi callq _ungetch jmp LBB1_29 LBB1_27: ## in Loop: Header=BB1_23 Depth=1 jmp LBB1_28 LBB1_28: ## in Loop: Header=BB1_23 Depth=1 movq -48(%rbp), %rax addq $1, %rax movq %rax, -48(%rbp) jmp LBB1_23 LBB1_29: movq -48(%rbp), %rax movb $0, (%rax) movq -16(%rbp), %rax movsbl (%rax), %eax movl %eax, -4(%rbp) jmp LBB1_58 LBB1_30: cmpl $1, -32(%rbp) jne LBB1_40 ## %bb.31: movl -24(%rbp), %eax movb %al, %cl movq -48(%rbp), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, -48(%rbp) movb %cl, (%rax) movl -28(%rbp), %eax movb %al, %cl movq -48(%rbp), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, -48(%rbp) movb %cl, (%rax) LBB1_32: ## =>This Inner Loop Header: Depth=1 callq _getch movl %eax, -24(%rbp) ## kill: def $al killed $al killed $eax movq -48(%rbp), %rcx movq %rcx, %rdx addq $1, %rdx movq %rdx, -48(%rbp) movb %al, (%rcx) cmpb $0, %al je LBB1_39 ## %bb.33: ## in Loop: Header=BB1_32 Depth=1 cmpl $42, -24(%rbp) jne LBB1_38 ## %bb.34: ## in Loop: Header=BB1_32 Depth=1 callq _getch movl %eax, -24(%rbp) cmpl $47, %eax jne LBB1_36 ## %bb.35: movl -24(%rbp), %eax movb %al, %cl movq -48(%rbp), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, -48(%rbp) movb %cl, (%rax) movl $0, -32(%rbp) jmp LBB1_39 LBB1_36: ## in Loop: Header=BB1_32 Depth=1 movl -24(%rbp), %edi callq _ungetch ## %bb.37: ## in Loop: Header=BB1_32 Depth=1 jmp LBB1_38 LBB1_38: ## in Loop: Header=BB1_32 Depth=1 jmp LBB1_32 LBB1_39: movq -48(%rbp), %rax movb $0, (%rax) jmp LBB1_56 LBB1_40: cmpl $1, -36(%rbp) jne LBB1_47 ## %bb.41: movl -24(%rbp), %eax movb %al, %cl movq -48(%rbp), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, -48(%rbp) movb %cl, (%rax) LBB1_42: ## =>This Inner Loop Header: Depth=1 callq _getch ## kill: def $al killed $al killed $eax movq -48(%rbp), %rcx movq %rcx, %rdx addq $1, %rdx movq %rdx, -48(%rbp) movb %al, (%rcx) movsbl %al, %eax cmpl $34, %eax je LBB1_46 ## %bb.43: ## in Loop: Header=BB1_42 Depth=1 movq -48(%rbp), %rax movsbl (%rax), %eax cmpl $92, %eax jne LBB1_45 ## %bb.44: ## in Loop: Header=BB1_42 Depth=1 callq _getch movb %al, %cl movq -48(%rbp), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, -48(%rbp) movb %cl, (%rax) LBB1_45: ## in Loop: Header=BB1_42 Depth=1 jmp LBB1_42 LBB1_46: movl $0, -36(%rbp) movq -48(%rbp), %rax movb $0, (%rax) jmp LBB1_55 LBB1_47: cmpl $1, -40(%rbp) jne LBB1_54 ## %bb.48: movl -24(%rbp), %eax movb %al, %cl movq -48(%rbp), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, -48(%rbp) movb %cl, (%rax) LBB1_49: ## =>This Inner Loop Header: Depth=1 callq _getch ## kill: def $al killed $al killed $eax movq -48(%rbp), %rcx movq %rcx, %rdx addq $1, %rdx movq %rdx, -48(%rbp) movb %al, (%rcx) movsbl %al, %eax cmpl $10, %eax je LBB1_53 ## %bb.50: ## in Loop: Header=BB1_49 Depth=1 cmpl $92, -24(%rbp) jne LBB1_52 ## %bb.51: ## in Loop: Header=BB1_49 Depth=1 callq _getch movb %al, %cl movq -48(%rbp), %rax movq %rax, %rdx addq $1, %rdx movq %rdx, -48(%rbp) movb %cl, (%rax) LBB1_52: ## in Loop: Header=BB1_49 Depth=1 jmp LBB1_49 LBB1_53: movl $0, -40(%rbp) movq -48(%rbp), %rax movb $0, (%rax) LBB1_54: jmp LBB1_55 LBB1_55: jmp LBB1_56 LBB1_56: jmp LBB1_57 LBB1_57: movl -24(%rbp), %eax movl %eax, -4(%rbp) LBB1_58: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _binsearch ## -- Begin function binsearch .p2align 4, 0x90 _binsearch: ## @binsearch .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movl %edx, -28(%rbp) movq -24(%rbp), %rax movq %rax, -40(%rbp) movq -24(%rbp), %rax movslq -28(%rbp), %rcx shlq $4, %rcx addq %rcx, %rax movq %rax, -48(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movq -40(%rbp), %rax cmpq -48(%rbp), %rax jae LBB2_9 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -40(%rbp), %rax movq %rax, -64(%rbp) ## 8-byte Spill movq -48(%rbp), %rax movq -40(%rbp), %rcx subq %rcx, %rax sarq $4, %rax movl $2, %ecx cqto idivq %rcx movq %rax, %rcx movq -64(%rbp), %rax ## 8-byte Reload shlq $4, %rcx addq %rcx, %rax movq %rax, -56(%rbp) movq -16(%rbp), %rdi movq -56(%rbp), %rax movq (%rax), %rsi callq _strcmp movl %eax, -32(%rbp) cmpl $0, %eax jge LBB2_4 ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movq -56(%rbp), %rax movq %rax, -48(%rbp) jmp LBB2_8 LBB2_4: ## in Loop: Header=BB2_1 Depth=1 cmpl $0, -32(%rbp) jle LBB2_6 ## %bb.5: ## in Loop: Header=BB2_1 Depth=1 movq -56(%rbp), %rax addq $16, %rax movq %rax, -40(%rbp) jmp LBB2_7 LBB2_6: movq -56(%rbp), %rax movq %rax, -8(%rbp) jmp LBB2_10 LBB2_7: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_8 LBB2_8: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_1 LBB2_9: movq $0, -8(%rbp) LBB2_10: movq -8(%rbp), %rax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _getch ## -- Begin function getch .p2align 4, 0x90 _getch: ## @getch .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp cmpl $0, _bufp(%rip) jle LBB3_2 ## %bb.1: movl _bufp(%rip), %eax addl $-1, %eax movl %eax, _bufp(%rip) movslq %eax, %rcx movq _buf@GOTPCREL(%rip), %rax movsbl (%rax,%rcx), %eax movl %eax, -4(%rbp) ## 4-byte Spill jmp LBB3_3 LBB3_2: callq _getchar movl %eax, -4(%rbp) ## 4-byte Spill LBB3_3: movl -4(%rbp), %eax ## 4-byte Reload addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _ungetch ## -- Begin function ungetch .p2align 4, 0x90 _ungetch: ## @ungetch .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) cmpl $100, _bufp(%rip) jl LBB4_2 ## %bb.1: leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf jmp LBB4_3 LBB4_2: movl -4(%rbp), %eax movb %al, %dl movl _bufp(%rip), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, _bufp(%rip) movslq %eax, %rcx movq _buf@GOTPCREL(%rip), %rax movb %dl, (%rax,%rcx) LBB4_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "auto" L_.str.1: ## @.str.1 .asciz "break" L_.str.2: ## @.str.2 .asciz "case" L_.str.3: ## @.str.3 .asciz "char" L_.str.4: ## @.str.4 .asciz "const" L_.str.5: ## @.str.5 .asciz "continue" L_.str.6: ## @.str.6 .asciz "default" L_.str.7: ## @.str.7 .asciz "printf" L_.str.8: ## @.str.8 .asciz "unsigned" L_.str.9: ## @.str.9 .asciz "void" L_.str.10: ## @.str.10 .asciz "volatile" L_.str.11: ## @.str.11 .asciz "while" .section __DATA,__data .globl _keytab ## @keytab .p2align 4 _keytab: .quad L_.str .long 0 ## 0x0 .space 4 .quad L_.str.1 .long 0 ## 0x0 .space 4 .quad L_.str.2 .long 0 ## 0x0 .space 4 .quad L_.str.3 .long 0 ## 0x0 .space 4 .quad L_.str.4 .long 0 ## 0x0 .space 4 .quad L_.str.5 .long 0 ## 0x0 .space 4 .quad L_.str.6 .long 0 ## 0x0 .space 4 .quad L_.str.7 .long 0 ## 0x0 .space 4 .quad L_.str.8 .long 0 ## 0x0 .space 4 .quad L_.str.9 .long 0 ## 0x0 .space 4 .quad L_.str.10 .long 0 ## 0x0 .space 4 .quad L_.str.11 .long 0 ## 0x0 .space 4 .section __TEXT,__cstring,cstring_literals L_.str.12: ## @.str.12 .asciz "%4d %s\n" .globl _bufp ## @bufp .zerofill __DATA,__common,_bufp,4,2 .comm _buf,100,4 ## @buf L_.str.13: ## @.str.13 .asciz "ungetch: too many characters \n" .subsections_via_symbols
the_stack_data/1232709.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .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 d0, [x29, #-8] ldur d0, [x29, #-8] add x0, sp, #16 add x1, sp, #8 bl _sincos ldr d0, [sp, #16] ldr d1, [sp, #8] fadd d0, d0, d1 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 d0, [x29, #-8] ldur d0, [x29, #-8] add x0, sp, #16 mov x1, sp bl _sincos ldur d0, [x29, #-8] bl _cos str d0, [sp, #8] ldr d0, [sp, #16] ldr d1, [sp, #8] fadd d0, d0, d1 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _f3 ; -- Begin function f3 .p2align 2 _f3: ; @f3 .cfi_startproc ; %bb.0: sub sp, sp, #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] ldur d0, [x29, #-8] mov x0, sp add x1, sp, #8 bl _sincos ldur d0, [x29, #-8] bl _sin str d0, [sp, #16] ldr d0, [sp, #16] ldr d1, [sp, #8] fadd d0, d0, d1 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 _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 $32, %rsp movsd %xmm0, -8(%rbp) movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq -16(%rbp), %rdi leaq -24(%rbp), %rsi callq _sincos movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -24(%rbp), %xmm0 addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _f2 ## -- Begin function f2 .p2align 4, 0x90 _f2: ## @f2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movsd %xmm0, -8(%rbp) movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq -16(%rbp), %rdi leaq -32(%rbp), %rsi callq _sincos movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero callq _cos movsd %xmm0, -24(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -24(%rbp), %xmm0 addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _f3 ## -- Begin function f3 .p2align 4, 0x90 _f3: ## @f3 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movsd %xmm0, -8(%rbp) movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq -32(%rbp), %rdi leaq -24(%rbp), %rsi callq _sincos movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero callq _sin movsd %xmm0, -16(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -24(%rbp), %xmm0 addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/154828704.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, #6832 movk w9, #6, lsl #16 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #97, lsl #12 ; =397312 sub sp, sp, #2736 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #36] mov x9, sp add x8, sp, #32 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf str wzr, [sp, #28] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] ldr w9, [sp, #32] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #28] add x8, sp, #40 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, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_1 LBB0_4: mov w8, #-1 str w8, [sp, #24] ldr w8, [sp, #32] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: str wzr, [sp, #24] b LBB0_20 LBB0_6: ldr w8, [sp, #44] ldr w9, [sp, #40] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: str wzr, [sp, #24] b LBB0_19 LBB0_8: ldr w8, [sp, #32] subs w8, w8, #2 add x9, sp, #40 ldr w8, [x9, w8, sxtw #2] ldr w10, [sp, #32] subs w10, w10, #1 ldr w9, [x9, w10, sxtw #2] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ldr w8, [sp, #32] subs w8, w8, #1 str w8, [sp, #24] b LBB0_18 LBB0_10: mov w8, #1 str w8, [sp, #20] b LBB0_11 LBB0_11: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] ldr w9, [sp, #32] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_17 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=1 ldr w8, [sp, #20] subs w8, w8, #1 add x9, sp, #40 ldr w8, [x9, w8, sxtw #2] ldrsw x10, [sp, #20] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_15 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_11 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 add x9, sp, #40 ldr w8, [x9, w8, sxtw #2] ldrsw x10, [sp, #20] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: ldr w8, [sp, #20] str w8, [sp, #24] b LBB0_17 LBB0_15: ; in Loop: Header=BB0_11 Depth=1 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_11 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_11 LBB0_17: b LBB0_18 LBB0_18: b LBB0_19 LBB0_19: b LBB0_20 LBB0_20: ldr w9, [sp, #24] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr w8, [sp, #36] str w8, [sp, #16] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_22 b LBB0_21 LBB0_21: bl ___stack_chk_fail LBB0_22: ldr w0, [sp, #16] ; 4-byte Folded Reload add sp, sp, #97, lsl #12 ; =397312 add sp, sp, #2736 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" .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 $400048, %eax ## imm = 0x61AB0 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -400020(%rbp) leaq L_.str(%rip), %rdi leaq -400024(%rbp), %rsi movb $0, %al callq _scanf movl $0, -400028(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -400028(%rbp), %eax cmpl -400024(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -400028(%rbp), %rax leaq -400016(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -400028(%rbp), %eax addl $1, %eax movl %eax, -400028(%rbp) jmp LBB0_1 LBB0_4: movl $-1, -400032(%rbp) cmpl $1, -400024(%rbp) jne LBB0_6 ## %bb.5: movl $0, -400032(%rbp) jmp LBB0_20 LBB0_6: movl -400012(%rbp), %eax cmpl -400016(%rbp), %eax jl LBB0_8 ## %bb.7: movl $0, -400032(%rbp) jmp LBB0_19 LBB0_8: movl -400024(%rbp), %eax subl $2, %eax cltq movl -400016(%rbp,%rax,4), %eax movl -400024(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx cmpl -400016(%rbp,%rcx,4), %eax jl LBB0_10 ## %bb.9: movl -400024(%rbp), %eax subl $1, %eax movl %eax, -400032(%rbp) jmp LBB0_18 LBB0_10: movl $1, -400036(%rbp) LBB0_11: ## =>This Inner Loop Header: Depth=1 movl -400036(%rbp), %eax movl -400024(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB0_17 ## %bb.12: ## in Loop: Header=BB0_11 Depth=1 movl -400036(%rbp), %eax subl $1, %eax cltq movl -400016(%rbp,%rax,4), %eax movslq -400036(%rbp), %rcx cmpl -400016(%rbp,%rcx,4), %eax jl LBB0_15 ## %bb.13: ## in Loop: Header=BB0_11 Depth=1 movl -400036(%rbp), %eax addl $1, %eax cltq movl -400016(%rbp,%rax,4), %eax movslq -400036(%rbp), %rcx cmpl -400016(%rbp,%rcx,4), %eax jl LBB0_15 ## %bb.14: movl -400036(%rbp), %eax movl %eax, -400032(%rbp) jmp LBB0_17 LBB0_15: ## in Loop: Header=BB0_11 Depth=1 jmp LBB0_16 LBB0_16: ## in Loop: Header=BB0_11 Depth=1 movl -400036(%rbp), %eax addl $1, %eax movl %eax, -400036(%rbp) jmp LBB0_11 LBB0_17: jmp LBB0_18 LBB0_18: jmp LBB0_19 LBB0_19: jmp LBB0_20 LBB0_20: movl -400032(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -400020(%rbp), %eax movl %eax, -400040(%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 -400040(%rbp), %eax ## 4-byte Reload addq $400048, %rsp ## imm = 0x61AB0 popq %rbp retq LBB0_22: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" .subsections_via_symbols
the_stack_data/400888.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _recursive ; -- Begin function recursive .p2align 2 _recursive: ; @recursive .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] str x4, [sp] ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur w8, [x29, #-4] ldr x9, [sp, #8] ldr x12, [sp] ldrsw x10, [x12] mov x11, x10 add w11, w11, #1 str w11, [x12] str w8, [x9, x10, lsl #2] b LBB0_7 LBB0_2: ldur w8, [x29, #-4] mov w10, #10 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 ldur w9, [x29, #-12] add w8, w8, w9 subs w8, w8, #9 cset w8, gt tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldur w8, [x29, #-4] mov w11, #10 mul w8, w8, w11 ldur w9, [x29, #-4] sdiv w10, w9, w11 mul w10, w10, w11 subs w9, w9, w10 add w8, w8, w9 ldur w9, [x29, #-12] add w0, w8, w9 ldur w8, [x29, #-8] subs w1, w8, #1 ldur w2, [x29, #-12] ldr x3, [sp, #8] ldr x4, [sp] bl _recursive b LBB0_4 LBB0_4: ldur w8, [x29, #-4] mov w10, #10 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 ldur w9, [x29, #-12] subs w8, w8, w9 subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_7 b LBB0_5 LBB0_5: ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ldur w8, [x29, #-4] mov w11, #10 mul w8, w8, w11 ldur w9, [x29, #-4] sdiv w10, w9, w11 mul w10, w10, w11 subs w9, w9, w10 add w8, w8, w9 ldur w9, [x29, #-12] subs w0, w8, w9 ldur w8, [x29, #-8] subs w1, w8, #1 ldur w2, [x29, #-12] ldr x3, [sp, #8] ldr x4, [sp] bl _recursive b LBB0_7 LBB0_7: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _numsSameConsecDiff ; -- Begin function numsSameConsecDiff .p2align 2 _numsSameConsecDiff: ; @numsSameConsecDiff .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] stur w1, [x29, #-16] str x2, [sp, #24] mov x0, #8000 bl _malloc str x0, [sp, #16] ldr x8, [sp, #24] str wzr, [x8] ldur w8, [x29, #-12] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB1_7 LBB1_2: mov w8, #1 str w8, [sp, #12] b LBB1_3 LBB1_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #9 cset w8, gt tbnz w8, #0, LBB1_6 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=1 ldr w0, [sp, #12] ldur w8, [x29, #-12] subs w1, w8, #1 ldur w2, [x29, #-16] ldr x3, [sp, #16] ldr x4, [sp, #24] bl _recursive b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_3 LBB1_6: ldr x8, [sp, #16] stur x8, [x29, #-8] b LBB1_7 LBB1_7: ldur x0, [x29, #-8] 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 _recursive ## -- Begin function recursive .p2align 4, 0x90 _recursive: ## @recursive .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl %edx, -12(%rbp) movq %rcx, -24(%rbp) movq %r8, -32(%rbp) cmpl $0, -8(%rbp) jne LBB0_2 ## %bb.1: movl -4(%rbp), %edx movq -24(%rbp), %rax movq -32(%rbp), %rsi movl (%rsi), %ecx movl %ecx, %edi addl $1, %edi movl %edi, (%rsi) movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) jmp LBB0_7 LBB0_2: movl -4(%rbp), %eax movl $10, %ecx cltd idivl %ecx addl -12(%rbp), %edx cmpl $9, %edx jg LBB0_4 ## %bb.3: imull $10, -4(%rbp), %edi movl -4(%rbp), %eax movl $10, %ecx cltd idivl %ecx addl %edx, %edi addl -12(%rbp), %edi movl -8(%rbp), %esi subl $1, %esi movl -12(%rbp), %edx movq -24(%rbp), %rcx movq -32(%rbp), %r8 callq _recursive LBB0_4: movl -4(%rbp), %eax movl $10, %ecx cltd idivl %ecx subl -12(%rbp), %edx cmpl $0, %edx jl LBB0_7 ## %bb.5: cmpl $0, -12(%rbp) jle LBB0_7 ## %bb.6: imull $10, -4(%rbp), %edi movl -4(%rbp), %eax movl $10, %ecx cltd idivl %ecx addl %edx, %edi subl -12(%rbp), %edi movl -8(%rbp), %esi subl $1, %esi movl -12(%rbp), %edx movq -24(%rbp), %rcx movq -32(%rbp), %r8 callq _recursive LBB0_7: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _numsSameConsecDiff ## -- Begin function numsSameConsecDiff .p2align 4, 0x90 _numsSameConsecDiff: ## @numsSameConsecDiff .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) movl %esi, -16(%rbp) movq %rdx, -24(%rbp) movl $8000, %edi ## imm = 0x1F40 callq _malloc movq %rax, -32(%rbp) movq -24(%rbp), %rax movl $0, (%rax) cmpl $2, -12(%rbp) jge LBB1_2 ## %bb.1: movq $0, -8(%rbp) jmp LBB1_7 LBB1_2: movl $1, -36(%rbp) LBB1_3: ## =>This Inner Loop Header: Depth=1 cmpl $9, -36(%rbp) jg LBB1_6 ## %bb.4: ## in Loop: Header=BB1_3 Depth=1 movl -36(%rbp), %edi movl -12(%rbp), %esi subl $1, %esi movl -16(%rbp), %edx movq -32(%rbp), %rcx movq -24(%rbp), %r8 callq _recursive ## %bb.5: ## in Loop: Header=BB1_3 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB1_3 LBB1_6: movq -32(%rbp), %rax movq %rax, -8(%rbp) LBB1_7: movq -8(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/765916.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___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 wzr, [x29, #-28] stur w0, [x29, #-32] stur x1, [x29, #-40] ldur w8, [x29, #-32] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x8, [sp, #48] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-28] b LBB0_13 LBB0_2: ldur w8, [x29, #-32] subs w8, w8, #3 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr x8, [sp, #48] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-28] b LBB0_13 LBB0_4: b LBB0_5 LBB0_5: stur xzr, [x29, #-24] stur xzr, [x29, #-16] ldur x8, [x29, #-40] ldr x8, [x8, #8] str x8, [sp, #40] ; 8-byte Folded Spill ldur w8, [x29, #-32] subs w8, w8, #3 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ldur x8, [x29, #-40] ldr x8, [x8, #16] str x8, [sp, #32] ; 8-byte Folded Spill b LBB0_8 LBB0_7: mov x8, #0 str x8, [sp, #32] ; 8-byte Folded Spill b LBB0_8 LBB0_8: ldr x0, [sp, #40] ; 8-byte Folded Reload ldr x3, [sp, #32] ; 8-byte Folded Reload mov w1, #0 sub x2, x29, #24 bl _allocate_port subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ldr x8, [sp, #48] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-28] b LBB0_13 LBB0_10: ldur w8, [x29, #-20] mov x0, x8 bl _inet_ntoa str x0, [sp, #24] ; 8-byte Folded Spill b LBB0_11 LBB0_11: ldurh w0, [x29, #-22] bl __OSSwapInt16 str w0, [sp, #20] ; 4-byte Folded Spill b LBB0_12 LBB0_12: ldr w10, [sp, #20] ; 4-byte Folded Reload ldr x8, [sp, #24] ; 8-byte Folded Reload mov x9, sp str x8, [x9] ; implicit-def: $x8 mov x8, x10 and x8, x8, #0xffff and x8, x8, #0xffff str x8, [x9, #8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf stur wzr, [x29, #-28] b LBB0_13 LBB0_13: ldur w8, [x29, #-28] str w8, [sp, #16] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: bl ___stack_chk_fail LBB0_15: ldr w0, [sp, #16] ; 4-byte Folded Reload ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function allocate_port _allocate_port: ; @allocate_port .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur x0, [x29, #-40] sturh w1, [x29, #-42] str x2, [sp, #40] str x3, [sp, #32] bl ___error str wzr, [x0] mov w0, #2 mov w1, #1 mov w2, #6 bl _socket str w0, [sp, #28] ldr w8, [sp, #28] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _perror mov w8, #-1 stur w8, [x29, #-28] b LBB1_17 LBB1_2: bl ___error str wzr, [x0] add x3, sp, #24 mov w8, #1 str w8, [sp, #24] ldr w0, [sp, #28] mov w1, #65535 mov w4, #4 mov x2, x4 bl _setsockopt subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _perror mov w8, #-1 stur w8, [x29, #-28] b LBB1_17 LBB1_4: bl ___error str wzr, [x0] ldur x1, [x29, #-40] ldurh w2, [x29, #-42] sub x0, x29, #24 bl _resolve_host_port subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: mov w8, #-1 stur w8, [x29, #-28] b LBB1_17 LBB1_6: bl ___error str wzr, [x0] ldr w0, [sp, #28] sub x1, x29, #24 mov w2, #16 bl _bind subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _perror mov w8, #-1 stur w8, [x29, #-28] b LBB1_17 LBB1_8: add x8, sp, #20 str x8, [sp, #8] ; 8-byte Folded Spill mov w8, #16 str w8, [sp, #20] ldr x0, [sp, #40] ldr w8, [sp, #20] mov x2, x8 mov w1, #0 mov x3, #-1 bl ___memset_chk bl ___error ldr x2, [sp, #8] ; 8-byte Folded Reload str wzr, [x0] ldr w0, [sp, #28] ldr x1, [sp, #40] bl _getsockname subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _perror mov w8, #-1 stur w8, [x29, #-28] b LBB1_17 LBB1_10: bl ___error str wzr, [x0] ldr w0, [sp, #28] bl _close subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_12 b LBB1_11 LBB1_11: adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _perror mov w8, #-1 stur w8, [x29, #-28] b LBB1_17 LBB1_12: ldr x8, [sp, #40] ldr w8, [x8, #4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_16 b LBB1_13 LBB1_13: ldr x8, [sp, #40] ldrh w8, [x8, #2] strh w8, [sp, #18] ldr x0, [sp, #32] ldr x1, [sp, #40] ldr w2, [sp, #20] bl _resolve_primary_address subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_15 b LBB1_14 LBB1_14: 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, #-28] b LBB1_17 LBB1_15: ldrh w8, [sp, #18] ldr x9, [sp, #40] strh w8, [x9, #2] b LBB1_16 LBB1_16: stur wzr, [x29, #-28] b LBB1_17 LBB1_17: ldur w8, [x29, #-28] str w8, [sp, #4] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_19 b LBB1_18 LBB1_18: bl ___stack_chk_fail LBB1_19: ldr w0, [sp, #4] ; 4-byte Folded Reload ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .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 .p2align 2 ; -- Begin function resolve_host_port _resolve_host_port: ; @resolve_host_port .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] sturh w2, [x29, #-26] ldur x0, [x29, #-24] bl _gethostbyname str x0, [sp, #40] adrp x8, _h_errno@GOTPAGE ldr x8, [x8, _h_errno@GOTPAGEOFF] str wzr, [x8] ldr x8, [sp, #40] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x8, [x8] str x8, [sp, #32] ; 8-byte Folded Spill adrp x8, _h_errno@GOTPAGE ldr x8, [x8, _h_errno@GOTPAGEOFF] ldr w0, [x8] bl _hstrerror mov x8, x0 ldr x0, [sp, #32] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x1, l_.str.10@PAGE add x1, x1, l_.str.10@PAGEOFF bl _fprintf mov w8, #-1 stur w8, [x29, #-4] b LBB3_5 LBB3_2: ldur x0, [x29, #-16] mov w1, #0 mov x2, #16 mov x3, #-1 str x3, [sp, #24] ; 8-byte Folded Spill bl ___memset_chk ldr x3, [sp, #24] ; 8-byte Folded Reload ldur x9, [x29, #-16] mov w8, #2 strb w8, [x9, #1] ldur x8, [x29, #-16] add x0, x8, #4 ldr x8, [sp, #40] ldr x8, [x8, #24] ldr x1, [x8] ldr x8, [sp, #40] ldrsw x2, [x8, #20] bl ___memcpy_chk b LBB3_3 LBB3_3: ldurh w0, [x29, #-26] bl __OSSwapInt16 and w8, w0, #0xffff str w8, [sp, #20] ; 4-byte Folded Spill b LBB3_4 LBB3_4: ldr w8, [sp, #20] ; 4-byte Folded Reload ldur x9, [x29, #-16] strh w8, [x9, #2] stur wzr, [x29, #-4] b LBB3_5 LBB3_5: ldur w0, [x29, #-4] ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function resolve_primary_address _resolve_primary_address: ; @resolve_primary_address .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 x0, [sp, #40] str x1, [sp, #32] str w2, [sp, #28] bl ___error str wzr, [x0] mov w1, #2 mov x0, x1 mov w2, #17 bl _socket str w0, [sp, #24] ldr w8, [sp, #24] subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _perror mov w8, #-1 stur w8, [x29, #-28] b LBB4_14 LBB4_2: adrp x8, l_.str.12@PAGE add x8, x8, l_.str.12@PAGEOFF str x8, [sp, #16] ldr x8, [sp, #40] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB4_5 b LBB4_3 LBB4_3: ldr x0, [sp, #40] bl _strlen subs x8, x0, #0 cset w8, ls tbnz w8, #0, LBB4_5 b LBB4_4 LBB4_4: ldr x8, [sp, #40] str x8, [sp, #16] b LBB4_5 LBB4_5: mov w8, #53 strh w8, [sp, #14] sub x8, x29, #24 stur xzr, [x29, #-24] stur xzr, [x29, #-16] mov w9, #2 sturb w9, [x29, #-23] mov w9, #13568 sturh w9, [x29, #-22] ldr x0, [sp, #16] add x1, x8, #4 bl _inet_aton subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB4_7 b LBB4_6 LBB4_6: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldr x8, [sp, #16] mov x9, sp str x8, [x9] adrp x1, l_.str.13@PAGE add x1, x1, l_.str.13@PAGEOFF bl _fprintf mov w8, #-1 stur w8, [x29, #-28] b LBB4_14 LBB4_7: bl ___error str wzr, [x0] ldr w0, [sp, #24] sub x1, x29, #24 mov w2, #16 bl _connect subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB4_9 b LBB4_8 LBB4_8: adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _perror mov w8, #-1 stur w8, [x29, #-28] b LBB4_14 LBB4_9: bl ___error str wzr, [x0] ldr w0, [sp, #24] ldr x1, [sp, #32] add x2, sp, #28 bl _getsockname subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB4_11 b LBB4_10 LBB4_10: adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _perror mov w8, #-1 stur w8, [x29, #-28] b LBB4_14 LBB4_11: bl ___error str wzr, [x0] ldr w0, [sp, #24] bl _close subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB4_13 b LBB4_12 LBB4_12: adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _perror mov w8, #-1 stur w8, [x29, #-28] b LBB4_14 LBB4_13: stur wzr, [x29, #-28] b LBB4_14 LBB4_14: ldur w8, [x29, #-28] str w8, [sp, #8] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB4_16 b LBB4_15 LBB4_15: bl ___stack_chk_fail LBB4_16: ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "error: no bind address specified\n" l_.str.1: ; @.str.1 .asciz "error: superfluous arguments specified\n" l_.str.2: ; @.str.2 .asciz "error: failed to allocate port\n" l_.str.3: ; @.str.3 .asciz "%s\t%hu\n" l_.str.4: ; @.str.4 .asciz "socket()" l_.str.5: ; @.str.5 .asciz "setsockopt()" l_.str.6: ; @.str.6 .asciz "bind()" l_.str.7: ; @.str.7 .asciz "getsockname()" l_.str.8: ; @.str.8 .asciz "close()" l_.str.9: ; @.str.9 .asciz "error: failed to resolve primary address\n" l_.str.10: ; @.str.10 .asciz "Error: gethostbyname(): %s\n" l_.str.11: ; @.str.11 .asciz "resolve_primary_address: socket()" l_.str.12: ; @.str.12 .asciz "192.0.2.1" l_.str.13: ; @.str.13 .asciz "error: invalid IPv4 address: %s\n" l_.str.14: ; @.str.14 .asciz "resolve_primary_address: connect()" l_.str.15: ; @.str.15 .asciz "resolve_primary_address: getsockname()" l_.str.16: ; @.str.16 .asciz "resolve_primary_address: close()" .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, -28(%rbp) movl %edi, -32(%rbp) movq %rsi, -40(%rbp) cmpl $2, -32(%rbp) jge LBB0_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str(%rip), %rsi movb $0, %al callq _fprintf movl $1, -28(%rbp) jmp LBB0_13 LBB0_2: cmpl $3, -32(%rbp) jle LBB0_4 ## %bb.3: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.1(%rip), %rsi movb $0, %al callq _fprintf movl $1, -28(%rbp) jmp LBB0_13 LBB0_4: jmp LBB0_5 LBB0_5: leaq -24(%rbp), %rdi xorl %esi, %esi movl $16, %edx callq _memset movq -40(%rbp), %rax movq 8(%rax), %rax movq %rax, -48(%rbp) ## 8-byte Spill cmpl $3, -32(%rbp) jne LBB0_7 ## %bb.6: movq -40(%rbp), %rax movq 16(%rax), %rax movq %rax, -56(%rbp) ## 8-byte Spill jmp LBB0_8 LBB0_7: xorl %eax, %eax ## kill: def $rax killed $eax movq %rax, -56(%rbp) ## 8-byte Spill jmp LBB0_8 LBB0_8: movq -48(%rbp), %rdi ## 8-byte Reload movq -56(%rbp), %rcx ## 8-byte Reload xorl %esi, %esi leaq -24(%rbp), %rdx callq _allocate_port cmpl $0, %eax je LBB0_10 ## %bb.9: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.2(%rip), %rsi movb $0, %al callq _fprintf movl $1, -28(%rbp) jmp LBB0_13 LBB0_10: movl -20(%rbp), %edi callq _inet_ntoa movq %rax, -64(%rbp) ## 8-byte Spill ## %bb.11: movzwl -22(%rbp), %edi callq __OSSwapInt16 movzwl %ax, %eax movl %eax, -68(%rbp) ## 4-byte Spill ## %bb.12: movq -64(%rbp), %rsi ## 8-byte Reload movl -68(%rbp), %eax ## 4-byte Reload movzwl %ax, %edx leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl $0, -28(%rbp) LBB0_13: movl -28(%rbp), %eax movl %eax, -72(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_15 ## %bb.14: movl -72(%rbp), %eax ## 4-byte Reload addq $80, %rsp popq %rbp retq LBB0_15: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function allocate_port _allocate_port: ## @allocate_port .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 movw %si, %ax movq ___stack_chk_guard@GOTPCREL(%rip), %rsi movq (%rsi), %rsi movq %rsi, -8(%rbp) movq %rdi, -40(%rbp) movw %ax, -42(%rbp) movq %rdx, -56(%rbp) movq %rcx, -64(%rbp) callq ___error movl $0, (%rax) movl $2, %edi movl $1, %esi movl $6, %edx callq _socket movl %eax, -68(%rbp) cmpl $0, -68(%rbp) jge LBB1_2 ## %bb.1: leaq L_.str.4(%rip), %rdi callq _perror movl $-1, -28(%rbp) jmp LBB1_17 LBB1_2: callq ___error movl $0, (%rax) movl $1, -72(%rbp) movl -68(%rbp), %edi leaq -72(%rbp), %rcx movl $65535, %esi ## imm = 0xFFFF movl $4, %r8d movl %r8d, %edx callq _setsockopt cmpl $0, %eax je LBB1_4 ## %bb.3: leaq L_.str.5(%rip), %rdi callq _perror movl $-1, -28(%rbp) jmp LBB1_17 LBB1_4: callq ___error movl $0, (%rax) movq -40(%rbp), %rsi leaq -24(%rbp), %rdi movzwl -42(%rbp), %edx callq _resolve_host_port cmpl $0, %eax je LBB1_6 ## %bb.5: movl $-1, -28(%rbp) jmp LBB1_17 LBB1_6: callq ___error movl $0, (%rax) movl -68(%rbp), %edi leaq -24(%rbp), %rsi movl $16, %edx callq _bind cmpl $0, %eax je LBB1_8 ## %bb.7: leaq L_.str.6(%rip), %rdi callq _perror movl $-1, -28(%rbp) jmp LBB1_17 LBB1_8: movl $16, -76(%rbp) movq -56(%rbp), %rdi movl -76(%rbp), %eax movl %eax, %edx xorl %esi, %esi movq $-1, %rcx callq ___memset_chk callq ___error movl $0, (%rax) movl -68(%rbp), %edi movq -56(%rbp), %rsi leaq -76(%rbp), %rdx callq _getsockname cmpl $0, %eax je LBB1_10 ## %bb.9: leaq L_.str.7(%rip), %rdi callq _perror movl $-1, -28(%rbp) jmp LBB1_17 LBB1_10: callq ___error movl $0, (%rax) movl -68(%rbp), %edi callq _close cmpl $0, %eax je LBB1_12 ## %bb.11: leaq L_.str.8(%rip), %rdi callq _perror movl $-1, -28(%rbp) jmp LBB1_17 LBB1_12: movq -56(%rbp), %rax cmpl $0, 4(%rax) jne LBB1_16 ## %bb.13: movq -56(%rbp), %rax movw 2(%rax), %ax movw %ax, -78(%rbp) movq -64(%rbp), %rdi movq -56(%rbp), %rsi movl -76(%rbp), %edx callq _resolve_primary_address cmpl $0, %eax je LBB1_15 ## %bb.14: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.9(%rip), %rsi movb $0, %al callq _fprintf movl $-1, -28(%rbp) jmp LBB1_17 LBB1_15: movw -78(%rbp), %cx movq -56(%rbp), %rax movw %cx, 2(%rax) LBB1_16: movl $0, -28(%rbp) LBB1_17: movl -28(%rbp), %eax movl %eax, -84(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_19 ## %bb.18: movl -84(%rbp), %eax ## 4-byte Reload addq $96, %rsp popq %rbp retq LBB1_19: 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 .p2align 4, 0x90 ## -- Begin function resolve_host_port _resolve_host_port: ## @resolve_host_port .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 movw %dx, %ax movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movw %ax, -26(%rbp) movq -24(%rbp), %rdi callq _gethostbyname movq %rax, -40(%rbp) movq _h_errno@GOTPCREL(%rip), %rax movl $0, (%rax) cmpq $0, -40(%rbp) jne LBB3_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -48(%rbp) ## 8-byte Spill movq _h_errno@GOTPCREL(%rip), %rax movl (%rax), %edi callq _hstrerror movq -48(%rbp), %rdi ## 8-byte Reload movq %rax, %rdx leaq L_.str.10(%rip), %rsi movb $0, %al callq _fprintf movl $-1, -4(%rbp) jmp LBB3_5 LBB3_2: movq -16(%rbp), %rdi xorl %esi, %esi movl $16, %edx movq $-1, %rcx callq ___memset_chk movq -16(%rbp), %rax movb $2, 1(%rax) movq -16(%rbp), %rdi addq $4, %rdi movq -40(%rbp), %rax movq 24(%rax), %rax movq (%rax), %rsi movq -40(%rbp), %rax movslq 20(%rax), %rdx movq $-1, %rcx callq ___memcpy_chk ## %bb.3: movzwl -26(%rbp), %edi callq __OSSwapInt16 movzwl %ax, %eax movl %eax, -52(%rbp) ## 4-byte Spill ## %bb.4: movl -52(%rbp), %eax ## 4-byte Reload movw %ax, %cx movq -16(%rbp), %rax movw %cx, 2(%rax) movl $0, -4(%rbp) LBB3_5: movl -4(%rbp), %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function resolve_primary_address _resolve_primary_address: ## @resolve_primary_address .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) movq %rdi, -40(%rbp) movq %rsi, -48(%rbp) movl %edx, -52(%rbp) callq ___error movl $0, (%rax) movl $2, %esi movl $17, %edx movl %esi, %edi callq _socket movl %eax, -56(%rbp) cmpl $0, -56(%rbp) jge LBB4_2 ## %bb.1: leaq L_.str.11(%rip), %rdi callq _perror movl $-1, -28(%rbp) jmp LBB4_14 LBB4_2: leaq L_.str.12(%rip), %rax movq %rax, -64(%rbp) cmpq $0, -40(%rbp) je LBB4_5 ## %bb.3: movq -40(%rbp), %rdi callq _strlen cmpq $0, %rax jbe LBB4_5 ## %bb.4: movq -40(%rbp), %rax movq %rax, -64(%rbp) LBB4_5: movw $53, -66(%rbp) leaq -24(%rbp), %rdi xorl %esi, %esi movl $16, %edx callq _memset movb $2, -23(%rbp) movw $13568, -22(%rbp) ## imm = 0x3500 movq -64(%rbp), %rdi leaq -24(%rbp), %rsi addq $4, %rsi callq _inet_aton cmpl $0, %eax jne LBB4_7 ## %bb.6: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -64(%rbp), %rdx leaq L_.str.13(%rip), %rsi movb $0, %al callq _fprintf movl $-1, -28(%rbp) jmp LBB4_14 LBB4_7: callq ___error movl $0, (%rax) movl -56(%rbp), %edi leaq -24(%rbp), %rsi movl $16, %edx callq _connect cmpl $0, %eax je LBB4_9 ## %bb.8: leaq L_.str.14(%rip), %rdi callq _perror movl $-1, -28(%rbp) jmp LBB4_14 LBB4_9: callq ___error movl $0, (%rax) movl -56(%rbp), %edi movq -48(%rbp), %rsi leaq -52(%rbp), %rdx callq _getsockname cmpl $0, %eax je LBB4_11 ## %bb.10: leaq L_.str.15(%rip), %rdi callq _perror movl $-1, -28(%rbp) jmp LBB4_14 LBB4_11: callq ___error movl $0, (%rax) movl -56(%rbp), %edi callq _close cmpl $0, %eax je LBB4_13 ## %bb.12: leaq L_.str.16(%rip), %rdi callq _perror movl $-1, -28(%rbp) jmp LBB4_14 LBB4_13: movl $0, -28(%rbp) LBB4_14: movl -28(%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 LBB4_16 ## %bb.15: movl -72(%rbp), %eax ## 4-byte Reload addq $80, %rsp popq %rbp retq LBB4_16: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "error: no bind address specified\n" L_.str.1: ## @.str.1 .asciz "error: superfluous arguments specified\n" L_.str.2: ## @.str.2 .asciz "error: failed to allocate port\n" L_.str.3: ## @.str.3 .asciz "%s\t%hu\n" L_.str.4: ## @.str.4 .asciz "socket()" L_.str.5: ## @.str.5 .asciz "setsockopt()" L_.str.6: ## @.str.6 .asciz "bind()" L_.str.7: ## @.str.7 .asciz "getsockname()" L_.str.8: ## @.str.8 .asciz "close()" L_.str.9: ## @.str.9 .asciz "error: failed to resolve primary address\n" L_.str.10: ## @.str.10 .asciz "Error: gethostbyname(): %s\n" L_.str.11: ## @.str.11 .asciz "resolve_primary_address: socket()" L_.str.12: ## @.str.12 .asciz "192.0.2.1" L_.str.13: ## @.str.13 .asciz "error: invalid IPv4 address: %s\n" L_.str.14: ## @.str.14 .asciz "resolve_primary_address: connect()" L_.str.15: ## @.str.15 .asciz "resolve_primary_address: getsockname()" L_.str.16: ## @.str.16 .asciz "resolve_primary_address: close()" .subsections_via_symbols
the_stack_data/1077371.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] stur x2, [x29, #-24] stur wzr, [x29, #-28] mov x0, #100 bl _malloc str x0, [sp, #24] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x8, [sp, #24] mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf str wzr, [sp, #20] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #20] str x8, [sp, #8] ; 8-byte Folded Spill ldr x0, [sp, #24] bl _strlen ldr x8, [sp, #8] ; 8-byte Folded Reload subs x8, x8, x0 cset w8, hs tbnz w8, #0, LBB0_46 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #65 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #66 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #67 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-28] add w8, w8, #3 stur w8, [x29, #-28] b LBB0_44 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #68 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #69 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #70 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-28] add w8, w8, #4 stur w8, [x29, #-28] b LBB0_43 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #71 cset w8, eq tbnz w8, #0, LBB0_13 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #72 cset w8, eq tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #73 cset w8, ne tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-28] add w8, w8, #5 stur w8, [x29, #-28] b LBB0_42 LBB0_14: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #74 cset w8, eq tbnz w8, #0, LBB0_17 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #75 cset w8, eq tbnz w8, #0, LBB0_17 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #76 cset w8, ne tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-28] add w8, w8, #6 stur w8, [x29, #-28] b LBB0_41 LBB0_18: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #77 cset w8, eq tbnz w8, #0, LBB0_21 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #78 cset w8, eq tbnz w8, #0, LBB0_21 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #79 cset w8, ne tbnz w8, #0, LBB0_22 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-28] add w8, w8, #7 stur w8, [x29, #-28] b LBB0_40 LBB0_22: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #80 cset w8, eq tbnz w8, #0, LBB0_26 b LBB0_23 LBB0_23: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #81 cset w8, eq tbnz w8, #0, LBB0_26 b LBB0_24 LBB0_24: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #82 cset w8, eq tbnz w8, #0, LBB0_26 b LBB0_25 LBB0_25: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #83 cset w8, ne tbnz w8, #0, LBB0_27 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-28] add w8, w8, #8 stur w8, [x29, #-28] b LBB0_39 LBB0_27: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #84 cset w8, eq tbnz w8, #0, LBB0_30 b LBB0_28 LBB0_28: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #85 cset w8, eq tbnz w8, #0, LBB0_30 b LBB0_29 LBB0_29: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #86 cset w8, ne tbnz w8, #0, LBB0_31 b LBB0_30 LBB0_30: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-28] add w8, w8, #9 stur w8, [x29, #-28] b LBB0_38 LBB0_31: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #87 cset w8, eq tbnz w8, #0, LBB0_35 b LBB0_32 LBB0_32: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #88 cset w8, eq tbnz w8, #0, LBB0_35 b LBB0_33 LBB0_33: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #89 cset w8, eq tbnz w8, #0, LBB0_35 b LBB0_34 LBB0_34: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #90 cset w8, ne tbnz w8, #0, LBB0_36 b LBB0_35 LBB0_35: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-28] add w8, w8, #10 stur w8, [x29, #-28] b LBB0_37 LBB0_36: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-28] add w8, w8, #2 stur w8, [x29, #-28] b LBB0_37 LBB0_37: ; in Loop: Header=BB0_1 Depth=1 b LBB0_38 LBB0_38: ; in Loop: Header=BB0_1 Depth=1 b LBB0_39 LBB0_39: ; in Loop: Header=BB0_1 Depth=1 b LBB0_40 LBB0_40: ; in Loop: Header=BB0_1 Depth=1 b LBB0_41 LBB0_41: ; in Loop: Header=BB0_1 Depth=1 b LBB0_42 LBB0_42: ; in Loop: Header=BB0_1 Depth=1 b LBB0_43 LBB0_43: ; in Loop: Header=BB0_1 Depth=1 b LBB0_44 LBB0_44: ; in Loop: Header=BB0_1 Depth=1 b LBB0_45 LBB0_45: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_1 LBB0_46: ldur w9, [x29, #-28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #24] bl _free mov w0, #0 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter the Dial Alphabet : " l_.str.1: ; @.str.1 .asciz "%s" l_.str.2: ; @.str.2 .asciz "Dial Time : %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movl $0, -28(%rbp) movl $100, %edi callq _malloc movq %rax, -40(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -40(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf movl $0, -44(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movslq -44(%rbp), %rax movq %rax, -56(%rbp) ## 8-byte Spill movq -40(%rbp), %rdi callq _strlen movq %rax, %rcx movq -56(%rbp), %rax ## 8-byte Reload cmpq %rcx, %rax jae LBB0_46 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $65, %eax je LBB0_5 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $66, %eax je LBB0_5 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $67, %eax jne LBB0_6 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $3, %eax movl %eax, -28(%rbp) jmp LBB0_44 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $68, %eax je LBB0_9 ## %bb.7: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $69, %eax je LBB0_9 ## %bb.8: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $70, %eax jne LBB0_10 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $4, %eax movl %eax, -28(%rbp) jmp LBB0_43 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $71, %eax je LBB0_13 ## %bb.11: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $72, %eax je LBB0_13 ## %bb.12: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $73, %eax jne LBB0_14 LBB0_13: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $5, %eax movl %eax, -28(%rbp) jmp LBB0_42 LBB0_14: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $74, %eax je LBB0_17 ## %bb.15: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $75, %eax je LBB0_17 ## %bb.16: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $76, %eax jne LBB0_18 LBB0_17: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $6, %eax movl %eax, -28(%rbp) jmp LBB0_41 LBB0_18: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $77, %eax je LBB0_21 ## %bb.19: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $78, %eax je LBB0_21 ## %bb.20: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $79, %eax jne LBB0_22 LBB0_21: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $7, %eax movl %eax, -28(%rbp) jmp LBB0_40 LBB0_22: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $80, %eax je LBB0_26 ## %bb.23: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $81, %eax je LBB0_26 ## %bb.24: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $82, %eax je LBB0_26 ## %bb.25: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $83, %eax jne LBB0_27 LBB0_26: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $8, %eax movl %eax, -28(%rbp) jmp LBB0_39 LBB0_27: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $84, %eax je LBB0_30 ## %bb.28: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $85, %eax je LBB0_30 ## %bb.29: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $86, %eax jne LBB0_31 LBB0_30: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $9, %eax movl %eax, -28(%rbp) jmp LBB0_38 LBB0_31: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $87, %eax je LBB0_35 ## %bb.32: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $88, %eax je LBB0_35 ## %bb.33: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $89, %eax je LBB0_35 ## %bb.34: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $90, %eax jne LBB0_36 LBB0_35: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $10, %eax movl %eax, -28(%rbp) jmp LBB0_37 LBB0_36: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $2, %eax movl %eax, -28(%rbp) LBB0_37: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_38 LBB0_38: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_39 LBB0_39: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_40 LBB0_40: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_41 LBB0_41: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_42 LBB0_42: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_43 LBB0_43: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_44 LBB0_44: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_45 LBB0_45: ## in Loop: Header=BB0_1 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB0_1 LBB0_46: movl -28(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -40(%rbp), %rdi callq _free xorl %eax, %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter the Dial Alphabet : " L_.str.1: ## @.str.1 .asciz "%s" L_.str.2: ## @.str.2 .asciz "Dial Time : %d\n" .subsections_via_symbols
the_stack_data/234518452.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _eratosthenes ; -- Begin function eratosthenes .p2align 2 _eratosthenes: ; @eratosthenes .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 mov w9, #2352 movk w9, #61, lsl #16 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #976, lsl #12 ; =3997696 sub sp, sp, #2352 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str w0, [sp, #36] str wzr, [sp, #32] mov w8, #3 str w8, [sp, #28] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ; Child Loop BB0_9 Depth 2 ldr w8, [sp, #28] ldr w9, [sp, #36] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_13 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #24] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #24] ldr w9, [sp, #36] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldrsw x9, [sp, #24] add x8, sp, #40 ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 b LBB0_12 LBB0_6: ; in Loop: Header=BB0_3 Depth=2 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_3 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #28] ; 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 w8, [sp, #28] str w8, [sp, #20] b LBB0_9 LBB0_9: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #20] ldr w9, [sp, #36] ldr w10, [sp, #28] sdiv w9, w9, w10 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=2 ldr w8, [sp, #28] ldr w9, [sp, #20] mul w8, w8, w9 ldrsw x10, [sp, #32] mov x9, x10 add w9, w9, #1 str w9, [sp, #32] add x9, sp, #40 str w8, [x9, x10, lsl #2] ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_9 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #28] add w8, w8, #2 str w8, [sp, #28] b LBB0_1 LBB0_13: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _puts 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_15 b LBB0_14 LBB0_14: bl ___stack_chk_fail LBB0_15: add sp, sp, #976, lsl #12 ; =3997696 add sp, sp, #2352 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] str w0, [sp, #8] str x1, [sp] ldr w8, [sp, #8] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr x8, [sp] ldr x0, [x8, #8] bl _atoi bl _eratosthenes b LBB1_3 LBB1_2: mov w0, #16960 movk w0, #15, lsl #16 bl _eratosthenes 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 "1 " l_.str.1: ; @.str.1 .asciz "%d " l_.str.2: ; @.str.2 .space 1 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _eratosthenes ## -- Begin function eratosthenes .p2align 4, 0x90 _eratosthenes: ## @eratosthenes .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $4000048, %eax ## imm = 0x3D0930 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -4000020(%rbp) movl $0, -4000024(%rbp) movl $3, -4000028(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 ## Child Loop BB0_9 Depth 2 movl -4000028(%rbp), %eax cmpl -4000020(%rbp), %eax jg LBB0_13 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -4000032(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -4000032(%rbp), %eax cmpl -4000020(%rbp), %eax jge LBB0_8 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movslq -4000032(%rbp), %rax movl -4000016(%rbp,%rax,4), %eax cmpl -4000028(%rbp), %eax jne LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_12 LBB0_6: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_3 Depth=2 movl -4000032(%rbp), %eax addl $1, %eax movl %eax, -4000032(%rbp) jmp LBB0_3 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movl -4000028(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl -4000028(%rbp), %eax movl %eax, -4000036(%rbp) LBB0_9: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -4000036(%rbp), %eax movl %eax, -4000040(%rbp) ## 4-byte Spill movl -4000020(%rbp), %eax cltd idivl -4000028(%rbp) movl %eax, %ecx movl -4000040(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax jg LBB0_11 ## %bb.10: ## in Loop: Header=BB0_9 Depth=2 movl -4000028(%rbp), %ecx imull -4000036(%rbp), %ecx movl -4000024(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -4000024(%rbp) cltq movl %ecx, -4000016(%rbp,%rax,4) movl -4000036(%rbp), %eax addl $1, %eax movl %eax, -4000036(%rbp) jmp LBB0_9 LBB0_11: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_12 LBB0_12: ## in Loop: Header=BB0_1 Depth=1 movl -4000028(%rbp), %eax addl $2, %eax movl %eax, -4000028(%rbp) jmp LBB0_1 LBB0_13: leaq L_.str.2(%rip), %rdi callq _puts movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_15 ## %bb.14: addq $4000048, %rsp ## imm = 0x3D0930 popq %rbp retq LBB0_15: 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 %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $2, -8(%rbp) jne LBB1_2 ## %bb.1: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _atoi movl %eax, %edi callq _eratosthenes jmp LBB1_3 LBB1_2: movl $1000000, %edi ## imm = 0xF4240 callq _eratosthenes LBB1_3: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "1 " L_.str.1: ## @.str.1 .asciz "%d " L_.str.2: ## @.str.2 .space 1 .subsections_via_symbols
the_stack_data/51080.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _maxSubArray ; -- Begin function maxSubArray .p2align 2 _maxSubArray: ; @maxSubArray .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #32] str w1, [sp, #28] ldr w8, [sp, #28] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: str wzr, [sp, #44] b LBB0_13 LBB0_2: ldr x8, [sp, #32] ldr w8, [x8] str w8, [sp, #20] str w8, [sp, #16] mov w8, #1 str w8, [sp, #24] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #16] ldr x9, [sp, #32] ldrsw x10, [sp, #24] ldr w9, [x9, x10, lsl #2] add w8, w8, w9 str w8, [sp, #12] ldr w8, [sp, #12] ldr x9, [sp, #32] ldrsw x10, [sp, #24] 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=1 ldr w8, [sp, #12] str w8, [sp, #8] ; 4-byte Folded Spill b LBB0_7 LBB0_6: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #32] ldrsw x9, [sp, #24] ldr w8, [x8, x9, lsl #2] str w8, [sp, #8] ; 4-byte Folded Spill b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #8] ; 4-byte Folded Reload str w8, [sp, #16] ldr w8, [sp, #20] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #20] str w8, [sp, #4] ; 4-byte Folded Spill b LBB0_10 LBB0_9: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #16] str w8, [sp, #4] ; 4-byte Folded Spill b LBB0_10 LBB0_10: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #4] ; 4-byte Folded Reload str w8, [sp, #20] b LBB0_11 LBB0_11: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_3 LBB0_12: ldr w8, [sp, #20] str w8, [sp, #44] b LBB0_13 LBB0_13: ldr w0, [sp, #44] add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #16] add x0, sp, #20 str x0, [sp, #8] ; 8-byte Folded Spill adrp x1, l___const.main.x@PAGE add x1, x1, l___const.main.x@PAGEOFF mov x2, #36 bl _memcpy ldr x0, [sp, #8] ; 8-byte Folded Reload mov w1, #9 bl _maxSubArray mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: bl ___stack_chk_fail LBB1_2: mov w0, #0 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__const .p2align 2 ; @__const.main.x l___const.main.x: .long 4294967294 ; 0xfffffffe .long 1 ; 0x1 .long 4294967293 ; 0xfffffffd .long 4 ; 0x4 .long 4294967295 ; 0xffffffff .long 2 ; 0x2 .long 1 ; 0x1 .long 4294967291 ; 0xfffffffb .long 4 ; 0x4 .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 _maxSubArray ## -- Begin function maxSubArray .p2align 4, 0x90 _maxSubArray: ## @maxSubArray .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) cmpl $0, -20(%rbp) jne LBB0_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB0_13 LBB0_2: movq -16(%rbp), %rax movl (%rax), %eax movl %eax, -28(%rbp) movl %eax, -32(%rbp) movl $1, -24(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax cmpl -20(%rbp), %eax jge LBB0_12 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movl -32(%rbp), %eax movq -16(%rbp), %rcx movslq -24(%rbp), %rdx addl (%rcx,%rdx,4), %eax movl %eax, -36(%rbp) movl -36(%rbp), %eax movq -16(%rbp), %rcx movslq -24(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax jle LBB0_6 ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 movl -36(%rbp), %eax movl %eax, -40(%rbp) ## 4-byte Spill jmp LBB0_7 LBB0_6: ## in Loop: Header=BB0_3 Depth=1 movq -16(%rbp), %rax movslq -24(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -40(%rbp) ## 4-byte Spill LBB0_7: ## in Loop: Header=BB0_3 Depth=1 movl -40(%rbp), %eax ## 4-byte Reload movl %eax, -32(%rbp) movl -28(%rbp), %eax cmpl -32(%rbp), %eax jle LBB0_9 ## %bb.8: ## in Loop: Header=BB0_3 Depth=1 movl -28(%rbp), %eax movl %eax, -44(%rbp) ## 4-byte Spill jmp LBB0_10 LBB0_9: ## in Loop: Header=BB0_3 Depth=1 movl -32(%rbp), %eax movl %eax, -44(%rbp) ## 4-byte Spill LBB0_10: ## in Loop: Header=BB0_3 Depth=1 movl -44(%rbp), %eax ## 4-byte Reload movl %eax, -28(%rbp) ## %bb.11: ## in Loop: Header=BB0_3 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_3 LBB0_12: movl -28(%rbp), %eax movl %eax, -4(%rbp) LBB0_13: 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 $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -52(%rbp) leaq -48(%rbp), %rdi leaq l___const.main.x(%rip), %rsi movl $36, %edx callq _memcpy leaq -48(%rbp), %rdi movl $9, %esi callq _maxSubArray movl %eax, %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_2 ## %bb.1: xorl %eax, %eax addq $64, %rsp popq %rbp retq LBB1_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const .p2align 4 ## @__const.main.x l___const.main.x: .long 4294967294 ## 0xfffffffe .long 1 ## 0x1 .long 4294967293 ## 0xfffffffd .long 4 ## 0x4 .long 4294967295 ## 0xffffffff .long 2 ## 0x2 .long 1 ## 0x1 .long 4294967291 ## 0xfffffffb .long 4 ## 0x4 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d\n" .subsections_via_symbols
the_stack_data/89199134.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _maxProfit ; -- Begin function maxProfit .p2align 2 _maxProfit: ; @maxProfit .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] str wzr, [sp, #12] str wzr, [sp, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] ldr w9, [sp, #20] subs w9, w9, #1 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, #24] ldrsw x9, [sp, #16] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #24] ldr w10, [sp, #16] 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 x8, [sp, #24] ldr w9, [sp, #16] add w9, w9, #1 ldr w8, [x8, w9, sxtw #2] ldr x9, [sp, #24] ldrsw x10, [sp, #16] ldr w9, [x9, x10, lsl #2] subs w9, w8, w9 ldr w8, [sp, #12] add w8, w8, w9 str w8, [sp, #12] b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_1 LBB0_6: ldr w0, [sp, #12] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] adrp x8, l___const.main.arr@PAGE add x8, x8, l___const.main.arr@PAGEOFF ldr q0, [x8] add x0, sp, #16 str q0, [sp, #16] ldr x8, [x8, #16] str x8, [sp, #32] mov w1, #6 bl _maxProfit str w0, [sp, #12] ldr w9, [sp, #12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: bl ___stack_chk_fail LBB1_2: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__const .p2align 2 ; @__const.main.arr l___const.main.arr: .long 7 ; 0x7 .long 1 ; 0x1 .long 5 ; 0x5 .long 3 ; 0x3 .long 6 ; 0x6 .long 4 ; 0x4 .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 _maxProfit ## -- Begin function maxProfit .p2align 4, 0x90 _maxProfit: ## @maxProfit .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, -20(%rbp) movl $0, -16(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax movl -12(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -8(%rbp), %rcx movl -16(%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 movq -8(%rbp), %rax movl -16(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %eax movq -8(%rbp), %rcx movslq -16(%rbp), %rdx subl (%rcx,%rdx,4), %eax addl -20(%rbp), %eax movl %eax, -20(%rbp) LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_1 LBB0_6: movl -20(%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 $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq l___const.main.arr(%rip), %rax movq %rax, -32(%rbp) movq l___const.main.arr+8(%rip), %rax movq %rax, -24(%rbp) movq l___const.main.arr+16(%rip), %rax movq %rax, -16(%rbp) leaq -32(%rbp), %rdi movl $6, %esi callq _maxProfit movl %eax, -36(%rbp) movl -36(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_2 ## %bb.1: addq $48, %rsp popq %rbp retq LBB1_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const .p2align 4 ## @__const.main.arr l___const.main.arr: .long 7 ## 0x7 .long 1 ## 0x1 .long 5 ## 0x5 .long 3 ## 0x3 .long 6 ## 0x6 .long 4 ## 0x4 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d\n" .subsections_via_symbols
the_stack_data/153246.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _strspn ; -- Begin function strspn .p2align 2 _strspn: ; @strspn .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str x1, [sp, #16] str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr x8, [sp, #24] ldrsw x9, [sp, #12] add x8, x8, x9 ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #8] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #16] ldrsw x9, [sp, #8] add x8, x8, x9 ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldr x8, [sp, #16] ldrsw x9, [sp, #8] ldrsb w8, [x8, x9] ldr x9, [sp, #24] ldrsw x10, [sp, #12] ldrsb w9, [x9, x10] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 b LBB0_8 LBB0_6: ; in Loop: Header=BB0_3 Depth=2 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_3 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #8] add x8, x8, x9 ldrb w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: b LBB0_12 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_1 LBB0_12: ldr w0, [sp, #12] add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _strspn ## -- Begin function strspn .p2align 4, 0x90 _strspn: ## @strspn .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 $0, -20(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movq -8(%rbp), %rax movslq -20(%rbp), %rcx cmpb $0, (%rax,%rcx) je LBB0_12 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -24(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movq -16(%rbp), %rax movslq -24(%rbp), %rcx cmpb $0, (%rax,%rcx) je LBB0_8 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq -16(%rbp), %rax movslq -24(%rbp), %rcx movsbl (%rax,%rcx), %eax movq -8(%rbp), %rcx movslq -20(%rbp), %rdx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax jne LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_8 LBB0_6: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_3 Depth=2 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_3 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movslq -24(%rbp), %rcx cmpb $0, (%rax,%rcx) jne LBB0_10 ## %bb.9: jmp LBB0_12 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_11 LBB0_11: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_1 LBB0_12: movl -20(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/78458.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #28] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf 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 subs w8, w0, #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: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@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 subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w0, #1 bl _exit LBB0_4: sub x0, x29, #28 add x1, sp, #32 bl _is_anagram subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: mov x9, sp sub x8, x29, #28 str x8, [x9] add x8, sp, #32 str x8, [x9, #8] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_7 LBB0_6: mov x9, sp sub x8, x29, #28 str x8, [x9] add x8, sp, #32 str x8, [x9, #8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_7 LBB0_7: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: bl ___stack_chk_fail LBB0_9: mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _is_anagram ; -- Begin function is_anagram .p2align 2 _is_anagram: ; @is_anagram .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 x0, [x29, #-16] bl _strlen str x0, [sp, #8] ; 8-byte Folded Spill ldur x0, [x29, #-24] bl _strlen mov x8, x0 ldr x0, [sp, #8] ; 8-byte Folded Reload subs x8, x0, x8 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: stur wzr, [x29, #-4] b LBB1_30 LBB1_2: str wzr, [sp, #32] b LBB1_3 LBB1_3: ; =>This Loop Header: Depth=1 ; Child Loop BB1_5 Depth 2 ldr w8, [sp, #32] ldur x9, [x29, #-16] ldrsw x10, [sp, #32] ldrsb w9, [x9, x10] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_12 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #28] b LBB1_5 LBB1_5: ; Parent Loop BB1_3 Depth=1 ; => This Inner Loop Header: Depth=2 ldur x8, [x29, #-16] ldrsw x9, [sp, #28] add x8, x8, x9 ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_10 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_5 Depth=2 ldur x8, [x29, #-16] ldrsw x9, [sp, #28] ldrsb w8, [x8, x9] ldur x9, [x29, #-16] ldrsw x10, [sp, #32] ldrsb w9, [x9, x10] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_5 Depth=2 ldur x8, [x29, #-16] ldrsw x9, [sp, #28] add x8, x8, x9 ldrb w8, [x8] sturb w8, [x29, #-25] ldur x8, [x29, #-16] ldrsw x9, [sp, #32] add x8, x8, x9 ldrb w8, [x8] ldur x9, [x29, #-16] ldrsw x10, [sp, #28] add x9, x9, x10 strb w8, [x9] ldurb w8, [x29, #-25] ldur x9, [x29, #-16] ldrsw x10, [sp, #32] add x9, x9, x10 strb w8, [x9] b LBB1_8 LBB1_8: ; in Loop: Header=BB1_5 Depth=2 b LBB1_9 LBB1_9: ; in Loop: Header=BB1_5 Depth=2 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB1_5 LBB1_10: ; in Loop: Header=BB1_3 Depth=1 b LBB1_11 LBB1_11: ; in Loop: Header=BB1_3 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB1_3 LBB1_12: b LBB1_13 LBB1_13: str wzr, [sp, #24] b LBB1_14 LBB1_14: ; =>This Loop Header: Depth=1 ; Child Loop BB1_16 Depth 2 ldr w8, [sp, #24] ldur x9, [x29, #-24] ldrsw x10, [sp, #24] ldrsb w9, [x9, x10] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_23 b LBB1_15 LBB1_15: ; in Loop: Header=BB1_14 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #20] b LBB1_16 LBB1_16: ; Parent Loop BB1_14 Depth=1 ; => This Inner Loop Header: Depth=2 ldur x8, [x29, #-24] ldrsw x9, [sp, #20] add x8, x8, x9 ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_21 b LBB1_17 LBB1_17: ; in Loop: Header=BB1_16 Depth=2 ldur x8, [x29, #-24] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] ldur x9, [x29, #-24] ldrsw x10, [sp, #24] ldrsb w9, [x9, x10] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_19 b LBB1_18 LBB1_18: ; in Loop: Header=BB1_16 Depth=2 ldur x8, [x29, #-24] ldrsw x9, [sp, #20] add x8, x8, x9 ldrb w8, [x8] sturb w8, [x29, #-25] ldur x8, [x29, #-24] ldrsw x9, [sp, #24] add x8, x8, x9 ldrb w8, [x8] ldur x9, [x29, #-24] ldrsw x10, [sp, #20] add x9, x9, x10 strb w8, [x9] ldurb w8, [x29, #-25] ldur x9, [x29, #-24] ldrsw x10, [sp, #24] add x9, x9, x10 strb w8, [x9] b LBB1_19 LBB1_19: ; in Loop: Header=BB1_16 Depth=2 b LBB1_20 LBB1_20: ; in Loop: Header=BB1_16 Depth=2 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB1_16 LBB1_21: ; in Loop: Header=BB1_14 Depth=1 b LBB1_22 LBB1_22: ; in Loop: Header=BB1_14 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB1_14 LBB1_23: str wzr, [sp, #16] b LBB1_24 LBB1_24: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-16] ldrsw x9, [sp, #16] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_29 b LBB1_25 LBB1_25: ; in Loop: Header=BB1_24 Depth=1 ldur x8, [x29, #-16] ldrsw x9, [sp, #16] ldrsb w8, [x8, x9] ldur x9, [x29, #-24] ldrsw x10, [sp, #16] ldrsb w9, [x9, x10] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB1_27 b LBB1_26 LBB1_26: stur wzr, [x29, #-4] b LBB1_30 LBB1_27: ; in Loop: Header=BB1_24 Depth=1 b LBB1_28 LBB1_28: ; in Loop: Header=BB1_24 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB1_24 LBB1_29: mov w8, #1 stur w8, [x29, #-4] b LBB1_30 LBB1_30: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter first word: " l_.str.1: ; @.str.1 .asciz " %s" l_.str.2: ; @.str.2 .asciz "Invalid Input :(\n" l_.str.3: ; @.str.3 .asciz "Enter second word: " l_.str.4: ; @.str.4 .asciz "\"%s\" and \"%s\" are anagrams.\n" l_.str.5: ; @.str.5 .asciz "\"%s\" and \"%s\" are not anagrams.\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, -68(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq -32(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf cmpl $0, %eax 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: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq -64(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf cmpl $0, %eax jne LBB0_4 ## %bb.3: leaq L_.str.2(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB0_4: leaq -32(%rbp), %rdi leaq -64(%rbp), %rsi callq _is_anagram cmpl $0, %eax je LBB0_6 ## %bb.5: leaq -32(%rbp), %rsi leaq -64(%rbp), %rdx leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf jmp LBB0_7 LBB0_6: leaq -32(%rbp), %rsi leaq -64(%rbp), %rdx leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf LBB0_7: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_9 ## %bb.8: xorl %eax, %eax addq $80, %rsp popq %rbp retq LBB0_9: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _is_anagram ## -- Begin function is_anagram .p2align 4, 0x90 _is_anagram: ## @is_anagram .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), %rdi callq _strlen movq %rax, -56(%rbp) ## 8-byte Spill movq -24(%rbp), %rdi callq _strlen movq %rax, %rcx movq -56(%rbp), %rax ## 8-byte Reload cmpq %rcx, %rax je LBB1_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB1_30 LBB1_2: movl $0, -32(%rbp) LBB1_3: ## =>This Loop Header: Depth=1 ## Child Loop BB1_5 Depth 2 movl -32(%rbp), %eax movq -16(%rbp), %rcx movslq -32(%rbp), %rdx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax jge LBB1_12 ## %bb.4: ## in Loop: Header=BB1_3 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) LBB1_5: ## Parent Loop BB1_3 Depth=1 ## => This Inner Loop Header: Depth=2 movq -16(%rbp), %rax movslq -36(%rbp), %rcx cmpb $0, (%rax,%rcx) je LBB1_10 ## %bb.6: ## in Loop: Header=BB1_5 Depth=2 movq -16(%rbp), %rax movslq -36(%rbp), %rcx movsbl (%rax,%rcx), %eax movq -16(%rbp), %rcx movslq -32(%rbp), %rdx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax jge LBB1_8 ## %bb.7: ## in Loop: Header=BB1_5 Depth=2 movq -16(%rbp), %rax movslq -36(%rbp), %rcx movb (%rax,%rcx), %al movb %al, -25(%rbp) movq -16(%rbp), %rax movslq -32(%rbp), %rcx movb (%rax,%rcx), %dl movq -16(%rbp), %rax movslq -36(%rbp), %rcx movb %dl, (%rax,%rcx) movb -25(%rbp), %dl movq -16(%rbp), %rax movslq -32(%rbp), %rcx movb %dl, (%rax,%rcx) LBB1_8: ## in Loop: Header=BB1_5 Depth=2 jmp LBB1_9 LBB1_9: ## in Loop: Header=BB1_5 Depth=2 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB1_5 LBB1_10: ## in Loop: Header=BB1_3 Depth=1 jmp LBB1_11 LBB1_11: ## in Loop: Header=BB1_3 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB1_3 LBB1_12: jmp LBB1_13 LBB1_13: movl $0, -40(%rbp) LBB1_14: ## =>This Loop Header: Depth=1 ## Child Loop BB1_16 Depth 2 movl -40(%rbp), %eax movq -24(%rbp), %rcx movslq -40(%rbp), %rdx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax jge LBB1_23 ## %bb.15: ## in Loop: Header=BB1_14 Depth=1 movl -40(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) LBB1_16: ## Parent Loop BB1_14 Depth=1 ## => This Inner Loop Header: Depth=2 movq -24(%rbp), %rax movslq -44(%rbp), %rcx cmpb $0, (%rax,%rcx) je LBB1_21 ## %bb.17: ## in Loop: Header=BB1_16 Depth=2 movq -24(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax movq -24(%rbp), %rcx movslq -40(%rbp), %rdx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax jge LBB1_19 ## %bb.18: ## in Loop: Header=BB1_16 Depth=2 movq -24(%rbp), %rax movslq -44(%rbp), %rcx movb (%rax,%rcx), %al movb %al, -25(%rbp) movq -24(%rbp), %rax movslq -40(%rbp), %rcx movb (%rax,%rcx), %dl movq -24(%rbp), %rax movslq -44(%rbp), %rcx movb %dl, (%rax,%rcx) movb -25(%rbp), %dl movq -24(%rbp), %rax movslq -40(%rbp), %rcx movb %dl, (%rax,%rcx) LBB1_19: ## in Loop: Header=BB1_16 Depth=2 jmp LBB1_20 LBB1_20: ## in Loop: Header=BB1_16 Depth=2 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB1_16 LBB1_21: ## in Loop: Header=BB1_14 Depth=1 jmp LBB1_22 LBB1_22: ## in Loop: Header=BB1_14 Depth=1 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB1_14 LBB1_23: movl $0, -48(%rbp) LBB1_24: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax movslq -48(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax je LBB1_29 ## %bb.25: ## in Loop: Header=BB1_24 Depth=1 movq -16(%rbp), %rax movslq -48(%rbp), %rcx movsbl (%rax,%rcx), %eax movq -24(%rbp), %rcx movslq -48(%rbp), %rdx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax je LBB1_27 ## %bb.26: movl $0, -4(%rbp) jmp LBB1_30 LBB1_27: ## in Loop: Header=BB1_24 Depth=1 jmp LBB1_28 LBB1_28: ## in Loop: Header=BB1_24 Depth=1 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB1_24 LBB1_29: movl $1, -4(%rbp) LBB1_30: movl -4(%rbp), %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter first word: " L_.str.1: ## @.str.1 .asciz " %s" L_.str.2: ## @.str.2 .asciz "Invalid Input :(\n" L_.str.3: ## @.str.3 .asciz "Enter second word: " L_.str.4: ## @.str.4 .asciz "\"%s\" and \"%s\" are anagrams.\n" L_.str.5: ## @.str.5 .asciz "\"%s\" and \"%s\" are not anagrams.\n" .subsections_via_symbols
the_stack_data/1052964.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 w8, #0 stur w8, [x29, #-52] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF str x0, [sp, #48] ; 8-byte Folded Spill bl _printf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf mov w8, #100 stur w8, [x29, #-8] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf 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 str x0, [sp, #16] ; 8-byte Folded Spill bl _printf mov x9, sp mov x8, #4 str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF str x0, [sp, #40] ; 8-byte Folded Spill bl _printf mov x8, #42416 movk x8, #19, lsl #16 stur x8, [x29, #-16] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload ldur x8, [x29, #-16] mov x9, sp str x8, [x9] bl _printf ldr x0, [sp, #40] ; 8-byte Folded Reload mov x9, sp mov x8, #8 str x8, [sp, #32] ; 8-byte Folded Spill str x8, [x9] bl _printf mov x8, #-34464 movk x8, #65534, lsl #16 stur x8, [x29, #-24] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload ldur x8, [x29, #-24] mov x9, sp str x8, [x9] bl _printf ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x0, [sp, #40] ; 8-byte Folded Reload mov x9, sp str x8, [x9] bl _printf mov x8, #51711 movk x8, #15258, lsl #16 stur x8, [x29, #-32] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf ldur x8, [x29, #-32] mov x9, sp str x8, [x9] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF str x0, [sp, #24] ; 8-byte Folded Spill bl _printf ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x0, [sp, #40] ; 8-byte Folded Reload mov x9, sp str x8, [x9] bl _printf mov x8, #52501 movk x8, #1883, lsl #16 stur x8, [x29, #-40] adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf ldr x0, [sp, #24] ; 8-byte Folded Reload ldur x8, [x29, #-40] mov x9, sp str x8, [x9] bl _printf ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x0, [sp, #40] ; 8-byte Folded Reload mov x9, sp str x8, [x9] bl _printf mov x8, #39292 movk x8, #6553, lsl #16 stur x8, [x29, #-48] adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf ldr x0, [sp, #24] ; 8-byte Folded Reload ldur x8, [x29, #-48] mov x9, sp str x8, [x9] bl _printf ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x0, [sp, #40] ; 8-byte Folded Reload mov x9, sp str x8, [x9] bl _printf ldr x0, [sp, #48] ; 8-byte Folded Reload bl _printf ldur w0, [x29, #-52] ; 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 "DEMO DECLARING BIG NUMBERS:\n" l_.str.1: ; @.str.1 .asciz "-----------------------------------------------------\n" l_.str.2: ; @.str.2 .asciz "Type (Variable name)\t\tValue\t\tBytes\n" l_.str.3: ; @.str.3 .asciz "--------------------\t\t-----\t\t-----\n" l_.str.4: ; @.str.4 .asciz "integer (salary)%\t\t" l_.str.5: ; @.str.5 .asciz "%d\t\t" l_.str.6: ; @.str.6 .asciz "%d\t\t\n" l_.str.7: ; @.str.7 .asciz "long (Big_Number)\t\t" l_.str.8: ; @.str.8 .asciz "long (below_sea_level)\t\t" l_.str.9: ; @.str.9 .asciz "unsigned long (uvalue)\t\t" l_.str.10: ; @.str.10 .asciz "%d\t" l_.str.11: ; @.str.11 .asciz "long long (really_big_number)\t" l_.str.12: ; @.str.12 .asciz "unsigned long long (LightYear)\t" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %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 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl $100, -8(%rbp) leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl -8(%rbp), %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi movl $4, %esi movb $0, %al callq _printf movq $1287600, -16(%rbp) ## imm = 0x13A5B0 leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rsi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi movl $8, %esi movb $0, %al callq _printf movq $-100000, -24(%rbp) ## imm = 0xFFFE7960 leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rsi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi movl $8, %esi movb $0, %al callq _printf movq $999999999, -32(%rbp) ## imm = 0x3B9AC9FF leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf movq -32(%rbp), %rsi leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi movl $8, %esi movb $0, %al callq _printf movq $123456789, -40(%rbp) ## imm = 0x75BCD15 leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf movq -40(%rbp), %rsi leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi movl $8, %esi movb $0, %al callq _printf movq $429496700, -48(%rbp) ## imm = 0x1999997C leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf movq -48(%rbp), %rsi leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf leaq L_.str.6(%rip), %rdi movl $8, %esi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "DEMO DECLARING BIG NUMBERS:\n" L_.str.1: ## @.str.1 .asciz "-----------------------------------------------------\n" L_.str.2: ## @.str.2 .asciz "Type (Variable name)\t\tValue\t\tBytes\n" L_.str.3: ## @.str.3 .asciz "--------------------\t\t-----\t\t-----\n" L_.str.4: ## @.str.4 .asciz "integer (salary)%\t\t" L_.str.5: ## @.str.5 .asciz "%d\t\t" L_.str.6: ## @.str.6 .asciz "%d\t\t\n" L_.str.7: ## @.str.7 .asciz "long (Big_Number)\t\t" L_.str.8: ## @.str.8 .asciz "long (below_sea_level)\t\t" L_.str.9: ## @.str.9 .asciz "unsigned long (uvalue)\t\t" L_.str.10: ## @.str.10 .asciz "%d\t" L_.str.11: ## @.str.11 .asciz "long long (really_big_number)\t" L_.str.12: ## @.str.12 .asciz "unsigned long long (LightYear)\t" .subsections_via_symbols
the_stack_data/22014104.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/90762288.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/153267990.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _cmpval ; -- Begin function cmpval .p2align 2 _cmpval: ; @cmpval .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str x1, [sp] ldr x8, [sp] ldr w8, [x8] ldr x9, [sp, #8] ldr w9, [x9] subs w9, w8, w9 ; implicit-def: $x8 mov x8, x9 sxtw x0, w8 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _findKthLargest ; -- Begin function findKthLargest .p2align 2 _findKthLargest: ; @findKthLargest .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] str w2, [sp] ldr x0, [sp, #8] ldr w1, [sp, #4] mov x2, #4 adrp x3, _cmpval@PAGE add x3, x3, _cmpval@PAGEOFF bl _qsort ldr x8, [sp, #8] ldr w9, [sp] subs w9, w9, #1 ldr w0, [x8, w9, sxtw #2] 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 _cmpval ## -- Begin function cmpval .p2align 4, 0x90 _cmpval: ## @cmpval .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rax movl (%rax), %eax movq -8(%rbp), %rcx subl (%rcx), %eax cltq popq %rbp retq .cfi_endproc ## -- End function .globl _findKthLargest ## -- Begin function findKthLargest .p2align 4, 0x90 _findKthLargest: ## @findKthLargest .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movq -8(%rbp), %rdi movl -12(%rbp), %esi movl $4, %edx leaq _cmpval(%rip), %rcx movb $0, %al callq _qsort movq -8(%rbp), %rax movl -16(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/28263084.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 mov x8, #8 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp mov x8, #16 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov x9, sp mov x8, #2 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf bl _test_a str w0, [sp, #8] ; 4-byte Folded Spill bl _test_b mov x8, x0 ldr w0, [sp, #8] ; 4-byte Folded Reload add w8, w0, w8 str w8, [sp, #12] ; 4-byte Folded Spill bl _test_c ldr w8, [sp, #12] ; 4-byte Folded Reload add w8, w8, w0 str w8, [sp, #16] ; 4-byte Folded Spill adrp x8, _d1@PAGE ldr x0, [x8, _d1@PAGEOFF] bl _test_d ldr w8, [sp, #16] ; 4-byte Folded Reload add w8, w8, w0 stur w8, [x29, #-12] ; 4-byte Folded Spill adrp x8, _d2@PAGE ldr x0, [x8, _d2@PAGEOFF] bl _test_d ldur w8, [x29, #-12] ; 4-byte Folded Reload add w8, w8, w0 stur w8, [x29, #-8] ; 4-byte Folded Spill adrp x8, _d3@PAGE ldr x0, [x8, _d3@PAGEOFF] bl _test_d ldur w8, [x29, #-8] ; 4-byte Folded Reload add w0, w8, w0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function test_a _test_a: ; @test_a .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, _a1@PAGE ldr x8, [x8, _a1@PAGEOFF] lsl x8, x8, #24 asr x8, x8, #24 str x8, [sp, #8] ldr x8, [sp, #8] mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function test_b _test_b: ; @test_b .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, _b1@PAGE adrp x9, _b1@PAGE add x9, x9, _b1@PAGEOFF ldrb w9, [x9, #8] lsl w9, w9, #4 sxtb w9, w9 asr w9, w9, #4 sxtb w9, w9 stur w9, [x29, #-4] ldr x8, [x8, _b1@PAGEOFF] lsl x8, x8, #24 asr x10, x8, #24 ldur w9, [x29, #-4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function test_c _test_c: ; @test_c .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _c1@PAGE ldrh w9, [x8, _c1@PAGEOFF] lsl w9, w9, #13 sxth w9, w9 asr w12, w9, #13 ldrh w9, [x8, _c1@PAGEOFF] lsl w9, w9, #8 sxth w9, w9 asr w11, w9, #11 ldrh w8, [x8, _c1@PAGEOFF] lsl w8, w8, #5 sxth w8, w8 asr w10, w8, #13 mov x9, sp ; implicit-def: $x8 mov x8, x12 sxth x8, w8 str x8, [x9] ; implicit-def: $x8 mov x8, x11 sxtb x8, w8 str x8, [x9, #8] ; implicit-def: $x8 mov x8, x10 sxtb x8, w8 str x8, [x9, #16] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function test_d _test_d: ; @test_d .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 w8, [x29, #-8] mov x10, x8 ldur x8, [x29, #-8] lsr x8, x8, #36 and x8, x8, #0xfffff 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 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _a1 ; @a1 .p2align 3 _a1: .byte 44 ; 0x2c .byte 189 ; 0xbd .byte 15 ; 0xf .byte 146 ; 0x92 .byte 43 ; 0x2b .space 3 .globl _b1 ; @b1 .p2align 3 _b1: .byte 3 ; 0x3 .byte 0 ; 0x0 .byte 0 ; 0x0 .byte 0 ; 0x0 .byte 0 ; 0x0 .space 3 .byte 14 ; 0xe .space 7 .globl _c1 ; @c1 .p2align 1 _c1: .byte 3 ; 0x3 .byte 0 ; 0x0 .globl _d1 ; @d1 .p2align 3 _d1: .byte 255 ; 0xff .byte 255 ; 0xff .byte 255 ; 0xff .byte 255 ; 0xff .byte 240 ; 0xf0 .byte 255 ; 0xff .byte 255 ; 0xff .space 1 .globl _d2 ; @d2 .p2align 3 _d2: .byte 0 ; 0x0 .byte 0 ; 0x0 .byte 0 ; 0x0 .byte 0 ; 0x0 .byte 144 ; 0x90 .byte 77 ; 0x4d .byte 0 ; 0x0 .space 1 .globl _d3 ; @d3 .zerofill __DATA,__common,_d3,8,3 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "sizeof(struct A) = %lu\n" l_.str.1: ; @.str.1 .asciz "sizeof(struct B) = %lu\n" l_.str.2: ; @.str.2 .asciz "sizeof(struct C) = %lu\n" l_.str.3: ; @.str.3 .asciz "%ld\n" l_.str.4: ; @.str.4 .asciz "%ld, %d\n" l_.str.5: ; @.str.5 .asciz "{%d, %d, %d}\n" l_.str.6: ; @.str.6 .asciz "{%u, %u}\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movl $8, %esi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi movl $16, %esi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi movl $2, %esi movb $0, %al callq _printf callq _test_a movl %eax, -24(%rbp) ## 4-byte Spill callq _test_b movl %eax, %ecx movl -24(%rbp), %eax ## 4-byte Reload addl %ecx, %eax movl %eax, -20(%rbp) ## 4-byte Spill callq _test_c movl %eax, %ecx movl -20(%rbp), %eax ## 4-byte Reload addl %ecx, %eax movl %eax, -16(%rbp) ## 4-byte Spill movq _d1(%rip), %rdi callq _test_d movl %eax, %ecx movl -16(%rbp), %eax ## 4-byte Reload addl %ecx, %eax movl %eax, -12(%rbp) ## 4-byte Spill movq _d2(%rip), %rdi callq _test_d movl %eax, %ecx movl -12(%rbp), %eax ## 4-byte Reload addl %ecx, %eax movl %eax, -8(%rbp) ## 4-byte Spill movq _d3(%rip), %rdi callq _test_d movl %eax, %ecx movl -8(%rbp), %eax ## 4-byte Reload addl %ecx, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function test_a _test_a: ## @test_a .cfi_startproc ## %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 _a1(%rip), %rax shlq $24, %rax sarq $24, %rax movq %rax, -8(%rbp) movq -8(%rbp), %rsi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function test_b _test_b: ## @test_b .cfi_startproc ## %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 _b1+8(%rip), %al shlb $4, %al sarb $4, %al movsbl %al, %eax ## kill: def $ax killed $ax killed $eax cwtl movl %eax, -4(%rbp) movq _b1(%rip), %rsi shlq $24, %rsi sarq $24, %rsi movl -4(%rbp), %edx leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function test_c _test_c: ## @test_c .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movw _c1(%rip), %ax shlw $13, %ax sarw $13, %ax movswl %ax, %esi movw _c1(%rip), %ax shlw $8, %ax sarw $11, %ax ## kill: def $al killed $al killed $ax movsbl %al, %edx movw _c1(%rip), %ax shlw $5, %ax sarw $13, %ax ## kill: def $al killed $al killed $ax movsbl %al, %ecx leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function test_d _test_d: ## @test_d .cfi_startproc ## %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) movabsq $4294967295, %rax ## imm = 0xFFFFFFFF andq -8(%rbp), %rax movl %eax, %esi movq -8(%rbp), %rax shrq $36, %rax andq $1048575, %rax ## imm = 0xFFFFF movl %eax, %edx leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _a1 ## @a1 .p2align 3 _a1: .byte 44 ## 0x2c .byte 189 ## 0xbd .byte 15 ## 0xf .byte 146 ## 0x92 .byte 43 ## 0x2b .space 3 .globl _b1 ## @b1 .p2align 3 _b1: .byte 3 ## 0x3 .byte 0 ## 0x0 .byte 0 ## 0x0 .byte 0 ## 0x0 .byte 0 ## 0x0 .space 3 .byte 14 ## 0xe .space 7 .globl _c1 ## @c1 .p2align 1 _c1: .byte 3 ## 0x3 .byte 0 ## 0x0 .globl _d1 ## @d1 .p2align 3 _d1: .byte 255 ## 0xff .byte 255 ## 0xff .byte 255 ## 0xff .byte 255 ## 0xff .byte 240 ## 0xf0 .byte 255 ## 0xff .byte 255 ## 0xff .space 1 .globl _d2 ## @d2 .p2align 3 _d2: .byte 0 ## 0x0 .byte 0 ## 0x0 .byte 0 ## 0x0 .byte 0 ## 0x0 .byte 144 ## 0x90 .byte 77 ## 0x4d .byte 0 ## 0x0 .space 1 .globl _d3 ## @d3 .zerofill __DATA,__common,_d3,8,3 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "sizeof(struct A) = %lu\n" L_.str.1: ## @.str.1 .asciz "sizeof(struct B) = %lu\n" L_.str.2: ## @.str.2 .asciz "sizeof(struct C) = %lu\n" L_.str.3: ## @.str.3 .asciz "%ld\n" L_.str.4: ## @.str.4 .asciz "%ld, %d\n" L_.str.5: ## @.str.5 .asciz "{%d, %d, %d}\n" L_.str.6: ## @.str.6 .asciz "{%u, %u}\n" .subsections_via_symbols
the_stack_data/134544.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/90763100.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] sub x8, x29, #12 str x8, [x9, #8] sub x8, x29, #16 str x8, [x9, #16] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur s0, [x29, #-12] ldur s1, [x29, #-12] ldur s3, [x29, #-8] fmov s2, #4.00000000 fmul s2, s2, s3 ldur s3, [x29, #-16] fmul s2, s2, s3 fnmsub s0, s0, s1, s2 stur s0, [x29, #-20] ldur s0, [x29, #-20] fcmp s0, #0.0 cset w8, le tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur s0, [x29, #-12] fneg s0, s0 fcvt d0, s0 ldur s1, [x29, #-20] fcvt d1, s1 fsqrt d1, d1 fadd d0, d0, d1 ldur s2, [x29, #-8] fmov s1, #2.00000000 fmul s2, s1, s2 fcvt d2, s2 fdiv d0, d0, d2 stur d0, [x29, #-32] ldur s0, [x29, #-12] fneg s0, s0 fcvt d0, s0 ldur s2, [x29, #-20] fcvt d2, s2 fsqrt d2, d2 fsub d0, d0, d2 ldur s2, [x29, #-8] fmul s1, s1, s2 fcvt d1, s1 fdiv d0, d0, d1 str d0, [sp, #40] ldur d1, [x29, #-32] ldr d0, [sp, #40] mov x8, sp str d1, [x8] str d0, [x8, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_6 LBB0_2: ldur s0, [x29, #-20] fcmp s0, #0.0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldur s0, [x29, #-12] fneg s0, s0 ldur s2, [x29, #-8] fmov s1, #2.00000000 fmul s1, s1, s2 fdiv s0, s0, s1 fcvt d0, s0 str d0, [sp, #40] stur d0, [x29, #-32] ldur d1, [x29, #-32] ldr d0, [sp, #40] mov x8, sp str d1, [x8] str d0, [x8, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_5 LBB0_4: ldur s0, [x29, #-12] fneg s0, s0 ldur s2, [x29, #-8] fmov s1, #2.00000000 fmul s2, s1, s2 fdiv s0, s0, s2 stur s0, [x29, #-24] ldur s0, [x29, #-20] fneg s0, s0 fcvt d0, s0 fsqrt d0, d0 ldur s2, [x29, #-8] fmul s1, s1, s2 fcvt d1, s1 fdiv d0, d0, d1 str d0, [sp, #32] ldur s0, [x29, #-24] fcvt d3, s0 ldr d2, [sp, #32] ldur s0, [x29, #-24] fcvt d1, s0 ldr d0, [sp, #32] mov x8, sp str d3, [x8] str d2, [x8, #8] str d1, [x8, #16] str d0, [x8, #24] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_5 LBB0_5: b LBB0_6 LBB0_6: mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter coefficients a, b and c: " l_.str.1: ; @.str.1 .asciz "%f%f%f" l_.str.2: ; @.str.2 .asciz "Roots are: %.2f and %.2f" l_.str.3: ; @.str.3 .asciz "Roots : %.2f+%.2fi and %.2f-%.2fi" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function main LCPI0_0: .long 0x40800000 ## float 4 LCPI0_1: .long 0x40000000 ## float 2 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $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 leaq -12(%rbp), %rdx leaq -16(%rbp), %rcx movb $0, %al callq _scanf movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss -12(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -8(%rbp), %xmm1 mulss -16(%rbp), %xmm1 movd %xmm1, %eax xorl $2147483648, %eax ## imm = 0x80000000 movd %eax, %xmm1 mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss %xmm0, -20(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero xorps %xmm1, %xmm1 ucomiss %xmm1, %xmm0 jbe LBB0_2 ## %bb.1: movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movd %xmm0, %eax xorl $2147483648, %eax ## imm = 0x80000000 movd %eax, %xmm0 cvtss2sd %xmm0, %xmm0 movss -20(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 sqrtsd %xmm1, %xmm1 addsd %xmm1, %xmm0 movss LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -8(%rbp), %xmm1 cvtss2sd %xmm1, %xmm1 divsd %xmm1, %xmm0 movsd %xmm0, -32(%rbp) movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movd %xmm0, %eax xorl $2147483648, %eax ## imm = 0x80000000 movd %eax, %xmm0 cvtss2sd %xmm0, %xmm0 movss -20(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 sqrtsd %xmm1, %xmm1 subsd %xmm1, %xmm0 movss LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -8(%rbp), %xmm1 cvtss2sd %xmm1, %xmm1 divsd %xmm1, %xmm0 movsd %xmm0, -40(%rbp) movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -40(%rbp), %xmm1 ## xmm1 = mem[0],zero leaq L_.str.2(%rip), %rdi movb $2, %al callq _printf jmp LBB0_6 LBB0_2: movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero xorps %xmm1, %xmm1 ucomiss %xmm1, %xmm0 jne LBB0_4 jp LBB0_4 ## %bb.3: movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movd %xmm0, %eax xorl $2147483648, %eax ## imm = 0x80000000 movd %eax, %xmm0 movss LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -8(%rbp), %xmm1 divss %xmm1, %xmm0 cvtss2sd %xmm0, %xmm0 movsd %xmm0, -40(%rbp) movsd %xmm0, -32(%rbp) movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -40(%rbp), %xmm1 ## xmm1 = mem[0],zero leaq L_.str.2(%rip), %rdi movb $2, %al callq _printf jmp LBB0_5 LBB0_4: movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movd %xmm0, %eax xorl $2147483648, %eax ## imm = 0x80000000 movd %eax, %xmm0 movss LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -8(%rbp), %xmm1 divss %xmm1, %xmm0 movss %xmm0, -24(%rbp) movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movd %xmm0, %eax xorl $2147483648, %eax ## imm = 0x80000000 movd %eax, %xmm0 cvtss2sd %xmm0, %xmm0 sqrtsd %xmm0, %xmm0 movss LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -8(%rbp), %xmm1 cvtss2sd %xmm1, %xmm1 divsd %xmm1, %xmm0 movsd %xmm0, -48(%rbp) movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd -48(%rbp), %xmm1 ## xmm1 = mem[0],zero movss -24(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero cvtss2sd %xmm2, %xmm2 movsd -48(%rbp), %xmm3 ## xmm3 = mem[0],zero leaq L_.str.3(%rip), %rdi movb $4, %al callq _printf LBB0_5: jmp LBB0_6 LBB0_6: xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter coefficients a, b and c: " L_.str.1: ## @.str.1 .asciz "%f%f%f" L_.str.2: ## @.str.2 .asciz "Roots are: %.2f and %.2f" L_.str.3: ## @.str.3 .asciz "Roots : %.2f+%.2fi and %.2f-%.2fi" .subsections_via_symbols
the_stack_data/100141793.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/40761612.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__const .p2align 2 ; @.str l_.str: .long 98 ; 0x62 .long 105 ; 0x69 .long 110 ; 0x6e .long 100 ; 0x64 .long 0 ; 0x0 .p2align 2 ; @.str.1 l_.str.1: .long 101 ; 0x65 .long 99 ; 0x63 .long 104 ; 0x68 .long 111 ; 0x6f .long 116 ; 0x74 .long 99 ; 0x63 .long 0 ; 0x0 .p2align 2 ; @.str.2 l_.str.2: .long 101 ; 0x65 .long 100 ; 0x64 .long 105 ; 0x69 .long 116 ; 0x74 .long 0 ; 0x0 .p2align 2 ; @.str.3 l_.str.3: .long 104 ; 0x68 .long 105 ; 0x69 .long 115 ; 0x73 .long 116 ; 0x74 .long 111 ; 0x6f .long 114 ; 0x72 .long 121 ; 0x79 .long 0 ; 0x0 .p2align 2 ; @.str.4 l_.str.4: .long 116 ; 0x74 .long 101 ; 0x65 .long 108 ; 0x6c .long 108 ; 0x6c .long 116 ; 0x74 .long 99 ; 0x63 .long 0 ; 0x0 .p2align 2 ; @.str.5 l_.str.5: .long 115 ; 0x73 .long 101 ; 0x65 .long 116 ; 0x74 .long 116 ; 0x74 .long 99 ; 0x63 .long 0 ; 0x0 .p2align 2 ; @.str.6 l_.str.6: .long 115 ; 0x73 .long 101 ; 0x65 .long 116 ; 0x74 .long 116 ; 0x74 .long 121 ; 0x79 .long 0 ; 0x0 .section __DATA,__const .globl _cmds ; @cmds .p2align 3 _cmds: .quad l_.str .quad _map_bind .quad l_.str.1 .quad _terminal_echotc .quad l_.str.2 .quad _el_editmode .quad l_.str.3 .quad _hist_command .quad l_.str.4 .quad _terminal_telltc .quad l_.str.5 .quad _terminal_settc .quad l_.str.6 .quad _tty_stty .space 16 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__const .p2align 2 ## @.str l_.str: .long 98 ## 0x62 .long 105 ## 0x69 .long 110 ## 0x6e .long 100 ## 0x64 .long 0 ## 0x0 .p2align 2 ## @.str.1 l_.str.1: .long 101 ## 0x65 .long 99 ## 0x63 .long 104 ## 0x68 .long 111 ## 0x6f .long 116 ## 0x74 .long 99 ## 0x63 .long 0 ## 0x0 .p2align 2 ## @.str.2 l_.str.2: .long 101 ## 0x65 .long 100 ## 0x64 .long 105 ## 0x69 .long 116 ## 0x74 .long 0 ## 0x0 .p2align 2 ## @.str.3 l_.str.3: .long 104 ## 0x68 .long 105 ## 0x69 .long 115 ## 0x73 .long 116 ## 0x74 .long 111 ## 0x6f .long 114 ## 0x72 .long 121 ## 0x79 .long 0 ## 0x0 .p2align 2 ## @.str.4 l_.str.4: .long 116 ## 0x74 .long 101 ## 0x65 .long 108 ## 0x6c .long 108 ## 0x6c .long 116 ## 0x74 .long 99 ## 0x63 .long 0 ## 0x0 .p2align 2 ## @.str.5 l_.str.5: .long 115 ## 0x73 .long 101 ## 0x65 .long 116 ## 0x74 .long 116 ## 0x74 .long 99 ## 0x63 .long 0 ## 0x0 .p2align 2 ## @.str.6 l_.str.6: .long 115 ## 0x73 .long 101 ## 0x65 .long 116 ## 0x74 .long 116 ## 0x74 .long 121 ## 0x79 .long 0 ## 0x0 .section __DATA,__const .globl _cmds ## @cmds .p2align 4 _cmds: .quad l_.str .quad _map_bind .quad l_.str.1 .quad _terminal_echotc .quad l_.str.2 .quad _el_editmode .quad l_.str.3 .quad _hist_command .quad l_.str.4 .quad _terminal_telltc .quad l_.str.5 .quad _terminal_settc .quad l_.str.6 .quad _tty_stty .space 16 .subsections_via_symbols
the_stack_data/1176920.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __DATA,__data .globl _s ; @s .p2align 5 _s: .long 123 ; 0x7b .space 28 .asciz "abc\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __DATA,__data .globl _s ## @s .p2align 5 _s: .long 123 ## 0x7b .space 28 .asciz "abc\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000" .subsections_via_symbols
the_stack_data/2578.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 w0, [x29, #-4] str x1, [sp] bl _func bl _func mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _func ; -- Begin function func .p2align 2 _func: ; @func .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, _func.a@PAGE str x8, [sp, #8] ; 8-byte Folded Spill ldr w9, [x8, _func.a@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x9, [sp, #8] ; 8-byte Folded Reload ldr w8, [x9, _func.a@PAGEOFF] lsl w8, w8, #1 str w8, [x9, _func.a@PAGEOFF] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __DATA,__data .p2align 2 ; @func.a _func.a: .long 5 ; 0x5 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "a=%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 %edi, -4(%rbp) movq %rsi, -16(%rbp) callq _func callq _func xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _func ## -- Begin function func .p2align 4, 0x90 _func: ## @func .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl _func.a(%rip), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl _func.a(%rip), %eax shll $1, %eax movl %eax, _func.a(%rip) popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 2 ## @func.a _func.a: .long 5 ## 0x5 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "a=%d\n" .subsections_via_symbols
the_stack_data/103265263.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/136541.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _uart1_set_input ; -- Begin function uart1_set_input .p2align 2 _uart1_set_input: ; @uart1_set_input .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] adrp x9, _uart1_input_handler@PAGE str x8, [x9, _uart1_input_handler@PAGEOFF] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _uart1_input_handler ; @uart1_input_handler .zerofill __DATA,__common,_uart1_input_handler,8,3 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _uart1_set_input ## -- Begin function uart1_set_input .p2align 4, 0x90 _uart1_set_input: ## @uart1_set_input .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq %rax, _uart1_input_handler(%rip) popq %rbp retq .cfi_endproc ## -- End function .globl _uart1_input_handler ## @uart1_input_handler .zerofill __DATA,__common,_uart1_input_handler,8,3 .subsections_via_symbols
the_stack_data/92669.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _worker ; -- Begin function worker .p2align 2 _worker: ; @worker .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] mov w9, #57600 movk w9, #1525, lsl #16 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 adrp x0, _lock@GOTPAGE ldr x0, [x0, _lock@GOTPAGEOFF] str x0, [sp] ; 8-byte Folded Spill bl _pthread_mutex_lock ldr x0, [sp] ; 8-byte Folded Reload adrp x9, _count@PAGE ldr x8, [x9, _count@PAGEOFF] add x8, x8, #1 str x8, [x9, _count@PAGEOFF] bl _pthread_mutex_unlock b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_1 LBB0_4: ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] adrp x0, _lock@GOTPAGE ldr x0, [x0, _lock@GOTPAGEOFF] mov x1, #0 bl _pthread_mutex_init subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w8, #1 stur w8, [x29, #-4] b LBB1_9 LBB1_2: sub x0, x29, #24 mov x3, #0 str x3, [sp, #16] ; 8-byte Folded Spill mov x1, x3 adrp x2, _worker@PAGE add x2, x2, _worker@PAGEOFF str x2, [sp, #8] ; 8-byte Folded Spill bl _pthread_create ldr x2, [sp, #8] ; 8-byte Folded Reload ldr x3, [sp, #16] ; 8-byte Folded Reload add x0, sp, #32 mov x1, x3 bl _pthread_create ldr x1, [sp, #16] ; 8-byte Folded Reload ldur x0, [x29, #-24] bl _pthread_join str w0, [sp, #28] ldr w8, [sp, #28] subs w8, w8, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF mov w2, #30 adrp x3, l_.str.2@PAGE add x3, x3, l_.str.2@PAGEOFF bl ___assert_rtn LBB1_4: b LBB1_5 LBB1_5: ldr x0, [sp, #32] mov x1, #0 bl _pthread_join str w0, [sp, #28] ldr w8, [sp, #28] subs w8, w8, #0 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB1_7 b LBB1_6 LBB1_6: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF mov w2, #32 adrp x3, l_.str.2@PAGE add x3, x3, l_.str.2@PAGEOFF bl ___assert_rtn LBB1_7: b LBB1_8 LBB1_8: adrp x8, _count@PAGE ldr x8, [x8, _count@PAGEOFF] mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf stur wzr, [x29, #-4] b LBB1_9 LBB1_9: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _count ; @count .zerofill __DATA,__common,_count,8,3 .comm _lock,64,3 ; @lock .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Mutex initialization failed\n" l___func__.main: ; @__func__.main .asciz "main" l_.str.1: ; @.str.1 .asciz "119968.c" l_.str.2: ; @.str.2 .asciz "rc==0" l_.str.3: ; @.str.3 .asciz "Count is: %lld\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _worker ## -- Begin function worker .p2align 4, 0x90 _worker: ## @worker .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movl $0, -20(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $100000000, -20(%rbp) ## imm = 0x5F5E100 jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq _lock@GOTPCREL(%rip), %rdi callq _pthread_mutex_lock movq _count(%rip), %rax addq $1, %rax movq %rax, _count(%rip) movq _lock@GOTPCREL(%rip), %rdi callq _pthread_mutex_unlock ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_1 LBB0_4: movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq _lock@GOTPCREL(%rip), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_mutex_init cmpl $0, %eax je LBB1_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $1, -4(%rbp) jmp LBB1_9 LBB1_2: leaq -24(%rbp), %rdi xorl %eax, %eax movl %eax, %ecx leaq _worker(%rip), %rdx movq %rcx, %rsi callq _pthread_create leaq -32(%rbp), %rdi xorl %eax, %eax movl %eax, %ecx leaq _worker(%rip), %rdx movq %rcx, %rsi callq _pthread_create movq -24(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_join movl %eax, -36(%rbp) cmpl $0, -36(%rbp) sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB1_4 ## %bb.3: leaq L___func__.main(%rip), %rdi leaq L_.str.1(%rip), %rsi leaq L_.str.2(%rip), %rcx movl $30, %edx callq ___assert_rtn LBB1_4: jmp LBB1_5 LBB1_5: movq -32(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _pthread_join movl %eax, -36(%rbp) cmpl $0, -36(%rbp) sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB1_7 ## %bb.6: leaq L___func__.main(%rip), %rdi leaq L_.str.1(%rip), %rsi leaq L_.str.2(%rip), %rcx movl $32, %edx callq ___assert_rtn LBB1_7: jmp LBB1_8 LBB1_8: movq _count(%rip), %rsi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl $0, -4(%rbp) LBB1_9: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _count ## @count .zerofill __DATA,__common,_count,8,3 .comm _lock,64,3 ## @lock .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Mutex initialization failed\n" L___func__.main: ## @__func__.main .asciz "main" L_.str.1: ## @.str.1 .asciz "119968.c" L_.str.2: ## @.str.2 .asciz "rc==0" L_.str.3: ## @.str.3 .asciz "Count is: %lld\n" .subsections_via_symbols
the_stack_data/119968.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 x0, #24 bl _malloc str x0, [sp, #16] ldr x1, [sp, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _realpath$DARWIN_EXTSN 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 "/etc/passwd" .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 $24, %edi callq _malloc movq %rax, -16(%rbp) movq -16(%rbp), %rsi leaq L_.str(%rip), %rdi callq _realpath$DARWIN_EXTSN xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "/etc/passwd" .subsections_via_symbols
the_stack_data/62637473.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 0x4059000000000000 ; double 100 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] fmov d0, #-1.00000000 bl _acos stur d0, [x29, #-16] movi d0, #0000000000000000 stur d0, [x29, #-24] stur d0, [x29, #-32] fmov d0, #1.00000000 str d0, [sp, #40] str d0, [sp, #32] str wzr, [sp, #28] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur d0, [x29, #-32] stur d0, [x29, #-24] ldr d0, [sp, #40] ldr d1, [sp, #32] fdiv d1, d0, d1 ldur d0, [x29, #-32] fadd d0, d0, d1 stur d0, [x29, #-32] ldur d0, [x29, #-16] ldur d1, [x29, #-16] fnmul d0, d0, d1 fmov d1, #9.00000000 fdiv d1, d0, d1 ldr d0, [sp, #40] fmul d0, d0, d1 str d0, [sp, #40] ldr w8, [sp, #28] mov w9, #2 mul w8, w9, w8 add w8, w8, #1 ldr w10, [sp, #28] mul w9, w9, w10 add w9, w9, #2 mul w8, w8, w9 scvtf d1, w8 ldr d0, [sp, #32] fmul d0, d0, d1 str d0, [sp, #32] ldr w8, [sp, #28] ; implicit-def: $x9 mov x9, x8 ldur d0, [x29, #-32] mov x8, sp str x9, [x8] str d0, [x8, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr w8, [sp, #28] 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 d0, [x29, #-24] ldur d1, [x29, #-32] fsub d0, d0, d1 ldur d1, [x29, #-32] fdiv d0, d0, d1 adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fmul d0, d0, d1 mov x8, sp str d0, [x8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_4 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldur d0, [x29, #-32] fmov d1, #0.50000000 fsub d0, d1, d0 fdiv d0, d0, d1 adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fmul d0, d0, d1 mov x8, sp str d0, [x8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_1 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "iter %d approx %lf err_a " l_.str.1: ; @.str.1 .asciz "%lf " l_.str.2: ; @.str.2 .asciz "na " l_.str.3: ; @.str.3 .asciz "err_r %lf\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 0x3ff0000000000000 ## double 1 LCPI0_1: .quad 0xbff0000000000000 ## double -1 LCPI0_2: .quad 0x4022000000000000 ## double 9 LCPI0_3: .quad 0x4059000000000000 ## double 100 LCPI0_4: .quad 0x3fe0000000000000 ## double 0.5 .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) movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero callq _acos movsd %xmm0, -16(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -24(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -32(%rbp) movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -40(%rbp) movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -48(%rbp) movl $0, -52(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero divsd -48(%rbp), %xmm0 addsd -32(%rbp), %xmm0 movsd %xmm0, -32(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd -16(%rbp), %xmm0 movq %xmm0, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm0 movsd LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 mulsd -40(%rbp), %xmm0 movsd %xmm0, -40(%rbp) movl -52(%rbp), %eax shll $1, %eax addl $1, %eax movl -52(%rbp), %ecx shll $1, %ecx addl $2, %ecx imull %ecx, %eax cvtsi2sd %eax, %xmm0 mulsd -48(%rbp), %xmm0 movsd %xmm0, -48(%rbp) movl -52(%rbp), %esi movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str(%rip), %rdi movb $1, %al callq _printf cmpl $0, -52(%rbp) jle LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero subsd -32(%rbp), %xmm0 divsd -32(%rbp), %xmm0 movsd LCPI0_3(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 leaq L_.str.1(%rip), %rdi movb $1, %al callq _printf jmp LBB0_4 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movsd LCPI0_4(%rip), %xmm0 ## xmm0 = mem[0],zero subsd -32(%rbp), %xmm0 movsd LCPI0_4(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movsd LCPI0_3(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 leaq L_.str.3(%rip), %rdi movb $1, %al callq _printf ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movl -52(%rbp), %eax addl $1, %eax movl %eax, -52(%rbp) jmp LBB0_1 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "iter %d approx %lf err_a " L_.str.1: ## @.str.1 .asciz "%lf " L_.str.2: ## @.str.2 .asciz "na " L_.str.3: ## @.str.3 .asciz "err_r %lf\n" .subsections_via_symbols
the_stack_data/1270603.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-20] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #12 str x8, [x9] bl _scanf ldur w8, [x29, #-8] ldur w9, [x29, #-12] add w8, w8, w9 scvtf d0, w8 fmov d1, #2.00000000 fdiv d0, d0, d1 fcvt s0, d0 stur s0, [x29, #-16] ldur s0, [x29, #-16] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur w0, [x29, #-20] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter the subject 1 mark : " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Enter the subject 2 mark : " l_.str.3: ; @.str.3 .asciz "Average of two marks : %.2f " .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 .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) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %eax addl -12(%rbp), %eax cvtsi2sd %eax, %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -16(%rbp) movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.3(%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 "Enter the subject 1 mark : " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Enter the subject 2 mark : " L_.str.3: ## @.str.3 .asciz "Average of two marks : %.2f " .subsections_via_symbols
the_stack_data/192331924.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 add x0, sp, #8 mov x8, #8309 movk x8, #16979, lsl #16 str x8, [sp, #8] bl _puts ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq $1112744053, -8(%rbp) ## imm = 0x42532075 leaq -8(%rbp), %rdi callq _puts addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/45450248.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _atoul ; -- Begin function atoul .p2align 2 _atoul: ; @atoul .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str xzr, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] add x9, x8, #1 str x9, [sp, #16] ldrb w8, [x8] subs w8, w8, #48 strb w8, [sp, #7] ldrb w8, [sp, #7] subs w8, w8, #9 cset w8, gt tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: b LBB0_6 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldrb w8, [sp, #7] subs w8, w8, #208 cset w8, ne tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: str xzr, [sp, #24] b LBB0_11 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_6: ldrb w8, [sp, #7] ; kill: def $x8 killed $w8 str x8, [sp, #8] b LBB0_7 LBB0_7: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] add x9, x8, #1 str x9, [sp, #16] ldrb w8, [x8] subs w8, w8, #48 strb w8, [sp, #7] ldrb w8, [sp, #7] subs w8, w8, #9 cset w8, le tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: b LBB0_10 LBB0_9: ; in Loop: Header=BB0_7 Depth=1 ldr x8, [sp, #8] mov x9, #10 mul x8, x8, x9 ldrb w9, [sp, #7] ; kill: def $x9 killed $w9 add x8, x8, x9 str x8, [sp, #8] b LBB0_7 LBB0_10: ldr x8, [sp, #8] str x8, [sp, #24] b LBB0_11 LBB0_11: ldr x0, [sp, #24] add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _atoul ## -- Begin function atoul .p2align 4, 0x90 _atoul: ## @atoul .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 $0, -24(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -16(%rbp) movzbl (%rax), %eax subl $48, %eax ## kill: def $al killed $al killed $eax movb %al, -25(%rbp) movzbl -25(%rbp), %eax cmpl $9, %eax jg LBB0_3 ## %bb.2: jmp LBB0_6 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movzbl -25(%rbp), %eax cmpl $208, %eax jne LBB0_5 ## %bb.4: movq $0, -8(%rbp) jmp LBB0_11 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_6: movzbl -25(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -24(%rbp) LBB0_7: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, -16(%rbp) movzbl (%rax), %eax subl $48, %eax ## kill: def $al killed $al killed $eax movb %al, -25(%rbp) movzbl -25(%rbp), %eax cmpl $9, %eax jle LBB0_9 ## %bb.8: jmp LBB0_10 LBB0_9: ## in Loop: Header=BB0_7 Depth=1 imulq $10, -24(%rbp), %rax movzbl -25(%rbp), %ecx ## kill: def $rcx killed $ecx addq %rcx, %rax movq %rax, -24(%rbp) jmp LBB0_7 LBB0_10: movq -24(%rbp), %rax movq %rax, -8(%rbp) LBB0_11: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/111077056.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, #-32] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w8, [x29, #-8] mov w10, #8 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-12] ldur w8, [x29, #-8] sdiv w8, w8, w10 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-16] ldur w8, [x29, #-8] mov w9, #64 sdiv w8, w8, w9 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-20] ldur w8, [x29, #-8] mov w9, #512 sdiv w8, w8, w9 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-24] ldur w8, [x29, #-8] mov w9, #4096 sdiv w8, w8, w9 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-28] 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.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w0, [x29, #-32] ; 4-byte Folded Reload ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter a number between 0 and 32767: " l_.str.1: ; @.str.1 .asciz "%5d" l_.str.2: ; @.str.2 .asciz "In octal, your number is: %d%d%d%d%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %eax movl $8, %ecx cltd idivl %ecx movl %edx, -12(%rbp) movl -8(%rbp), %eax movl $8, %ecx cltd idivl %ecx movl $8, %ecx cltd idivl %ecx movl %edx, -16(%rbp) movl -8(%rbp), %eax movl $64, %ecx cltd idivl %ecx movl $8, %ecx cltd idivl %ecx movl %edx, -20(%rbp) movl -8(%rbp), %eax movl $512, %ecx ## imm = 0x200 cltd idivl %ecx movl $8, %ecx cltd idivl %ecx movl %edx, -24(%rbp) movl -8(%rbp), %eax movl $4096, %ecx ## imm = 0x1000 cltd idivl %ecx movl $8, %ecx cltd idivl %ecx movl %edx, -28(%rbp) movl -28(%rbp), %esi movl -24(%rbp), %edx movl -20(%rbp), %ecx movl -16(%rbp), %r8d movl -12(%rbp), %r9d leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter a number between 0 and 32767: " L_.str.1: ## @.str.1 .asciz "%5d" L_.str.2: ## @.str.2 .asciz "In octal, your number is: %d%d%d%d%d\n" .subsections_via_symbols
the_stack_data/45865.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, #192 .cfi_def_cfa_offset 192 stp x29, x30, [sp, #176] ; 16-byte Folded Spill add x29, sp, #176 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #44] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf str wzr, [sp, #40] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #40] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #40] ; 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 ldrsw x9, [sp, #40] sub x8, x29, #48 add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #40] b LBB0_1 LBB0_4: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf str wzr, [sp, #36] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #36] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr w9, [sp, #36] ; 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 ldrsw x9, [sp, #36] add x8, sp, #88 add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB0_5 LBB0_8: str wzr, [sp, #28] str wzr, [sp, #24] str wzr, [sp, #20] b LBB0_9 LBB0_9: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] subs w8, w8, #5 cset w8, ge mov w9, #0 str w9, [sp, #16] ; 4-byte Folded Spill tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #24] subs w8, w8, #5 cset w8, lt str w8, [sp, #16] ; 4-byte Folded Spill b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #16] ; 4-byte Folded Reload tbz w8, #0, LBB0_16 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_9 Depth=1 ldrsw x9, [sp, #28] sub x8, x29, #48 ldr w8, [x8, x9, lsl #2] ldrsw x10, [sp, #24] add x9, sp, #88 ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_9 Depth=1 ldrsw x9, [sp, #28] sub x8, x29, #48 ldr w8, [x8, x9, lsl #2] ldrsw x10, [sp, #20] add x9, sp, #48 str w8, [x9, x10, lsl #2] ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_15 LBB0_14: ; in Loop: Header=BB0_9 Depth=1 ldrsw x9, [sp, #24] add x8, sp, #88 ldr w8, [x8, x9, lsl #2] ldrsw x10, [sp, #20] add x9, sp, #48 str w8, [x9, x10, lsl #2] ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_15 LBB0_15: ; in Loop: Header=BB0_9 Depth=1 b LBB0_9 LBB0_16: b LBB0_17 LBB0_17: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB0_19 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_17 Depth=1 ldrsw x9, [sp, #28] sub x8, x29, #48 ldr w8, [x8, x9, lsl #2] ldrsw x10, [sp, #20] add x9, sp, #48 str w8, [x9, x10, lsl #2] ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_17 LBB0_19: b LBB0_20 LBB0_20: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB0_22 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_20 Depth=1 ldrsw x9, [sp, #24] add x8, sp, #88 ldr w8, [x8, x9, lsl #2] ldrsw x10, [sp, #20] add x9, sp, #48 str w8, [x9, x10, lsl #2] ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_20 LBB0_22: str wzr, [sp, #32] b LBB0_23 LBB0_23: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #32] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_26 b LBB0_24 LBB0_24: ; in Loop: Header=BB0_23 Depth=1 ldrsw x9, [sp, #32] 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.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_25 LBB0_25: ; in Loop: Header=BB0_23 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_23 LBB0_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, LBB0_28 b LBB0_27 LBB0_27: bl ___stack_chk_fail LBB0_28: mov w0, #0 ldp x29, x30, [sp, #176] ; 16-byte Folded Reload add sp, sp, #192 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter 5 elements in array 1: \n" l_.str.1: ; @.str.1 .asciz "Store element in a[%d]: " l_.str.2: ; @.str.2 .asciz "%d" l_.str.3: ; @.str.3 .asciz "Enter 5 elements in array 2: \n" l_.str.4: ; @.str.4 .asciz "Store element in b[%d]: " l_.str.5: ; @.str.5 .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 $176, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -148(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $0, -152(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $5, -152(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -152(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movslq -152(%rbp), %rax leaq -48(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -152(%rbp), %eax addl $1, %eax movl %eax, -152(%rbp) jmp LBB0_1 LBB0_4: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl $0, -156(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpl $5, -156(%rbp) jge LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movl -156(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movslq -156(%rbp), %rax leaq -96(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _scanf ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -156(%rbp), %eax addl $1, %eax movl %eax, -156(%rbp) jmp LBB0_5 LBB0_8: movl $0, -164(%rbp) movl $0, -168(%rbp) movl $0, -172(%rbp) LBB0_9: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $5, -164(%rbp) movb %al, -173(%rbp) ## 1-byte Spill jge LBB0_11 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 cmpl $5, -168(%rbp) setl %al movb %al, -173(%rbp) ## 1-byte Spill LBB0_11: ## in Loop: Header=BB0_9 Depth=1 movb -173(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_12 jmp LBB0_16 LBB0_12: ## in Loop: Header=BB0_9 Depth=1 movslq -164(%rbp), %rax movl -48(%rbp,%rax,4), %eax movslq -168(%rbp), %rcx cmpl -96(%rbp,%rcx,4), %eax jge LBB0_14 ## %bb.13: ## in Loop: Header=BB0_9 Depth=1 movslq -164(%rbp), %rax movl -48(%rbp,%rax,4), %ecx movslq -172(%rbp), %rax movl %ecx, -144(%rbp,%rax,4) movl -172(%rbp), %eax addl $1, %eax movl %eax, -172(%rbp) movl -164(%rbp), %eax addl $1, %eax movl %eax, -164(%rbp) jmp LBB0_15 LBB0_14: ## in Loop: Header=BB0_9 Depth=1 movslq -168(%rbp), %rax movl -96(%rbp,%rax,4), %ecx movslq -172(%rbp), %rax movl %ecx, -144(%rbp,%rax,4) movl -172(%rbp), %eax addl $1, %eax movl %eax, -172(%rbp) movl -168(%rbp), %eax addl $1, %eax movl %eax, -168(%rbp) LBB0_15: ## in Loop: Header=BB0_9 Depth=1 jmp LBB0_9 LBB0_16: jmp LBB0_17 LBB0_17: ## =>This Inner Loop Header: Depth=1 cmpl $5, -164(%rbp) jge LBB0_19 ## %bb.18: ## in Loop: Header=BB0_17 Depth=1 movslq -164(%rbp), %rax movl -48(%rbp,%rax,4), %ecx movslq -172(%rbp), %rax movl %ecx, -144(%rbp,%rax,4) movl -164(%rbp), %eax addl $1, %eax movl %eax, -164(%rbp) movl -172(%rbp), %eax addl $1, %eax movl %eax, -172(%rbp) jmp LBB0_17 LBB0_19: jmp LBB0_20 LBB0_20: ## =>This Inner Loop Header: Depth=1 cmpl $5, -168(%rbp) jge LBB0_22 ## %bb.21: ## in Loop: Header=BB0_20 Depth=1 movslq -168(%rbp), %rax movl -96(%rbp,%rax,4), %ecx movslq -172(%rbp), %rax movl %ecx, -144(%rbp,%rax,4) movl -168(%rbp), %eax addl $1, %eax movl %eax, -168(%rbp) movl -172(%rbp), %eax addl $1, %eax movl %eax, -172(%rbp) jmp LBB0_20 LBB0_22: movl $0, -160(%rbp) LBB0_23: ## =>This Inner Loop Header: Depth=1 cmpl $10, -160(%rbp) jge LBB0_26 ## %bb.24: ## in Loop: Header=BB0_23 Depth=1 movslq -160(%rbp), %rax movl -144(%rbp,%rax,4), %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf ## %bb.25: ## in Loop: Header=BB0_23 Depth=1 movl -160(%rbp), %eax addl $1, %eax movl %eax, -160(%rbp) jmp LBB0_23 LBB0_26: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_28 ## %bb.27: xorl %eax, %eax addq $176, %rsp popq %rbp retq LBB0_28: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter 5 elements in array 1: \n" L_.str.1: ## @.str.1 .asciz "Store element in a[%d]: " L_.str.2: ## @.str.2 .asciz "%d" L_.str.3: ## @.str.3 .asciz "Enter 5 elements in array 2: \n" L_.str.4: ## @.str.4 .asciz "Store element in b[%d]: " L_.str.5: ## @.str.5 .asciz "%d " .subsections_via_symbols
the_stack_data/8344.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _explosion_map ; -- Begin function explosion_map .p2align 2 _explosion_map: ; @explosion_map .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] subs w8, w8, #4 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ldrsw x10, [sp, #8] adrp x9, _spready@PAGE add x9, x9, _spready@PAGEOFF ldr w9, [x9, x10, lsl #2] mul w8, w8, w9 subs w8, w8, #0 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: b LBB0_6 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_1 LBB0_6: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _explosion ; -- Begin function explosion .p2align 2 _explosion: ; @explosion .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w0, #0 bl _explosion_map stur wzr, [x29, #-4] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 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: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __DATA,__data .p2align 2 ; @spready _spready: .long 0 ; 0x0 .long 1 ; 0x1 .long 2 ; 0x2 .long 3 ; 0x3 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _explosion_map ## -- Begin function explosion_map .p2align 4, 0x90 _explosion_map: ## @explosion_map .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl $0, -8(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $4, -8(%rbp) jge LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -4(%rbp), %eax movslq -8(%rbp), %rdx leaq _spready(%rip), %rcx imull (%rcx,%rdx,4), %eax cmpl $0, %eax jge LBB0_4 ## %bb.3: jmp LBB0_6 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_6: popq %rbp retq .cfi_endproc ## -- End function .globl _explosion ## -- Begin function explosion .p2align 4, 0x90 _explosion: ## @explosion .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp xorl %edi, %edi callq _explosion_map movl $0, -4(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $2, -4(%rbp) jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_3 LBB1_3: ## in Loop: Header=BB1_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB1_1 LBB1_4: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 4 ## @spready _spready: .long 0 ## 0x0 .long 1 ## 0x1 .long 2 ## 0x2 .long 3 ## 0x3 .subsections_via_symbols
the_stack_data/182951780.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 logGAK lCPI0_0: .quad 0xc0c3880000000000 ; double -1.0E+4 .section __TEXT,__text,regular,pure_instructions .globl _logGAK .p2align 2 _logGAK: ; @logGAK .cfi_startproc ; %bb.0: sub sp, sp, #240 .cfi_def_cfa_offset 240 stp x29, x30, [sp, #224] ; 16-byte Folded Spill add x29, sp, #224 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur x1, [x29, #-16] stur w2, [x29, #-20] stur w3, [x29, #-24] stur w4, [x29, #-28] stur d0, [x29, #-40] stur w5, [x29, #-44] ldur w8, [x29, #-24] add w8, w8, #1 stur w8, [x29, #-92] movi d0, #0000000000000000 stur d0, [x29, #-104] ldur w9, [x29, #-92] mov w8, #2 mul w9, w8, w9 ; implicit-def: $x8 mov x8, x9 sxtw x8, w8 lsl x0, x8, #3 bl _malloc str x0, [sp, #96] ldur w8, [x29, #-20] ldur w9, [x29, #-24] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur w8, [x29, #-20] subs w8, w8, #1 str w8, [sp, #76] ; 4-byte Folded Spill b LBB0_3 LBB0_2: ldur w8, [x29, #-24] subs w8, w8, #1 str w8, [sp, #76] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ldr w8, [sp, #76] ; 4-byte Folded Reload str w8, [sp, #92] ldr w8, [sp, #92] add w9, w8, #1 ; implicit-def: $x8 mov x8, x9 sxtw x8, w8 lsl x0, x8, #3 bl _malloc str x0, [sp, #80] ldur w8, [x29, #-44] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_16 b LBB0_4 LBB0_4: stur wzr, [x29, #-48] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-48] ldr w9, [sp, #92] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr x8, [sp, #80] ldursw x9, [x29, #-48] adrp x10, lCPI0_0@PAGE ldr d0, [x10, lCPI0_0@PAGEOFF] str d0, [x8, x9, lsl #3] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldur w8, [x29, #-48] add w8, w8, #1 stur w8, [x29, #-48] b LBB0_5 LBB0_8: stur wzr, [x29, #-48] b LBB0_9 LBB0_9: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-48] str w8, [sp, #72] ; 4-byte Folded Spill ldr w8, [sp, #92] ldur w9, [x29, #-44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #92] add w8, w8, #1 str w8, [sp, #68] ; 4-byte Folded Spill b LBB0_12 LBB0_11: ; in Loop: Header=BB0_9 Depth=1 ldur w8, [x29, #-44] str w8, [sp, #68] ; 4-byte Folded Spill b LBB0_12 LBB0_12: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #72] ; 4-byte Folded Reload ldr w9, [sp, #68] ; 4-byte Folded Reload subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_15 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_9 Depth=1 ldur w8, [x29, #-48] ldur w9, [x29, #-44] sdiv w9, w8, w9 mov w8, #1 subs w8, w8, w9 scvtf d0, w8 bl _log ldr x8, [sp, #80] ldursw x9, [x29, #-48] str d0, [x8, x9, lsl #3] b LBB0_14 LBB0_14: ; in Loop: Header=BB0_9 Depth=1 ldur w8, [x29, #-48] add w8, w8, #1 stur w8, [x29, #-48] b LBB0_9 LBB0_15: b LBB0_21 LBB0_16: stur wzr, [x29, #-48] b LBB0_17 LBB0_17: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-48] ldr w9, [sp, #92] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_20 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_17 Depth=1 ldr x8, [sp, #80] ldursw x9, [x29, #-48] movi d0, #0000000000000000 str d0, [x8, x9, lsl #3] b LBB0_19 LBB0_19: ; in Loop: Header=BB0_17 Depth=1 ldur w8, [x29, #-48] add w8, w8, #1 stur w8, [x29, #-48] b LBB0_17 LBB0_20: b LBB0_21 LBB0_21: ldur d1, [x29, #-40] fmov d0, #2.00000000 fmul d0, d0, d1 ldur d1, [x29, #-40] fmul d1, d0, d1 fmov d0, #-1.00000000 fdiv d0, d0, d1 str d0, [sp, #104] mov w8, #1 stur w8, [x29, #-52] b LBB0_22 LBB0_22: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-52] ldur w9, [x29, #-92] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_25 b LBB0_23 LBB0_23: ; in Loop: Header=BB0_22 Depth=1 ldr x8, [sp, #96] ldursw x9, [x29, #-52] adrp x10, lCPI0_0@PAGE ldr d0, [x10, lCPI0_0@PAGEOFF] str d0, [x8, x9, lsl #3] b LBB0_24 LBB0_24: ; in Loop: Header=BB0_22 Depth=1 ldur w8, [x29, #-52] add w8, w8, #1 stur w8, [x29, #-52] b LBB0_22 LBB0_25: ldr x8, [sp, #96] movi d0, #0000000000000000 str d0, [x8] mov w8, #1 stur w8, [x29, #-60] stur wzr, [x29, #-64] stur wzr, [x29, #-68] stur w8, [x29, #-48] b LBB0_26 LBB0_26: ; =>This Loop Header: Depth=1 ; Child Loop BB0_28 Depth 2 ; Child Loop BB0_31 Depth 3 ldur w8, [x29, #-48] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_46 b LBB0_27 LBB0_27: ; in Loop: Header=BB0_26 Depth=1 ldur w8, [x29, #-60] ldur w9, [x29, #-92] mul w8, w8, w9 stur w8, [x29, #-68] ldr x8, [sp, #96] ldursw x9, [x29, #-68] adrp x10, lCPI0_0@PAGE ldr d0, [x10, lCPI0_0@PAGEOFF] str d0, [x8, x9, lsl #3] mov w8, #1 stur w8, [x29, #-52] b LBB0_28 LBB0_28: ; Parent Loop BB0_26 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_31 Depth 3 ldur w8, [x29, #-52] ldur w9, [x29, #-24] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_44 b LBB0_29 LBB0_29: ; in Loop: Header=BB0_28 Depth=2 ldur w8, [x29, #-60] ldur w9, [x29, #-92] mul w8, w8, w9 ldur w9, [x29, #-52] add w8, w8, w9 stur w8, [x29, #-68] ldr x8, [sp, #80] str x8, [sp, #56] ; 8-byte Folded Spill ldur w8, [x29, #-48] ldur w9, [x29, #-52] subs w0, w8, w9 bl _abs ldr x8, [sp, #56] ; 8-byte Folded Reload ldr d0, [x8, w0, sxtw #3] adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fcmp d0, d1 cset w8, le tbnz w8, #0, LBB0_41 b LBB0_30 LBB0_30: ; in Loop: Header=BB0_28 Depth=2 ldur w8, [x29, #-64] ldur w9, [x29, #-92] mul w8, w8, w9 ldur w9, [x29, #-52] add w8, w8, w9 stur w8, [x29, #-72] ldur w8, [x29, #-60] ldur w9, [x29, #-92] mul w8, w8, w9 ldur w9, [x29, #-52] add w8, w8, w9 subs w8, w8, #1 stur w8, [x29, #-76] ldur w8, [x29, #-64] ldur w9, [x29, #-92] mul w8, w8, w9 ldur w9, [x29, #-52] add w8, w8, w9 subs w8, w8, #1 stur w8, [x29, #-80] movi d0, #0000000000000000 stur d0, [x29, #-104] stur wzr, [x29, #-56] b LBB0_31 LBB0_31: ; Parent Loop BB0_26 Depth=1 ; Parent Loop BB0_28 Depth=2 ; => This Inner Loop Header: Depth=3 ldur w8, [x29, #-56] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_34 b LBB0_32 LBB0_32: ; in Loop: Header=BB0_31 Depth=3 ldur x8, [x29, #-8] ldur w9, [x29, #-48] subs w9, w9, #1 ldur w10, [x29, #-56] ldur w11, [x29, #-20] mul w10, w10, w11 add w9, w9, w10 ldr d0, [x8, w9, sxtw #3] ldur x8, [x29, #-16] ldur w9, [x29, #-52] subs w9, w9, #1 ldur w10, [x29, #-56] ldur w11, [x29, #-24] mul w10, w10, w11 add w9, w9, w10 ldr d1, [x8, w9, sxtw #3] fsub d0, d0, d1 ldur x8, [x29, #-8] ldur w9, [x29, #-48] subs w9, w9, #1 ldur w10, [x29, #-56] ldur w11, [x29, #-20] mul w10, w10, w11 add w9, w9, w10 ldr d1, [x8, w9, sxtw #3] ldur x8, [x29, #-16] ldur w9, [x29, #-52] subs w9, w9, #1 ldur w10, [x29, #-56] ldur w11, [x29, #-24] mul w10, w10, w11 add w9, w9, w10 ldr d2, [x8, w9, sxtw #3] fsub d1, d1, d2 ldur d2, [x29, #-104] fmadd d0, d0, d1, d2 stur d0, [x29, #-104] b LBB0_33 LBB0_33: ; in Loop: Header=BB0_31 Depth=3 ldur w8, [x29, #-56] add w8, w8, #1 stur w8, [x29, #-56] b LBB0_31 LBB0_34: ; in Loop: Header=BB0_28 Depth=2 ldr x8, [sp, #80] str x8, [sp, #48] ; 8-byte Folded Spill ldur w8, [x29, #-48] ldur w9, [x29, #-52] subs w0, w8, w9 bl _abs ldr x8, [sp, #48] ; 8-byte Folded Reload ldr d2, [x8, w0, sxtw #3] ldur d0, [x29, #-104] ldr d1, [sp, #104] fmadd d0, d0, d1, d2 str d0, [sp, #112] ldr d0, [sp, #112] bl _exp fmov d1, d0 fmov d0, #2.00000000 fsub d0, d0, d1 bl _log fmov d1, d0 ldr d0, [sp, #112] fsub d0, d0, d1 str d0, [sp, #112] ldr x8, [sp, #96] ldursw x9, [x29, #-72] ldr d0, [x8, x9, lsl #3] ldr x8, [sp, #96] ldursw x9, [x29, #-76] ldr d1, [x8, x9, lsl #3] fcmp d0, d1 cset w8, le tbnz w8, #0, LBB0_36 b LBB0_35 LBB0_35: ; in Loop: Header=BB0_28 Depth=2 ldr x8, [sp, #96] ldursw x9, [x29, #-72] ldr d0, [x8, x9, lsl #3] str d0, [sp, #32] ; 8-byte Folded Spill ldr x8, [sp, #96] ldursw x9, [x29, #-76] ldr d0, [x8, x9, lsl #3] ldr x8, [sp, #96] ldursw x9, [x29, #-72] ldr d1, [x8, x9, lsl #3] fsub d0, d0, d1 bl _exp bl _log1p fmov d1, d0 ldr d0, [sp, #32] ; 8-byte Folded Reload fadd d0, d0, d1 str d0, [sp, #40] ; 8-byte Folded Spill b LBB0_37 LBB0_36: ; in Loop: Header=BB0_28 Depth=2 ldr x8, [sp, #96] ldursw x9, [x29, #-76] ldr d0, [x8, x9, lsl #3] str d0, [sp, #24] ; 8-byte Folded Spill ldr x8, [sp, #96] ldursw x9, [x29, #-72] ldr d0, [x8, x9, lsl #3] ldr x8, [sp, #96] ldursw x9, [x29, #-76] ldr d1, [x8, x9, lsl #3] fsub d0, d0, d1 bl _exp bl _log1p fmov d1, d0 ldr d0, [sp, #24] ; 8-byte Folded Reload fadd d0, d0, d1 str d0, [sp, #40] ; 8-byte Folded Spill b LBB0_37 LBB0_37: ; in Loop: Header=BB0_28 Depth=2 ldr d0, [sp, #40] ; 8-byte Folded Reload stur d0, [x29, #-88] ldur d0, [x29, #-88] ldr x8, [sp, #96] ldursw x9, [x29, #-80] ldr d1, [x8, x9, lsl #3] fcmp d0, d1 cset w8, le tbnz w8, #0, LBB0_39 b LBB0_38 LBB0_38: ; in Loop: Header=BB0_28 Depth=2 ldur d0, [x29, #-88] str d0, [sp, #8] ; 8-byte Folded Spill ldr x8, [sp, #96] ldursw x9, [x29, #-80] ldr d0, [x8, x9, lsl #3] ldur d1, [x29, #-88] fsub d0, d0, d1 bl _exp bl _log1p fmov d1, d0 ldr d0, [sp, #8] ; 8-byte Folded Reload fadd d0, d0, d1 str d0, [sp, #16] ; 8-byte Folded Spill b LBB0_40 LBB0_39: ; in Loop: Header=BB0_28 Depth=2 ldr x8, [sp, #96] ldursw x9, [x29, #-80] ldr d0, [x8, x9, lsl #3] str d0, [sp] ; 8-byte Folded Spill ldur d0, [x29, #-88] ldr x8, [sp, #96] ldursw x9, [x29, #-80] ldr d1, [x8, x9, lsl #3] fsub d0, d0, d1 bl _exp bl _log1p fmov d1, d0 ldr d0, [sp] ; 8-byte Folded Reload fadd d0, d0, d1 str d0, [sp, #16] ; 8-byte Folded Spill b LBB0_40 LBB0_40: ; in Loop: Header=BB0_28 Depth=2 ldr d0, [sp, #16] ; 8-byte Folded Reload ldr d1, [sp, #112] fadd d0, d0, d1 ldr x8, [sp, #96] ldursw x9, [x29, #-68] str d0, [x8, x9, lsl #3] b LBB0_42 LBB0_41: ; in Loop: Header=BB0_28 Depth=2 ldr x8, [sp, #96] ldursw x9, [x29, #-68] adrp x10, lCPI0_0@PAGE ldr d0, [x10, lCPI0_0@PAGEOFF] str d0, [x8, x9, lsl #3] b LBB0_42 LBB0_42: ; in Loop: Header=BB0_28 Depth=2 b LBB0_43 LBB0_43: ; in Loop: Header=BB0_28 Depth=2 ldur w8, [x29, #-52] add w8, w8, #1 stur w8, [x29, #-52] b LBB0_28 LBB0_44: ; in Loop: Header=BB0_26 Depth=1 ldur w9, [x29, #-60] mov w8, #1 subs w9, w8, w9 stur w9, [x29, #-60] ldur w9, [x29, #-64] subs w8, w8, w9 stur w8, [x29, #-64] b LBB0_45 LBB0_45: ; in Loop: Header=BB0_26 Depth=1 ldur w8, [x29, #-48] add w8, w8, #1 stur w8, [x29, #-48] b LBB0_26 LBB0_46: ldr x8, [sp, #96] ldursw x9, [x29, #-68] ldr d0, [x8, x9, lsl #3] stur d0, [x29, #-88] ldr x0, [sp, #96] bl _free ldr x0, [sp, #80] bl _free ldur d0, [x29, #-88] ldp x29, x30, [sp, #224] ; 16-byte Folded Reload add sp, sp, #240 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function logGAK LCPI0_0: .quad 0xbff0000000000000 ## double -1 LCPI0_1: .quad 0x4000000000000000 ## double 2 LCPI0_2: .quad 0xc0c3880000000000 ## double -1.0E+4 .section __TEXT,__text,regular,pure_instructions .globl _logGAK .p2align 4, 0x90 _logGAK: ## @logGAK .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 %rdi, -8(%rbp) movq %rsi, -16(%rbp) movl %edx, -20(%rbp) movl %ecx, -24(%rbp) movl %r8d, -28(%rbp) movsd %xmm0, -40(%rbp) movl %r9d, -44(%rbp) movl -24(%rbp), %eax addl $1, %eax movl %eax, -92(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -104(%rbp) movl -92(%rbp), %eax shll $1, %eax movslq %eax, %rdi shlq $3, %rdi callq _malloc movq %rax, -128(%rbp) movl -20(%rbp), %eax cmpl -24(%rbp), %eax jle LBB0_2 ## %bb.1: movl -20(%rbp), %eax subl $1, %eax movl %eax, -148(%rbp) ## 4-byte Spill jmp LBB0_3 LBB0_2: movl -24(%rbp), %eax subl $1, %eax movl %eax, -148(%rbp) ## 4-byte Spill LBB0_3: movl -148(%rbp), %eax ## 4-byte Reload movl %eax, -132(%rbp) movl -132(%rbp), %eax addl $1, %eax movslq %eax, %rdi shlq $3, %rdi callq _malloc movq %rax, -144(%rbp) cmpl $0, -44(%rbp) jle LBB0_16 ## %bb.4: movl $0, -48(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 movl -48(%rbp), %eax cmpl -132(%rbp), %eax jg LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movq -144(%rbp), %rax movslq -48(%rbp), %rcx movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, (%rax,%rcx,8) ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB0_5 LBB0_8: movl $0, -48(%rbp) LBB0_9: ## =>This Inner Loop Header: Depth=1 movl -48(%rbp), %eax movl %eax, -152(%rbp) ## 4-byte Spill movl -132(%rbp), %eax cmpl -44(%rbp), %eax jge LBB0_11 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movl -132(%rbp), %eax addl $1, %eax movl %eax, -156(%rbp) ## 4-byte Spill jmp LBB0_12 LBB0_11: ## in Loop: Header=BB0_9 Depth=1 movl -44(%rbp), %eax movl %eax, -156(%rbp) ## 4-byte Spill LBB0_12: ## in Loop: Header=BB0_9 Depth=1 movl -152(%rbp), %eax ## 4-byte Reload movl -156(%rbp), %ecx ## 4-byte Reload cmpl %ecx, %eax jge LBB0_15 ## %bb.13: ## in Loop: Header=BB0_9 Depth=1 movl -48(%rbp), %eax cltd idivl -44(%rbp) movl %eax, %ecx movl $1, %eax subl %ecx, %eax cvtsi2sd %eax, %xmm0 callq _log movq -144(%rbp), %rax movslq -48(%rbp), %rcx movsd %xmm0, (%rax,%rcx,8) ## %bb.14: ## in Loop: Header=BB0_9 Depth=1 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB0_9 LBB0_15: jmp LBB0_21 LBB0_16: movl $0, -48(%rbp) LBB0_17: ## =>This Inner Loop Header: Depth=1 movl -48(%rbp), %eax cmpl -132(%rbp), %eax jg LBB0_20 ## %bb.18: ## in Loop: Header=BB0_17 Depth=1 movq -144(%rbp), %rax movslq -48(%rbp), %rcx xorps %xmm0, %xmm0 movsd %xmm0, (%rax,%rcx,8) ## %bb.19: ## in Loop: Header=BB0_17 Depth=1 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB0_17 LBB0_20: jmp LBB0_21 LBB0_21: movsd LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd -40(%rbp), %xmm1 mulsd -40(%rbp), %xmm1 movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero divsd %xmm1, %xmm0 movsd %xmm0, -120(%rbp) movl $1, -52(%rbp) LBB0_22: ## =>This Inner Loop Header: Depth=1 movl -52(%rbp), %eax cmpl -92(%rbp), %eax jge LBB0_25 ## %bb.23: ## in Loop: Header=BB0_22 Depth=1 movq -128(%rbp), %rax movslq -52(%rbp), %rcx movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, (%rax,%rcx,8) ## %bb.24: ## in Loop: Header=BB0_22 Depth=1 movl -52(%rbp), %eax addl $1, %eax movl %eax, -52(%rbp) jmp LBB0_22 LBB0_25: movq -128(%rbp), %rax xorps %xmm0, %xmm0 movsd %xmm0, (%rax) movl $1, -60(%rbp) movl $0, -64(%rbp) movl $0, -68(%rbp) movl $1, -48(%rbp) LBB0_26: ## =>This Loop Header: Depth=1 ## Child Loop BB0_28 Depth 2 ## Child Loop BB0_31 Depth 3 movl -48(%rbp), %eax cmpl -20(%rbp), %eax jg LBB0_46 ## %bb.27: ## in Loop: Header=BB0_26 Depth=1 movl -60(%rbp), %eax imull -92(%rbp), %eax movl %eax, -68(%rbp) movq -128(%rbp), %rax movslq -68(%rbp), %rcx movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, (%rax,%rcx,8) movl $1, -52(%rbp) LBB0_28: ## Parent Loop BB0_26 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_31 Depth 3 movl -52(%rbp), %eax cmpl -24(%rbp), %eax jg LBB0_44 ## %bb.29: ## in Loop: Header=BB0_28 Depth=2 movl -60(%rbp), %eax imull -92(%rbp), %eax addl -52(%rbp), %eax movl %eax, -68(%rbp) movq -144(%rbp), %rax movq %rax, -168(%rbp) ## 8-byte Spill movl -48(%rbp), %edi subl -52(%rbp), %edi callq _abs movl %eax, %ecx movq -168(%rbp), %rax ## 8-byte Reload movslq %ecx, %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movsd LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jbe LBB0_41 ## %bb.30: ## in Loop: Header=BB0_28 Depth=2 movl -64(%rbp), %eax imull -92(%rbp), %eax addl -52(%rbp), %eax movl %eax, -72(%rbp) movl -60(%rbp), %eax imull -92(%rbp), %eax addl -52(%rbp), %eax subl $1, %eax movl %eax, -76(%rbp) movl -64(%rbp), %eax imull -92(%rbp), %eax addl -52(%rbp), %eax subl $1, %eax movl %eax, -80(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -104(%rbp) movl $0, -56(%rbp) LBB0_31: ## Parent Loop BB0_26 Depth=1 ## Parent Loop BB0_28 Depth=2 ## => This Inner Loop Header: Depth=3 movl -56(%rbp), %eax cmpl -28(%rbp), %eax jge LBB0_34 ## %bb.32: ## in Loop: Header=BB0_31 Depth=3 movq -8(%rbp), %rax movl -48(%rbp), %ecx subl $1, %ecx movl -56(%rbp), %edx imull -20(%rbp), %edx addl %edx, %ecx movslq %ecx, %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movq -16(%rbp), %rax movl -52(%rbp), %ecx subl $1, %ecx movl -56(%rbp), %edx imull -24(%rbp), %edx addl %edx, %ecx movslq %ecx, %rcx subsd (%rax,%rcx,8), %xmm0 movq -8(%rbp), %rax movl -48(%rbp), %ecx subl $1, %ecx movl -56(%rbp), %edx imull -20(%rbp), %edx addl %edx, %ecx movslq %ecx, %rcx movsd (%rax,%rcx,8), %xmm2 ## xmm2 = mem[0],zero movq -16(%rbp), %rax movl -52(%rbp), %ecx subl $1, %ecx movl -56(%rbp), %edx imull -24(%rbp), %edx addl %edx, %ecx movslq %ecx, %rcx subsd (%rax,%rcx,8), %xmm2 movsd -104(%rbp), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, -104(%rbp) ## %bb.33: ## in Loop: Header=BB0_31 Depth=3 movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) jmp LBB0_31 LBB0_34: ## in Loop: Header=BB0_28 Depth=2 movq -144(%rbp), %rax movq %rax, -176(%rbp) ## 8-byte Spill movl -48(%rbp), %edi subl -52(%rbp), %edi callq _abs movl %eax, %ecx movq -176(%rbp), %rax ## 8-byte Reload movslq %ecx, %rcx movsd (%rax,%rcx,8), %xmm1 ## xmm1 = mem[0],zero movsd -104(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -120(%rbp), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, -112(%rbp) movsd -112(%rbp), %xmm0 ## xmm0 = mem[0],zero callq _exp movaps %xmm0, %xmm1 movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero subsd %xmm1, %xmm0 callq _log movaps %xmm0, %xmm1 movsd -112(%rbp), %xmm0 ## xmm0 = mem[0],zero subsd %xmm1, %xmm0 movsd %xmm0, -112(%rbp) movq -128(%rbp), %rax movslq -72(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movq -128(%rbp), %rax movslq -76(%rbp), %rcx ucomisd (%rax,%rcx,8), %xmm0 jbe LBB0_36 ## %bb.35: ## in Loop: Header=BB0_28 Depth=2 movq -128(%rbp), %rax movslq -72(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -192(%rbp) ## 8-byte Spill movq -128(%rbp), %rax movslq -76(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movq -128(%rbp), %rax movslq -72(%rbp), %rcx subsd (%rax,%rcx,8), %xmm0 callq _exp callq _log1p movaps %xmm0, %xmm1 movsd -192(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 movsd %xmm0, -184(%rbp) ## 8-byte Spill jmp LBB0_37 LBB0_36: ## in Loop: Header=BB0_28 Depth=2 movq -128(%rbp), %rax movslq -76(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -200(%rbp) ## 8-byte Spill movq -128(%rbp), %rax movslq -72(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movq -128(%rbp), %rax movslq -76(%rbp), %rcx subsd (%rax,%rcx,8), %xmm0 callq _exp callq _log1p movaps %xmm0, %xmm1 movsd -200(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 movsd %xmm0, -184(%rbp) ## 8-byte Spill LBB0_37: ## in Loop: Header=BB0_28 Depth=2 movsd -184(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero movsd %xmm0, -88(%rbp) movsd -88(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -128(%rbp), %rax movslq -80(%rbp), %rcx ucomisd (%rax,%rcx,8), %xmm0 jbe LBB0_39 ## %bb.38: ## in Loop: Header=BB0_28 Depth=2 movsd -88(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -216(%rbp) ## 8-byte Spill movq -128(%rbp), %rax movslq -80(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero subsd -88(%rbp), %xmm0 callq _exp callq _log1p movaps %xmm0, %xmm1 movsd -216(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 movsd %xmm0, -208(%rbp) ## 8-byte Spill jmp LBB0_40 LBB0_39: ## in Loop: Header=BB0_28 Depth=2 movq -128(%rbp), %rax movslq -80(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -224(%rbp) ## 8-byte Spill movsd -88(%rbp), %xmm0 ## xmm0 = mem[0],zero movq -128(%rbp), %rax movslq -80(%rbp), %rcx subsd (%rax,%rcx,8), %xmm0 callq _exp callq _log1p movaps %xmm0, %xmm1 movsd -224(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 movsd %xmm0, -208(%rbp) ## 8-byte Spill LBB0_40: ## in Loop: Header=BB0_28 Depth=2 movsd -208(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero addsd -112(%rbp), %xmm0 movq -128(%rbp), %rax movslq -68(%rbp), %rcx movsd %xmm0, (%rax,%rcx,8) jmp LBB0_42 LBB0_41: ## in Loop: Header=BB0_28 Depth=2 movq -128(%rbp), %rax movslq -68(%rbp), %rcx movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, (%rax,%rcx,8) LBB0_42: ## in Loop: Header=BB0_28 Depth=2 jmp LBB0_43 LBB0_43: ## in Loop: Header=BB0_28 Depth=2 movl -52(%rbp), %eax addl $1, %eax movl %eax, -52(%rbp) jmp LBB0_28 LBB0_44: ## in Loop: Header=BB0_26 Depth=1 movl $1, %eax subl -60(%rbp), %eax movl %eax, -60(%rbp) movl $1, %eax subl -64(%rbp), %eax movl %eax, -64(%rbp) ## %bb.45: ## in Loop: Header=BB0_26 Depth=1 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB0_26 LBB0_46: movq -128(%rbp), %rax movslq -68(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -88(%rbp) movq -128(%rbp), %rdi callq _free movq -144(%rbp), %rdi callq _free movsd -88(%rbp), %xmm0 ## xmm0 = mem[0],zero addq $224, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/116835.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl __getopt_internal ; -- Begin function _getopt_internal .p2align 2 __getopt_internal: ; @_getopt_internal .cfi_startproc ; %bb.0: sub sp, sp, #336 .cfi_def_cfa_offset 336 stp x28, x27, [sp, #304] ; 16-byte Folded Spill stp x29, x30, [sp, #320] ; 16-byte Folded Spill add x29, sp, #320 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, _optarg@GOTPAGE ldr x8, [x8, _optarg@GOTPAGEOFF] str x8, [sp, #144] ; 8-byte Folded Spill adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #152] ; 8-byte Folded Spill stur w0, [x29, #-24] stur x1, [x29, #-32] stur x2, [x29, #-40] stur x3, [x29, #-48] stur x4, [x29, #-56] stur w5, [x29, #-60] adrp x8, _opterr@PAGE ldr w8, [x8, _opterr@PAGEOFF] stur w8, [x29, #-64] ldur x8, [x29, #-40] ldrsb w8, [x8] subs w8, w8, #58 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: stur wzr, [x29, #-64] b LBB0_2 LBB0_2: ldur w8, [x29, #-24] subs w8, w8, #1 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: mov w8, #-1 stur w8, [x29, #-20] b LBB0_206 LBB0_4: ldr x8, [sp, #144] ; 8-byte Folded Reload ; kill: def $x9 killed $xzr str xzr, [x8] adrp x8, _optind@PAGE ldr w8, [x8, _optind@PAGEOFF] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: adrp x8, ___getopt_initialized@GOTPAGE ldr x8, [x8, ___getopt_initialized@GOTPAGEOFF] ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_6 LBB0_6: adrp x8, _optind@PAGE ldr w8, [x8, _optind@PAGEOFF] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: adrp x9, _optind@PAGE mov w8, #1 str w8, [x9, _optind@PAGEOFF] b LBB0_8 LBB0_8: ldur w0, [x29, #-24] ldur x1, [x29, #-32] ldur x2, [x29, #-40] bl __getopt_initialize stur x0, [x29, #-40] adrp x9, ___getopt_initialized@GOTPAGE ldr x9, [x9, ___getopt_initialized@GOTPAGEOFF] mov w8, #1 str w8, [x9] b LBB0_9 LBB0_9: adrp x8, _nextchar@PAGE ldr x8, [x8, _nextchar@PAGEOFF] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: adrp x8, _nextchar@PAGE ldr x8, [x8, _nextchar@PAGEOFF] ldrsb w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_51 b LBB0_11 LBB0_11: adrp x8, _last_nonopt@PAGE ldr w8, [x8, _last_nonopt@PAGEOFF] adrp x9, _optind@PAGE ldr w9, [x9, _optind@PAGEOFF] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: adrp x8, _optind@PAGE ldr w8, [x8, _optind@PAGEOFF] adrp x9, _last_nonopt@PAGE str w8, [x9, _last_nonopt@PAGEOFF] b LBB0_13 LBB0_13: adrp x8, _first_nonopt@PAGE ldr w8, [x8, _first_nonopt@PAGEOFF] adrp x9, _optind@PAGE ldr w9, [x9, _optind@PAGEOFF] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: adrp x8, _optind@PAGE ldr w8, [x8, _optind@PAGEOFF] adrp x9, _first_nonopt@PAGE str w8, [x9, _first_nonopt@PAGEOFF] b LBB0_15 LBB0_15: adrp x8, _ordering@PAGE ldr w8, [x8, _ordering@PAGEOFF] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_30 b LBB0_16 LBB0_16: adrp x8, _first_nonopt@PAGE ldr w8, [x8, _first_nonopt@PAGEOFF] adrp x9, _last_nonopt@PAGE ldr w9, [x9, _last_nonopt@PAGEOFF] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_19 b LBB0_17 LBB0_17: adrp x8, _last_nonopt@PAGE ldr w8, [x8, _last_nonopt@PAGEOFF] adrp x9, _optind@PAGE ldr w9, [x9, _optind@PAGEOFF] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_19 b LBB0_18 LBB0_18: ldur x0, [x29, #-32] bl _exchange b LBB0_22 LBB0_19: adrp x8, _last_nonopt@PAGE ldr w8, [x8, _last_nonopt@PAGEOFF] adrp x9, _optind@PAGE ldr w9, [x9, _optind@PAGEOFF] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_21 b LBB0_20 LBB0_20: adrp x8, _optind@PAGE ldr w8, [x8, _optind@PAGEOFF] adrp x9, _first_nonopt@PAGE str w8, [x9, _first_nonopt@PAGEOFF] b LBB0_21 LBB0_21: b LBB0_22 LBB0_22: b LBB0_23 LBB0_23: ; =>This Inner Loop Header: Depth=1 adrp x8, _optind@PAGE ldr w8, [x8, _optind@PAGEOFF] ldur w9, [x29, #-24] subs w8, w8, w9 cset w8, ge mov w9, #0 str w9, [sp, #140] ; 4-byte Folded Spill tbnz w8, #0, LBB0_27 b LBB0_24 LBB0_24: ; in Loop: Header=BB0_23 Depth=1 ldur x8, [x29, #-32] adrp x9, _optind@PAGE ldrsw x9, [x9, _optind@PAGEOFF] ldr x8, [x8, x9, lsl #3] ldrsb w8, [x8] subs w8, w8, #45 cset w8, ne mov w9, #1 str w9, [sp, #136] ; 4-byte Folded Spill tbnz w8, #0, LBB0_26 b LBB0_25 LBB0_25: ; in Loop: Header=BB0_23 Depth=1 ldur x8, [x29, #-32] adrp x9, _optind@PAGE ldrsw x9, [x9, _optind@PAGEOFF] ldr x8, [x8, x9, lsl #3] ldrsb w8, [x8, #1] subs w8, w8, #0 cset w8, eq str w8, [sp, #136] ; 4-byte Folded Spill b LBB0_26 LBB0_26: ; in Loop: Header=BB0_23 Depth=1 ldr w8, [sp, #136] ; 4-byte Folded Reload str w8, [sp, #140] ; 4-byte Folded Spill b LBB0_27 LBB0_27: ; in Loop: Header=BB0_23 Depth=1 ldr w8, [sp, #140] ; 4-byte Folded Reload tbz w8, #0, LBB0_29 b LBB0_28 LBB0_28: ; in Loop: Header=BB0_23 Depth=1 adrp x9, _optind@PAGE ldr w8, [x9, _optind@PAGEOFF] add w8, w8, #1 str w8, [x9, _optind@PAGEOFF] b LBB0_23 LBB0_29: adrp x8, _optind@PAGE ldr w8, [x8, _optind@PAGEOFF] adrp x9, _last_nonopt@PAGE str w8, [x9, _last_nonopt@PAGEOFF] b LBB0_30 LBB0_30: adrp x8, _optind@PAGE ldr w8, [x8, _optind@PAGEOFF] ldur w9, [x29, #-24] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_39 b LBB0_31 LBB0_31: ldur x8, [x29, #-32] adrp x9, _optind@PAGE ldrsw x9, [x9, _optind@PAGEOFF] ldr x0, [x8, x9, lsl #3] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_39 b LBB0_32 LBB0_32: adrp x9, _optind@PAGE ldr w8, [x9, _optind@PAGEOFF] add w8, w8, #1 str w8, [x9, _optind@PAGEOFF] adrp x8, _first_nonopt@PAGE ldr w8, [x8, _first_nonopt@PAGEOFF] adrp x9, _last_nonopt@PAGE ldr w9, [x9, _last_nonopt@PAGEOFF] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_35 b LBB0_33 LBB0_33: adrp x8, _last_nonopt@PAGE ldr w8, [x8, _last_nonopt@PAGEOFF] adrp x9, _optind@PAGE ldr w9, [x9, _optind@PAGEOFF] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_35 b LBB0_34 LBB0_34: ldur x0, [x29, #-32] bl _exchange b LBB0_38 LBB0_35: adrp x8, _first_nonopt@PAGE ldr w8, [x8, _first_nonopt@PAGEOFF] adrp x9, _last_nonopt@PAGE ldr w9, [x9, _last_nonopt@PAGEOFF] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_37 b LBB0_36 LBB0_36: adrp x8, _optind@PAGE ldr w8, [x8, _optind@PAGEOFF] adrp x9, _first_nonopt@PAGE str w8, [x9, _first_nonopt@PAGEOFF] b LBB0_37 LBB0_37: b LBB0_38 LBB0_38: ldur w8, [x29, #-24] adrp x9, _last_nonopt@PAGE str w8, [x9, _last_nonopt@PAGEOFF] ldur w8, [x29, #-24] adrp x9, _optind@PAGE str w8, [x9, _optind@PAGEOFF] b LBB0_39 LBB0_39: adrp x8, _optind@PAGE ldr w8, [x8, _optind@PAGEOFF] ldur w9, [x29, #-24] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_43 b LBB0_40 LBB0_40: adrp x8, _first_nonopt@PAGE ldr w8, [x8, _first_nonopt@PAGEOFF] adrp x9, _last_nonopt@PAGE ldr w9, [x9, _last_nonopt@PAGEOFF] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_42 b LBB0_41 LBB0_41: adrp x8, _first_nonopt@PAGE ldr w8, [x8, _first_nonopt@PAGEOFF] adrp x9, _optind@PAGE str w8, [x9, _optind@PAGEOFF] b LBB0_42 LBB0_42: mov w8, #-1 stur w8, [x29, #-20] b LBB0_206 LBB0_43: ldur x8, [x29, #-32] adrp x9, _optind@PAGE ldrsw x9, [x9, _optind@PAGEOFF] ldr x8, [x8, x9, lsl #3] ldrsb w8, [x8] subs w8, w8, #45 cset w8, ne tbnz w8, #0, LBB0_45 b LBB0_44 LBB0_44: ldur x8, [x29, #-32] adrp x9, _optind@PAGE ldrsw x9, [x9, _optind@PAGEOFF] ldr x8, [x8, x9, lsl #3] ldrsb w8, [x8, #1] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_48 b LBB0_45 LBB0_45: adrp x8, _ordering@PAGE ldr w8, [x8, _ordering@PAGEOFF] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_47 b LBB0_46 LBB0_46: mov w8, #-1 stur w8, [x29, #-20] b LBB0_206 LBB0_47: ldr x10, [sp, #144] ; 8-byte Folded Reload ldur x9, [x29, #-32] adrp x13, _optind@PAGE ldrsw x11, [x13, _optind@PAGEOFF] mov x12, x11 mov w8, #1 add w12, w12, #1 str w12, [x13, _optind@PAGEOFF] ldr x9, [x9, x11, lsl #3] str x9, [x10] stur w8, [x29, #-20] b LBB0_206 LBB0_48: ldur x8, [x29, #-32] adrp x9, _optind@PAGE ldrsw x9, [x9, _optind@PAGEOFF] ldr x8, [x8, x9, lsl #3] add x8, x8, #1 str x8, [sp, #120] ; 8-byte Folded Spill ldur x8, [x29, #-48] subs x8, x8, #0 cset w8, eq mov w9, #0 str w9, [sp, #132] ; 4-byte Folded Spill tbnz w8, #0, LBB0_50 b LBB0_49 LBB0_49: ldur x8, [x29, #-32] adrp x9, _optind@PAGE ldrsw x9, [x9, _optind@PAGEOFF] ldr x8, [x8, x9, lsl #3] ldrsb w8, [x8, #1] subs w8, w8, #45 cset w8, eq str w8, [sp, #132] ; 4-byte Folded Spill b LBB0_50 LBB0_50: ldr x8, [sp, #120] ; 8-byte Folded Reload ldr w9, [sp, #132] ; 4-byte Folded Reload ; kill: def $x9 killed $w9 and x9, x9, #0x1 add x8, x8, x9 adrp x9, _nextchar@PAGE str x8, [x9, _nextchar@PAGEOFF] b LBB0_51 LBB0_51: ldur x8, [x29, #-48] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_118 b LBB0_52 LBB0_52: ldur x8, [x29, #-32] adrp x9, _optind@PAGE ldrsw x9, [x9, _optind@PAGEOFF] ldr x8, [x8, x9, lsl #3] ldrsb w8, [x8, #1] subs w8, w8, #45 cset w8, eq tbnz w8, #0, LBB0_56 b LBB0_53 LBB0_53: ldur w8, [x29, #-60] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_118 b LBB0_54 LBB0_54: ldur x8, [x29, #-32] adrp x9, _optind@PAGE ldrsw x9, [x9, _optind@PAGEOFF] ldr x8, [x8, x9, lsl #3] ldrsb w8, [x8, #2] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_56 b LBB0_55 LBB0_55: ldur x0, [x29, #-40] ldur x8, [x29, #-32] adrp x9, _optind@PAGE ldrsw x9, [x9, _optind@PAGEOFF] ldr x8, [x8, x9, lsl #3] ldrsb w1, [x8, #1] bl _my_index subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB0_118 b LBB0_56 LBB0_56: ; kill: def $x8 killed $xzr stur xzr, [x29, #-88] stur wzr, [x29, #-92] stur wzr, [x29, #-96] mov w8, #-1 stur w8, [x29, #-100] adrp x8, _nextchar@PAGE ldr x8, [x8, _nextchar@PAGEOFF] stur x8, [x29, #-72] b LBB0_57 LBB0_57: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-72] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq mov w9, #0 str w9, [sp, #116] ; 4-byte Folded Spill tbnz w8, #0, LBB0_59 b LBB0_58 LBB0_58: ; in Loop: Header=BB0_57 Depth=1 ldur x8, [x29, #-72] ldrsb w8, [x8] subs w8, w8, #61 cset w8, ne str w8, [sp, #116] ; 4-byte Folded Spill b LBB0_59 LBB0_59: ; in Loop: Header=BB0_57 Depth=1 ldr w8, [sp, #116] ; 4-byte Folded Reload tbz w8, #0, LBB0_62 b LBB0_60 LBB0_60: ; in Loop: Header=BB0_57 Depth=1 b LBB0_61 LBB0_61: ; in Loop: Header=BB0_57 Depth=1 ldur x8, [x29, #-72] add x8, x8, #1 stur x8, [x29, #-72] b LBB0_57 LBB0_62: ldur x8, [x29, #-48] stur x8, [x29, #-80] stur wzr, [x29, #-104] b LBB0_63 LBB0_63: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-80] ldr x8, [x8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_79 b LBB0_64 LBB0_64: ; in Loop: Header=BB0_63 Depth=1 ldur x8, [x29, #-80] ldr x0, [x8] adrp x9, _nextchar@PAGE ldr x1, [x9, _nextchar@PAGEOFF] ldur x8, [x29, #-72] ldr x9, [x9, _nextchar@PAGEOFF] subs x2, x8, x9 bl _strncmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_77 b LBB0_65 LBB0_65: ; in Loop: Header=BB0_63 Depth=1 ldur x8, [x29, #-72] adrp x9, _nextchar@PAGE ldr x9, [x9, _nextchar@PAGEOFF] subs x8, x8, x9 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #112] ; 4-byte Folded Spill ldur x8, [x29, #-80] ldr x0, [x8] bl _strlen ldr w8, [sp, #112] ; 4-byte Folded Reload mov x9, x0 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_67 b LBB0_66 LBB0_66: ldur x8, [x29, #-80] stur x8, [x29, #-88] ldur w8, [x29, #-104] stur w8, [x29, #-100] mov w8, #1 stur w8, [x29, #-92] b LBB0_79 LBB0_67: ; in Loop: Header=BB0_63 Depth=1 ldur x8, [x29, #-88] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_69 b LBB0_68 LBB0_68: ; in Loop: Header=BB0_63 Depth=1 ldur x8, [x29, #-80] stur x8, [x29, #-88] ldur w8, [x29, #-104] stur w8, [x29, #-100] b LBB0_75 LBB0_69: ; in Loop: Header=BB0_63 Depth=1 ldur w8, [x29, #-60] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_73 b LBB0_70 LBB0_70: ; in Loop: Header=BB0_63 Depth=1 ldur x8, [x29, #-88] ldr w8, [x8, #8] ldur x9, [x29, #-80] ldr w9, [x9, #8] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_73 b LBB0_71 LBB0_71: ; in Loop: Header=BB0_63 Depth=1 ldur x8, [x29, #-88] ldr x8, [x8, #16] ldur x9, [x29, #-80] ldr x9, [x9, #16] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB0_73 b LBB0_72 LBB0_72: ; in Loop: Header=BB0_63 Depth=1 ldur x8, [x29, #-88] ldr w8, [x8, #24] ldur x9, [x29, #-80] ldr w9, [x9, #24] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_74 b LBB0_73 LBB0_73: ; in Loop: Header=BB0_63 Depth=1 mov w8, #1 stur w8, [x29, #-96] b LBB0_74 LBB0_74: ; in Loop: Header=BB0_63 Depth=1 b LBB0_75 LBB0_75: ; in Loop: Header=BB0_63 Depth=1 b LBB0_76 LBB0_76: ; in Loop: Header=BB0_63 Depth=1 b LBB0_77 LBB0_77: ; in Loop: Header=BB0_63 Depth=1 b LBB0_78 LBB0_78: ; in Loop: Header=BB0_63 Depth=1 ldur x8, [x29, #-80] add x8, x8, #32 stur x8, [x29, #-80] ldur w8, [x29, #-104] add w8, w8, #1 stur w8, [x29, #-104] b LBB0_63 LBB0_79: ldur w8, [x29, #-96] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_84 b LBB0_80 LBB0_80: ldur w8, [x29, #-92] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_84 b LBB0_81 LBB0_81: ldur w8, [x29, #-64] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_83 b LBB0_82 LBB0_82: ldr x8, [sp, #152] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-32] ldr x10, [x8] ldur x8, [x29, #-32] adrp x9, _optind@PAGE ldrsw x9, [x9, _optind@PAGEOFF] ldr x8, [x8, x9, lsl #3] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf b LBB0_83 LBB0_83: adrp x8, _nextchar@PAGE str x8, [sp, #104] ; 8-byte Folded Spill ldr x0, [x8, _nextchar@PAGEOFF] bl _strlen ldr x9, [sp, #104] ; 8-byte Folded Reload ldr x8, [x9, _nextchar@PAGEOFF] add x8, x8, x0 str x8, [x9, _nextchar@PAGEOFF] adrp x9, _optind@PAGE ldr w8, [x9, _optind@PAGEOFF] add w8, w8, #1 str w8, [x9, _optind@PAGEOFF] adrp x8, _optopt@PAGE str wzr, [x8, _optopt@PAGEOFF] mov w8, #63 stur w8, [x29, #-20] b LBB0_206 LBB0_84: ldur x8, [x29, #-88] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_108 b LBB0_85 LBB0_85: ldur w8, [x29, #-100] stur w8, [x29, #-104] adrp x9, _optind@PAGE ldr w8, [x9, _optind@PAGEOFF] add w8, w8, #1 str w8, [x9, _optind@PAGEOFF] ldur x8, [x29, #-72] ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_95 b LBB0_86 LBB0_86: ldur x8, [x29, #-88] ldr w8, [x8, #8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_88 b LBB0_87 LBB0_87: ldr x9, [sp, #144] ; 8-byte Folded Reload ldur x8, [x29, #-72] add x8, x8, #1 str x8, [x9] b LBB0_94 LBB0_88: ldur w8, [x29, #-64] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_93 b LBB0_89 LBB0_89: ldur x8, [x29, #-32] adrp x9, _optind@PAGE ldr w9, [x9, _optind@PAGEOFF] subs w9, w9, #1 ldr x8, [x8, w9, sxtw #3] ldrsb w8, [x8, #1] subs w8, w8, #45 cset w8, ne tbnz w8, #0, LBB0_91 b LBB0_90 LBB0_90: ldr x8, [sp, #152] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-32] ldr x10, [x8] ldur x8, [x29, #-88] ldr x8, [x8] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf b LBB0_92 LBB0_91: ldr x8, [sp, #152] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-32] ldr x10, [x8] ldur x8, [x29, #-32] adrp x9, _optind@PAGE ldr w9, [x9, _optind@PAGEOFF] subs w9, w9, #1 ldr x8, [x8, w9, sxtw #3] ldrsb w11, [x8] ldur x8, [x29, #-88] ldr x8, [x8] mov x9, sp str x10, [x9] ; implicit-def: $x10 mov x10, x11 str x10, [x9, #8] str x8, [x9, #16] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fprintf b LBB0_92 LBB0_92: b LBB0_93 LBB0_93: adrp x8, _nextchar@PAGE str x8, [sp, #96] ; 8-byte Folded Spill ldr x0, [x8, _nextchar@PAGEOFF] bl _strlen ldr x9, [sp, #96] ; 8-byte Folded Reload ldr x8, [x9, _nextchar@PAGEOFF] add x8, x8, x0 str x8, [x9, _nextchar@PAGEOFF] ldur x8, [x29, #-88] ldr w8, [x8, #24] adrp x9, _optopt@PAGE str w8, [x9, _optopt@PAGEOFF] mov w8, #63 stur w8, [x29, #-20] b LBB0_206 LBB0_94: b LBB0_103 LBB0_95: ldur x8, [x29, #-88] ldr w8, [x8, #8] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_102 b LBB0_96 LBB0_96: adrp x8, _optind@PAGE ldr w8, [x8, _optind@PAGEOFF] ldur w9, [x29, #-24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_98 b LBB0_97 LBB0_97: ldr x9, [sp, #144] ; 8-byte Folded Reload ldur x8, [x29, #-32] adrp x12, _optind@PAGE ldrsw x10, [x12, _optind@PAGEOFF] mov x11, x10 add w11, w11, #1 str w11, [x12, _optind@PAGEOFF] ldr x8, [x8, x10, lsl #3] str x8, [x9] b LBB0_101 LBB0_98: ldur w8, [x29, #-64] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_100 b LBB0_99 LBB0_99: ldr x8, [sp, #152] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-32] ldr x10, [x8] ldur x8, [x29, #-32] adrp x9, _optind@PAGE ldr w9, [x9, _optind@PAGEOFF] subs w9, w9, #1 ldr x8, [x8, w9, sxtw #3] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fprintf b LBB0_100 LBB0_100: adrp x8, _nextchar@PAGE str x8, [sp, #88] ; 8-byte Folded Spill ldr x0, [x8, _nextchar@PAGEOFF] bl _strlen ldr x9, [sp, #88] ; 8-byte Folded Reload ldr x8, [x9, _nextchar@PAGEOFF] add x8, x8, x0 str x8, [x9, _nextchar@PAGEOFF] ldur x8, [x29, #-88] ldr w8, [x8, #24] adrp x9, _optopt@PAGE str w8, [x9, _optopt@PAGEOFF] ldur x8, [x29, #-40] ldrsb w9, [x8] mov w8, #58 subs w9, w9, #58 cset w9, eq and w10, w9, #0x1 mov w9, #63 ands w10, w10, #0x1 csel w8, w8, w9, ne stur w8, [x29, #-20] b LBB0_206 LBB0_101: b LBB0_102 LBB0_102: b LBB0_103 LBB0_103: adrp x8, _nextchar@PAGE str x8, [sp, #80] ; 8-byte Folded Spill ldr x0, [x8, _nextchar@PAGEOFF] bl _strlen ldr x9, [sp, #80] ; 8-byte Folded Reload ldr x8, [x9, _nextchar@PAGEOFF] add x8, x8, x0 str x8, [x9, _nextchar@PAGEOFF] ldur x8, [x29, #-56] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_105 b LBB0_104 LBB0_104: ldur w8, [x29, #-104] ldur x9, [x29, #-56] str w8, [x9] b LBB0_105 LBB0_105: ldur x8, [x29, #-88] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_107 b LBB0_106 LBB0_106: ldur x8, [x29, #-88] ldr w8, [x8, #24] ldur x9, [x29, #-88] ldr x9, [x9, #16] str w8, [x9] stur wzr, [x29, #-20] b LBB0_206 LBB0_107: ldur x8, [x29, #-88] ldr w8, [x8, #24] stur w8, [x29, #-20] b LBB0_206 LBB0_108: ldur w8, [x29, #-60] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_111 b LBB0_109 LBB0_109: ldur x8, [x29, #-32] adrp x9, _optind@PAGE ldrsw x9, [x9, _optind@PAGEOFF] ldr x8, [x8, x9, lsl #3] ldrsb w8, [x8, #1] subs w8, w8, #45 cset w8, eq tbnz w8, #0, LBB0_111 b LBB0_110 LBB0_110: ldur x0, [x29, #-40] adrp x8, _nextchar@PAGE ldr x8, [x8, _nextchar@PAGEOFF] ldrsb w1, [x8] bl _my_index subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB0_117 b LBB0_111 LBB0_111: ldur w8, [x29, #-64] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_116 b LBB0_112 LBB0_112: ldur x8, [x29, #-32] adrp x9, _optind@PAGE ldrsw x9, [x9, _optind@PAGEOFF] ldr x8, [x8, x9, lsl #3] ldrsb w8, [x8, #1] subs w8, w8, #45 cset w8, ne tbnz w8, #0, LBB0_114 b LBB0_113 LBB0_113: ldr x8, [sp, #152] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-32] ldr x10, [x8] adrp x8, _nextchar@PAGE ldr x8, [x8, _nextchar@PAGEOFF] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fprintf b LBB0_115 LBB0_114: ldr x8, [sp, #152] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-32] ldr x10, [x8] ldur x8, [x29, #-32] adrp x9, _optind@PAGE ldrsw x9, [x9, _optind@PAGEOFF] ldr x8, [x8, x9, lsl #3] ldrsb w11, [x8] adrp x8, _nextchar@PAGE ldr x8, [x8, _nextchar@PAGEOFF] mov x9, sp str x10, [x9] ; implicit-def: $x10 mov x10, x11 str x10, [x9, #8] str x8, [x9, #16] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fprintf b LBB0_115 LBB0_115: b LBB0_116 LBB0_116: adrp x8, l_.str.7@PAGE add x8, x8, l_.str.7@PAGEOFF adrp x9, _nextchar@PAGE str x8, [x9, _nextchar@PAGEOFF] adrp x9, _optind@PAGE ldr w8, [x9, _optind@PAGEOFF] add w8, w8, #1 str w8, [x9, _optind@PAGEOFF] adrp x8, _optopt@PAGE str wzr, [x8, _optopt@PAGEOFF] mov w8, #63 stur w8, [x29, #-20] b LBB0_206 LBB0_117: b LBB0_118 LBB0_118: adrp x10, _nextchar@PAGE str x10, [sp, #72] ; 8-byte Folded Spill ldr x8, [x10, _nextchar@PAGEOFF] add x9, x8, #1 str x9, [x10, _nextchar@PAGEOFF] ldrb w8, [x8] sturb w8, [x29, #-105] ldur x0, [x29, #-40] ldursb w1, [x29, #-105] bl _my_index ldr x8, [sp, #72] ; 8-byte Folded Reload stur x0, [x29, #-120] ldr x8, [x8, _nextchar@PAGEOFF] ldrsb w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_120 b LBB0_119 LBB0_119: adrp x9, _optind@PAGE ldr w8, [x9, _optind@PAGEOFF] add w8, w8, #1 str w8, [x9, _optind@PAGEOFF] b LBB0_120 LBB0_120: ldur x8, [x29, #-120] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_122 b LBB0_121 LBB0_121: ldursb w8, [x29, #-105] subs w8, w8, #58 cset w8, ne tbnz w8, #0, LBB0_128 b LBB0_122 LBB0_122: ldur w8, [x29, #-64] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_127 b LBB0_123 LBB0_123: adrp x8, _posixly_correct@PAGE ldr x8, [x8, _posixly_correct@PAGEOFF] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_125 b LBB0_124 LBB0_124: ldr x8, [sp, #152] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-32] ldr x8, [x8] ldursb w10, [x29, #-105] mov x9, sp str x8, [x9] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #8] adrp x1, l_.str.8@PAGE add x1, x1, l_.str.8@PAGEOFF bl _fprintf b LBB0_126 LBB0_125: ldr x8, [sp, #152] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-32] ldr x8, [x8] ldursb w10, [x29, #-105] mov x9, sp str x8, [x9] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #8] adrp x1, l_.str.9@PAGE add x1, x1, l_.str.9@PAGEOFF bl _fprintf b LBB0_126 LBB0_126: b LBB0_127 LBB0_127: ldursb w8, [x29, #-105] adrp x9, _optopt@PAGE str w8, [x9, _optopt@PAGEOFF] mov w8, #63 stur w8, [x29, #-20] b LBB0_206 LBB0_128: ldur x8, [x29, #-120] ldrsb w8, [x8] subs w8, w8, #87 cset w8, ne tbnz w8, #0, LBB0_186 b LBB0_129 LBB0_129: ldur x8, [x29, #-120] ldrsb w8, [x8, #1] subs w8, w8, #59 cset w8, ne tbnz w8, #0, LBB0_186 b LBB0_130 LBB0_130: ; kill: def $x8 killed $xzr stur xzr, [x29, #-144] stur wzr, [x29, #-148] stur wzr, [x29, #-152] stur wzr, [x29, #-156] adrp x8, _nextchar@PAGE ldr x8, [x8, _nextchar@PAGEOFF] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_132 b LBB0_131 LBB0_131: ldr x9, [sp, #144] ; 8-byte Folded Reload adrp x8, _nextchar@PAGE ldr x8, [x8, _nextchar@PAGEOFF] str x8, [x9] adrp x9, _optind@PAGE ldr w8, [x9, _optind@PAGEOFF] add w8, w8, #1 str w8, [x9, _optind@PAGEOFF] b LBB0_141 LBB0_132: adrp x8, _optind@PAGE ldr w8, [x8, _optind@PAGEOFF] ldur w9, [x29, #-24] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_139 b LBB0_133 LBB0_133: ldur w8, [x29, #-64] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_135 b LBB0_134 LBB0_134: ldr x8, [sp, #152] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-32] ldr x8, [x8] ldursb w10, [x29, #-105] mov x9, sp str x8, [x9] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #8] adrp x1, l_.str.10@PAGE add x1, x1, l_.str.10@PAGEOFF bl _fprintf b LBB0_135 LBB0_135: ldursb w8, [x29, #-105] adrp x9, _optopt@PAGE str w8, [x9, _optopt@PAGEOFF] ldur x8, [x29, #-40] ldrsb w8, [x8] subs w8, w8, #58 cset w8, ne tbnz w8, #0, LBB0_137 b LBB0_136 LBB0_136: mov w8, #58 sturb w8, [x29, #-105] b LBB0_138 LBB0_137: mov w8, #63 sturb w8, [x29, #-105] b LBB0_138 LBB0_138: ldursb w8, [x29, #-105] stur w8, [x29, #-20] b LBB0_206 LBB0_139: ldr x9, [sp, #144] ; 8-byte Folded Reload ldur x8, [x29, #-32] adrp x12, _optind@PAGE ldrsw x10, [x12, _optind@PAGEOFF] mov x11, x10 add w11, w11, #1 str w11, [x12, _optind@PAGEOFF] ldr x8, [x8, x10, lsl #3] str x8, [x9] b LBB0_140 LBB0_140: b LBB0_141 LBB0_141: ldr x8, [sp, #144] ; 8-byte Folded Reload ldr x8, [x8] stur x8, [x29, #-128] adrp x9, _nextchar@PAGE str x8, [x9, _nextchar@PAGEOFF] b LBB0_142 LBB0_142: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-128] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq mov w9, #0 str w9, [sp, #68] ; 4-byte Folded Spill tbnz w8, #0, LBB0_144 b LBB0_143 LBB0_143: ; in Loop: Header=BB0_142 Depth=1 ldur x8, [x29, #-128] ldrsb w8, [x8] subs w8, w8, #61 cset w8, ne str w8, [sp, #68] ; 4-byte Folded Spill b LBB0_144 LBB0_144: ; in Loop: Header=BB0_142 Depth=1 ldr w8, [sp, #68] ; 4-byte Folded Reload tbz w8, #0, LBB0_147 b LBB0_145 LBB0_145: ; in Loop: Header=BB0_142 Depth=1 b LBB0_146 LBB0_146: ; in Loop: Header=BB0_142 Depth=1 ldur x8, [x29, #-128] add x8, x8, #1 stur x8, [x29, #-128] b LBB0_142 LBB0_147: ldur x8, [x29, #-48] stur x8, [x29, #-136] str wzr, [sp, #160] b LBB0_148 LBB0_148: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-136] ldr x8, [x8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_159 b LBB0_149 LBB0_149: ; in Loop: Header=BB0_148 Depth=1 ldur x8, [x29, #-136] ldr x0, [x8] adrp x9, _nextchar@PAGE ldr x1, [x9, _nextchar@PAGEOFF] ldur x8, [x29, #-128] ldr x9, [x9, _nextchar@PAGEOFF] subs x2, x8, x9 bl _strncmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_157 b LBB0_150 LBB0_150: ; in Loop: Header=BB0_148 Depth=1 ldur x8, [x29, #-128] adrp x9, _nextchar@PAGE ldr x9, [x9, _nextchar@PAGEOFF] subs x8, x8, x9 ; kill: def $w8 killed $w8 killed $x8 str w8, [sp, #64] ; 4-byte Folded Spill ldur x8, [x29, #-136] ldr x0, [x8] bl _strlen ldr w8, [sp, #64] ; 4-byte Folded Reload subs x8, x0, w8, uxtw cset w8, ne tbnz w8, #0, LBB0_152 b LBB0_151 LBB0_151: ldur x8, [x29, #-136] stur x8, [x29, #-144] ldr w8, [sp, #160] stur w8, [x29, #-156] mov w8, #1 stur w8, [x29, #-148] b LBB0_159 LBB0_152: ; in Loop: Header=BB0_148 Depth=1 ldur x8, [x29, #-144] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_154 b LBB0_153 LBB0_153: ; in Loop: Header=BB0_148 Depth=1 ldur x8, [x29, #-136] stur x8, [x29, #-144] ldr w8, [sp, #160] stur w8, [x29, #-156] b LBB0_155 LBB0_154: ; in Loop: Header=BB0_148 Depth=1 mov w8, #1 stur w8, [x29, #-152] b LBB0_155 LBB0_155: ; in Loop: Header=BB0_148 Depth=1 b LBB0_156 LBB0_156: ; in Loop: Header=BB0_148 Depth=1 b LBB0_157 LBB0_157: ; in Loop: Header=BB0_148 Depth=1 b LBB0_158 LBB0_158: ; in Loop: Header=BB0_148 Depth=1 ldur x8, [x29, #-136] add x8, x8, #32 stur x8, [x29, #-136] ldr w8, [sp, #160] add w8, w8, #1 str w8, [sp, #160] b LBB0_148 LBB0_159: ldur w8, [x29, #-152] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_164 b LBB0_160 LBB0_160: ldur w8, [x29, #-148] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_164 b LBB0_161 LBB0_161: ldur w8, [x29, #-64] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_163 b LBB0_162 LBB0_162: ldr x8, [sp, #152] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-32] ldr x10, [x8] ldur x8, [x29, #-32] adrp x9, _optind@PAGE ldrsw x9, [x9, _optind@PAGEOFF] ldr x8, [x8, x9, lsl #3] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.11@PAGE add x1, x1, l_.str.11@PAGEOFF bl _fprintf b LBB0_163 LBB0_163: adrp x8, _nextchar@PAGE str x8, [sp, #56] ; 8-byte Folded Spill ldr x0, [x8, _nextchar@PAGEOFF] bl _strlen ldr x9, [sp, #56] ; 8-byte Folded Reload ldr x8, [x9, _nextchar@PAGEOFF] add x8, x8, x0 str x8, [x9, _nextchar@PAGEOFF] adrp x9, _optind@PAGE ldr w8, [x9, _optind@PAGEOFF] add w8, w8, #1 str w8, [x9, _optind@PAGEOFF] mov w8, #63 stur w8, [x29, #-20] b LBB0_206 LBB0_164: ldur x8, [x29, #-144] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_185 b LBB0_165 LBB0_165: ldur w8, [x29, #-156] str w8, [sp, #160] ldur x8, [x29, #-128] ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_172 b LBB0_166 LBB0_166: ldur x8, [x29, #-144] ldr w8, [x8, #8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_168 b LBB0_167 LBB0_167: ldr x9, [sp, #144] ; 8-byte Folded Reload ldur x8, [x29, #-128] add x8, x8, #1 str x8, [x9] b LBB0_171 LBB0_168: ldur w8, [x29, #-64] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_170 b LBB0_169 LBB0_169: ldr x8, [sp, #152] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-32] ldr x10, [x8] ldur x8, [x29, #-144] ldr x8, [x8] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.12@PAGE add x1, x1, l_.str.12@PAGEOFF bl _fprintf b LBB0_170 LBB0_170: adrp x8, _nextchar@PAGE str x8, [sp, #48] ; 8-byte Folded Spill ldr x0, [x8, _nextchar@PAGEOFF] bl _strlen ldr x9, [sp, #48] ; 8-byte Folded Reload ldr x8, [x9, _nextchar@PAGEOFF] add x8, x8, x0 str x8, [x9, _nextchar@PAGEOFF] mov w8, #63 stur w8, [x29, #-20] b LBB0_206 LBB0_171: b LBB0_180 LBB0_172: ldur x8, [x29, #-144] ldr w8, [x8, #8] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_179 b LBB0_173 LBB0_173: adrp x8, _optind@PAGE ldr w8, [x8, _optind@PAGEOFF] ldur w9, [x29, #-24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_175 b LBB0_174 LBB0_174: ldr x9, [sp, #144] ; 8-byte Folded Reload ldur x8, [x29, #-32] adrp x12, _optind@PAGE ldrsw x10, [x12, _optind@PAGEOFF] mov x11, x10 add w11, w11, #1 str w11, [x12, _optind@PAGEOFF] ldr x8, [x8, x10, lsl #3] str x8, [x9] b LBB0_178 LBB0_175: ldur w8, [x29, #-64] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_177 b LBB0_176 LBB0_176: ldr x8, [sp, #152] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-32] ldr x10, [x8] ldur x8, [x29, #-32] adrp x9, _optind@PAGE ldr w9, [x9, _optind@PAGEOFF] subs w9, w9, #1 ldr x8, [x8, w9, sxtw #3] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fprintf b LBB0_177 LBB0_177: adrp x8, _nextchar@PAGE str x8, [sp, #40] ; 8-byte Folded Spill ldr x0, [x8, _nextchar@PAGEOFF] bl _strlen ldr x9, [sp, #40] ; 8-byte Folded Reload ldr x8, [x9, _nextchar@PAGEOFF] add x8, x8, x0 str x8, [x9, _nextchar@PAGEOFF] ldur x8, [x29, #-40] ldrsb w9, [x8] mov w8, #58 subs w9, w9, #58 cset w9, eq and w10, w9, #0x1 mov w9, #63 ands w10, w10, #0x1 csel w8, w8, w9, ne stur w8, [x29, #-20] b LBB0_206 LBB0_178: b LBB0_179 LBB0_179: b LBB0_180 LBB0_180: adrp x8, _nextchar@PAGE str x8, [sp, #32] ; 8-byte Folded Spill ldr x0, [x8, _nextchar@PAGEOFF] bl _strlen ldr x9, [sp, #32] ; 8-byte Folded Reload ldr x8, [x9, _nextchar@PAGEOFF] add x8, x8, x0 str x8, [x9, _nextchar@PAGEOFF] ldur x8, [x29, #-56] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_182 b LBB0_181 LBB0_181: ldr w8, [sp, #160] ldur x9, [x29, #-56] str w8, [x9] b LBB0_182 LBB0_182: ldur x8, [x29, #-144] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_184 b LBB0_183 LBB0_183: ldur x8, [x29, #-144] ldr w8, [x8, #24] ldur x9, [x29, #-144] ldr x9, [x9, #16] str w8, [x9] stur wzr, [x29, #-20] b LBB0_206 LBB0_184: ldur x8, [x29, #-144] ldr w8, [x8, #24] stur w8, [x29, #-20] b LBB0_206 LBB0_185: adrp x8, _nextchar@PAGE ; kill: def $x9 killed $xzr str xzr, [x8, _nextchar@PAGEOFF] mov w8, #87 stur w8, [x29, #-20] b LBB0_206 LBB0_186: ldur x8, [x29, #-120] ldrsb w8, [x8, #1] subs w8, w8, #58 cset w8, ne tbnz w8, #0, LBB0_205 b LBB0_187 LBB0_187: ldur x8, [x29, #-120] ldrsb w8, [x8, #2] subs w8, w8, #58 cset w8, ne tbnz w8, #0, LBB0_192 b LBB0_188 LBB0_188: adrp x8, _nextchar@PAGE ldr x8, [x8, _nextchar@PAGEOFF] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_190 b LBB0_189 LBB0_189: ldr x9, [sp, #144] ; 8-byte Folded Reload adrp x8, _nextchar@PAGE ldr x8, [x8, _nextchar@PAGEOFF] str x8, [x9] adrp x9, _optind@PAGE ldr w8, [x9, _optind@PAGEOFF] add w8, w8, #1 str w8, [x9, _optind@PAGEOFF] b LBB0_191 LBB0_190: ldr x8, [sp, #144] ; 8-byte Folded Reload ; kill: def $x9 killed $xzr str xzr, [x8] b LBB0_191 LBB0_191: adrp x8, _nextchar@PAGE ; kill: def $x9 killed $xzr str xzr, [x8, _nextchar@PAGEOFF] b LBB0_204 LBB0_192: adrp x8, _nextchar@PAGE ldr x8, [x8, _nextchar@PAGEOFF] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_194 b LBB0_193 LBB0_193: ldr x9, [sp, #144] ; 8-byte Folded Reload adrp x8, _nextchar@PAGE ldr x8, [x8, _nextchar@PAGEOFF] str x8, [x9] adrp x9, _optind@PAGE ldr w8, [x9, _optind@PAGEOFF] add w8, w8, #1 str w8, [x9, _optind@PAGEOFF] b LBB0_203 LBB0_194: adrp x8, _optind@PAGE ldr w8, [x8, _optind@PAGEOFF] ldur w9, [x29, #-24] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_201 b LBB0_195 LBB0_195: ldur w8, [x29, #-64] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_197 b LBB0_196 LBB0_196: ldr x8, [sp, #152] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-32] ldr x8, [x8] ldursb w10, [x29, #-105] mov x9, sp str x8, [x9] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #8] adrp x1, l_.str.10@PAGE add x1, x1, l_.str.10@PAGEOFF bl _fprintf b LBB0_197 LBB0_197: ldursb w8, [x29, #-105] adrp x9, _optopt@PAGE str w8, [x9, _optopt@PAGEOFF] ldur x8, [x29, #-40] ldrsb w8, [x8] subs w8, w8, #58 cset w8, ne tbnz w8, #0, LBB0_199 b LBB0_198 LBB0_198: mov w8, #58 sturb w8, [x29, #-105] b LBB0_200 LBB0_199: mov w8, #63 sturb w8, [x29, #-105] b LBB0_200 LBB0_200: b LBB0_202 LBB0_201: ldr x9, [sp, #144] ; 8-byte Folded Reload ldur x8, [x29, #-32] adrp x12, _optind@PAGE ldrsw x10, [x12, _optind@PAGEOFF] mov x11, x10 add w11, w11, #1 str w11, [x12, _optind@PAGEOFF] ldr x8, [x8, x10, lsl #3] str x8, [x9] b LBB0_202 LBB0_202: b LBB0_203 LBB0_203: adrp x8, _nextchar@PAGE ; kill: def $x9 killed $xzr str xzr, [x8, _nextchar@PAGEOFF] b LBB0_204 LBB0_204: b LBB0_205 LBB0_205: ldursb w8, [x29, #-105] stur w8, [x29, #-20] b LBB0_206 LBB0_206: ldur w0, [x29, #-20] ldp x29, x30, [sp, #320] ; 16-byte Folded Reload ldp x28, x27, [sp, #304] ; 16-byte Folded Reload add sp, sp, #336 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function _getopt_initialize __getopt_initialize: ; @_getopt_initialize .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str x1, [sp, #16] str x2, [sp, #8] adrp x8, _optind@PAGE ldr w8, [x8, _optind@PAGEOFF] adrp x9, _last_nonopt@PAGE str w8, [x9, _last_nonopt@PAGEOFF] adrp x9, _first_nonopt@PAGE str w8, [x9, _first_nonopt@PAGEOFF] adrp x8, _nextchar@PAGE ; kill: def $x9 killed $xzr str xzr, [x8, _nextchar@PAGEOFF] adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _getenv adrp x8, _posixly_correct@PAGE str x0, [x8, _posixly_correct@PAGEOFF] ldr x8, [sp, #8] ldrsb w8, [x8] subs w8, w8, #45 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: mov w8, #2 adrp x9, _ordering@PAGE str w8, [x9, _ordering@PAGEOFF] ldr x8, [sp, #8] add x8, x8, #1 str x8, [sp, #8] b LBB1_9 LBB1_2: ldr x8, [sp, #8] ldrsb w8, [x8] subs w8, w8, #43 cset w8, ne tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: adrp x8, _ordering@PAGE str wzr, [x8, _ordering@PAGEOFF] ldr x8, [sp, #8] add x8, x8, #1 str x8, [sp, #8] b LBB1_8 LBB1_4: adrp x8, _posixly_correct@PAGE ldr x8, [x8, _posixly_correct@PAGEOFF] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: adrp x8, _ordering@PAGE str wzr, [x8, _ordering@PAGEOFF] b LBB1_7 LBB1_6: adrp x9, _ordering@PAGE mov w8, #1 str w8, [x9, _ordering@PAGEOFF] b LBB1_7 LBB1_7: b LBB1_8 LBB1_8: b LBB1_9 LBB1_9: ldr x0, [sp, #8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function exchange _exchange: ; @exchange .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 str x0, [sp, #56] adrp x8, _first_nonopt@PAGE ldr w8, [x8, _first_nonopt@PAGEOFF] str w8, [sp, #52] adrp x8, _last_nonopt@PAGE ldr w8, [x8, _last_nonopt@PAGEOFF] str w8, [sp, #48] adrp x8, _optind@PAGE ldr w8, [x8, _optind@PAGEOFF] str w8, [sp, #44] b LBB2_1 LBB2_1: ; =>This Loop Header: Depth=1 ; Child Loop BB2_11 Depth 2 ; Child Loop BB2_6 Depth 2 ldr w8, [sp, #44] ldr w9, [sp, #48] subs w8, w8, w9 cset w8, le mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #48] ldr w9, [sp, #52] subs w8, w8, w9 cset w8, gt str w8, [sp, #12] ; 4-byte Folded Spill b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB2_16 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #44] ldr w9, [sp, #48] subs w8, w8, w9 ldr w9, [sp, #48] ldr w10, [sp, #52] subs w9, w9, w10 subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB2_10 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #48] ldr w9, [sp, #52] subs w8, w8, w9 str w8, [sp, #28] str wzr, [sp, #24] b LBB2_6 LBB2_6: ; Parent Loop BB2_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #24] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_9 b LBB2_7 LBB2_7: ; in Loop: Header=BB2_6 Depth=2 ldr x8, [sp, #56] ldr w9, [sp, #52] ldr w10, [sp, #24] add w9, w9, w10 ldr x8, [x8, w9, sxtw #3] str x8, [sp, #32] ldr x8, [sp, #56] ldr w9, [sp, #44] ldr w10, [sp, #48] ldr w11, [sp, #52] subs w10, w10, w11 subs w9, w9, w10 ldr w10, [sp, #24] add w9, w9, w10 ldr x8, [x8, w9, sxtw #3] ldr x9, [sp, #56] ldr w10, [sp, #52] ldr w11, [sp, #24] add w10, w10, w11 str x8, [x9, w10, sxtw #3] ldr x8, [sp, #32] ldr x9, [sp, #56] ldr w10, [sp, #44] ldr w11, [sp, #48] ldr w12, [sp, #52] subs w11, w11, w12 subs w10, w10, w11 ldr w11, [sp, #24] add w10, w10, w11 str x8, [x9, w10, sxtw #3] b LBB2_8 LBB2_8: ; in Loop: Header=BB2_6 Depth=2 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB2_6 LBB2_9: ; in Loop: Header=BB2_1 Depth=1 ldr w9, [sp, #28] ldr w8, [sp, #44] subs w8, w8, w9 str w8, [sp, #44] b LBB2_15 LBB2_10: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #44] ldr w9, [sp, #48] subs w8, w8, w9 str w8, [sp, #20] str wzr, [sp, #16] b LBB2_11 LBB2_11: ; Parent Loop BB2_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #16] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_14 b LBB2_12 LBB2_12: ; in Loop: Header=BB2_11 Depth=2 ldr x8, [sp, #56] ldr w9, [sp, #52] ldr w10, [sp, #16] add w9, w9, w10 ldr x8, [x8, w9, sxtw #3] str x8, [sp, #32] ldr x8, [sp, #56] ldr w9, [sp, #48] ldr w10, [sp, #16] add w9, w9, w10 ldr x8, [x8, w9, sxtw #3] ldr x9, [sp, #56] ldr w10, [sp, #52] ldr w11, [sp, #16] add w10, w10, w11 str x8, [x9, w10, sxtw #3] ldr x8, [sp, #32] ldr x9, [sp, #56] ldr w10, [sp, #48] ldr w11, [sp, #16] add w10, w10, w11 str x8, [x9, w10, sxtw #3] b LBB2_13 LBB2_13: ; in Loop: Header=BB2_11 Depth=2 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB2_11 LBB2_14: ; in Loop: Header=BB2_1 Depth=1 ldr w9, [sp, #20] ldr w8, [sp, #52] add w8, w8, w9 str w8, [sp, #52] b LBB2_15 LBB2_15: ; in Loop: Header=BB2_1 Depth=1 b LBB2_1 LBB2_16: adrp x8, _optind@PAGE ldr w10, [x8, _optind@PAGEOFF] adrp x9, _last_nonopt@PAGE ldr w11, [x9, _last_nonopt@PAGEOFF] subs w12, w10, w11 adrp x11, _first_nonopt@PAGE ldr w10, [x11, _first_nonopt@PAGEOFF] add w10, w10, w12 str w10, [x11, _first_nonopt@PAGEOFF] ldr w8, [x8, _optind@PAGEOFF] str w8, [x9, _last_nonopt@PAGEOFF] add sp, sp, #64 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function my_index _my_index: ; @my_index .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str w1, [sp, #12] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB3_5 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #16] ldrsb w8, [x8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ldr x8, [sp, #16] str x8, [sp, #24] b LBB3_6 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #16] add x8, x8, #1 str x8, [sp, #16] b LBB3_1 LBB3_5: ; kill: def $x8 killed $xzr str xzr, [sp, #24] b LBB3_6 LBB3_6: ldr x0, [sp, #24] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _getopt ; -- Begin function _getopt .p2align 2 _getopt: ; @"\01_getopt" .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] ldur w0, [x29, #-4] ldr x1, [sp, #16] ldr x2, [sp, #8] mov x4, #0 mov x3, x4 mov w5, #0 bl __getopt_internal ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _getopt_long ; -- Begin function getopt_long .p2align 2 _getopt_long: ; @getopt_long .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] str x2, [sp, #24] str x3, [sp, #16] str x4, [sp, #8] ldur w0, [x29, #-4] ldur x1, [x29, #-16] ldr x2, [sp, #24] ldr x3, [sp, #16] ldr x4, [sp, #8] mov w5, #0 bl __getopt_internal ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _getopt_long_only ; -- Begin function getopt_long_only .p2align 2 _getopt_long_only: ; @getopt_long_only .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] str x2, [sp, #24] str x3, [sp, #16] str x4, [sp, #8] ldur w0, [x29, #-4] ldur x1, [x29, #-16] ldr x2, [sp, #24] ldr x3, [sp, #16] ldr x4, [sp, #8] mov w5, #1 bl __getopt_internal ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _optind ; @optind .p2align 2 _optind: .long 1 ; 0x1 .globl _opterr ; @opterr .p2align 2 _opterr: .long 1 ; 0x1 .globl _optopt ; @optopt .p2align 2 _optopt: .long 63 ; 0x3f .comm _optarg,8,3 ; @optarg .comm ___getopt_initialized,4,2 ; @__getopt_initialized .zerofill __DATA,__bss,_nextchar,8,3 ; @nextchar .zerofill __DATA,__bss,_last_nonopt,4,2 ; @last_nonopt .zerofill __DATA,__bss,_first_nonopt,4,2 ; @first_nonopt .zerofill __DATA,__bss,_ordering,4,2 ; @ordering .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "--" l_.str.1: ; @.str.1 .asciz "%s: option `%s' is ambiguous\n" l_.str.2: ; @.str.2 .asciz "%s: option `--%s' doesn't allow an argument\n" l_.str.3: ; @.str.3 .asciz "%s: option `%c%s' doesn't allow an argument\n" l_.str.4: ; @.str.4 .asciz "%s: option `%s' requires an argument\n" l_.str.5: ; @.str.5 .asciz "%s: unrecognized option `--%s'\n" l_.str.6: ; @.str.6 .asciz "%s: unrecognized option `%c%s'\n" l_.str.7: ; @.str.7 .space 1 .zerofill __DATA,__bss,_posixly_correct,8,3 ; @posixly_correct l_.str.8: ; @.str.8 .asciz "%s: illegal option -- %c\n" l_.str.9: ; @.str.9 .asciz "%s: invalid option -- %c\n" l_.str.10: ; @.str.10 .asciz "%s: option requires an argument -- %c\n" l_.str.11: ; @.str.11 .asciz "%s: option `-W %s' is ambiguous\n" l_.str.12: ; @.str.12 .asciz "%s: option `-W %s' doesn't allow an argument\n" l_.str.13: ; @.str.13 .asciz "POSIXLY_CORRECT" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl __getopt_internal ## -- Begin function _getopt_internal .p2align 4, 0x90 __getopt_internal: ## @_getopt_internal .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $192, %rsp movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq %rcx, -32(%rbp) movq %r8, -40(%rbp) movl %r9d, -44(%rbp) movl _opterr(%rip), %eax movl %eax, -48(%rbp) movq -24(%rbp), %rax movsbl (%rax), %eax cmpl $58, %eax jne LBB0_2 ## %bb.1: movl $0, -48(%rbp) LBB0_2: cmpl $1, -8(%rbp) jge LBB0_4 ## %bb.3: movl $-1, -4(%rbp) jmp LBB0_206 LBB0_4: movq _optarg@GOTPCREL(%rip), %rax movq $0, (%rax) cmpl $0, _optind(%rip) je LBB0_6 ## %bb.5: movq ___getopt_initialized@GOTPCREL(%rip), %rax cmpl $0, (%rax) jne LBB0_9 LBB0_6: cmpl $0, _optind(%rip) jne LBB0_8 ## %bb.7: movl $1, _optind(%rip) LBB0_8: movl -8(%rbp), %edi movq -16(%rbp), %rsi movq -24(%rbp), %rdx callq __getopt_initialize movq %rax, -24(%rbp) movq ___getopt_initialized@GOTPCREL(%rip), %rax movl $1, (%rax) LBB0_9: cmpq $0, _nextchar(%rip) je LBB0_11 ## %bb.10: movq _nextchar(%rip), %rax movsbl (%rax), %eax cmpl $0, %eax jne LBB0_51 LBB0_11: movl _last_nonopt(%rip), %eax cmpl _optind(%rip), %eax jle LBB0_13 ## %bb.12: movl _optind(%rip), %eax movl %eax, _last_nonopt(%rip) LBB0_13: movl _first_nonopt(%rip), %eax cmpl _optind(%rip), %eax jle LBB0_15 ## %bb.14: movl _optind(%rip), %eax movl %eax, _first_nonopt(%rip) LBB0_15: cmpl $1, _ordering(%rip) jne LBB0_30 ## %bb.16: movl _first_nonopt(%rip), %eax cmpl _last_nonopt(%rip), %eax je LBB0_19 ## %bb.17: movl _last_nonopt(%rip), %eax cmpl _optind(%rip), %eax je LBB0_19 ## %bb.18: movq -16(%rbp), %rdi callq _exchange jmp LBB0_22 LBB0_19: movl _last_nonopt(%rip), %eax cmpl _optind(%rip), %eax je LBB0_21 ## %bb.20: movl _optind(%rip), %eax movl %eax, _first_nonopt(%rip) LBB0_21: jmp LBB0_22 LBB0_22: jmp LBB0_23 LBB0_23: ## =>This Inner Loop Header: Depth=1 movl _optind(%rip), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -8(%rbp), %ecx movb %al, -145(%rbp) ## 1-byte Spill jge LBB0_27 ## %bb.24: ## in Loop: Header=BB0_23 Depth=1 movq -16(%rbp), %rax movslq _optind(%rip), %rcx movq (%rax,%rcx,8), %rax movsbl (%rax), %ecx movb $1, %al cmpl $45, %ecx movb %al, -146(%rbp) ## 1-byte Spill jne LBB0_26 ## %bb.25: ## in Loop: Header=BB0_23 Depth=1 movq -16(%rbp), %rax movslq _optind(%rip), %rcx movq (%rax,%rcx,8), %rax movsbl 1(%rax), %eax cmpl $0, %eax sete %al movb %al, -146(%rbp) ## 1-byte Spill LBB0_26: ## in Loop: Header=BB0_23 Depth=1 movb -146(%rbp), %al ## 1-byte Reload movb %al, -145(%rbp) ## 1-byte Spill LBB0_27: ## in Loop: Header=BB0_23 Depth=1 movb -145(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_28 jmp LBB0_29 LBB0_28: ## in Loop: Header=BB0_23 Depth=1 movl _optind(%rip), %eax addl $1, %eax movl %eax, _optind(%rip) jmp LBB0_23 LBB0_29: movl _optind(%rip), %eax movl %eax, _last_nonopt(%rip) LBB0_30: movl _optind(%rip), %eax cmpl -8(%rbp), %eax je LBB0_39 ## %bb.31: movq -16(%rbp), %rax movslq _optind(%rip), %rcx movq (%rax,%rcx,8), %rdi leaq L_.str(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB0_39 ## %bb.32: movl _optind(%rip), %eax addl $1, %eax movl %eax, _optind(%rip) movl _first_nonopt(%rip), %eax cmpl _last_nonopt(%rip), %eax je LBB0_35 ## %bb.33: movl _last_nonopt(%rip), %eax cmpl _optind(%rip), %eax je LBB0_35 ## %bb.34: movq -16(%rbp), %rdi callq _exchange jmp LBB0_38 LBB0_35: movl _first_nonopt(%rip), %eax cmpl _last_nonopt(%rip), %eax jne LBB0_37 ## %bb.36: movl _optind(%rip), %eax movl %eax, _first_nonopt(%rip) LBB0_37: jmp LBB0_38 LBB0_38: movl -8(%rbp), %eax movl %eax, _last_nonopt(%rip) movl -8(%rbp), %eax movl %eax, _optind(%rip) LBB0_39: movl _optind(%rip), %eax cmpl -8(%rbp), %eax jne LBB0_43 ## %bb.40: movl _first_nonopt(%rip), %eax cmpl _last_nonopt(%rip), %eax je LBB0_42 ## %bb.41: movl _first_nonopt(%rip), %eax movl %eax, _optind(%rip) LBB0_42: movl $-1, -4(%rbp) jmp LBB0_206 LBB0_43: movq -16(%rbp), %rax movslq _optind(%rip), %rcx movq (%rax,%rcx,8), %rax movsbl (%rax), %eax cmpl $45, %eax jne LBB0_45 ## %bb.44: movq -16(%rbp), %rax movslq _optind(%rip), %rcx movq (%rax,%rcx,8), %rax movsbl 1(%rax), %eax cmpl $0, %eax jne LBB0_48 LBB0_45: cmpl $0, _ordering(%rip) jne LBB0_47 ## %bb.46: movl $-1, -4(%rbp) jmp LBB0_206 LBB0_47: movq -16(%rbp), %rax movl _optind(%rip), %ecx movl %ecx, %edx addl $1, %edx movl %edx, _optind(%rip) movslq %ecx, %rcx movq (%rax,%rcx,8), %rcx movq _optarg@GOTPCREL(%rip), %rax movq %rcx, (%rax) movl $1, -4(%rbp) jmp LBB0_206 LBB0_48: movq -16(%rbp), %rax movslq _optind(%rip), %rcx movq (%rax,%rcx,8), %rax addq $1, %rax movq %rax, -160(%rbp) ## 8-byte Spill xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpq $0, -32(%rbp) movb %al, -147(%rbp) ## 1-byte Spill je LBB0_50 ## %bb.49: movq -16(%rbp), %rax movslq _optind(%rip), %rcx movq (%rax,%rcx,8), %rax movsbl 1(%rax), %eax cmpl $45, %eax sete %al movb %al, -147(%rbp) ## 1-byte Spill LBB0_50: movq -160(%rbp), %rax ## 8-byte Reload movb -147(%rbp), %cl ## 1-byte Reload andb $1, %cl movzbl %cl, %ecx movslq %ecx, %rcx addq %rcx, %rax movq %rax, _nextchar(%rip) LBB0_51: cmpq $0, -32(%rbp) je LBB0_118 ## %bb.52: movq -16(%rbp), %rax movslq _optind(%rip), %rcx movq (%rax,%rcx,8), %rax movsbl 1(%rax), %eax cmpl $45, %eax je LBB0_56 ## %bb.53: cmpl $0, -44(%rbp) je LBB0_118 ## %bb.54: movq -16(%rbp), %rax movslq _optind(%rip), %rcx movq (%rax,%rcx,8), %rax movsbl 2(%rax), %eax cmpl $0, %eax jne LBB0_56 ## %bb.55: movq -24(%rbp), %rdi movq -16(%rbp), %rax movslq _optind(%rip), %rcx movq (%rax,%rcx,8), %rax movsbl 1(%rax), %esi callq _my_index cmpq $0, %rax jne LBB0_118 LBB0_56: movq $0, -72(%rbp) movl $0, -76(%rbp) movl $0, -80(%rbp) movl $-1, -84(%rbp) movq _nextchar(%rip), %rax movq %rax, -56(%rbp) LBB0_57: ## =>This Inner Loop Header: Depth=1 movq -56(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -161(%rbp) ## 1-byte Spill je LBB0_59 ## %bb.58: ## in Loop: Header=BB0_57 Depth=1 movq -56(%rbp), %rax movsbl (%rax), %eax cmpl $61, %eax setne %al movb %al, -161(%rbp) ## 1-byte Spill LBB0_59: ## in Loop: Header=BB0_57 Depth=1 movb -161(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_60 jmp LBB0_62 LBB0_60: ## in Loop: Header=BB0_57 Depth=1 jmp LBB0_61 LBB0_61: ## in Loop: Header=BB0_57 Depth=1 movq -56(%rbp), %rax addq $1, %rax movq %rax, -56(%rbp) jmp LBB0_57 LBB0_62: movq -32(%rbp), %rax movq %rax, -64(%rbp) movl $0, -88(%rbp) LBB0_63: ## =>This Inner Loop Header: Depth=1 movq -64(%rbp), %rax cmpq $0, (%rax) je LBB0_79 ## %bb.64: ## in Loop: Header=BB0_63 Depth=1 movq -64(%rbp), %rax movq (%rax), %rdi movq _nextchar(%rip), %rsi movq -56(%rbp), %rdx movq _nextchar(%rip), %rax subq %rax, %rdx callq _strncmp cmpl $0, %eax jne LBB0_77 ## %bb.65: ## in Loop: Header=BB0_63 Depth=1 movq -56(%rbp), %rax movq _nextchar(%rip), %rcx subq %rcx, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -168(%rbp) ## 4-byte Spill movq -64(%rbp), %rax movq (%rax), %rdi callq _strlen movq %rax, %rcx movl -168(%rbp), %eax ## 4-byte Reload ## kill: def $ecx killed $ecx killed $rcx cmpl %ecx, %eax jne LBB0_67 ## %bb.66: movq -64(%rbp), %rax movq %rax, -72(%rbp) movl -88(%rbp), %eax movl %eax, -84(%rbp) movl $1, -76(%rbp) jmp LBB0_79 LBB0_67: ## in Loop: Header=BB0_63 Depth=1 cmpq $0, -72(%rbp) jne LBB0_69 ## %bb.68: ## in Loop: Header=BB0_63 Depth=1 movq -64(%rbp), %rax movq %rax, -72(%rbp) movl -88(%rbp), %eax movl %eax, -84(%rbp) jmp LBB0_75 LBB0_69: ## in Loop: Header=BB0_63 Depth=1 cmpl $0, -44(%rbp) jne LBB0_73 ## %bb.70: ## in Loop: Header=BB0_63 Depth=1 movq -72(%rbp), %rax movl 8(%rax), %eax movq -64(%rbp), %rcx cmpl 8(%rcx), %eax jne LBB0_73 ## %bb.71: ## in Loop: Header=BB0_63 Depth=1 movq -72(%rbp), %rax movq 16(%rax), %rax movq -64(%rbp), %rcx cmpq 16(%rcx), %rax jne LBB0_73 ## %bb.72: ## in Loop: Header=BB0_63 Depth=1 movq -72(%rbp), %rax movl 24(%rax), %eax movq -64(%rbp), %rcx cmpl 24(%rcx), %eax je LBB0_74 LBB0_73: ## in Loop: Header=BB0_63 Depth=1 movl $1, -80(%rbp) LBB0_74: ## in Loop: Header=BB0_63 Depth=1 jmp LBB0_75 LBB0_75: ## in Loop: Header=BB0_63 Depth=1 jmp LBB0_76 LBB0_76: ## in Loop: Header=BB0_63 Depth=1 jmp LBB0_77 LBB0_77: ## in Loop: Header=BB0_63 Depth=1 jmp LBB0_78 LBB0_78: ## in Loop: Header=BB0_63 Depth=1 movq -64(%rbp), %rax addq $32, %rax movq %rax, -64(%rbp) movl -88(%rbp), %eax addl $1, %eax movl %eax, -88(%rbp) jmp LBB0_63 LBB0_79: cmpl $0, -80(%rbp) je LBB0_84 ## %bb.80: cmpl $0, -76(%rbp) jne LBB0_84 ## %bb.81: cmpl $0, -48(%rbp) je LBB0_83 ## %bb.82: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movq (%rax), %rdx movq -16(%rbp), %rax movslq _optind(%rip), %rcx movq (%rax,%rcx,8), %rcx leaq L_.str.1(%rip), %rsi movb $0, %al callq _fprintf LBB0_83: movq _nextchar(%rip), %rdi callq _strlen addq _nextchar(%rip), %rax movq %rax, _nextchar(%rip) movl _optind(%rip), %eax addl $1, %eax movl %eax, _optind(%rip) movl $0, _optopt(%rip) movl $63, -4(%rbp) jmp LBB0_206 LBB0_84: cmpq $0, -72(%rbp) je LBB0_108 ## %bb.85: movl -84(%rbp), %eax movl %eax, -88(%rbp) movl _optind(%rip), %eax addl $1, %eax movl %eax, _optind(%rip) movq -56(%rbp), %rax cmpb $0, (%rax) je LBB0_95 ## %bb.86: movq -72(%rbp), %rax cmpl $0, 8(%rax) je LBB0_88 ## %bb.87: movq -56(%rbp), %rcx addq $1, %rcx movq _optarg@GOTPCREL(%rip), %rax movq %rcx, (%rax) jmp LBB0_94 LBB0_88: cmpl $0, -48(%rbp) je LBB0_93 ## %bb.89: movq -16(%rbp), %rax movl _optind(%rip), %ecx subl $1, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rax movsbl 1(%rax), %eax cmpl $45, %eax jne LBB0_91 ## %bb.90: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movq (%rax), %rdx movq -72(%rbp), %rax movq (%rax), %rcx leaq L_.str.2(%rip), %rsi movb $0, %al callq _fprintf jmp LBB0_92 LBB0_91: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movq (%rax), %rdx movq -16(%rbp), %rax movl _optind(%rip), %ecx subl $1, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rax movsbl (%rax), %ecx movq -72(%rbp), %rax movq (%rax), %r8 leaq L_.str.3(%rip), %rsi movb $0, %al callq _fprintf LBB0_92: jmp LBB0_93 LBB0_93: movq _nextchar(%rip), %rdi callq _strlen addq _nextchar(%rip), %rax movq %rax, _nextchar(%rip) movq -72(%rbp), %rax movl 24(%rax), %eax movl %eax, _optopt(%rip) movl $63, -4(%rbp) jmp LBB0_206 LBB0_94: jmp LBB0_103 LBB0_95: movq -72(%rbp), %rax cmpl $1, 8(%rax) jne LBB0_102 ## %bb.96: movl _optind(%rip), %eax cmpl -8(%rbp), %eax jge LBB0_98 ## %bb.97: movq -16(%rbp), %rax movl _optind(%rip), %ecx movl %ecx, %edx addl $1, %edx movl %edx, _optind(%rip) movslq %ecx, %rcx movq (%rax,%rcx,8), %rcx movq _optarg@GOTPCREL(%rip), %rax movq %rcx, (%rax) jmp LBB0_101 LBB0_98: cmpl $0, -48(%rbp) je LBB0_100 ## %bb.99: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movq (%rax), %rdx movq -16(%rbp), %rax movl _optind(%rip), %ecx subl $1, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rcx leaq L_.str.4(%rip), %rsi movb $0, %al callq _fprintf LBB0_100: movq _nextchar(%rip), %rdi callq _strlen addq _nextchar(%rip), %rax movq %rax, _nextchar(%rip) movq -72(%rbp), %rax movl 24(%rax), %eax movl %eax, _optopt(%rip) movq -24(%rbp), %rax movsbl (%rax), %edx movl $63, %eax movl $58, %ecx cmpl $58, %edx cmovel %ecx, %eax movl %eax, -4(%rbp) jmp LBB0_206 LBB0_101: jmp LBB0_102 LBB0_102: jmp LBB0_103 LBB0_103: movq _nextchar(%rip), %rdi callq _strlen addq _nextchar(%rip), %rax movq %rax, _nextchar(%rip) cmpq $0, -40(%rbp) je LBB0_105 ## %bb.104: movl -88(%rbp), %ecx movq -40(%rbp), %rax movl %ecx, (%rax) LBB0_105: movq -72(%rbp), %rax cmpq $0, 16(%rax) je LBB0_107 ## %bb.106: movq -72(%rbp), %rax movl 24(%rax), %ecx movq -72(%rbp), %rax movq 16(%rax), %rax movl %ecx, (%rax) movl $0, -4(%rbp) jmp LBB0_206 LBB0_107: movq -72(%rbp), %rax movl 24(%rax), %eax movl %eax, -4(%rbp) jmp LBB0_206 LBB0_108: cmpl $0, -44(%rbp) je LBB0_111 ## %bb.109: movq -16(%rbp), %rax movslq _optind(%rip), %rcx movq (%rax,%rcx,8), %rax movsbl 1(%rax), %eax cmpl $45, %eax je LBB0_111 ## %bb.110: movq -24(%rbp), %rdi movq _nextchar(%rip), %rax movsbl (%rax), %esi callq _my_index cmpq $0, %rax jne LBB0_117 LBB0_111: cmpl $0, -48(%rbp) je LBB0_116 ## %bb.112: movq -16(%rbp), %rax movslq _optind(%rip), %rcx movq (%rax,%rcx,8), %rax movsbl 1(%rax), %eax cmpl $45, %eax jne LBB0_114 ## %bb.113: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movq (%rax), %rdx movq _nextchar(%rip), %rcx leaq L_.str.5(%rip), %rsi movb $0, %al callq _fprintf jmp LBB0_115 LBB0_114: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movq (%rax), %rdx movq -16(%rbp), %rax movslq _optind(%rip), %rcx movq (%rax,%rcx,8), %rax movsbl (%rax), %ecx movq _nextchar(%rip), %r8 leaq L_.str.6(%rip), %rsi movb $0, %al callq _fprintf LBB0_115: jmp LBB0_116 LBB0_116: leaq L_.str.7(%rip), %rax movq %rax, _nextchar(%rip) movl _optind(%rip), %eax addl $1, %eax movl %eax, _optind(%rip) movl $0, _optopt(%rip) movl $63, -4(%rbp) jmp LBB0_206 LBB0_117: jmp LBB0_118 LBB0_118: movq _nextchar(%rip), %rax movq %rax, %rcx addq $1, %rcx movq %rcx, _nextchar(%rip) movb (%rax), %al movb %al, -89(%rbp) movq -24(%rbp), %rdi movsbl -89(%rbp), %esi callq _my_index movq %rax, -104(%rbp) movq _nextchar(%rip), %rax movsbl (%rax), %eax cmpl $0, %eax jne LBB0_120 ## %bb.119: movl _optind(%rip), %eax addl $1, %eax movl %eax, _optind(%rip) LBB0_120: cmpq $0, -104(%rbp) je LBB0_122 ## %bb.121: movsbl -89(%rbp), %eax cmpl $58, %eax jne LBB0_128 LBB0_122: cmpl $0, -48(%rbp) je LBB0_127 ## %bb.123: cmpq $0, _posixly_correct(%rip) je LBB0_125 ## %bb.124: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movq (%rax), %rdx movsbl -89(%rbp), %ecx leaq L_.str.8(%rip), %rsi movb $0, %al callq _fprintf jmp LBB0_126 LBB0_125: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movq (%rax), %rdx movsbl -89(%rbp), %ecx leaq L_.str.9(%rip), %rsi movb $0, %al callq _fprintf LBB0_126: jmp LBB0_127 LBB0_127: movsbl -89(%rbp), %eax movl %eax, _optopt(%rip) movl $63, -4(%rbp) jmp LBB0_206 LBB0_128: movq -104(%rbp), %rax movsbl (%rax), %eax cmpl $87, %eax jne LBB0_186 ## %bb.129: movq -104(%rbp), %rax movsbl 1(%rax), %eax cmpl $59, %eax jne LBB0_186 ## %bb.130: movq $0, -128(%rbp) movl $0, -132(%rbp) movl $0, -136(%rbp) movl $0, -140(%rbp) movq _nextchar(%rip), %rax movsbl (%rax), %eax cmpl $0, %eax je LBB0_132 ## %bb.131: movq _nextchar(%rip), %rcx movq _optarg@GOTPCREL(%rip), %rax movq %rcx, (%rax) movl _optind(%rip), %eax addl $1, %eax movl %eax, _optind(%rip) jmp LBB0_141 LBB0_132: movl _optind(%rip), %eax cmpl -8(%rbp), %eax jne LBB0_139 ## %bb.133: cmpl $0, -48(%rbp) je LBB0_135 ## %bb.134: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movq (%rax), %rdx movsbl -89(%rbp), %ecx leaq L_.str.10(%rip), %rsi movb $0, %al callq _fprintf LBB0_135: movsbl -89(%rbp), %eax movl %eax, _optopt(%rip) movq -24(%rbp), %rax movsbl (%rax), %eax cmpl $58, %eax jne LBB0_137 ## %bb.136: movb $58, -89(%rbp) jmp LBB0_138 LBB0_137: movb $63, -89(%rbp) LBB0_138: movsbl -89(%rbp), %eax movl %eax, -4(%rbp) jmp LBB0_206 LBB0_139: movq -16(%rbp), %rax movl _optind(%rip), %ecx movl %ecx, %edx addl $1, %edx movl %edx, _optind(%rip) movslq %ecx, %rcx movq (%rax,%rcx,8), %rcx movq _optarg@GOTPCREL(%rip), %rax movq %rcx, (%rax) ## %bb.140: jmp LBB0_141 LBB0_141: movq _optarg@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -112(%rbp) movq %rax, _nextchar(%rip) LBB0_142: ## =>This Inner Loop Header: Depth=1 movq -112(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -169(%rbp) ## 1-byte Spill je LBB0_144 ## %bb.143: ## in Loop: Header=BB0_142 Depth=1 movq -112(%rbp), %rax movsbl (%rax), %eax cmpl $61, %eax setne %al movb %al, -169(%rbp) ## 1-byte Spill LBB0_144: ## in Loop: Header=BB0_142 Depth=1 movb -169(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_145 jmp LBB0_147 LBB0_145: ## in Loop: Header=BB0_142 Depth=1 jmp LBB0_146 LBB0_146: ## in Loop: Header=BB0_142 Depth=1 movq -112(%rbp), %rax addq $1, %rax movq %rax, -112(%rbp) jmp LBB0_142 LBB0_147: movq -32(%rbp), %rax movq %rax, -120(%rbp) movl $0, -144(%rbp) LBB0_148: ## =>This Inner Loop Header: Depth=1 movq -120(%rbp), %rax cmpq $0, (%rax) je LBB0_159 ## %bb.149: ## in Loop: Header=BB0_148 Depth=1 movq -120(%rbp), %rax movq (%rax), %rdi movq _nextchar(%rip), %rsi movq -112(%rbp), %rdx movq _nextchar(%rip), %rax subq %rax, %rdx callq _strncmp cmpl $0, %eax jne LBB0_157 ## %bb.150: ## in Loop: Header=BB0_148 Depth=1 movq -112(%rbp), %rax movq _nextchar(%rip), %rcx subq %rcx, %rax ## kill: def $eax killed $eax killed $rax movl %eax, %eax ## kill: def $rax killed $eax movq %rax, -184(%rbp) ## 8-byte Spill movq -120(%rbp), %rax movq (%rax), %rdi callq _strlen movq %rax, %rcx movq -184(%rbp), %rax ## 8-byte Reload cmpq %rcx, %rax jne LBB0_152 ## %bb.151: movq -120(%rbp), %rax movq %rax, -128(%rbp) movl -144(%rbp), %eax movl %eax, -140(%rbp) movl $1, -132(%rbp) jmp LBB0_159 LBB0_152: ## in Loop: Header=BB0_148 Depth=1 cmpq $0, -128(%rbp) jne LBB0_154 ## %bb.153: ## in Loop: Header=BB0_148 Depth=1 movq -120(%rbp), %rax movq %rax, -128(%rbp) movl -144(%rbp), %eax movl %eax, -140(%rbp) jmp LBB0_155 LBB0_154: ## in Loop: Header=BB0_148 Depth=1 movl $1, -136(%rbp) LBB0_155: ## in Loop: Header=BB0_148 Depth=1 jmp LBB0_156 LBB0_156: ## in Loop: Header=BB0_148 Depth=1 jmp LBB0_157 LBB0_157: ## in Loop: Header=BB0_148 Depth=1 jmp LBB0_158 LBB0_158: ## in Loop: Header=BB0_148 Depth=1 movq -120(%rbp), %rax addq $32, %rax movq %rax, -120(%rbp) movl -144(%rbp), %eax addl $1, %eax movl %eax, -144(%rbp) jmp LBB0_148 LBB0_159: cmpl $0, -136(%rbp) je LBB0_164 ## %bb.160: cmpl $0, -132(%rbp) jne LBB0_164 ## %bb.161: cmpl $0, -48(%rbp) je LBB0_163 ## %bb.162: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movq (%rax), %rdx movq -16(%rbp), %rax movslq _optind(%rip), %rcx movq (%rax,%rcx,8), %rcx leaq L_.str.11(%rip), %rsi movb $0, %al callq _fprintf LBB0_163: movq _nextchar(%rip), %rdi callq _strlen addq _nextchar(%rip), %rax movq %rax, _nextchar(%rip) movl _optind(%rip), %eax addl $1, %eax movl %eax, _optind(%rip) movl $63, -4(%rbp) jmp LBB0_206 LBB0_164: cmpq $0, -128(%rbp) je LBB0_185 ## %bb.165: movl -140(%rbp), %eax movl %eax, -144(%rbp) movq -112(%rbp), %rax cmpb $0, (%rax) je LBB0_172 ## %bb.166: movq -128(%rbp), %rax cmpl $0, 8(%rax) je LBB0_168 ## %bb.167: movq -112(%rbp), %rcx addq $1, %rcx movq _optarg@GOTPCREL(%rip), %rax movq %rcx, (%rax) jmp LBB0_171 LBB0_168: cmpl $0, -48(%rbp) je LBB0_170 ## %bb.169: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movq (%rax), %rdx movq -128(%rbp), %rax movq (%rax), %rcx leaq L_.str.12(%rip), %rsi movb $0, %al callq _fprintf LBB0_170: movq _nextchar(%rip), %rdi callq _strlen addq _nextchar(%rip), %rax movq %rax, _nextchar(%rip) movl $63, -4(%rbp) jmp LBB0_206 LBB0_171: jmp LBB0_180 LBB0_172: movq -128(%rbp), %rax cmpl $1, 8(%rax) jne LBB0_179 ## %bb.173: movl _optind(%rip), %eax cmpl -8(%rbp), %eax jge LBB0_175 ## %bb.174: movq -16(%rbp), %rax movl _optind(%rip), %ecx movl %ecx, %edx addl $1, %edx movl %edx, _optind(%rip) movslq %ecx, %rcx movq (%rax,%rcx,8), %rcx movq _optarg@GOTPCREL(%rip), %rax movq %rcx, (%rax) jmp LBB0_178 LBB0_175: cmpl $0, -48(%rbp) je LBB0_177 ## %bb.176: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movq (%rax), %rdx movq -16(%rbp), %rax movl _optind(%rip), %ecx subl $1, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rcx leaq L_.str.4(%rip), %rsi movb $0, %al callq _fprintf LBB0_177: movq _nextchar(%rip), %rdi callq _strlen addq _nextchar(%rip), %rax movq %rax, _nextchar(%rip) movq -24(%rbp), %rax movsbl (%rax), %edx movl $63, %eax movl $58, %ecx cmpl $58, %edx cmovel %ecx, %eax movl %eax, -4(%rbp) jmp LBB0_206 LBB0_178: jmp LBB0_179 LBB0_179: jmp LBB0_180 LBB0_180: movq _nextchar(%rip), %rdi callq _strlen addq _nextchar(%rip), %rax movq %rax, _nextchar(%rip) cmpq $0, -40(%rbp) je LBB0_182 ## %bb.181: movl -144(%rbp), %ecx movq -40(%rbp), %rax movl %ecx, (%rax) LBB0_182: movq -128(%rbp), %rax cmpq $0, 16(%rax) je LBB0_184 ## %bb.183: movq -128(%rbp), %rax movl 24(%rax), %ecx movq -128(%rbp), %rax movq 16(%rax), %rax movl %ecx, (%rax) movl $0, -4(%rbp) jmp LBB0_206 LBB0_184: movq -128(%rbp), %rax movl 24(%rax), %eax movl %eax, -4(%rbp) jmp LBB0_206 LBB0_185: movq $0, _nextchar(%rip) movl $87, -4(%rbp) jmp LBB0_206 LBB0_186: movq -104(%rbp), %rax movsbl 1(%rax), %eax cmpl $58, %eax jne LBB0_205 ## %bb.187: movq -104(%rbp), %rax movsbl 2(%rax), %eax cmpl $58, %eax jne LBB0_192 ## %bb.188: movq _nextchar(%rip), %rax movsbl (%rax), %eax cmpl $0, %eax je LBB0_190 ## %bb.189: movq _nextchar(%rip), %rcx movq _optarg@GOTPCREL(%rip), %rax movq %rcx, (%rax) movl _optind(%rip), %eax addl $1, %eax movl %eax, _optind(%rip) jmp LBB0_191 LBB0_190: movq _optarg@GOTPCREL(%rip), %rax movq $0, (%rax) LBB0_191: movq $0, _nextchar(%rip) jmp LBB0_204 LBB0_192: movq _nextchar(%rip), %rax movsbl (%rax), %eax cmpl $0, %eax je LBB0_194 ## %bb.193: movq _nextchar(%rip), %rcx movq _optarg@GOTPCREL(%rip), %rax movq %rcx, (%rax) movl _optind(%rip), %eax addl $1, %eax movl %eax, _optind(%rip) jmp LBB0_203 LBB0_194: movl _optind(%rip), %eax cmpl -8(%rbp), %eax jne LBB0_201 ## %bb.195: cmpl $0, -48(%rbp) je LBB0_197 ## %bb.196: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movq (%rax), %rdx movsbl -89(%rbp), %ecx leaq L_.str.10(%rip), %rsi movb $0, %al callq _fprintf LBB0_197: movsbl -89(%rbp), %eax movl %eax, _optopt(%rip) movq -24(%rbp), %rax movsbl (%rax), %eax cmpl $58, %eax jne LBB0_199 ## %bb.198: movb $58, -89(%rbp) jmp LBB0_200 LBB0_199: movb $63, -89(%rbp) LBB0_200: jmp LBB0_202 LBB0_201: movq -16(%rbp), %rax movl _optind(%rip), %ecx movl %ecx, %edx addl $1, %edx movl %edx, _optind(%rip) movslq %ecx, %rcx movq (%rax,%rcx,8), %rcx movq _optarg@GOTPCREL(%rip), %rax movq %rcx, (%rax) LBB0_202: jmp LBB0_203 LBB0_203: movq $0, _nextchar(%rip) LBB0_204: jmp LBB0_205 LBB0_205: movsbl -89(%rbp), %eax movl %eax, -4(%rbp) LBB0_206: movl -4(%rbp), %eax addq $192, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function _getopt_initialize __getopt_initialize: ## @_getopt_initialize .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) movl _optind(%rip), %eax movl %eax, _last_nonopt(%rip) movl %eax, _first_nonopt(%rip) movq $0, _nextchar(%rip) leaq L_.str.13(%rip), %rdi movb $0, %al callq _getenv movq %rax, _posixly_correct(%rip) movq -24(%rbp), %rax movsbl (%rax), %eax cmpl $45, %eax jne LBB1_2 ## %bb.1: movl $2, _ordering(%rip) movq -24(%rbp), %rax addq $1, %rax movq %rax, -24(%rbp) jmp LBB1_9 LBB1_2: movq -24(%rbp), %rax movsbl (%rax), %eax cmpl $43, %eax jne LBB1_4 ## %bb.3: movl $0, _ordering(%rip) movq -24(%rbp), %rax addq $1, %rax movq %rax, -24(%rbp) jmp LBB1_8 LBB1_4: cmpq $0, _posixly_correct(%rip) je LBB1_6 ## %bb.5: movl $0, _ordering(%rip) jmp LBB1_7 LBB1_6: movl $1, _ordering(%rip) LBB1_7: jmp LBB1_8 LBB1_8: jmp LBB1_9 LBB1_9: movq -24(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function exchange _exchange: ## @exchange .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 _first_nonopt(%rip), %eax movl %eax, -12(%rbp) movl _last_nonopt(%rip), %eax movl %eax, -16(%rbp) movl _optind(%rip), %eax movl %eax, -20(%rbp) LBB2_1: ## =>This Loop Header: Depth=1 ## Child Loop BB2_6 Depth 2 ## Child Loop BB2_11 Depth 2 movl -20(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -16(%rbp), %ecx movb %al, -49(%rbp) ## 1-byte Spill jle LBB2_3 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax setg %al movb %al, -49(%rbp) ## 1-byte Spill LBB2_3: ## in Loop: Header=BB2_1 Depth=1 movb -49(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB2_4 jmp LBB2_16 LBB2_4: ## in Loop: Header=BB2_1 Depth=1 movl -20(%rbp), %eax subl -16(%rbp), %eax movl -16(%rbp), %ecx subl -12(%rbp), %ecx cmpl %ecx, %eax jle LBB2_10 ## %bb.5: ## in Loop: Header=BB2_1 Depth=1 movl -16(%rbp), %eax subl -12(%rbp), %eax movl %eax, -36(%rbp) movl $0, -40(%rbp) LBB2_6: ## Parent Loop BB2_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -40(%rbp), %eax cmpl -36(%rbp), %eax jge LBB2_9 ## %bb.7: ## in Loop: Header=BB2_6 Depth=2 movq -8(%rbp), %rax movl -12(%rbp), %ecx addl -40(%rbp), %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rax movq %rax, -32(%rbp) movq -8(%rbp), %rax movl -20(%rbp), %ecx movl -16(%rbp), %edx subl -12(%rbp), %edx subl %edx, %ecx addl -40(%rbp), %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rdx movq -8(%rbp), %rax movl -12(%rbp), %ecx addl -40(%rbp), %ecx movslq %ecx, %rcx movq %rdx, (%rax,%rcx,8) movq -32(%rbp), %rdx movq -8(%rbp), %rax movl -20(%rbp), %ecx movl -16(%rbp), %esi subl -12(%rbp), %esi subl %esi, %ecx addl -40(%rbp), %ecx movslq %ecx, %rcx movq %rdx, (%rax,%rcx,8) ## %bb.8: ## in Loop: Header=BB2_6 Depth=2 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB2_6 LBB2_9: ## in Loop: Header=BB2_1 Depth=1 movl -36(%rbp), %ecx movl -20(%rbp), %eax subl %ecx, %eax movl %eax, -20(%rbp) jmp LBB2_15 LBB2_10: ## in Loop: Header=BB2_1 Depth=1 movl -20(%rbp), %eax subl -16(%rbp), %eax movl %eax, -44(%rbp) movl $0, -48(%rbp) LBB2_11: ## Parent Loop BB2_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -48(%rbp), %eax cmpl -44(%rbp), %eax jge LBB2_14 ## %bb.12: ## in Loop: Header=BB2_11 Depth=2 movq -8(%rbp), %rax movl -12(%rbp), %ecx addl -48(%rbp), %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rax movq %rax, -32(%rbp) movq -8(%rbp), %rax movl -16(%rbp), %ecx addl -48(%rbp), %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rdx movq -8(%rbp), %rax movl -12(%rbp), %ecx addl -48(%rbp), %ecx movslq %ecx, %rcx movq %rdx, (%rax,%rcx,8) movq -32(%rbp), %rdx movq -8(%rbp), %rax movl -16(%rbp), %ecx addl -48(%rbp), %ecx movslq %ecx, %rcx movq %rdx, (%rax,%rcx,8) ## %bb.13: ## in Loop: Header=BB2_11 Depth=2 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB2_11 LBB2_14: ## in Loop: Header=BB2_1 Depth=1 movl -44(%rbp), %eax addl -12(%rbp), %eax movl %eax, -12(%rbp) LBB2_15: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_1 LBB2_16: movl _optind(%rip), %eax subl _last_nonopt(%rip), %eax addl _first_nonopt(%rip), %eax movl %eax, _first_nonopt(%rip) movl _optind(%rip), %eax movl %eax, _last_nonopt(%rip) popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function my_index _my_index: ## @my_index .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) LBB3_1: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax cmpb $0, (%rax) je LBB3_5 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rax movsbl (%rax), %eax cmpl -20(%rbp), %eax jne LBB3_4 ## %bb.3: movq -16(%rbp), %rax movq %rax, -8(%rbp) jmp LBB3_6 LBB3_4: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rax addq $1, %rax movq %rax, -16(%rbp) jmp LBB3_1 LBB3_5: movq $0, -8(%rbp) LBB3_6: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .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, -4(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movl -4(%rbp), %edi movq -16(%rbp), %rsi movq -24(%rbp), %rdx xorl %eax, %eax movl %eax, %r8d xorl %r9d, %r9d movq %r8, %rcx callq __getopt_internal addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _getopt_long ## -- Begin function getopt_long .p2align 4, 0x90 _getopt_long: ## @getopt_long .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) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq %rcx, -32(%rbp) movq %r8, -40(%rbp) movl -4(%rbp), %edi movq -16(%rbp), %rsi movq -24(%rbp), %rdx movq -32(%rbp), %rcx movq -40(%rbp), %r8 xorl %r9d, %r9d callq __getopt_internal addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _getopt_long_only ## -- Begin function getopt_long_only .p2align 4, 0x90 _getopt_long_only: ## @getopt_long_only .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) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq %rcx, -32(%rbp) movq %r8, -40(%rbp) movl -4(%rbp), %edi movq -16(%rbp), %rsi movq -24(%rbp), %rdx movq -32(%rbp), %rcx movq -40(%rbp), %r8 movl $1, %r9d callq __getopt_internal addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _optind ## @optind .p2align 2 _optind: .long 1 ## 0x1 .globl _opterr ## @opterr .p2align 2 _opterr: .long 1 ## 0x1 .globl _optopt ## @optopt .p2align 2 _optopt: .long 63 ## 0x3f .comm _optarg,8,3 ## @optarg .comm ___getopt_initialized,4,2 ## @__getopt_initialized .zerofill __DATA,__bss,_nextchar,8,3 ## @nextchar .zerofill __DATA,__bss,_last_nonopt,4,2 ## @last_nonopt .zerofill __DATA,__bss,_first_nonopt,4,2 ## @first_nonopt .zerofill __DATA,__bss,_ordering,4,2 ## @ordering .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "--" L_.str.1: ## @.str.1 .asciz "%s: option `%s' is ambiguous\n" L_.str.2: ## @.str.2 .asciz "%s: option `--%s' doesn't allow an argument\n" L_.str.3: ## @.str.3 .asciz "%s: option `%c%s' doesn't allow an argument\n" L_.str.4: ## @.str.4 .asciz "%s: option `%s' requires an argument\n" L_.str.5: ## @.str.5 .asciz "%s: unrecognized option `--%s'\n" L_.str.6: ## @.str.6 .asciz "%s: unrecognized option `%c%s'\n" L_.str.7: ## @.str.7 .space 1 .zerofill __DATA,__bss,_posixly_correct,8,3 ## @posixly_correct L_.str.8: ## @.str.8 .asciz "%s: illegal option -- %c\n" L_.str.9: ## @.str.9 .asciz "%s: invalid option -- %c\n" L_.str.10: ## @.str.10 .asciz "%s: option requires an argument -- %c\n" L_.str.11: ## @.str.11 .asciz "%s: option `-W %s' is ambiguous\n" L_.str.12: ## @.str.12 .asciz "%s: option `-W %s' doesn't allow an argument\n" L_.str.13: ## @.str.13 .asciz "POSIXLY_CORRECT" .subsections_via_symbols
the_stack_data/132951901.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, #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 stur wzr, [x29, #-20] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF mov w1, #122 bl _ftok stur w0, [x29, #-28] subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _perror mov w0, #1 bl _exit LBB0_2: ldur w9, [x29, #-28] ; 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 w0, [x29, #-28] mov w1, #1023 bl _msgget stur w0, [x29, #-24] adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _perror mov w0, #1 bl _exit LBB0_4: ldur w9, [x29, #-24] ; 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 _getpid 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_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldur w0, [x29, #-24] add x1, sp, #56 str x1, [sp, #32] ; 8-byte Folded Spill mov x2, #256 str x2, [sp, #40] ; 8-byte Folded Spill mov x3, #888 mov w4, #0 str w4, [sp, #52] ; 4-byte Folded Spill bl _msgrcv ldr x8, [sp, #32] ; 8-byte Folded Reload add x8, x8, #8 mov x9, sp str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldr x8, [sp, #56] mov x9, sp str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldr x8, [sp, #32] ; 8-byte Folded Reload mov x9, #777 str x9, [sp, #56] add x8, x8, #8 str x8, [sp, #16] ; 8-byte Folded Spill bl _getpid ldr x2, [sp, #40] ; 8-byte Folded Reload ldr w1, [sp, #52] ; 4-byte Folded Reload mov x10, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [sp, #24] ; 8-byte Folded Spill str x8, [x9] adrp x3, l_.str.8@PAGE add x3, x3, l_.str.8@PAGEOFF bl ___sprintf_chk ldr x1, [sp, #32] ; 8-byte Folded Reload ldr x2, [sp, #40] ; 8-byte Folded Reload ldr w3, [sp, #52] ; 4-byte Folded Reload ldur w0, [x29, #-24] bl _msgsnd b LBB0_5 .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "/etc/shells" l_.str.1: ; @.str.1 .asciz "ftok error" l_.str.2: ; @.str.2 .asciz "Message Queue - Server key is: %d.\n" l_.str.3: ; @.str.3 .asciz "msgget error" l_.str.4: ; @.str.4 .asciz "My msqid is: %d.\n" l_.str.5: ; @.str.5 .asciz "My pid is: %d.\n" l_.str.6: ; @.str.6 .asciz "Server: receive msg.mtext is: %s.\n" l_.str.7: ; @.str.7 .asciz "Server: receive msg.mtype is: %d.\n" l_.str.8: ; @.str.8 .asciz "hello, I'm server %d" .comm _buf,4096,0 ; @buf .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $304, %rsp ## imm = 0x130 movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movl $122, %esi callq _ftok movl %eax, -12(%rbp) cmpl $0, %eax jge LBB0_2 ## %bb.1: leaq L_.str.1(%rip), %rdi callq _perror movl $1, %edi callq _exit LBB0_2: movl -12(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl -12(%rbp), %edi movl $1023, %esi ## imm = 0x3FF callq _msgget movl %eax, -8(%rbp) cmpl $-1, %eax jne LBB0_4 ## %bb.3: leaq L_.str.3(%rip), %rdi callq _perror movl $1, %edi callq _exit LBB0_4: movl -8(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf callq _getpid movl %eax, %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf LBB0_5: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %edi leaq -280(%rbp), %rsi movl $256, %edx ## imm = 0x100 movl $888, %ecx ## imm = 0x378 xorl %r8d, %r8d callq _msgrcv leaq -280(%rbp), %rsi addq $8, %rsi movq %rsi, -296(%rbp) ## 8-byte Spill leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movq -280(%rbp), %rsi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf movq $777, -280(%rbp) ## imm = 0x309 leaq -280(%rbp), %rax addq $8, %rax movq %rax, -288(%rbp) ## 8-byte Spill callq _getpid movq -288(%rbp), %rdi ## 8-byte Reload movl %eax, %r8d xorl %esi, %esi movl $256, %edx ## imm = 0x100 leaq L_.str.8(%rip), %rcx movb $0, %al callq ___sprintf_chk movl -8(%rbp), %edi leaq -280(%rbp), %rsi movl $256, %edx ## imm = 0x100 xorl %ecx, %ecx callq _msgsnd jmp LBB0_5 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "/etc/shells" L_.str.1: ## @.str.1 .asciz "ftok error" L_.str.2: ## @.str.2 .asciz "Message Queue - Server key is: %d.\n" L_.str.3: ## @.str.3 .asciz "msgget error" L_.str.4: ## @.str.4 .asciz "My msqid is: %d.\n" L_.str.5: ## @.str.5 .asciz "My pid is: %d.\n" L_.str.6: ## @.str.6 .asciz "Server: receive msg.mtext is: %s.\n" L_.str.7: ## @.str.7 .asciz "Server: receive msg.mtype is: %d.\n" L_.str.8: ## @.str.8 .asciz "hello, I'm server %d" .comm _buf,4096,4 ## @buf .subsections_via_symbols
the_stack_data/65847.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 0x4070000000000000 ; double 256 .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 mov w9, #272 movk w9, #2, lsl #16 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #32, lsl #12 ; =131072 sub sp, sp, #272 sub x8, x29, #88 str x8, [sp, #64] ; 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, #132] str w0, [sp, #128] str x1, [sp, #120] ldr w8, [sp, #128] subs w8, w8, #3 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf b LBB0_2 LBB0_2: ldr x8, [sp, #120] ldr x0, [x8, #8] bl _atoi str w0, [sp, #112] ldr x8, [sp, #120] ldr x0, [x8, #16] bl _atoi str w0, [sp, #108] ldr w8, [sp, #112] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #108] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr w8, [sp, #112] add w10, w8, #1 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf str wzr, [sp, #104] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #104] subs w8, w8, #16 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 ldr w9, [sp, #104] mov w8, #32753 add w11, w8, w9 ldr w8, [sp, #104] add w8, w8, #1 subs w8, w8, #16 cset w8, lt and w10, w8, #0x1 adrp x9, l_.str.7@PAGE add x9, x9, l_.str.7@PAGEOFF adrp x8, l_.str.6@PAGE add x8, x8, l_.str.6@PAGEOFF ands w10, w10, #0x1 csel x8, x8, x9, ne mov x9, sp ; implicit-def: $x10 mov x10, x11 str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #104] add w8, w8, #1 str w8, [sp, #104] b LBB0_3 LBB0_6: adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf mov w8, #1 str w8, [sp, #136] str w8, [sp, #116] b LBB0_7 LBB0_7: ; =>This Loop Header: Depth=1 ; Child Loop BB0_9 Depth 2 ; Child Loop BB0_13 Depth 2 ; Child Loop BB0_21 Depth 2 ldr w8, [sp, #116] ldr w9, [sp, #112] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_26 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=1 ldr s0, [sp, #116] scvtf s0, s0 ldr w9, [sp, #108] mov w8, #1 str w8, [sp, #52] ; 4-byte Folded Spill lsl w8, w8, w9 scvtf s1, w8 fdiv s0, s0, s1 str s0, [sp, #96] ldr s1, [sp, #96] fmov s0, #4.00000000 fmul s0, s0, s1 ldr s1, [sp, #96] fmov s2, #1.00000000 fmadd s0, s0, s1, s2 fcvt d0, s0 fsqrt d0, d0 fmov d1, #1.00000000 str d1, [sp, #56] ; 8-byte Folded Spill fsub d0, d0, d1 ldr s2, [sp, #96] fmov s1, #2.00000000 fmul s1, s1, s2 fcvt d1, s1 fdiv d0, d0, d1 fcvt s0, d0 str s0, [sp, #92] ldr s0, [sp, #92] fcvt d0, s0 bl _log fmov d1, d0 fmov d0, #-0.50000000 str d0, [sp, #40] ; 8-byte Folded Spill fdiv d0, d0, d1 fcvt s0, d0 str s0, [sp, #88] ldr s0, [sp, #88] fcvt d1, s0 fmov d0, #-1.00000000 fdiv d0, d0, d1 bl _exp fmov d2, d0 ldr d0, [sp, #40] ; 8-byte Folded Reload fmov d3, #0.50000000 adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fmadd d1, d1, d2, d3 fcvtms w8, d1 ldrsw x10, [sp, #116] add x9, sp, #136 str w8, [x9, x10, lsl #2] ldr s1, [sp, #88] fcvt d1, s1 fdiv d0, d0, d1 bl _exp ldr x9, [sp, #64] ; 8-byte Folded Reload ldr w8, [sp, #52] ; 4-byte Folded Reload fmov d1, d0 ldr d0, [sp, #56] ; 8-byte Folded Reload fsub d0, d0, d1 fcvt s0, d0 str s0, [x9] str w8, [sp, #104] b LBB0_9 LBB0_9: ; Parent Loop BB0_7 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #104] subs w8, w8, #15 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=2 ldr s0, [sp, #88] fcvt d1, s0 fmov d0, #-0.50000000 fdiv d0, d0, d1 bl _exp str d0, [sp, #32] ; 8-byte Folded Spill ldr s0, [sp, #104] scvtf s0, s0 fcvt d0, s0 fmov d1, #1.00000000 fsub d0, d0, d1 fneg d0, d0 ldr s1, [sp, #88] fcvt d1, s1 fdiv d0, d0, d1 bl _exp str d0, [sp, #24] ; 8-byte Folded Spill ldr s0, [sp, #104] scvtf s0, s0 fneg s0, s0 ldr s1, [sp, #88] fdiv s0, s0, s1 fcvt d0, s0 bl _exp ldr d1, [sp, #24] ; 8-byte Folded Reload fmov d2, d0 ldr d0, [sp, #32] ; 8-byte Folded Reload fsub d1, d1, d2 fmul d0, d0, d1 fcvt s0, d0 ldrsw x9, [sp, #104] sub x8, x29, #88 str s0, [x8, x9, lsl #2] b LBB0_11 LBB0_11: ; in Loop: Header=BB0_9 Depth=2 ldr w8, [sp, #104] add w8, w8, #1 str w8, [sp, #104] b LBB0_9 LBB0_12: ; in Loop: Header=BB0_7 Depth=1 ldr s0, [sp, #88] fcvt d1, s0 fmov d0, #-0.50000000 fdiv d0, d0, d1 bl _exp str d0, [sp, #16] ; 8-byte Folded Spill ldr s0, [sp, #88] fcvt d1, s0 fmov d0, #-14.00000000 fdiv d0, d0, d1 bl _exp ldr x8, [sp, #64] ; 8-byte Folded Reload fmov d1, d0 ldr d0, [sp, #16] ; 8-byte Folded Reload fmul d0, d0, d1 fcvt s0, d0 str s0, [x8, #60] str wzr, [sp, #100] movi d0, #0000000000000000 str s0, [sp, #80] str wzr, [sp, #76] str wzr, [sp, #104] b LBB0_13 LBB0_13: ; Parent Loop BB0_7 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #104] subs w8, w8, #16 cset w8, ge tbnz w8, #0, LBB0_20 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_13 Depth=2 ldrsw x9, [sp, #104] sub x8, x29, #88 ldr s0, [x8, x9, lsl #2] ldr s1, [sp, #80] fcmp s0, s1 cset w8, le tbnz w8, #0, LBB0_16 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_13 Depth=2 ldrsw x9, [sp, #104] sub x8, x29, #88 ldr s0, [x8, x9, lsl #2] str s0, [sp, #80] ldr w8, [sp, #104] str w8, [sp, #76] b LBB0_16 LBB0_16: ; in Loop: Header=BB0_13 Depth=2 ldrsw x9, [sp, #104] sub x8, x29, #88 ldr s1, [x8, x9, lsl #2] movi.2s v0, #71, lsl #24 ; kill: def $s0 killed $s0 killed $d0 fmul s0, s0, s1 fcvt d1, s0 fmov d0, #0.50000000 fadd d0, d0, d1 fcvtms w9, d0 ldrsw x10, [sp, #104] sub x8, x29, #152 str w9, [x8, x10, lsl #2] ldrsw x9, [sp, #104] ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_13 Depth=2 ldrsw x10, [sp, #104] sub x9, x29, #152 mov w8, #1 str w8, [x9, x10, lsl #2] b LBB0_18 LBB0_18: ; in Loop: Header=BB0_13 Depth=2 ldrsw x9, [sp, #104] sub x8, x29, #152 ldr w9, [x8, x9, lsl #2] ldr w8, [sp, #100] add w8, w8, w9 str w8, [sp, #100] b LBB0_19 LBB0_19: ; in Loop: Header=BB0_13 Depth=2 ldr w8, [sp, #104] add w8, w8, #1 str w8, [sp, #104] b LBB0_13 LBB0_20: ; in Loop: Header=BB0_7 Depth=1 ldr w9, [sp, #100] mov w8, #32768 subs w10, w8, w9 ldrsw x9, [sp, #76] sub x8, x29, #152 add x9, x8, x9, lsl #2 ldr w8, [x9] add w8, w8, w10 str w8, [x9] str wzr, [sp, #84] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf str wzr, [sp, #104] b LBB0_21 LBB0_21: ; Parent Loop BB0_7 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #104] subs w8, w8, #16 cset w8, ge tbnz w8, #0, LBB0_24 b LBB0_22 LBB0_22: ; in Loop: Header=BB0_21 Depth=2 ldrsw x9, [sp, #104] sub x8, x29, #152 ldr w9, [x8, x9, lsl #2] ldr w8, [sp, #84] add w8, w8, w9 str w8, [sp, #84] ldr w8, [sp, #84] ; implicit-def: $x10 mov x10, x8 ldr w8, [sp, #104] add w8, w8, #1 subs w8, w8, #16 cset w8, lt and w11, w8, #0x1 adrp x9, l_.str.7@PAGE add x9, x9, l_.str.7@PAGEOFF adrp x8, l_.str.6@PAGE add x8, x8, l_.str.6@PAGEOFF ands w11, w11, #0x1 csel x8, x8, x9, ne mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_23 LBB0_23: ; in Loop: Header=BB0_21 Depth=2 ldr w8, [sp, #104] add w8, w8, #1 str w8, [sp, #104] b LBB0_21 LBB0_24: ; in Loop: Header=BB0_7 Depth=1 ldr w8, [sp, #116] add w8, w8, #1 ldr w9, [sp, #112] subs w8, w8, w9 cset w8, le and w10, w8, #0x1 adrp x9, l_.str.7@PAGE add x9, x9, l_.str.7@PAGEOFF adrp x8, l_.str.6@PAGE add x8, x8, l_.str.6@PAGEOFF ands w10, w10, #0x1 csel x8, x8, x9, ne mov x9, sp str x8, [x9] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf b LBB0_25 LBB0_25: ; in Loop: Header=BB0_7 Depth=1 ldr w8, [sp, #116] add w8, w8, #1 str w8, [sp, #116] b LBB0_7 LBB0_26: adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf ldr w8, [sp, #112] add w10, w8, #1 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf str wzr, [sp, #116] b LBB0_27 LBB0_27: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #116] ldr w9, [sp, #112] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_30 b LBB0_28 LBB0_28: ; in Loop: Header=BB0_27 Depth=1 ldrsw x9, [sp, #116] add x8, sp, #136 ldr w8, [x8, x9, lsl #2] ; implicit-def: $x10 mov x10, x8 ldr w8, [sp, #116] add w8, w8, #1 ldr w9, [sp, #112] subs w8, w8, w9 cset w8, le and w11, w8, #0x1 adrp x9, l_.str.7@PAGE add x9, x9, l_.str.7@PAGEOFF adrp x8, l_.str.6@PAGE add x8, x8, l_.str.6@PAGEOFF ands w11, w11, #0x1 csel x8, x8, x9, ne 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 b LBB0_29 LBB0_29: ; in Loop: Header=BB0_27 Depth=1 ldr w8, [sp, #116] add w8, w8, #1 str w8, [sp, #116] b LBB0_27 LBB0_30: adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@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_32 b LBB0_31 LBB0_31: bl ___stack_chk_fail LBB0_32: mov w0, #0 add sp, sp, #32, lsl #12 ; =131072 add sp, sp, #272 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 "bad bad bad\n" l_.str.1: ; @.str.1 .asciz "/* This file is auto-generated using \"gen_cdf %d %d\" */\n\n" l_.str.2: ; @.str.2 .asciz "#include \"pvq_code.h\"\n\n" l_.str.3: ; @.str.3 .asciz "const ogg_uint16_t cdf_table[%d][16] = {\n" l_.str.4: ; @.str.4 .asciz " {" l_.str.5: ; @.str.5 .asciz "%5d%s" l_.str.6: ; @.str.6 .asciz "," l_.str.7: ; @.str.7 .space 1 l_.str.8: ; @.str.8 .asciz "},\n" l_.str.9: ; @.str.9 .asciz "}%s\n" l_.str.10: ; @.str.10 .asciz "};\n" l_.str.11: ; @.str.11 .asciz "\n\n" l_.str.12: ; @.str.12 .asciz "const unsigned char decayE[%d] = {\n" l_.str.13: ; @.str.13 .asciz " %d%s\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 0x3ff0000000000000 ## double 1 LCPI0_1: .quad 0xbfe0000000000000 ## double -0.5 LCPI0_2: .quad 0x4070000000000000 ## double 256 LCPI0_3: .quad 0x3fe0000000000000 ## double 0.5 LCPI0_4: .quad 0xbff0000000000000 ## double -1 LCPI0_8: .quad 0xc02c000000000000 ## double -14 .section __TEXT,__literal4,4byte_literals .p2align 2 LCPI0_5: .long 0x40000000 ## float 2 LCPI0_6: .long 0x3f800000 ## float 1 LCPI0_7: .long 0x40800000 ## float 4 LCPI0_9: .long 0x47000000 ## float 32768 .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 $131312, %eax ## imm = 0x200F0 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -131220(%rbp) movl %edi, -131224(%rbp) movq %rsi, -131232(%rbp) cmpl $3, -131224(%rbp) je LBB0_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str(%rip), %rsi movb $0, %al callq _fprintf LBB0_2: movq -131232(%rbp), %rax movq 8(%rax), %rdi callq _atoi movl %eax, -131240(%rbp) movq -131232(%rbp), %rax movq 16(%rax), %rdi callq _atoi movl %eax, -131244(%rbp) movl -131240(%rbp), %esi movl -131244(%rbp), %edx leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl -131240(%rbp), %esi addl $1, %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl $0, -131248(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 cmpl $16, -131248(%rbp) jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movl -131248(%rbp), %esi addl $32753, %esi ## imm = 0x7FF1 movl -131248(%rbp), %ecx addl $1, %ecx leaq L_.str.7(%rip), %rdx leaq L_.str.6(%rip), %rax cmpl $16, %ecx cmovlq %rax, %rdx leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 movl -131248(%rbp), %eax addl $1, %eax movl %eax, -131248(%rbp) jmp LBB0_3 LBB0_6: leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf movl $1, -131216(%rbp) movl $1, -131236(%rbp) LBB0_7: ## =>This Loop Header: Depth=1 ## Child Loop BB0_9 Depth 2 ## Child Loop BB0_13 Depth 2 ## Child Loop BB0_21 Depth 2 movl -131236(%rbp), %eax cmpl -131240(%rbp), %eax jg LBB0_26 ## %bb.8: ## in Loop: Header=BB0_7 Depth=1 cvtsi2ssl -131236(%rbp), %xmm0 movl -131244(%rbp), %ecx movl $1, %eax ## kill: def $cl killed $ecx shll %cl, %eax cvtsi2ss %eax, %xmm1 divss %xmm1, %xmm0 movss %xmm0, -131256(%rbp) movss LCPI0_7(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -131256(%rbp), %xmm0 movss -131256(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm1, %xmm0 movss LCPI0_6(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero addss %xmm1, %xmm0 cvtss2sd %xmm0, %xmm0 sqrtsd %xmm0, %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero subsd %xmm1, %xmm0 movss LCPI0_5(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -131256(%rbp), %xmm1 cvtss2sd %xmm1, %xmm1 divsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -131260(%rbp) movss -131260(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 callq _log movaps %xmm0, %xmm1 movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero divsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -131264(%rbp) movss -131264(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI0_4(%rip), %xmm0 ## xmm0 = mem[0],zero divsd %xmm1, %xmm0 callq _exp movsd LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 movsd LCPI0_3(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 roundsd $9, %xmm0, %xmm0 cvttsd2si %xmm0, %ecx movslq -131236(%rbp), %rax movl %ecx, -131216(%rbp,%rax,4) movss -131264(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero divsd %xmm1, %xmm0 callq _exp movaps %xmm0, %xmm1 movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero subsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -80(%rbp) movl $1, -131248(%rbp) LBB0_9: ## Parent Loop BB0_7 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $15, -131248(%rbp) jge LBB0_12 ## %bb.10: ## in Loop: Header=BB0_9 Depth=2 movss -131264(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero divsd %xmm1, %xmm0 callq _exp movsd %xmm0, -131288(%rbp) ## 8-byte Spill cvtsi2ssl -131248(%rbp), %xmm0 cvtss2sd %xmm0, %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero subsd %xmm1, %xmm0 movq %xmm0, %rax movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000 xorq %rcx, %rax movq %rax, %xmm0 movss -131264(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 divsd %xmm1, %xmm0 callq _exp movsd %xmm0, -131296(%rbp) ## 8-byte Spill cvtsi2ssl -131248(%rbp), %xmm0 movd %xmm0, %eax xorl $2147483648, %eax ## imm = 0x80000000 movd %eax, %xmm0 divss -131264(%rbp), %xmm0 cvtss2sd %xmm0, %xmm0 callq _exp movsd -131296(%rbp), %xmm1 ## 8-byte Reload ## xmm1 = mem[0],zero movaps %xmm0, %xmm2 movsd -131288(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero subsd %xmm2, %xmm1 mulsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movslq -131248(%rbp), %rax movss %xmm0, -80(%rbp,%rax,4) ## %bb.11: ## in Loop: Header=BB0_9 Depth=2 movl -131248(%rbp), %eax addl $1, %eax movl %eax, -131248(%rbp) jmp LBB0_9 LBB0_12: ## in Loop: Header=BB0_7 Depth=1 movss -131264(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero divsd %xmm1, %xmm0 callq _exp movsd %xmm0, -131304(%rbp) ## 8-byte Spill movss -131264(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI0_8(%rip), %xmm0 ## xmm0 = mem[0],zero divsd %xmm1, %xmm0 callq _exp movaps %xmm0, %xmm1 movsd -131304(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -20(%rbp) movl $0, -131252(%rbp) xorps %xmm0, %xmm0 movss %xmm0, -131272(%rbp) movl $0, -131276(%rbp) movl $0, -131248(%rbp) LBB0_13: ## Parent Loop BB0_7 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $16, -131248(%rbp) jge LBB0_20 ## %bb.14: ## in Loop: Header=BB0_13 Depth=2 movslq -131248(%rbp), %rax movss -80(%rbp,%rax,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss -131272(%rbp), %xmm0 jbe LBB0_16 ## %bb.15: ## in Loop: Header=BB0_13 Depth=2 movslq -131248(%rbp), %rax movss -80(%rbp,%rax,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -131272(%rbp) movl -131248(%rbp), %eax movl %eax, -131276(%rbp) LBB0_16: ## in Loop: Header=BB0_13 Depth=2 movslq -131248(%rbp), %rax movss LCPI0_9(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -80(%rbp,%rax,4), %xmm0 cvtss2sd %xmm0, %xmm1 movsd LCPI0_3(%rip), %xmm0 ## xmm0 = mem[0],zero addsd %xmm1, %xmm0 roundsd $9, %xmm0, %xmm0 cvttsd2si %xmm0, %ecx movslq -131248(%rbp), %rax movl %ecx, -144(%rbp,%rax,4) movslq -131248(%rbp), %rax cmpl $0, -144(%rbp,%rax,4) jne LBB0_18 ## %bb.17: ## in Loop: Header=BB0_13 Depth=2 movslq -131248(%rbp), %rax movl $1, -144(%rbp,%rax,4) LBB0_18: ## in Loop: Header=BB0_13 Depth=2 movslq -131248(%rbp), %rax movl -144(%rbp,%rax,4), %eax addl -131252(%rbp), %eax movl %eax, -131252(%rbp) ## %bb.19: ## in Loop: Header=BB0_13 Depth=2 movl -131248(%rbp), %eax addl $1, %eax movl %eax, -131248(%rbp) jmp LBB0_13 LBB0_20: ## in Loop: Header=BB0_7 Depth=1 movl $32768, %ecx ## imm = 0x8000 subl -131252(%rbp), %ecx movslq -131276(%rbp), %rax addl -144(%rbp,%rax,4), %ecx movl %ecx, -144(%rbp,%rax,4) movl $0, -131268(%rbp) leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl $0, -131248(%rbp) LBB0_21: ## Parent Loop BB0_7 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $16, -131248(%rbp) jge LBB0_24 ## %bb.22: ## in Loop: Header=BB0_21 Depth=2 movslq -131248(%rbp), %rax movl -144(%rbp,%rax,4), %eax addl -131268(%rbp), %eax movl %eax, -131268(%rbp) movl -131268(%rbp), %esi movl -131248(%rbp), %ecx addl $1, %ecx leaq L_.str.7(%rip), %rdx leaq L_.str.6(%rip), %rax cmpl $16, %ecx cmovlq %rax, %rdx leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf ## %bb.23: ## in Loop: Header=BB0_21 Depth=2 movl -131248(%rbp), %eax addl $1, %eax movl %eax, -131248(%rbp) jmp LBB0_21 LBB0_24: ## in Loop: Header=BB0_7 Depth=1 movl -131236(%rbp), %ecx addl $1, %ecx movl -131240(%rbp), %edx leaq L_.str.7(%rip), %rsi leaq L_.str.6(%rip), %rax cmpl %edx, %ecx cmovleq %rax, %rsi leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf ## %bb.25: ## in Loop: Header=BB0_7 Depth=1 movl -131236(%rbp), %eax addl $1, %eax movl %eax, -131236(%rbp) jmp LBB0_7 LBB0_26: leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf movl -131240(%rbp), %esi addl $1, %esi leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf movl $0, -131236(%rbp) LBB0_27: ## =>This Inner Loop Header: Depth=1 movl -131236(%rbp), %eax cmpl -131240(%rbp), %eax jg LBB0_30 ## %bb.28: ## in Loop: Header=BB0_27 Depth=1 movslq -131236(%rbp), %rax movl -131216(%rbp,%rax,4), %esi movl -131236(%rbp), %ecx addl $1, %ecx movl -131240(%rbp), %edi leaq L_.str.7(%rip), %rdx leaq L_.str.6(%rip), %rax cmpl %edi, %ecx cmovleq %rax, %rdx leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf ## %bb.29: ## in Loop: Header=BB0_27 Depth=1 movl -131236(%rbp), %eax addl $1, %eax movl %eax, -131236(%rbp) jmp LBB0_27 LBB0_30: leaq L_.str.10(%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_32 ## %bb.31: xorl %eax, %eax addq $131312, %rsp ## imm = 0x200F0 popq %rbp retq LBB0_32: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "bad bad bad\n" L_.str.1: ## @.str.1 .asciz "/* This file is auto-generated using \"gen_cdf %d %d\" */\n\n" L_.str.2: ## @.str.2 .asciz "#include \"pvq_code.h\"\n\n" L_.str.3: ## @.str.3 .asciz "const ogg_uint16_t cdf_table[%d][16] = {\n" L_.str.4: ## @.str.4 .asciz " {" L_.str.5: ## @.str.5 .asciz "%5d%s" L_.str.6: ## @.str.6 .asciz "," L_.str.7: ## @.str.7 .space 1 L_.str.8: ## @.str.8 .asciz "},\n" L_.str.9: ## @.str.9 .asciz "}%s\n" L_.str.10: ## @.str.10 .asciz "};\n" L_.str.11: ## @.str.11 .asciz "\n\n" L_.str.12: ## @.str.12 .asciz "const unsigned char decayE[%d] = {\n" L_.str.13: ## @.str.13 .asciz " %d%s\n" .subsections_via_symbols
the_stack_data/22231.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 adrp x8, l_.str.1@PAGE add x8, x8, l_.str.1@PAGEOFF str x8, [x9] adrp x8, l_.str.2@PAGE add x8, x8, l_.str.2@PAGEOFF str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #12 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _scanf stur wzr, [x29, #-8] b LBB0_1 LBB0_1: ; =>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_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] mov w10, #10 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 mov w0, #10 bl _putchar b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 bl _rand mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_6: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\n%s\n%s" l_.str.1: ; @.str.1 .asciz "Some randomly distributed integers will be printed." l_.str.2: ; @.str.2 .asciz "How many do you want to see? " l_.str.3: ; @.str.3 .asciz "%d" l_.str.4: ; @.str.4 .asciz "%7d" l_.str.5: ; @.str.5 .asciz "\n\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi leaq L_.str.2(%rip), %rdx movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movl $0, -8(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax movl $10, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl $10, %edi callq _putchar LBB0_4: ## in Loop: Header=BB0_1 Depth=1 callq _rand movl %eax, %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_6: leaq L_.str.5(%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 "\n%s\n%s" L_.str.1: ## @.str.1 .asciz "Some randomly distributed integers will be printed." L_.str.2: ## @.str.2 .asciz "How many do you want to see? " L_.str.3: ## @.str.3 .asciz "%d" L_.str.4: ## @.str.4 .asciz "%7d" L_.str.5: ## @.str.5 .asciz "\n\n" .subsections_via_symbols
the_stack_data/61075002.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/77505.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _read_line ; -- Begin function read_line .p2align 2 _read_line: ; @read_line .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 bl _getchar str w0, [sp, #16] subs w8, w0, #10 cset w8, eq tbnz w8, #0, LBB0_5 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] ldur x9, [x29, #-8] ldrsw x10, [sp, #12] mov x11, x10 add w11, w11, #1 str w11, [sp, #12] strb w8, [x9, x10] b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_5: ldur x8, [x29, #-8] ldrsw x9, [sp, #12] add x8, x8, x9 strb wzr, [x8] ldr w0, [sp, #12] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _remaind_hour ; -- Begin function remaind_hour .p2align 2 _remaind_hour: ; @remaind_hour .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] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #20 str x8, [x9] add x8, sp, #24 str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur x0, [x29, #-8] 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] mov w1, #0 mov x2, #-1 adrp x3, l_.str.2@PAGE add x3, x3, l_.str.2@PAGEOFF bl ___sprintf_chk ldur w8, [x29, #-20] mov w9, #60 mul w8, w8, w9 ldr w9, [sp, #24] add w8, w8, w9 ldur x9, [x29, #-16] str w8, [x9] mov w8, #1 and w0, w8, #0x1 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _remaind_day ; -- Begin function remaind_day .p2align 2 _remaind_day: ; @remaind_day .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] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr x8, [sp, #8] mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _scanf ldr x8, [sp, #8] ldr w8, [x8] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldr x8, [sp, #8] ldr w8, [x8] subs w8, w8, #31 cset w8, le tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf mov w8, #0 and w8, w8, #0x1 and w8, w8, #0x1 sturb w8, [x29, #-1] b LBB2_4 LBB2_3: ldr x0, [sp, #16] ldr x8, [sp, #8] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] mov w1, #0 mov x2, #-1 adrp x3, l_.str.4@PAGE add x3, x3, l_.str.4@PAGEOFF bl ___sprintf_chk mov w8, #1 and w8, w8, #0x1 and w8, w8, #0x1 sturb w8, [x29, #-1] b LBB2_4 LBB2_4: ldurb w8, [x29, #-1] and w0, w8, #0x1 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _remaind_date ; -- Begin function remaind_date .p2align 2 _remaind_date: ; @remaind_date .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str x0, [sp, #48] str x1, [sp, #40] add x0, sp, #56 adrp x1, l___const.remaind_date.months@PAGE add x1, x1, l___const.remaind_date.months@PAGEOFF mov x2, #48 bl _memcpy adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf mov x9, sp add x8, sp, #36 str x8, [x9] add x8, sp, #32 str x8, [x9, #8] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _scanf ldr x0, [sp, #48] ldr w8, [sp, #36] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #32] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] mov w1, #0 mov x2, #-1 adrp x3, l_.str.8@PAGE add x3, x3, l_.str.8@PAGEOFF bl ___sprintf_chk ldr x8, [sp, #40] str wzr, [x8] str wzr, [sp, #28] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] ldr w9, [sp, #36] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_4 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldrsw x9, [sp, #28] add x8, sp, #56 ldr w10, [x8, x9, lsl #2] ldr x9, [sp, #40] ldr w8, [x9] add w8, w8, w10 str w8, [x9] b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB3_1 LBB3_4: ldr w10, [sp, #32] ldr x9, [sp, #40] ldr w8, [x9] add w8, w8, w10 str w8, [x9] ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB3_6 b LBB3_5 LBB3_5: bl ___stack_chk_fail LBB3_6: mov w8, #1 and w0, w8, #0x1 ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #3280 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #56] str wzr, [sp, #36] b LBB4_1 LBB4_1: ; =>This Loop Header: Depth=1 ; Child Loop BB4_6 Depth 2 ; Child Loop BB4_12 Depth 2 ldr w8, [sp, #36] subs w8, w8, #50 cset w8, ne tbnz w8, #0, LBB4_3 b LBB4_2 LBB4_2: adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf b LBB4_16 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 add x0, sp, #53 add x1, sp, #48 bl _remaind_date ldr w8, [sp, #48] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB4_5 b LBB4_4 LBB4_4: b LBB4_16 LBB4_5: ; in Loop: Header=BB4_1 Depth=1 add x0, sp, #61 mov w1, #60 bl _read_line str wzr, [sp, #44] b LBB4_6 LBB4_6: ; Parent Loop BB4_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #44] ldr w9, [sp, #36] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_11 b LBB4_7 LBB4_7: ; in Loop: Header=BB4_6 Depth=2 ldrsw x8, [sp, #44] mov x9, #63 mul x9, x8, x9 add x8, sp, #122 add x1, x8, x9 add x0, sp, #53 bl _strcmp subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB4_9 b LBB4_8 LBB4_8: ; in Loop: Header=BB4_1 Depth=1 b LBB4_11 LBB4_9: ; in Loop: Header=BB4_6 Depth=2 b LBB4_10 LBB4_10: ; in Loop: Header=BB4_6 Depth=2 ldr w8, [sp, #44] add w8, w8, #1 str w8, [sp, #44] b LBB4_6 LBB4_11: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #36] str w8, [sp, #40] b LBB4_12 LBB4_12: ; Parent Loop BB4_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #40] ldr w9, [sp, #44] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB4_15 b LBB4_13 LBB4_13: ; in Loop: Header=BB4_12 Depth=2 ldrsw x8, [sp, #40] mov x9, #63 mul x9, x8, x9 add x10, sp, #122 mov x8, x10 add x0, x8, x9 ldr w8, [sp, #40] subs w8, w8, #1 mov w9, #63 smaddl x1, w8, w9, x10 mov x2, #-1 bl ___strcpy_chk b LBB4_14 LBB4_14: ; in Loop: Header=BB4_12 Depth=2 ldr w8, [sp, #40] subs w8, w8, #1 str w8, [sp, #40] b LBB4_12 LBB4_15: ; in Loop: Header=BB4_1 Depth=1 ldrsw x8, [sp, #44] mov x9, #63 str x9, [sp, #8] ; 8-byte Folded Spill mul x9, x8, x9 add x8, sp, #122 str x8, [sp, #16] ; 8-byte Folded Spill add x0, x8, x9 add x1, sp, #53 mov x2, #-1 str x2, [sp, #24] ; 8-byte Folded Spill bl ___strcpy_chk ldr x10, [sp, #8] ; 8-byte Folded Reload ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x2, [sp, #24] ; 8-byte Folded Reload ldrsw x9, [sp, #44] mul x9, x9, x10 add x0, x8, x9 add x1, sp, #61 bl ___strcat_chk ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB4_1 LBB4_16: adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf str wzr, [sp, #44] b LBB4_17 LBB4_17: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #44] ldr w9, [sp, #36] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_20 b LBB4_18 LBB4_18: ; in Loop: Header=BB4_17 Depth=1 ldrsw x8, [sp, #44] mov x9, #63 mul x9, x8, x9 add x8, sp, #122 add x8, x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf b LBB4_19 LBB4_19: ; in Loop: Header=BB4_17 Depth=1 ldr w8, [sp, #44] add w8, w8, #1 str w8, [sp, #44] b LBB4_17 LBB4_20: ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB4_22 b LBB4_21 LBB4_21: bl ___stack_chk_fail LBB4_22: mov w0, #0 add sp, sp, #3280 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 "Enter 24-hour time: " l_.str.1: ; @.str.1 .asciz "%d :%d" l_.str.2: ; @.str.2 .asciz "%d:%d" l_.str.3: ; @.str.3 .asciz "Enter day and reminder: " l_.str.4: ; @.str.4 .asciz "%2d" l_.str.5: ; @.str.5 .asciz "day is error\n" .section __TEXT,__const .p2align 2 ; @__const.remaind_date.months l___const.remaind_date.months: .long 31 ; 0x1f .long 28 ; 0x1c .long 31 ; 0x1f .long 30 ; 0x1e .long 31 ; 0x1f .long 30 ; 0x1e .long 31 ; 0x1f .long 31 ; 0x1f .long 30 ; 0x1e .long 31 ; 0x1f .long 30 ; 0x1e .long 31 ; 0x1f .section __TEXT,__cstring,cstring_literals l_.str.6: ; @.str.6 .asciz "Enter an date(xx-xx): " l_.str.7: ; @.str.7 .asciz "%2d -%2d" l_.str.8: ; @.str.8 .asciz "%d-%d" l_.str.9: ; @.str.9 .asciz "-- No space left --\n" l_.str.10: ; @.str.10 .asciz "\nDay Reminder\n" l_.str.11: ; @.str.11 .asciz " %s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _read_line ## -- Begin function read_line .p2align 4, 0x90 _read_line: ## @read_line .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl $0, -20(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 callq _getchar movl %eax, -16(%rbp) cmpl $10, %eax je LBB0_5 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax movb %al, %dl movq -8(%rbp), %rax movl -20(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -20(%rbp) movslq %ecx, %rcx movb %dl, (%rax,%rcx) LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_5: movq -8(%rbp), %rax movslq -20(%rbp), %rcx movb $0, (%rax,%rcx) movl -20(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _remaind_hour ## -- Begin function remaind_hour .p2align 4, 0x90 _remaind_hour: ## @remaind_hour .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) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -20(%rbp), %rsi leaq -24(%rbp), %rdx movb $0, %al callq _scanf movq -8(%rbp), %rdi movl -20(%rbp), %r8d movl -24(%rbp), %r9d xorl %esi, %esi movq $-1, %rdx leaq L_.str.2(%rip), %rcx movb $0, %al callq ___sprintf_chk imull $60, -20(%rbp), %ecx addl -24(%rbp), %ecx movq -16(%rbp), %rax movl %ecx, (%rax) movb $1, %al andb $1, %al movzbl %al, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _remaind_day ## -- Begin function remaind_day .p2align 4, 0x90 _remaind_day: ## @remaind_day .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) leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rsi leaq L_.str.4(%rip), %rdi movb $0, %al callq _scanf movq -24(%rbp), %rax cmpl $0, (%rax) jl LBB2_2 ## %bb.1: movq -24(%rbp), %rax cmpl $31, (%rax) jle LBB2_3 LBB2_2: leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movb $0, -1(%rbp) jmp LBB2_4 LBB2_3: movq -16(%rbp), %rdi movq -24(%rbp), %rax movl (%rax), %r8d xorl %esi, %esi movq $-1, %rdx leaq L_.str.4(%rip), %rcx movb $0, %al callq ___sprintf_chk movb $1, -1(%rbp) LBB2_4: movb -1(%rbp), %al andb $1, %al movzbl %al, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _remaind_date ## -- Begin function remaind_date .p2align 4, 0x90 _remaind_date: ## @remaind_date .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -72(%rbp) movq %rsi, -80(%rbp) leaq -64(%rbp), %rdi leaq l___const.remaind_date.months(%rip), %rsi movl $48, %edx callq _memcpy leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf leaq L_.str.7(%rip), %rdi leaq -84(%rbp), %rsi leaq -88(%rbp), %rdx movb $0, %al callq _scanf movq -72(%rbp), %rdi movl -84(%rbp), %r8d movl -88(%rbp), %r9d xorl %esi, %esi movq $-1, %rdx leaq L_.str.8(%rip), %rcx movb $0, %al callq ___sprintf_chk movq -80(%rbp), %rax movl $0, (%rax) movl $0, -92(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movl -92(%rbp), %eax movl -84(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB3_4 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movslq -92(%rbp), %rax movl -64(%rbp,%rax,4), %ecx movq -80(%rbp), %rax addl (%rax), %ecx movl %ecx, (%rax) ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movl -92(%rbp), %eax addl $1, %eax movl %eax, -92(%rbp) jmp LBB3_1 LBB3_4: movl -88(%rbp), %ecx movq -80(%rbp), %rax addl (%rax), %ecx movl %ecx, (%rax) movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB3_6 ## %bb.5: movb $1, %al andb $1, %al movzbl %al, %eax addq $96, %rsp popq %rbp retq LBB3_6: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $3264, %rsp ## imm = 0xCC0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -3236(%rbp) movl $0, -3256(%rbp) LBB4_1: ## =>This Loop Header: Depth=1 ## Child Loop BB4_6 Depth 2 ## Child Loop BB4_12 Depth 2 cmpl $50, -3256(%rbp) jne LBB4_3 ## %bb.2: leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf jmp LBB4_16 LBB4_3: ## in Loop: Header=BB4_1 Depth=1 leaq -3239(%rbp), %rdi leaq -3244(%rbp), %rsi callq _remaind_date cmpl $0, -3244(%rbp) jne LBB4_5 ## %bb.4: jmp LBB4_16 LBB4_5: ## in Loop: Header=BB4_1 Depth=1 leaq -3232(%rbp), %rdi movl $60, %esi callq _read_line movl $0, -3248(%rbp) LBB4_6: ## Parent Loop BB4_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -3248(%rbp), %eax cmpl -3256(%rbp), %eax jge LBB4_11 ## %bb.7: ## in Loop: Header=BB4_6 Depth=2 leaq -3239(%rbp), %rdi movslq -3248(%rbp), %rax leaq -3168(%rbp), %rsi imulq $63, %rax, %rax addq %rax, %rsi callq _strcmp cmpl $0, %eax jge LBB4_9 ## %bb.8: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_11 LBB4_9: ## in Loop: Header=BB4_6 Depth=2 jmp LBB4_10 LBB4_10: ## in Loop: Header=BB4_6 Depth=2 movl -3248(%rbp), %eax addl $1, %eax movl %eax, -3248(%rbp) jmp LBB4_6 LBB4_11: ## in Loop: Header=BB4_1 Depth=1 movl -3256(%rbp), %eax movl %eax, -3252(%rbp) LBB4_12: ## Parent Loop BB4_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -3252(%rbp), %eax cmpl -3248(%rbp), %eax jle LBB4_15 ## %bb.13: ## in Loop: Header=BB4_12 Depth=2 movslq -3252(%rbp), %rax leaq -3168(%rbp), %rdi imulq $63, %rax, %rax addq %rax, %rdi movl -3252(%rbp), %eax subl $1, %eax cltq leaq -3168(%rbp), %rsi imulq $63, %rax, %rax addq %rax, %rsi movq $-1, %rdx callq ___strcpy_chk ## %bb.14: ## in Loop: Header=BB4_12 Depth=2 movl -3252(%rbp), %eax addl $-1, %eax movl %eax, -3252(%rbp) jmp LBB4_12 LBB4_15: ## in Loop: Header=BB4_1 Depth=1 movslq -3248(%rbp), %rax leaq -3168(%rbp), %rdi imulq $63, %rax, %rax addq %rax, %rdi leaq -3239(%rbp), %rsi movq $-1, %rdx callq ___strcpy_chk movslq -3248(%rbp), %rax leaq -3168(%rbp), %rdi imulq $63, %rax, %rax addq %rax, %rdi leaq -3232(%rbp), %rsi movq $-1, %rdx callq ___strcat_chk movl -3256(%rbp), %eax addl $1, %eax movl %eax, -3256(%rbp) jmp LBB4_1 LBB4_16: leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf movl $0, -3248(%rbp) LBB4_17: ## =>This Inner Loop Header: Depth=1 movl -3248(%rbp), %eax cmpl -3256(%rbp), %eax jge LBB4_20 ## %bb.18: ## in Loop: Header=BB4_17 Depth=1 movslq -3248(%rbp), %rax leaq -3168(%rbp), %rsi imulq $63, %rax, %rax addq %rax, %rsi leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf ## %bb.19: ## in Loop: Header=BB4_17 Depth=1 movl -3248(%rbp), %eax addl $1, %eax movl %eax, -3248(%rbp) jmp LBB4_17 LBB4_20: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB4_22 ## %bb.21: xorl %eax, %eax addq $3264, %rsp ## imm = 0xCC0 popq %rbp retq LBB4_22: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter 24-hour time: " L_.str.1: ## @.str.1 .asciz "%d :%d" L_.str.2: ## @.str.2 .asciz "%d:%d" L_.str.3: ## @.str.3 .asciz "Enter day and reminder: " L_.str.4: ## @.str.4 .asciz "%2d" L_.str.5: ## @.str.5 .asciz "day is error\n" .section __TEXT,__const .p2align 4 ## @__const.remaind_date.months l___const.remaind_date.months: .long 31 ## 0x1f .long 28 ## 0x1c .long 31 ## 0x1f .long 30 ## 0x1e .long 31 ## 0x1f .long 30 ## 0x1e .long 31 ## 0x1f .long 31 ## 0x1f .long 30 ## 0x1e .long 31 ## 0x1f .long 30 ## 0x1e .long 31 ## 0x1f .section __TEXT,__cstring,cstring_literals L_.str.6: ## @.str.6 .asciz "Enter an date(xx-xx): " L_.str.7: ## @.str.7 .asciz "%2d -%2d" L_.str.8: ## @.str.8 .asciz "%d-%d" L_.str.9: ## @.str.9 .asciz "-- No space left --\n" L_.str.10: ## @.str.10 .asciz "\nDay Reminder\n" L_.str.11: ## @.str.11 .asciz " %s\n" .subsections_via_symbols
the_stack_data/175142307.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _palTestGetNetWorkInterfaceContext ; -- Begin function palTestGetNetWorkInterfaceContext .p2align 2 _palTestGetNetWorkInterfaceContext: ; @palTestGetNetWorkInterfaceContext .cfi_startproc ; %bb.0: adrp x0, _palTestGetNetWorkInterfaceContext.interface@PAGE add x0, x0, _palTestGetNetWorkInterfaceContext.interface@PAGEOFF ret .cfi_endproc ; -- End function .section __DATA,__data .globl _dhcpDone ; @dhcpDone _dhcpDone: .byte 1 ; 0x1 .section __TEXT,__const _palTestGetNetWorkInterfaceContext.interface: ; @palTestGetNetWorkInterfaceContext.interface .asciz "eth0" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _palTestGetNetWorkInterfaceContext ## -- Begin function palTestGetNetWorkInterfaceContext .p2align 4, 0x90 _palTestGetNetWorkInterfaceContext: ## @palTestGetNetWorkInterfaceContext .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq _palTestGetNetWorkInterfaceContext.interface(%rip), %rax popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _dhcpDone ## @dhcpDone _dhcpDone: .byte 1 ## 0x1 .section __TEXT,__const _palTestGetNetWorkInterfaceContext.interface: ## @palTestGetNetWorkInterfaceContext.interface .asciz "eth0" .subsections_via_symbols
the_stack_data/62638465.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _make_list ; -- Begin function make_list .p2align 2 _make_list: ; @make_list .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] ; kill: def $x8 killed $xzr str xzr, [sp, #24] add x8, sp, #32 str xzr, [sp, #40] str x8, [sp, #24] str wzr, [sp, #20] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov x0, #16 bl _malloc str x0, [sp, #8] ldr x8, [sp, #8] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldur x8, [x29, #-8] ldrsw x9, [sp, #20] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #8] str w8, [x9] ldr x8, [sp, #8] ldr x9, [sp, #24] str x8, [x9, #8] ldr x8, [sp, #8] str x8, [sp, #24] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_1 LBB0_4: ldr x0, [sp, #40] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _print_list ; -- Begin function print_list .p2align 2 _print_list: ; @print_list .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] str x8, [sp, #16] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_6 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldur x9, [x29, #-8] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB1_5 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldr x8, [x8, #8] str x8, [sp, #16] b LBB1_1 LBB1_6: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _rotate_right ; -- Begin function rotate_right .p2align 2 _rotate_right: ; @rotate_right .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 str x0, [sp, #64] str w1, [sp, #60] ldr x8, [sp, #64] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldr w8, [sp, #60] subs w8, w8, #0 cset w8, gt tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ldr x8, [sp, #64] str x8, [sp, #72] b LBB2_16 LBB2_3: ldr w8, [sp, #60] str w8, [sp, #56] add x8, sp, #40 mov x9, x8 str x9, [sp, #32] str x8, [sp, #24] ldr x8, [sp, #64] str x8, [sp, #16] ldr x8, [sp, #64] str x8, [sp, #48] b LBB2_4 LBB2_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #60] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB2_10 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_4 Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_9 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_4 Depth=1 ldr w8, [sp, #56] ldr w9, [sp, #60] subs w8, w8, w9 str w8, [sp, #12] add x8, sp, #40 str x8, [sp, #32] ldr x8, [sp, #64] str x8, [sp, #16] ldr w8, [sp, #56] ldr w10, [sp, #12] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 str w8, [sp, #60] ldr w8, [sp, #60] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_8 b LBB2_7 LBB2_7: b LBB2_10 LBB2_8: ; in Loop: Header=BB2_4 Depth=1 b LBB2_9 LBB2_9: ; in Loop: Header=BB2_4 Depth=1 ldr x8, [sp, #16] str x8, [sp, #32] ldr x8, [sp, #16] ldr x8, [x8, #8] str x8, [sp, #16] ldr w8, [sp, #60] subs w8, w8, #1 str w8, [sp, #60] b LBB2_4 LBB2_10: b LBB2_11 LBB2_11: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_13 b LBB2_12 LBB2_12: ; in Loop: Header=BB2_11 Depth=1 ldr x8, [sp, #24] ldr x8, [x8, #8] str x8, [sp, #24] ldr x8, [sp, #16] str x8, [sp, #32] ldr x8, [sp, #16] ldr x8, [x8, #8] str x8, [sp, #16] b LBB2_11 LBB2_13: ldr x8, [sp, #24] add x9, sp, #40 subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_15 b LBB2_14 LBB2_14: ldr x8, [sp, #64] ldr x9, [sp, #32] str x8, [x9, #8] ldr x8, [sp, #24] ldr x8, [x8, #8] str x8, [sp, #48] ldr x8, [sp, #24] ; kill: def $x9 killed $xzr str xzr, [x8, #8] b LBB2_15 LBB2_15: ldr x8, [sp, #48] str x8, [sp, #72] b LBB2_16 LBB2_16: ldr x0, [sp, #72] 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, #160 .cfi_def_cfa_offset 160 stp x29, x30, [sp, #144] ; 16-byte Folded Spill add x29, sp, #144 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #60] str w0, [sp, #56] str x1, [sp, #48] adrp x9, l___const.main.nums1@PAGE add x9, x9, l___const.main.nums1@PAGEOFF ldr q0, [x9] sub x8, x29, #32 stur q0, [x29, #-32] ldr w9, [x9, #16] stur w9, [x29, #-16] mov w9, #5 str w9, [sp, #44] adrp x10, l___const.main.nums2@PAGE add x10, x10, l___const.main.nums2@PAGEOFF ldr x11, [x10] sub x9, x29, #48 stur x11, [x29, #-48] ldr w10, [x10, #8] stur w10, [x29, #-40] mov w10, #3 str w10, [sp, #40] str x8, [sp, #64] ldr w8, [sp, #44] str w8, [sp, #72] mov w8, #2 str w8, [sp, #76] str x9, [sp, #80] ldr w9, [sp, #40] str w9, [sp, #88] mov w9, #4 str w9, [sp, #92] str w8, [sp, #32] str wzr, [sp, #36] b LBB3_1 LBB3_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, LBB3_4 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldrsw x8, [sp, #36] lsl x9, x8, #4 add x8, sp, #64 ldr x9, [x8, x9] str x9, [sp, #24] ldrsw x10, [sp, #36] mov x9, x8 add x9, x9, x10, lsl #4 ldr w9, [x9, #8] str w9, [sp, #20] ldrsw x9, [sp, #36] add x8, x8, x9, lsl #4 ldr w8, [x8, #12] str w8, [sp, #16] ldr x0, [sp, #24] ldr w1, [sp, #20] bl _make_list str x0, [sp, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #8] bl _print_list ldr w9, [sp, #16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr x0, [sp, #8] ldr w1, [sp, #16] bl _rotate_right str x0, [sp, #8] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr x0, [sp, #8] bl _print_list mov w0, #10 bl _putchar b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB3_1 LBB3_4: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB3_6 b LBB3_5 LBB3_5: bl ___stack_chk_fail LBB3_6: mov w0, #0 ldp x29, x30, [sp, #144] ; 16-byte Folded Reload add sp, sp, #160 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz " -> %d" .section __TEXT,__const .p2align 2 ; @__const.main.nums1 l___const.main.nums1: .long 1 ; 0x1 .long 2 ; 0x2 .long 3 ; 0x3 .long 4 ; 0x4 .long 5 ; 0x5 .p2align 2 ; @__const.main.nums2 l___const.main.nums2: .long 0 ; 0x0 .long 1 ; 0x1 .long 2 ; 0x2 .section __TEXT,__cstring,cstring_literals l_.str.2: ; @.str.2 .asciz "\n Input: " l_.str.3: ; @.str.3 .asciz ", k = %d\n" l_.str.4: ; @.str.4 .asciz " Output: " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _make_list ## -- Begin function make_list .p2align 4, 0x90 _make_list: ## @make_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 $64, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq $0, -40(%rbp) movq $0, -24(%rbp) leaq -32(%rbp), %rax movq %rax, -40(%rbp) movl $0, -44(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -44(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $16, %edi callq _malloc movq %rax, -56(%rbp) movq -56(%rbp), %rax movq $0, 8(%rax) movq -8(%rbp), %rax movslq -44(%rbp), %rcx movl (%rax,%rcx,4), %ecx movq -56(%rbp), %rax movl %ecx, (%rax) movq -56(%rbp), %rcx movq -40(%rbp), %rax movq %rcx, 8(%rax) movq -56(%rbp), %rax movq %rax, -40(%rbp) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB0_1 LBB0_4: movq -24(%rbp), %rax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _print_list ## -- Begin function print_list .p2align 4, 0x90 _print_list: ## @print_list .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq %rax, -16(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -16(%rbp) je LBB1_6 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax cmpq -8(%rbp), %rax jne LBB1_4 ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movl (%rax), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB1_5 LBB1_4: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movl (%rax), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB1_5: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -16(%rbp) jmp LBB1_1 LBB1_6: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _rotate_right ## -- Begin function rotate_right .p2align 4, 0x90 _rotate_right: ## @rotate_right .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) cmpq $0, -16(%rbp) je LBB2_2 ## %bb.1: cmpl $0, -20(%rbp) jg LBB2_3 LBB2_2: movq -16(%rbp), %rax movq %rax, -8(%rbp) jmp LBB2_16 LBB2_3: movl -20(%rbp), %eax movl %eax, -24(%rbp) leaq -40(%rbp), %rax movq %rax, -48(%rbp) leaq -40(%rbp), %rax movq %rax, -56(%rbp) movq -16(%rbp), %rax movq %rax, -64(%rbp) movq -16(%rbp), %rax movq %rax, -32(%rbp) LBB2_4: ## =>This Inner Loop Header: Depth=1 cmpl $0, -20(%rbp) jle LBB2_10 ## %bb.5: ## in Loop: Header=BB2_4 Depth=1 cmpq $0, -64(%rbp) jne LBB2_9 ## %bb.6: ## in Loop: Header=BB2_4 Depth=1 movl -24(%rbp), %eax subl -20(%rbp), %eax movl %eax, -68(%rbp) leaq -40(%rbp), %rax movq %rax, -48(%rbp) movq -16(%rbp), %rax movq %rax, -64(%rbp) movl -24(%rbp), %eax cltd idivl -68(%rbp) movl %edx, -20(%rbp) cmpl $0, -20(%rbp) jne LBB2_8 ## %bb.7: jmp LBB2_10 LBB2_8: ## in Loop: Header=BB2_4 Depth=1 jmp LBB2_9 LBB2_9: ## in Loop: Header=BB2_4 Depth=1 movq -64(%rbp), %rax movq %rax, -48(%rbp) movq -64(%rbp), %rax movq 8(%rax), %rax movq %rax, -64(%rbp) movl -20(%rbp), %eax addl $-1, %eax movl %eax, -20(%rbp) jmp LBB2_4 LBB2_10: jmp LBB2_11 LBB2_11: ## =>This Inner Loop Header: Depth=1 cmpq $0, -64(%rbp) je LBB2_13 ## %bb.12: ## in Loop: Header=BB2_11 Depth=1 movq -56(%rbp), %rax movq 8(%rax), %rax movq %rax, -56(%rbp) movq -64(%rbp), %rax movq %rax, -48(%rbp) movq -64(%rbp), %rax movq 8(%rax), %rax movq %rax, -64(%rbp) jmp LBB2_11 LBB2_13: leaq -40(%rbp), %rax cmpq %rax, -56(%rbp) je LBB2_15 ## %bb.14: movq -16(%rbp), %rcx movq -48(%rbp), %rax movq %rcx, 8(%rax) movq -56(%rbp), %rax movq 8(%rax), %rax movq %rax, -32(%rbp) movq -56(%rbp), %rax movq $0, 8(%rax) LBB2_15: movq -32(%rbp), %rax movq %rax, -8(%rbp) LBB2_16: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $144, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -84(%rbp) movl %edi, -88(%rbp) movq %rsi, -96(%rbp) movq l___const.main.nums1(%rip), %rax movq %rax, -32(%rbp) movq l___const.main.nums1+8(%rip), %rax movq %rax, -24(%rbp) movl l___const.main.nums1+16(%rip), %eax movl %eax, -16(%rbp) movl $5, -100(%rbp) movq l___const.main.nums2(%rip), %rax movq %rax, -44(%rbp) movl l___const.main.nums2+8(%rip), %eax movl %eax, -36(%rbp) movl $3, -104(%rbp) leaq -32(%rbp), %rax movq %rax, -80(%rbp) movl -100(%rbp), %eax movl %eax, -72(%rbp) movl $2, -68(%rbp) leaq -44(%rbp), %rax movq %rax, -64(%rbp) movl -104(%rbp), %eax movl %eax, -56(%rbp) movl $4, -52(%rbp) movl $2, -112(%rbp) movl $0, -108(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movl -108(%rbp), %eax cmpl -112(%rbp), %eax jge LBB3_4 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movslq -108(%rbp), %rcx leaq -80(%rbp), %rax shlq $4, %rcx addq %rcx, %rax movq (%rax), %rax movq %rax, -120(%rbp) movslq -108(%rbp), %rcx leaq -80(%rbp), %rax shlq $4, %rcx addq %rcx, %rax movl 8(%rax), %eax movl %eax, -124(%rbp) movslq -108(%rbp), %rcx leaq -80(%rbp), %rax shlq $4, %rcx addq %rcx, %rax movl 12(%rax), %eax movl %eax, -128(%rbp) movq -120(%rbp), %rdi movl -124(%rbp), %esi callq _make_list movq %rax, -136(%rbp) leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -136(%rbp), %rdi callq _print_list movl -128(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movq -136(%rbp), %rdi movl -128(%rbp), %esi callq _rotate_right movq %rax, -136(%rbp) leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movq -136(%rbp), %rdi callq _print_list movl $10, %edi callq _putchar ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movl -108(%rbp), %eax addl $1, %eax movl %eax, -108(%rbp) jmp LBB3_1 LBB3_4: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB3_6 ## %bb.5: xorl %eax, %eax addq $144, %rsp popq %rbp retq LBB3_6: 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" .section __TEXT,__const .p2align 4 ## @__const.main.nums1 l___const.main.nums1: .long 1 ## 0x1 .long 2 ## 0x2 .long 3 ## 0x3 .long 4 ## 0x4 .long 5 ## 0x5 .p2align 2 ## @__const.main.nums2 l___const.main.nums2: .long 0 ## 0x0 .long 1 ## 0x1 .long 2 ## 0x2 .section __TEXT,__cstring,cstring_literals L_.str.2: ## @.str.2 .asciz "\n Input: " L_.str.3: ## @.str.3 .asciz ", k = %d\n" L_.str.4: ## @.str.4 .asciz " Output: " .subsections_via_symbols
the_stack_data/132953519.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _cFunc ; -- Begin function cFunc .p2align 2 _cFunc: ; @cFunc .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] lsl w0, w8, #1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl __cFunc ; -- Begin function _cFunc .p2align 2 __cFunc: ; @_cFunc .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] ldur w0, [x29, #-4] bl _cFunc 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 _cFunc ## -- Begin function cFunc .p2align 4, 0x90 _cFunc: ## @cFunc .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 shll $1, %eax popq %rbp retq .cfi_endproc ## -- End function .globl __cFunc ## -- Begin function _cFunc .p2align 4, 0x90 __cFunc: ## @_cFunc .cfi_startproc ## %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), %edi callq _cFunc addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/34514074.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _fibonacci ; -- Begin function fibonacci .p2align 2 _fibonacci: ; @fibonacci .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str w0, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x9, _st@GOTPAGE ldr x9, [x9, _st@GOTPAGEOFF] ldr w8, [x9] add w8, w8, #1 str w8, [x9] stur wzr, [x29, #-4] b LBB0_5 LBB0_2: ldr w8, [sp, #8] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: adrp x10, _nd@GOTPAGE ldr x10, [x10, _nd@GOTPAGEOFF] ldr w9, [x10] mov w8, #1 add w9, w9, #1 str w9, [x10] stur w8, [x29, #-4] b LBB0_5 LBB0_4: ldr w8, [sp, #8] subs w0, w8, #1 bl _fibonacci str w0, [sp, #4] ; 4-byte Folded Spill ldr w8, [sp, #8] subs w0, w8, #2 bl _fibonacci mov x8, x0 ldr w0, [sp, #4] ; 4-byte Folded Reload add w8, w0, w8 stur w8, [x29, #-4] b LBB0_5 LBB0_5: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .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 stur wzr, [x29, #-12] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 adrp x8, _st@GOTPAGE ldr x8, [x8, _st@GOTPAGEOFF] str x8, [sp, #16] ; 8-byte Folded Spill str wzr, [x8] adrp x8, _nd@GOTPAGE ldr x8, [x8, _nd@GOTPAGEOFF] str x8, [sp, #24] ; 8-byte Folded Spill str wzr, [x8] mov x9, sp sub x8, x29, #16 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldur w0, [x29, #-16] bl _fibonacci ldr x9, [sp, #16] ; 8-byte Folded Reload ldr x8, [sp, #24] ; 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.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB1_1 LBB1_4: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .comm _st,4,2 ; @st .comm _nd,4,2 ; @nd .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%d %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _fibonacci ## -- Begin function fibonacci .p2align 4, 0x90 _fibonacci: ## @fibonacci .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -8(%rbp) cmpl $0, -8(%rbp) jne LBB0_2 ## %bb.1: movq _st@GOTPCREL(%rip), %rax movl (%rax), %ecx addl $1, %ecx movq _st@GOTPCREL(%rip), %rax movl %ecx, (%rax) movl $0, -4(%rbp) jmp LBB0_5 LBB0_2: cmpl $1, -8(%rbp) jne LBB0_4 ## %bb.3: movq _nd@GOTPCREL(%rip), %rax movl (%rax), %ecx addl $1, %ecx movq _nd@GOTPCREL(%rip), %rax movl %ecx, (%rax) movl $1, -4(%rbp) jmp LBB0_5 LBB0_4: movl -8(%rbp), %edi subl $1, %edi callq _fibonacci movl %eax, -12(%rbp) ## 4-byte Spill movl -8(%rbp), %edi subl $2, %edi callq _fibonacci movl %eax, %ecx movl -12(%rbp), %eax ## 4-byte Reload addl %ecx, %eax movl %eax, -4(%rbp) LBB0_5: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl $0, -12(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq _st@GOTPCREL(%rip), %rax movl $0, (%rax) movq _nd@GOTPCREL(%rip), %rax movl $0, (%rax) leaq L_.str(%rip), %rdi leaq -16(%rbp), %rsi movb $0, %al callq _scanf movl -16(%rbp), %edi callq _fibonacci movq _st@GOTPCREL(%rip), %rax movl (%rax), %esi movq _nd@GOTPCREL(%rip), %rax movl (%rax), %edx leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB1_1 LBB1_4: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _st,4,2 ## @st .comm _nd,4,2 ## @nd .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%d %d\n" .subsections_via_symbols
the_stack_data/87119.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _MaxDC ; -- Begin function MaxDC .p2align 2 _MaxDC: ; @MaxDC .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur w1, [x29, #-20] str w2, [sp, #24] ldur w8, [x29, #-20] ldr w9, [sp, #24] add w8, w8, w9 mov w9, #2 sdiv w8, w8, w9 str w8, [sp, #12] ldur w8, [x29, #-20] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur x8, [x29, #-16] ldursw x9, [x29, #-20] ldr w8, [x8, x9, lsl #2] stur w8, [x29, #-4] b LBB0_5 LBB0_2: ldur x0, [x29, #-16] ldur w1, [x29, #-20] ldr w2, [sp, #12] bl _MaxDC str w0, [sp, #20] ldur x0, [x29, #-16] ldr w8, [sp, #12] add w1, w8, #1 ldr w2, [sp, #24] bl _MaxDC str w0, [sp, #16] ldr w8, [sp, #20] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr w8, [sp, #20] stur w8, [x29, #-4] b LBB0_5 LBB0_4: ldr w8, [sp, #16] stur w8, [x29, #-4] b LBB0_5 LBB0_5: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _max1 ; -- Begin function max1 .p2align 2 _max1: ; @max1 .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str w2, [sp, #16] ldur x8, [x29, #-8] ldrsw x9, [sp, #16] ldr w8, [x8, x9, lsl #2] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldur x8, [x29, #-8] ldrsw x9, [sp, #16] ldr w8, [x8, x9, lsl #2] stur w8, [x29, #-12] b LBB1_2 LBB1_2: ldr w8, [sp, #16] subs w8, w8, #9 cset w8, ge tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ldur x0, [x29, #-8] ldur w1, [x29, #-12] ldr w8, [sp, #16] add w2, w8, #1 bl _max1 b LBB1_5 LBB1_4: ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB1_5 LBB1_5: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _max2 ; -- Begin function max2 .p2align 2 _max2: ; @max2 .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str w1, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldr x8, [sp, #16] ldr w8, [x8] stur w8, [x29, #-4] b LBB2_5 LBB2_2: ldr x0, [sp, #16] ldr w8, [sp, #12] subs w1, w8, #1 bl _max2 str w0, [sp, #8] ldr w8, [sp, #8] ldr x9, [sp, #16] ldr w10, [sp, #12] subs w10, w10, #1 ldr w9, [x9, w10, sxtw #2] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ldr w8, [sp, #8] stur w8, [x29, #-4] b LBB2_5 LBB2_4: ldr x8, [sp, #16] ldr w9, [sp, #12] subs w9, w9, #1 ldr w8, [x8, w9, sxtw #2] stur w8, [x29, #-4] b LBB2_5 LBB2_5: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #28] str wzr, [sp, #24] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB3_4 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 bl _rand mov w9, #90 sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 add w9, w8, #10 ldrsw x10, [sp, #24] add x8, sp, #32 str w9, [x8, x10, lsl #2] ldrsw x9, [sp, #24] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB3_1 LBB3_4: add x0, sp, #32 str x0, [sp, #16] ; 8-byte Folded Spill ldr w1, [sp, #32] mov w2, #1 bl _max1 ldr x0, [sp, #16] ; 8-byte Folded Reload mov w1, #10 bl _max2 mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload mov w1, #0 mov w2, #9 bl _MaxDC 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 ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB3_6 b LBB3_5 LBB3_5: bl ___stack_chk_fail LBB3_6: mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\n\nMax1: %d\n" l_.str.1: ; @.str.1 .asciz "%d, " l_.str.2: ; @.str.2 .asciz "\nMax2: %d\n" l_.str.3: ; @.str.3 .asciz "\nMaxDC: %d\n\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _MaxDC ## -- Begin function MaxDC .p2align 4, 0x90 _MaxDC: ## @MaxDC .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movl %edx, -24(%rbp) movl -20(%rbp), %eax addl -24(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -36(%rbp) movl -20(%rbp), %eax cmpl -24(%rbp), %eax jne LBB0_2 ## %bb.1: movq -16(%rbp), %rax movslq -20(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -4(%rbp) jmp LBB0_5 LBB0_2: movq -16(%rbp), %rdi movl -20(%rbp), %esi movl -36(%rbp), %edx callq _MaxDC movl %eax, -28(%rbp) movq -16(%rbp), %rdi movl -36(%rbp), %esi addl $1, %esi movl -24(%rbp), %edx callq _MaxDC movl %eax, -32(%rbp) movl -28(%rbp), %eax cmpl -32(%rbp), %eax jle LBB0_4 ## %bb.3: movl -28(%rbp), %eax movl %eax, -4(%rbp) jmp LBB0_5 LBB0_4: movl -32(%rbp), %eax movl %eax, -4(%rbp) LBB0_5: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _max1 ## -- Begin function max1 .p2align 4, 0x90 _max1: ## @max1 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %eax cmpl -12(%rbp), %eax jle LBB1_2 ## %bb.1: movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -12(%rbp) LBB1_2: cmpl $9, -16(%rbp) jge LBB1_4 ## %bb.3: movq -8(%rbp), %rdi movl -12(%rbp), %esi movl -16(%rbp), %edx addl $1, %edx callq _max1 jmp LBB1_5 LBB1_4: movl -12(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB1_5: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _max2 ## -- Begin function max2 .p2align 4, 0x90 _max2: ## @max2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) cmpl $1, -20(%rbp) jne LBB2_2 ## %bb.1: movq -16(%rbp), %rax movl (%rax), %eax movl %eax, -4(%rbp) jmp LBB2_5 LBB2_2: movq -16(%rbp), %rdi movl -20(%rbp), %esi subl $1, %esi callq _max2 movl %eax, -24(%rbp) movl -24(%rbp), %eax movq -16(%rbp), %rcx movl -20(%rbp), %edx subl $1, %edx movslq %edx, %rdx cmpl (%rcx,%rdx,4), %eax jle LBB2_4 ## %bb.3: movl -24(%rbp), %eax movl %eax, -4(%rbp) jmp LBB2_5 LBB2_4: movq -16(%rbp), %rax movl -20(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %eax movl %eax, -4(%rbp) LBB2_5: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -52(%rbp) movl $0, -56(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -56(%rbp) jge LBB3_4 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 callq _rand movl $90, %ecx cltd idivl %ecx addl $10, %edx movslq -56(%rbp), %rax movl %edx, -48(%rbp,%rax,4) movslq -56(%rbp), %rax movl -48(%rbp,%rax,4), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) jmp LBB3_1 LBB3_4: leaq -48(%rbp), %rdi movl -48(%rbp), %esi movl $1, %edx callq _max1 leaq -48(%rbp), %rdi movl $10, %esi callq _max2 movl %eax, %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq -48(%rbp), %rdi xorl %esi, %esi movl $9, %edx callq _MaxDC movl %eax, %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB3_6 ## %bb.5: xorl %eax, %eax addq $64, %rsp popq %rbp retq LBB3_6: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\n\nMax1: %d\n" L_.str.1: ## @.str.1 .asciz "%d, " L_.str.2: ## @.str.2 .asciz "\nMax2: %d\n" L_.str.3: ## @.str.3 .asciz "\nMaxDC: %d\n\n" .subsections_via_symbols
the_stack_data/132953452.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ; -- Begin function foo .p2align 2 _foo: ; @foo .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 add x8, sp, #16 str x8, [sp, #8] fmov s0, #1.00000000 str s0, [sp, #16] ldr s0, [sp, #16] bl _something_f ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function foo LCPI0_0: .long 0x3f800000 ## float 1 .section __TEXT,__text,regular,pure_instructions .globl _foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp leaq -16(%rbp), %rax movq %rax, -24(%rbp) movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -16(%rbp) movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _something_f movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/67326399.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 "To C, or not to C: that is the question.\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "To C, or not to C: that is the question.\n" .subsections_via_symbols
the_stack_data/28810.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 double_to_fixed lCPI0_0: .quad 0x40f0000000000000 ; double 65536 .section __TEXT,__text,regular,pure_instructions .globl _double_to_fixed .p2align 2 _double_to_fixed: ; @double_to_fixed .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str d0, [sp, #8] ldr d0, [sp, #8] adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fmul d0, d0, d1 fcvtzs w0, d0 add sp, sp, #16 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function fixed_to_double lCPI1_0: .quad 0x40f0000000000000 ; double 65536 .section __TEXT,__text,regular,pure_instructions .globl _fixed_to_double .p2align 2 _fixed_to_double: ; @fixed_to_double .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr s1, [sp, #12] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 adrp x8, lCPI1_0@PAGE ldr d1, [x8, lCPI1_0@PAGEOFF] fdiv d0, d0, d1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _int_to_fixed ; -- Begin function int_to_fixed .p2align 2 _int_to_fixed: ; @int_to_fixed .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] lsl w0, w8, #16 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _fixed_to_int ; -- Begin function fixed_to_int .p2align 2 _fixed_to_int: ; @fixed_to_int .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] asr w0, w8, #16 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _fraction_part ; -- Begin function fraction_part .p2align 2 _fraction_part: ; @fraction_part .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] ldur w8, [x29, #-4] subs w8, w8, #0 cset w9, lt ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: adrp x0, l___func__.fraction_part@PAGE add x0, x0, l___func__.fraction_part@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #34 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___assert_rtn LBB4_2: b LBB4_3 LBB4_3: ldurh w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _whole_part ; -- Begin function whole_part .p2align 2 _whole_part: ; @whole_part .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] ldur w8, [x29, #-4] subs w8, w8, #0 cset w9, lt ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: adrp x0, l___func__.whole_part@PAGE add x0, x0, l___func__.whole_part@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #39 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___assert_rtn LBB5_2: b LBB5_3 LBB5_3: ldur w8, [x29, #-4] and w0, w8, #0xffff0000 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function main lCPI6_0: .quad 0x403badcc63f14120 ; double 27.678899999999999 lCPI6_1: .quad 0x401f99999999999a ; double 7.9000000000000004 lCPI6_2: .quad 0x4016666666666666 ; double 5.5999999999999996 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, lCPI6_2@PAGE ldr d0, [x8, lCPI6_2@PAGEOFF] bl _double_to_fixed stur w0, [x29, #-4] adrp x8, lCPI6_1@PAGE ldr d0, [x8, lCPI6_1@PAGEOFF] bl _double_to_fixed stur w0, [x29, #-8] adrp x8, lCPI6_0@PAGE ldr d0, [x8, lCPI6_0@PAGEOFF] bl _double_to_fixed stur w0, [x29, #-12] ldur w0, [x29, #-4] bl _fixed_to_double str d0, [sp, #24] ; 8-byte Folded Spill ldur w0, [x29, #-8] bl _fixed_to_double str d0, [sp, #32] ; 8-byte Folded Spill ldur w8, [x29, #-4] ldur w9, [x29, #-8] add w0, w8, w9 bl _fixed_to_double ldr d2, [sp, #24] ; 8-byte Folded Reload ldr d1, [sp, #32] ; 8-byte Folded Reload mov x8, sp str d2, [x8] str d1, [x8, #8] str d0, [x8, #16] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w0, [x29, #-4] bl _fixed_to_double str d0, [sp, #40] ; 8-byte Folded Spill ldur w0, [x29, #-8] bl _fixed_to_double stur d0, [x29, #-32] ; 8-byte Folded Spill ldur w8, [x29, #-4] ldur w9, [x29, #-8] subs w0, w8, w9 bl _fixed_to_double ldr d2, [sp, #40] ; 8-byte Folded Reload ldur d1, [x29, #-32] ; 8-byte Folded Reload mov x8, sp str d2, [x8] str d1, [x8, #8] str d0, [x8, #16] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur w0, [x29, #-4] bl _fraction_part bl _fixed_to_double mov x8, sp str d0, [x8] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF stur x0, [x29, #-24] ; 8-byte Folded Spill bl _printf ldur w0, [x29, #-12] bl _fraction_part bl _fixed_to_double ldur x0, [x29, #-24] ; 8-byte Folded Reload mov x8, sp str d0, [x8] bl _printf ldur w0, [x29, #-12] bl _whole_part bl _fixed_to_double mov x8, sp str d0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf mov w0, #1 bl _fixed_to_double mov x8, sp str d0, [x8] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l___func__.fraction_part: ; @__func__.fraction_part .asciz "fraction_part" l_.str: ; @.str .asciz "47860.c" l_.str.1: ; @.str.1 .asciz "x >= 0" l___func__.whole_part: ; @__func__.whole_part .asciz "whole_part" l_.str.2: ; @.str.2 .asciz "%lf + %lf = %lf\n" l_.str.3: ; @.str.3 .asciz "%lf - %lf = %lf\n" l_.str.4: ; @.str.4 .asciz "Fractional Part: %lf\n" l_.str.5: ; @.str.5 .asciz "Whole Part: %lf\n" l_.str.6: ; @.str.6 .asciz "Min Number: %lf\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 double_to_fixed LCPI0_0: .quad 0x40f0000000000000 ## double 65536 .section __TEXT,__text,regular,pure_instructions .globl _double_to_fixed .p2align 4, 0x90 _double_to_fixed: ## @double_to_fixed .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movsd %xmm0, -8(%rbp) movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -8(%rbp), %xmm0 cvttsd2si %xmm0, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function fixed_to_double LCPI1_0: .quad 0x40f0000000000000 ## double 65536 .section __TEXT,__text,regular,pure_instructions .globl _fixed_to_double .p2align 4, 0x90 _fixed_to_double: ## @fixed_to_double .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) cvtsi2sdl -4(%rbp), %xmm0 movsd LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 popq %rbp retq .cfi_endproc ## -- End function .globl _int_to_fixed ## -- Begin function int_to_fixed .p2align 4, 0x90 _int_to_fixed: ## @int_to_fixed .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 shll $16, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _fixed_to_int ## -- Begin function fixed_to_int .p2align 4, 0x90 _fixed_to_int: ## @fixed_to_int .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl -4(%rbp), %eax sarl $16, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _fraction_part ## -- Begin function fraction_part .p2align 4, 0x90 _fraction_part: ## @fraction_part .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) cmpl $0, -4(%rbp) setge %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB4_2 ## %bb.1: leaq L___func__.fraction_part(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.1(%rip), %rcx movl $34, %edx callq ___assert_rtn LBB4_2: jmp LBB4_3 LBB4_3: movl -4(%rbp), %eax andl $65535, %eax ## imm = 0xFFFF addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _whole_part ## -- Begin function whole_part .p2align 4, 0x90 _whole_part: ## @whole_part .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) cmpl $0, -4(%rbp) setge %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB5_2 ## %bb.1: leaq L___func__.whole_part(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.1(%rip), %rcx movl $39, %edx callq ___assert_rtn LBB5_2: jmp LBB5_3 LBB5_3: movl -4(%rbp), %eax andl $-65536, %eax ## imm = 0xFFFF0000 addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI6_0: .quad 0x403badcc63f14120 ## double 27.678899999999999 LCPI6_1: .quad 0x401f99999999999a ## double 7.9000000000000004 LCPI6_2: .quad 0x4016666666666666 ## double 5.5999999999999996 .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 movsd LCPI6_2(%rip), %xmm0 ## xmm0 = mem[0],zero callq _double_to_fixed movl %eax, -4(%rbp) movsd LCPI6_1(%rip), %xmm0 ## xmm0 = mem[0],zero callq _double_to_fixed movl %eax, -8(%rbp) movsd LCPI6_0(%rip), %xmm0 ## xmm0 = mem[0],zero callq _double_to_fixed movl %eax, -12(%rbp) movl -4(%rbp), %edi callq _fixed_to_double movsd %xmm0, -40(%rbp) ## 8-byte Spill movl -8(%rbp), %edi callq _fixed_to_double movsd %xmm0, -48(%rbp) ## 8-byte Spill movl -4(%rbp), %edi addl -8(%rbp), %edi callq _fixed_to_double movsd -48(%rbp), %xmm1 ## 8-byte Reload ## xmm1 = mem[0],zero movaps %xmm0, %xmm2 movsd -40(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero leaq L_.str.2(%rip), %rdi movb $3, %al callq _printf movl -4(%rbp), %edi callq _fixed_to_double movsd %xmm0, -24(%rbp) ## 8-byte Spill movl -8(%rbp), %edi callq _fixed_to_double movsd %xmm0, -32(%rbp) ## 8-byte Spill movl -4(%rbp), %edi subl -8(%rbp), %edi callq _fixed_to_double movsd -32(%rbp), %xmm1 ## 8-byte Reload ## xmm1 = mem[0],zero movaps %xmm0, %xmm2 movsd -24(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero leaq L_.str.3(%rip), %rdi movb $3, %al callq _printf movl -4(%rbp), %edi callq _fraction_part movl %eax, %edi callq _fixed_to_double leaq L_.str.4(%rip), %rdi movb $1, %al callq _printf movl -12(%rbp), %edi callq _fraction_part movl %eax, %edi callq _fixed_to_double leaq L_.str.4(%rip), %rdi movb $1, %al callq _printf movl -12(%rbp), %edi callq _whole_part movl %eax, %edi callq _fixed_to_double leaq L_.str.5(%rip), %rdi movb $1, %al callq _printf movl $1, %edi callq _fixed_to_double leaq L_.str.6(%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___func__.fraction_part: ## @__func__.fraction_part .asciz "fraction_part" L_.str: ## @.str .asciz "47860.c" L_.str.1: ## @.str.1 .asciz "x >= 0" L___func__.whole_part: ## @__func__.whole_part .asciz "whole_part" L_.str.2: ## @.str.2 .asciz "%lf + %lf = %lf\n" L_.str.3: ## @.str.3 .asciz "%lf - %lf = %lf\n" L_.str.4: ## @.str.4 .asciz "Fractional Part: %lf\n" L_.str.5: ## @.str.5 .asciz "Whole Part: %lf\n" L_.str.6: ## @.str.6 .asciz "Min Number: %lf\n" .subsections_via_symbols
the_stack_data/47860.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _puts adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov x9, sp add x8, sp, #8 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf ldr w8, [sp, #8] ands w8, w8, #0x1 cset w8, eq tbnz w8, #0, LBB0_2 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.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_3 LBB0_2: 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 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 "\346\225\264\346\225\260\343\202\222\345\205\245\345\212\233\343\201\227\343\201\246\343\201\217\343\201\240\343\201\225\343\201\204\343\200\202\n\345\201\266\346\225\260\343\203\273\345\245\207\346\225\260\343\202\222\345\210\244\345\210\245\343\201\227\343\201\276\343\201\231\343\200\202" l_.str.1: ; @.str.1 .asciz "\346\225\264\346\225\260 : " l_.str.2: ; @.str.2 .asciz "%d" l_.str.3: ; @.str.3 .asciz "%d\343\201\257\345\245\207\346\225\260\343\201\247\343\201\231\343\200\202\n" l_.str.4: ; @.str.4 .asciz "%d\343\201\257\345\201\266\346\225\260\343\201\247\343\201\231\343\200\202\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 callq _puts leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %eax andl $1, %eax cmpl $0, %eax je LBB0_2 ## %bb.1: movl -8(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB0_3 LBB0_2: movl -8(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf LBB0_3: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\346\225\264\346\225\260\343\202\222\345\205\245\345\212\233\343\201\227\343\201\246\343\201\217\343\201\240\343\201\225\343\201\204\343\200\202\n\345\201\266\346\225\260\343\203\273\345\245\207\346\225\260\343\202\222\345\210\244\345\210\245\343\201\227\343\201\276\343\201\231\343\200\202" L_.str.1: ## @.str.1 .asciz "\346\225\264\346\225\260 : " L_.str.2: ## @.str.2 .asciz "%d" L_.str.3: ## @.str.3 .asciz "%d\343\201\257\345\245\207\346\225\260\343\201\247\343\201\231\343\200\202\n" L_.str.4: ## @.str.4 .asciz "%d\343\201\257\345\201\266\346\225\260\343\201\247\343\201\231\343\200\202\n" .subsections_via_symbols
the_stack_data/712353.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 x8, x0 mov w0, #0 str wzr, [sp, #12] str w8, [sp, #8] str x1, [sp] add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/43888964.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\320\262\321\213\320\272\321\203\321\201\320\270 \320\263\320\260\320\264\320\265\320\275\321\213\321\210 \321\212\320\260\321\212\320\260\321\212" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\320\262\321\213\320\272\321\203\321\201\320\270 \320\263\320\260\320\264\320\265\320\275\321\213\321\210 \321\212\320\260\321\212\320\260\321\212" .subsections_via_symbols
the_stack_data/200142593.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] ; kill: def $x8 killed $xzr stur xzr, [x29, #-16] mov x9, sp sub x8, x29, #20 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] adds w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x0, [x29, #-16] sub x8, x29, #20 str x8, [sp, #16] ; 8-byte Folded Spill ldur w1, [x29, #-20] bl _insert ldr x8, [sp, #16] ; 8-byte Folded Reload stur x0, [x29, #-16] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf b LBB0_1 LBB0_3: ldur x0, [x29, #-16] mov w1, #2 bl _delete stur x0, [x29, #-16] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur x0, [x29, #-16] bl _preOrder adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur x0, [x29, #-16] bl _postOrder adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur x0, [x29, #-16] bl _inOrder adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldur x0, [x29, #-16] bl _destroyTree mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _insert ; -- Begin function insert .p2align 2 _insert: ; @insert .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str w1, [sp, #12] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr w0, [sp, #12] bl _createNode stur x0, [x29, #-8] b LBB1_27 LBB1_2: ldr x8, [sp, #16] ldr w8, [x8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ldr x8, [sp, #16] stur x8, [x29, #-8] b LBB1_27 LBB1_4: ldr x8, [sp, #16] ldr w8, [x8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ldr x8, [sp, #16] ldr x0, [x8, #8] ldr w1, [sp, #12] bl _insert ldr x8, [sp, #16] str x0, [x8, #8] ldr x8, [sp, #16] ldr x9, [sp, #16] ldr x9, [x9, #8] str x8, [x9, #24] b LBB1_9 LBB1_6: ldr x8, [sp, #16] ldr w8, [x8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: ldr x8, [sp, #16] ldr x0, [x8, #16] ldr w1, [sp, #12] bl _insert ldr x8, [sp, #16] str x0, [x8, #16] ldr x8, [sp, #16] ldr x9, [sp, #16] ldr x9, [x9, #16] str x8, [x9, #24] b LBB1_8 LBB1_8: b LBB1_9 LBB1_9: b LBB1_10 LBB1_10: b LBB1_11 LBB1_11: ldr x0, [sp, #16] bl _reheightify ldr x8, [sp, #16] str w0, [x8, #32] ldr x0, [sp, #16] bl _getBF str w0, [sp, #8] ldr w8, [sp, #8] adds w8, w8, #1 cset w8, ge tbnz w8, #0, LBB1_14 b LBB1_12 LBB1_12: ldr x8, [sp, #16] ldr x0, [x8, #16] bl _getBF subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB1_14 b LBB1_13 LBB1_13: ldr x0, [sp, #16] bl _rightRot str x0, [sp, #16] ldr x8, [sp, #16] ldr x0, [x8, #8] bl _reheightify ldr x8, [sp, #16] ldr x8, [x8, #8] str w0, [x8, #32] b LBB1_26 LBB1_14: ldr w8, [sp, #8] adds w8, w8, #1 cset w8, ge tbnz w8, #0, LBB1_17 b LBB1_15 LBB1_15: ldr x8, [sp, #16] ldr x0, [x8, #16] bl _getBF subs w8, w0, #0 cset w8, le tbnz w8, #0, LBB1_17 b LBB1_16 LBB1_16: ldr x8, [sp, #16] ldr x0, [x8, #16] bl _leftRot ldr x8, [sp, #16] str x0, [x8, #16] ldr x8, [sp, #16] ldr x8, [x8, #16] ldr x0, [x8, #16] bl _reheightify ldr x8, [sp, #16] ldr x8, [x8, #16] ldr x8, [x8, #16] str w0, [x8, #32] ldr x8, [sp, #16] ldr x0, [x8, #16] bl _reheightify ldr x8, [sp, #16] ldr x8, [x8, #16] str w0, [x8, #32] ldr x0, [sp, #16] bl _rightRot str x0, [sp, #16] ldr x8, [sp, #16] ldr x0, [x8, #8] bl _reheightify ldr x8, [sp, #16] ldr x8, [x8, #8] str w0, [x8, #32] b LBB1_25 LBB1_17: ldr w8, [sp, #8] subs w8, w8, #1 cset w8, le tbnz w8, #0, LBB1_20 b LBB1_18 LBB1_18: ldr x8, [sp, #16] ldr x0, [x8, #8] bl _getBF subs w8, w0, #0 cset w8, le tbnz w8, #0, LBB1_20 b LBB1_19 LBB1_19: ldr x0, [sp, #16] bl _leftRot str x0, [sp, #16] ldr x8, [sp, #16] ldr x0, [x8, #16] bl _reheightify ldr x8, [sp, #16] ldr x8, [x8, #8] str w0, [x8, #32] b LBB1_24 LBB1_20: ldr w8, [sp, #8] subs w8, w8, #1 cset w8, le tbnz w8, #0, LBB1_23 b LBB1_21 LBB1_21: ldr x8, [sp, #16] ldr x0, [x8, #8] bl _getBF subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB1_23 b LBB1_22 LBB1_22: ldr x8, [sp, #16] ldr x0, [x8, #8] bl _rightRot ldr x8, [sp, #16] str x0, [x8, #8] ldr x8, [sp, #16] ldr x8, [x8, #8] ldr x0, [x8, #8] bl _reheightify ldr x8, [sp, #16] ldr x8, [x8, #8] ldr x8, [x8, #8] str w0, [x8, #32] ldr x8, [sp, #16] ldr x0, [x8, #8] bl _reheightify ldr x8, [sp, #16] ldr x8, [x8, #8] str w0, [x8, #32] ldr x0, [sp, #16] bl _leftRot str x0, [sp, #16] ldr x8, [sp, #16] ldr x0, [x8, #16] bl _reheightify ldr x8, [sp, #16] ldr x8, [x8, #16] str w0, [x8, #32] b LBB1_23 LBB1_23: b LBB1_24 LBB1_24: b LBB1_25 LBB1_25: b LBB1_26 LBB1_26: ldr x8, [sp, #16] stur x8, [x29, #-8] b LBB1_27 LBB1_27: ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _delete ; -- Begin function delete .p2align 2 _delete: ; @delete .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur w1, [x29, #-20] ldur x8, [x29, #-16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB2_17 LBB2_2: ldur x8, [x29, #-16] ldr w8, [x8] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ldur x8, [x29, #-16] ldr x0, [x8, #8] ldur w1, [x29, #-20] bl _delete ldur x8, [x29, #-16] str x0, [x8, #8] b LBB2_4 LBB2_4: ldur x8, [x29, #-16] ldr w8, [x8] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: ldur x8, [x29, #-16] ldr x0, [x8, #16] ldur w1, [x29, #-20] bl _delete ldur x8, [x29, #-16] str x0, [x8, #16] b LBB2_6 LBB2_6: ldur x8, [x29, #-16] ldr w8, [x8] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB2_16 b LBB2_7 LBB2_7: ldur x8, [x29, #-16] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_10 b LBB2_8 LBB2_8: ldur x8, [x29, #-16] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_10 b LBB2_9 LBB2_9: ldur x0, [x29, #-16] bl _destroyNode ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB2_17 LBB2_10: ldur x8, [x29, #-16] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_12 b LBB2_11 LBB2_11: ldur x8, [x29, #-16] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_15 b LBB2_12 LBB2_12: ldur x8, [x29, #-16] ldr x8, [x8, #16] str x8, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_14 b LBB2_13 LBB2_13: ldur x8, [x29, #-16] ldr x8, [x8, #8] str x8, [sp, #16] b LBB2_14 LBB2_14: ldur x8, [x29, #-16] ldr x8, [x8, #24] ldr x9, [sp, #16] str x8, [x9, #24] ldur x0, [x29, #-16] bl _destroyNode ldr x8, [sp, #16] stur x8, [x29, #-8] b LBB2_17 LBB2_15: ldur x8, [x29, #-16] ldr x0, [x8, #8] bl _findSmallest str x0, [sp, #8] ldur x8, [x29, #-16] ldr w8, [x8] str w8, [sp, #4] ldr x8, [sp, #8] ldr w8, [x8] ldur x9, [x29, #-16] str w8, [x9] ldr w8, [sp, #4] ldr x9, [sp, #8] str w8, [x9] ldur x8, [x29, #-16] ldr x0, [x8, #8] ldr w1, [sp, #4] bl _delete ldur x8, [x29, #-16] str x0, [x8, #8] b LBB2_16 LBB2_16: ldur x0, [x29, #-16] bl _reheightify ldur x8, [x29, #-16] str w0, [x8, #32] ldur x8, [x29, #-16] stur x8, [x29, #-8] b LBB2_17 LBB2_17: ldur x0, [x29, #-8] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _preOrder ; -- Begin function preOrder .p2align 2 _preOrder: ; @preOrder .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] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: b LBB3_3 LBB3_2: ldur x8, [x29, #-8] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #24] ; 8-byte Folded Spill ldur x8, [x29, #-8] ldr w9, [x8, #32] ; implicit-def: $x8 mov x8, x9 stur x8, [x29, #-16] ; 8-byte Folded Spill ldur x0, [x29, #-8] bl _getBF ldr x10, [sp, #24] ; 8-byte Folded Reload ldur x8, [x29, #-16] ; 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.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldur x8, [x29, #-8] ldr x0, [x8, #16] bl _preOrder ldur x8, [x29, #-8] ldr x0, [x8, #8] bl _preOrder b LBB3_3 LBB3_3: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _postOrder ; -- Begin function postOrder .p2align 2 _postOrder: ; @postOrder .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] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: b LBB4_3 LBB4_2: ldur x8, [x29, #-8] ldr x0, [x8, #16] bl _postOrder ldur x8, [x29, #-8] ldr x0, [x8, #8] bl _postOrder ldur x8, [x29, #-8] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #24] ; 8-byte Folded Spill ldur x8, [x29, #-8] ldr w9, [x8, #32] ; implicit-def: $x8 mov x8, x9 stur x8, [x29, #-16] ; 8-byte Folded Spill ldur x0, [x29, #-8] bl _getBF ldr x10, [sp, #24] ; 8-byte Folded Reload ldur x8, [x29, #-16] ; 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.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB4_3 LBB4_3: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _inOrder ; -- Begin function inOrder .p2align 2 _inOrder: ; @inOrder .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] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: b LBB5_3 LBB5_2: ldur x8, [x29, #-8] ldr x0, [x8, #16] bl _inOrder ldur x8, [x29, #-8] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #24] ; 8-byte Folded Spill ldur x8, [x29, #-8] ldr w9, [x8, #32] ; implicit-def: $x8 mov x8, x9 stur x8, [x29, #-16] ; 8-byte Folded Spill ldur x0, [x29, #-8] bl _getBF ldr x10, [sp, #24] ; 8-byte Folded Reload ldur x8, [x29, #-16] ; 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.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldur x8, [x29, #-8] ldr x0, [x8, #8] bl _inOrder b LBB5_3 LBB5_3: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _destroyTree ; -- Begin function destroyTree .p2align 2 _destroyTree: ; @destroyTree .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, LBB6_2 b LBB6_1 LBB6_1: b LBB6_3 LBB6_2: ldr x8, [sp, #8] ldr x0, [x8, #16] bl _destroyTree ldr x8, [sp, #8] ldr x0, [x8, #8] bl _destroyTree ldr x0, [sp, #8] bl _destroyNode b LBB6_3 LBB6_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _createNode ; -- Begin function createNode .p2align 2 _createNode: ; @createNode .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] mov x0, #40 bl _malloc str x0, [sp] ldur w8, [x29, #-4] ldr x9, [sp] str w8, [x9] ldr x8, [sp] ; kill: def $x9 killed $xzr str xzr, [x8, #24] ldr x8, [sp] str xzr, [x8, #8] ldr x8, [sp] str xzr, [x8, #16] ldr x8, [sp] str wzr, [x8, #32] ldr x0, [sp] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _reheightify ; -- Begin function reheightify .p2align 2 _reheightify: ; @reheightify .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp] ldr x8, [sp] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB8_2 b LBB8_1 LBB8_1: mov w8, #-1 stur w8, [x29, #-4] b LBB8_18 LBB8_2: ldr x8, [sp] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB8_5 b LBB8_3 LBB8_3: ldr x8, [sp] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB8_5 b LBB8_4 LBB8_4: stur wzr, [x29, #-4] b LBB8_18 LBB8_5: ldr x8, [sp] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB8_7 b LBB8_6 LBB8_6: ldr x8, [sp] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB8_12 b LBB8_7 LBB8_7: ldr x8, [sp] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB8_9 b LBB8_8 LBB8_8: ldr x8, [sp] ldr x8, [x8, #8] ldr w8, [x8, #32] add w8, w8, #1 stur w8, [x29, #-4] b LBB8_18 LBB8_9: ldr x8, [sp] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB8_11 b LBB8_10 LBB8_10: ldr x8, [sp] ldr x8, [x8, #16] ldr w8, [x8, #32] add w8, w8, #1 stur w8, [x29, #-4] b LBB8_18 LBB8_11: b LBB8_16 LBB8_12: ldr x8, [sp] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB8_15 b LBB8_13 LBB8_13: ldr x8, [sp] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB8_15 b LBB8_14 LBB8_14: ldr x8, [sp] ldr x0, [x8, #16] ldr x8, [sp] ldr x1, [x8, #8] bl _getMax add w8, w0, #1 stur w8, [x29, #-4] b LBB8_18 LBB8_15: b LBB8_16 LBB8_16: b LBB8_17 LBB8_17: b LBB8_18 LBB8_18: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _getBF ; -- Begin function getBF .p2align 2 _getBF: ; @getBF .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB9_2 b LBB9_1 LBB9_1: stur wzr, [x29, #-4] b LBB9_3 LBB9_2: ldr x8, [sp, #16] ldr x0, [x8, #8] bl _getHeight str w0, [sp, #12] ldr x8, [sp, #16] ldr x0, [x8, #16] bl _getHeight str w0, [sp, #8] ldr w8, [sp, #12] ldr w9, [sp, #8] subs w8, w8, w9 stur w8, [x29, #-4] b LBB9_3 LBB9_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _rightRot ; -- Begin function rightRot .p2align 2 _rightRot: ; @rightRot .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #32] ldr x8, [sp, #32] ldr x8, [x8, #24] str x8, [sp, #24] ldr x8, [sp, #32] ldr x8, [x8, #16] str x8, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB10_2 b LBB10_1 LBB10_1: ldr x8, [sp, #32] str x8, [sp, #40] b LBB10_10 LBB10_2: ldr x8, [sp, #16] ldr x8, [x8, #8] str x8, [sp, #8] ldr x8, [sp, #24] ldr x9, [sp, #16] str x8, [x9, #24] ldr x8, [sp, #24] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB10_7 b LBB10_3 LBB10_3: ldr x8, [sp, #24] ldr x8, [x8, #16] ldr x9, [sp, #32] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB10_5 b LBB10_4 LBB10_4: ldr x8, [sp, #16] ldr x9, [sp, #24] str x8, [x9, #16] b LBB10_6 LBB10_5: ldr x8, [sp, #16] ldr x9, [sp, #24] str x8, [x9, #8] b LBB10_6 LBB10_6: b LBB10_7 LBB10_7: ldr x8, [sp, #32] ldr x9, [sp, #16] str x8, [x9, #8] ldr x8, [sp, #16] ldr x9, [sp, #32] str x8, [x9, #24] ldr x8, [sp, #8] ldr x9, [sp, #32] str x8, [x9, #16] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB10_9 b LBB10_8 LBB10_8: ldr x8, [sp, #32] ldr x9, [sp, #8] str x8, [x9, #24] b LBB10_9 LBB10_9: ldr x8, [sp, #16] str x8, [sp, #40] b LBB10_10 LBB10_10: ldr x0, [sp, #40] add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _leftRot ; -- Begin function leftRot .p2align 2 _leftRot: ; @leftRot .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, #32] ldr x8, [sp, #32] ldr x8, [x8, #24] str x8, [sp, #24] ldr x8, [sp, #32] ldr x8, [x8, #8] str x8, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB11_2 b LBB11_1 LBB11_1: ldr x8, [sp, #32] str x8, [sp, #40] b LBB11_10 LBB11_2: ldr x8, [sp, #16] ldr x8, [x8, #16] str x8, [sp, #8] ldr x8, [sp, #24] ldr x9, [sp, #16] str x8, [x9, #24] ldr x8, [sp, #24] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB11_7 b LBB11_3 LBB11_3: ldr x8, [sp, #24] ldr x8, [x8, #16] ldr x9, [sp, #32] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB11_5 b LBB11_4 LBB11_4: ldr x8, [sp, #16] ldr x9, [sp, #24] str x8, [x9, #16] b LBB11_6 LBB11_5: ldr x8, [sp, #16] ldr x9, [sp, #24] str x8, [x9, #8] b LBB11_6 LBB11_6: b LBB11_7 LBB11_7: ldr x8, [sp, #32] ldr x9, [sp, #16] str x8, [x9, #16] ldr x8, [sp, #16] ldr x9, [sp, #32] str x8, [x9, #24] ldr x8, [sp, #8] ldr x9, [sp, #32] str x8, [x9, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB11_9 b LBB11_8 LBB11_8: ldr x8, [sp, #32] ldr x9, [sp, #8] str x8, [x9, #24] b LBB11_9 LBB11_9: ldr x8, [sp, #16] str x8, [sp, #40] b LBB11_10 LBB11_10: ldr x0, [sp, #40] add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _destroyNode ; -- Begin function destroyNode .p2align 2 _destroyNode: ; @destroyNode .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 _free ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _findSmallest ; -- Begin function findSmallest .p2align 2 _findSmallest: ; @findSmallest .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp] ldr x8, [sp] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB13_2 b LBB13_1 LBB13_1: ldr x8, [sp] str x8, [sp, #8] b LBB13_3 LBB13_2: ldr x8, [sp] ldr x0, [x8, #16] bl _findSmallest str x0, [sp, #8] b LBB13_3 LBB13_3: ldr x0, [sp, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _getMax ; -- Begin function getMax .p2align 2 _getMax: ; @getMax .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] ldr w8, [x8, #32] ldr x9, [sp, #8] ldr w9, [x9, #32] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB14_2 b LBB14_1 LBB14_1: ldr x8, [sp, #16] ldr w8, [x8, #32] str w8, [sp, #28] b LBB14_3 LBB14_2: ldr x8, [sp, #8] ldr w8, [x8, #32] str w8, [sp, #28] b LBB14_3 LBB14_3: ldr w0, [sp, #28] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _getHeight ; -- Begin function getHeight .p2align 2 _getHeight: ; @getHeight .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp] ldr x8, [sp] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB15_2 b LBB15_1 LBB15_1: mov w8, #-1 str w8, [sp, #12] b LBB15_3 LBB15_2: ldr x8, [sp] ldr w8, [x8, #32] str w8, [sp, #12] b LBB15_3 LBB15_3: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "Pre-order:" l_.str.2: ; @.str.2 .asciz "\nPost-order:" l_.str.3: ; @.str.3 .asciz "\nIn-order:" l_.str.4: ; @.str.4 .asciz "\n" l_.str.5: ; @.str.5 .asciz " %d:%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 $32, %rsp movl $0, -4(%rbp) movq $0, -16(%rbp) leaq L_.str(%rip), %rdi leaq -20(%rbp), %rsi movb $0, %al callq _scanf LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $-1, -20(%rbp) je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rdi movl -20(%rbp), %esi callq _insert movq %rax, -16(%rbp) leaq L_.str(%rip), %rdi leaq -20(%rbp), %rsi movb $0, %al callq _scanf jmp LBB0_1 LBB0_3: movq -16(%rbp), %rdi movl $2, %esi callq _delete movq %rax, -16(%rbp) leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rdi callq _preOrder leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rdi callq _postOrder leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rdi callq _inOrder leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rdi callq _destroyTree xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _insert ## -- Begin function insert .p2align 4, 0x90 _insert: ## @insert .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) cmpq $0, -16(%rbp) jne LBB1_2 ## %bb.1: movl -20(%rbp), %edi callq _createNode movq %rax, -8(%rbp) jmp LBB1_27 LBB1_2: movq -16(%rbp), %rax movl (%rax), %eax cmpl -20(%rbp), %eax jne LBB1_4 ## %bb.3: movq -16(%rbp), %rax movq %rax, -8(%rbp) jmp LBB1_27 LBB1_4: movq -16(%rbp), %rax movl (%rax), %eax cmpl -20(%rbp), %eax jge LBB1_6 ## %bb.5: movq -16(%rbp), %rax movq 8(%rax), %rdi movl -20(%rbp), %esi callq _insert movq %rax, %rcx movq -16(%rbp), %rax movq %rcx, 8(%rax) movq -16(%rbp), %rcx movq -16(%rbp), %rax movq 8(%rax), %rax movq %rcx, 24(%rax) jmp LBB1_9 LBB1_6: movq -16(%rbp), %rax movl (%rax), %eax cmpl -20(%rbp), %eax jle LBB1_8 ## %bb.7: movq -16(%rbp), %rax movq 16(%rax), %rdi movl -20(%rbp), %esi callq _insert movq %rax, %rcx movq -16(%rbp), %rax movq %rcx, 16(%rax) movq -16(%rbp), %rcx movq -16(%rbp), %rax movq 16(%rax), %rax movq %rcx, 24(%rax) LBB1_8: jmp LBB1_9 LBB1_9: jmp LBB1_10 LBB1_10: jmp LBB1_11 LBB1_11: movq -16(%rbp), %rdi callq _reheightify movl %eax, %ecx movq -16(%rbp), %rax movl %ecx, 32(%rax) movq -16(%rbp), %rdi callq _getBF movl %eax, -24(%rbp) cmpl $-1, -24(%rbp) jge LBB1_14 ## %bb.12: movq -16(%rbp), %rax movq 16(%rax), %rdi callq _getBF cmpl $0, %eax jge LBB1_14 ## %bb.13: movq -16(%rbp), %rdi callq _rightRot movq %rax, -16(%rbp) movq -16(%rbp), %rax movq 8(%rax), %rdi callq _reheightify movl %eax, %ecx movq -16(%rbp), %rax movq 8(%rax), %rax movl %ecx, 32(%rax) jmp LBB1_26 LBB1_14: cmpl $-1, -24(%rbp) jge LBB1_17 ## %bb.15: movq -16(%rbp), %rax movq 16(%rax), %rdi callq _getBF cmpl $0, %eax jle LBB1_17 ## %bb.16: movq -16(%rbp), %rax movq 16(%rax), %rdi callq _leftRot movq %rax, %rcx movq -16(%rbp), %rax movq %rcx, 16(%rax) movq -16(%rbp), %rax movq 16(%rax), %rax movq 16(%rax), %rdi callq _reheightify movl %eax, %ecx movq -16(%rbp), %rax movq 16(%rax), %rax movq 16(%rax), %rax movl %ecx, 32(%rax) movq -16(%rbp), %rax movq 16(%rax), %rdi callq _reheightify movl %eax, %ecx movq -16(%rbp), %rax movq 16(%rax), %rax movl %ecx, 32(%rax) movq -16(%rbp), %rdi callq _rightRot movq %rax, -16(%rbp) movq -16(%rbp), %rax movq 8(%rax), %rdi callq _reheightify movl %eax, %ecx movq -16(%rbp), %rax movq 8(%rax), %rax movl %ecx, 32(%rax) jmp LBB1_25 LBB1_17: cmpl $1, -24(%rbp) jle LBB1_20 ## %bb.18: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _getBF cmpl $0, %eax jle LBB1_20 ## %bb.19: movq -16(%rbp), %rdi callq _leftRot movq %rax, -16(%rbp) movq -16(%rbp), %rax movq 16(%rax), %rdi callq _reheightify movl %eax, %ecx movq -16(%rbp), %rax movq 8(%rax), %rax movl %ecx, 32(%rax) jmp LBB1_24 LBB1_20: cmpl $1, -24(%rbp) jle LBB1_23 ## %bb.21: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _getBF cmpl $0, %eax jge LBB1_23 ## %bb.22: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _rightRot movq %rax, %rcx movq -16(%rbp), %rax movq %rcx, 8(%rax) movq -16(%rbp), %rax movq 8(%rax), %rax movq 8(%rax), %rdi callq _reheightify movl %eax, %ecx movq -16(%rbp), %rax movq 8(%rax), %rax movq 8(%rax), %rax movl %ecx, 32(%rax) movq -16(%rbp), %rax movq 8(%rax), %rdi callq _reheightify movl %eax, %ecx movq -16(%rbp), %rax movq 8(%rax), %rax movl %ecx, 32(%rax) movq -16(%rbp), %rdi callq _leftRot movq %rax, -16(%rbp) movq -16(%rbp), %rax movq 16(%rax), %rdi callq _reheightify movl %eax, %ecx movq -16(%rbp), %rax movq 16(%rax), %rax movl %ecx, 32(%rax) LBB1_23: jmp LBB1_24 LBB1_24: jmp LBB1_25 LBB1_25: jmp LBB1_26 LBB1_26: movq -16(%rbp), %rax movq %rax, -8(%rbp) LBB1_27: movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _delete ## -- Begin function delete .p2align 4, 0x90 _delete: ## @delete .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) cmpq $0, -16(%rbp) jne LBB2_2 ## %bb.1: movq $0, -8(%rbp) jmp LBB2_17 LBB2_2: movq -16(%rbp), %rax movl (%rax), %eax cmpl -20(%rbp), %eax jge LBB2_4 ## %bb.3: movq -16(%rbp), %rax movq 8(%rax), %rdi movl -20(%rbp), %esi callq _delete movq %rax, %rcx movq -16(%rbp), %rax movq %rcx, 8(%rax) LBB2_4: movq -16(%rbp), %rax movl (%rax), %eax cmpl -20(%rbp), %eax jle LBB2_6 ## %bb.5: movq -16(%rbp), %rax movq 16(%rax), %rdi movl -20(%rbp), %esi callq _delete movq %rax, %rcx movq -16(%rbp), %rax movq %rcx, 16(%rax) LBB2_6: movq -16(%rbp), %rax movl (%rax), %eax cmpl -20(%rbp), %eax jne LBB2_16 ## %bb.7: movq -16(%rbp), %rax cmpq $0, 16(%rax) jne LBB2_10 ## %bb.8: movq -16(%rbp), %rax cmpq $0, 8(%rax) jne LBB2_10 ## %bb.9: movq -16(%rbp), %rdi callq _destroyNode movq $0, -8(%rbp) jmp LBB2_17 LBB2_10: movq -16(%rbp), %rax cmpq $0, 16(%rax) je LBB2_12 ## %bb.11: movq -16(%rbp), %rax cmpq $0, 8(%rax) jne LBB2_15 LBB2_12: movq -16(%rbp), %rax movq 16(%rax), %rax movq %rax, -32(%rbp) cmpq $0, -32(%rbp) jne LBB2_14 ## %bb.13: movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -32(%rbp) LBB2_14: movq -16(%rbp), %rax movq 24(%rax), %rcx movq -32(%rbp), %rax movq %rcx, 24(%rax) movq -16(%rbp), %rdi callq _destroyNode movq -32(%rbp), %rax movq %rax, -8(%rbp) jmp LBB2_17 LBB2_15: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _findSmallest movq %rax, -40(%rbp) movq -16(%rbp), %rax movl (%rax), %eax movl %eax, -44(%rbp) movq -40(%rbp), %rax movl (%rax), %ecx movq -16(%rbp), %rax movl %ecx, (%rax) movl -44(%rbp), %ecx movq -40(%rbp), %rax movl %ecx, (%rax) movq -16(%rbp), %rax movq 8(%rax), %rdi movl -44(%rbp), %esi callq _delete movq %rax, %rcx movq -16(%rbp), %rax movq %rcx, 8(%rax) LBB2_16: movq -16(%rbp), %rdi callq _reheightify movl %eax, %ecx movq -16(%rbp), %rax movl %ecx, 32(%rax) movq -16(%rbp), %rax movq %rax, -8(%rbp) LBB2_17: movq -8(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _preOrder ## -- Begin function preOrder .p2align 4, 0x90 _preOrder: ## @preOrder .cfi_startproc ## %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 LBB3_2 ## %bb.1: jmp LBB3_3 LBB3_2: movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -16(%rbp) ## 4-byte Spill movq -8(%rbp), %rax movl 32(%rax), %eax movl %eax, -12(%rbp) ## 4-byte Spill movq -8(%rbp), %rdi callq _getBF movl -16(%rbp), %esi ## 4-byte Reload movl -12(%rbp), %edx ## 4-byte Reload movl %eax, %ecx leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rax movq 16(%rax), %rdi callq _preOrder movq -8(%rbp), %rax movq 8(%rax), %rdi callq _preOrder LBB3_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _postOrder ## -- Begin function postOrder .p2align 4, 0x90 _postOrder: ## @postOrder .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) jne LBB4_2 ## %bb.1: jmp LBB4_3 LBB4_2: movq -8(%rbp), %rax movq 16(%rax), %rdi callq _postOrder movq -8(%rbp), %rax movq 8(%rax), %rdi callq _postOrder movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -16(%rbp) ## 4-byte Spill movq -8(%rbp), %rax movl 32(%rax), %eax movl %eax, -12(%rbp) ## 4-byte Spill movq -8(%rbp), %rdi callq _getBF movl -16(%rbp), %esi ## 4-byte Reload movl -12(%rbp), %edx ## 4-byte Reload movl %eax, %ecx leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf LBB4_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _inOrder ## -- Begin function inOrder .p2align 4, 0x90 _inOrder: ## @inOrder .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) jne LBB5_2 ## %bb.1: jmp LBB5_3 LBB5_2: movq -8(%rbp), %rax movq 16(%rax), %rdi callq _inOrder movq -8(%rbp), %rax movl (%rax), %eax movl %eax, -16(%rbp) ## 4-byte Spill movq -8(%rbp), %rax movl 32(%rax), %eax movl %eax, -12(%rbp) ## 4-byte Spill movq -8(%rbp), %rdi callq _getBF movl -16(%rbp), %esi ## 4-byte Reload movl -12(%rbp), %edx ## 4-byte Reload movl %eax, %ecx leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rax movq 8(%rax), %rdi callq _inOrder LBB5_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _destroyTree ## -- Begin function destroyTree .p2align 4, 0x90 _destroyTree: ## @destroyTree .cfi_startproc ## %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 LBB6_2 ## %bb.1: jmp LBB6_3 LBB6_2: movq -8(%rbp), %rax movq 16(%rax), %rdi callq _destroyTree movq -8(%rbp), %rax movq 8(%rax), %rdi callq _destroyTree movq -8(%rbp), %rdi callq _destroyNode LBB6_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _createNode ## -- Begin function createNode .p2align 4, 0x90 _createNode: ## @createNode .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl $40, %edi callq _malloc movq %rax, -16(%rbp) movl -4(%rbp), %ecx movq -16(%rbp), %rax movl %ecx, (%rax) movq -16(%rbp), %rax movq $0, 24(%rax) movq -16(%rbp), %rax movq $0, 8(%rax) movq -16(%rbp), %rax movq $0, 16(%rax) movq -16(%rbp), %rax movl $0, 32(%rax) movq -16(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _reheightify ## -- Begin function reheightify .p2align 4, 0x90 _reheightify: ## @reheightify .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -16(%rbp) cmpq $0, -16(%rbp) jne LBB8_2 ## %bb.1: movl $-1, -4(%rbp) jmp LBB8_18 LBB8_2: movq -16(%rbp), %rax cmpq $0, 16(%rax) jne LBB8_5 ## %bb.3: movq -16(%rbp), %rax cmpq $0, 8(%rax) jne LBB8_5 ## %bb.4: movl $0, -4(%rbp) jmp LBB8_18 LBB8_5: movq -16(%rbp), %rax cmpq $0, 16(%rax) je LBB8_7 ## %bb.6: movq -16(%rbp), %rax cmpq $0, 8(%rax) jne LBB8_12 LBB8_7: movq -16(%rbp), %rax cmpq $0, 16(%rax) jne LBB8_9 ## %bb.8: movq -16(%rbp), %rax movq 8(%rax), %rax movl 32(%rax), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB8_18 LBB8_9: movq -16(%rbp), %rax cmpq $0, 8(%rax) jne LBB8_11 ## %bb.10: movq -16(%rbp), %rax movq 16(%rax), %rax movl 32(%rax), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB8_18 LBB8_11: jmp LBB8_16 LBB8_12: movq -16(%rbp), %rax cmpq $0, 16(%rax) je LBB8_15 ## %bb.13: movq -16(%rbp), %rax cmpq $0, 8(%rax) je LBB8_15 ## %bb.14: movq -16(%rbp), %rax movq 16(%rax), %rdi movq -16(%rbp), %rax movq 8(%rax), %rsi callq _getMax addl $1, %eax movl %eax, -4(%rbp) jmp LBB8_18 LBB8_15: jmp LBB8_16 LBB8_16: jmp LBB8_17 LBB8_17: jmp LBB8_18 LBB8_18: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _getBF ## -- Begin function getBF .p2align 4, 0x90 _getBF: ## @getBF .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) cmpq $0, -16(%rbp) jne LBB9_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB9_3 LBB9_2: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _getHeight movl %eax, -20(%rbp) movq -16(%rbp), %rax movq 16(%rax), %rdi callq _getHeight movl %eax, -24(%rbp) movl -20(%rbp), %eax subl -24(%rbp), %eax movl %eax, -4(%rbp) LBB9_3: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _rightRot ## -- Begin function rightRot .p2align 4, 0x90 _rightRot: ## @rightRot .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 movq 24(%rax), %rax movq %rax, -24(%rbp) movq -16(%rbp), %rax movq 16(%rax), %rax movq %rax, -32(%rbp) cmpq $0, -32(%rbp) jne LBB10_2 ## %bb.1: movq -16(%rbp), %rax movq %rax, -8(%rbp) jmp LBB10_10 LBB10_2: movq -32(%rbp), %rax movq 8(%rax), %rax movq %rax, -40(%rbp) movq -24(%rbp), %rcx movq -32(%rbp), %rax movq %rcx, 24(%rax) cmpq $0, -24(%rbp) je LBB10_7 ## %bb.3: movq -24(%rbp), %rax movq 16(%rax), %rax cmpq -16(%rbp), %rax jne LBB10_5 ## %bb.4: movq -32(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, 16(%rax) jmp LBB10_6 LBB10_5: movq -32(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, 8(%rax) LBB10_6: jmp LBB10_7 LBB10_7: movq -16(%rbp), %rcx movq -32(%rbp), %rax movq %rcx, 8(%rax) movq -32(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 24(%rax) movq -40(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 16(%rax) cmpq $0, -40(%rbp) je LBB10_9 ## %bb.8: movq -16(%rbp), %rcx movq -40(%rbp), %rax movq %rcx, 24(%rax) LBB10_9: movq -32(%rbp), %rax movq %rax, -8(%rbp) LBB10_10: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _leftRot ## -- Begin function leftRot .p2align 4, 0x90 _leftRot: ## @leftRot .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 movq 24(%rax), %rax movq %rax, -24(%rbp) movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -32(%rbp) cmpq $0, -32(%rbp) jne LBB11_2 ## %bb.1: movq -16(%rbp), %rax movq %rax, -8(%rbp) jmp LBB11_10 LBB11_2: movq -32(%rbp), %rax movq 16(%rax), %rax movq %rax, -40(%rbp) movq -24(%rbp), %rcx movq -32(%rbp), %rax movq %rcx, 24(%rax) cmpq $0, -24(%rbp) je LBB11_7 ## %bb.3: movq -24(%rbp), %rax movq 16(%rax), %rax cmpq -16(%rbp), %rax jne LBB11_5 ## %bb.4: movq -32(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, 16(%rax) jmp LBB11_6 LBB11_5: movq -32(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, 8(%rax) LBB11_6: jmp LBB11_7 LBB11_7: movq -16(%rbp), %rcx movq -32(%rbp), %rax movq %rcx, 16(%rax) movq -32(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 24(%rax) movq -40(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 8(%rax) cmpq $0, -40(%rbp) je LBB11_9 ## %bb.8: movq -16(%rbp), %rcx movq -40(%rbp), %rax movq %rcx, 24(%rax) LBB11_9: movq -32(%rbp), %rax movq %rax, -8(%rbp) LBB11_10: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _destroyNode ## -- Begin function destroyNode .p2align 4, 0x90 _destroyNode: ## @destroyNode .cfi_startproc ## %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 _free addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _findSmallest ## -- Begin function findSmallest .p2align 4, 0x90 _findSmallest: ## @findSmallest .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -16(%rbp) movq -16(%rbp), %rax cmpq $0, 16(%rax) jne LBB13_2 ## %bb.1: movq -16(%rbp), %rax movq %rax, -8(%rbp) jmp LBB13_3 LBB13_2: movq -16(%rbp), %rax movq 16(%rax), %rdi callq _findSmallest movq %rax, -8(%rbp) LBB13_3: movq -8(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _getMax ## -- Begin function getMax .p2align 4, 0x90 _getMax: ## @getMax .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq -16(%rbp), %rax movl 32(%rax), %eax movq -24(%rbp), %rcx cmpl 32(%rcx), %eax jle LBB14_2 ## %bb.1: movq -16(%rbp), %rax movl 32(%rax), %eax movl %eax, -4(%rbp) jmp LBB14_3 LBB14_2: movq -24(%rbp), %rax movl 32(%rax), %eax movl %eax, -4(%rbp) LBB14_3: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _getHeight ## -- Begin function getHeight .p2align 4, 0x90 _getHeight: ## @getHeight .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) cmpq $0, -16(%rbp) jne LBB15_2 ## %bb.1: movl $-1, -4(%rbp) jmp LBB15_3 LBB15_2: movq -16(%rbp), %rax movl 32(%rax), %eax movl %eax, -4(%rbp) LBB15_3: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "Pre-order:" L_.str.2: ## @.str.2 .asciz "\nPost-order:" L_.str.3: ## @.str.3 .asciz "\nIn-order:" L_.str.4: ## @.str.4 .asciz "\n" L_.str.5: ## @.str.5 .asciz " %d:%d:%d " .subsections_via_symbols
the_stack_data/12202.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _convert10to2_1 ; -- Begin function convert10to2_1 .p2align 2 _convert10to2_1: ; @convert10to2_1 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] mov w8, #31 str w8, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_7 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #8] mov w8, #1 lsl w8, w8, w9 str w8, [sp, #4] ldur w8, [x29, #-4] ldr w9, [sp, #4] ands w8, w8, w9 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_5 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] subs w8, w8, #1 str w8, [sp, #8] b LBB0_1 LBB0_7: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _convert10to2_2 ; -- Begin function convert10to2_2 .p2align 2 _convert10to2_2: ; @convert10to2_2 .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] mov w8, #31 str w8, [sp, #8] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur w9, [x29, #-4] ldr w10, [sp, #8] mov w8, #1 lsl w10, w8, w10 mov w8, #0 ands w9, w9, w10 cset w9, ne and w9, w9, #0x1 ands w9, w9, #0x1 csinc w10, w8, wzr, eq mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #8] subs w8, w8, #1 str w8, [sp, #8] b LBB1_1 LBB1_4: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _convert10to2_3 ; -- Begin function convert10to2_3 .p2align 2 _convert10to2_3: ; @convert10to2_3 .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str w0, [sp, #20] str wzr, [sp, #16] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #20] and w8, w8, #0x1 ldrsw x10, [sp, #16] add x9, sp, #24 strb w8, [x9, x10] ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] ldr w8, [sp, #20] asr w8, w8, #1 str w8, [sp, #20] b LBB2_1 LBB2_3: ldr w8, [sp, #16] subs w8, w8, #1 str w8, [sp, #12] b LBB2_4 LBB2_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB2_7 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_4 Depth=1 ldrsw x9, [sp, #12] add x8, sp, #24 ldrsb w10, [x8, x9] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB2_6 LBB2_6: ; in Loop: Header=BB2_4 Depth=1 ldr w8, [sp, #12] subs w8, w8, #1 str w8, [sp, #12] b LBB2_4 LBB2_7: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_9 b LBB2_8 LBB2_8: bl ___stack_chk_fail LBB2_9: 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 mov w8, #0 str w8, [sp, #4] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov w8, #10 str w8, [sp, #8] ldr w0, [sp, #8] bl _convert10to2_1 ldr w0, [sp, #8] bl _convert10to2_2 ldr w0, [sp, #8] bl _convert10to2_3 adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr w0, [sp, #4] ; 4-byte Folded Reload ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "1" l_.str.1: ; @.str.1 .asciz "0" l_.str.2: ; @.str.2 .asciz "\n" l_.str.3: ; @.str.3 .asciz "%d" l_.str.4: ; @.str.4 .asciz "Ne-a iesit exercitiul\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _convert10to2_1 ## -- Begin function convert10to2_1 .p2align 4, 0x90 _convert10to2_1: ## @convert10to2_1 .cfi_startproc ## %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 $31, -8(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -8(%rbp) jl LBB0_7 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %ecx movl $1, %eax ## kill: def $cl killed $ecx shll %cl, %eax movl %eax, -12(%rbp) movl -4(%rbp), %eax andl -12(%rbp), %eax cmpl $0, %eax je LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str(%rip), %rdi movb $0, %al callq _printf jmp LBB0_5 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB0_5: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_6 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $-1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_7: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _convert10to2_2 ## -- Begin function convert10to2_2 .p2align 4, 0x90 _convert10to2_2: ## @convert10to2_2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl $31, -8(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -8(%rbp) jl LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl -4(%rbp), %eax movl %eax, -12(%rbp) ## 4-byte Spill movl -8(%rbp), %ecx movl $1, %eax ## kill: def $cl killed $ecx shll %cl, %eax movl -12(%rbp), %ecx ## 4-byte Reload andl %eax, %ecx xorl %esi, %esi movl $1, %eax cmpl $0, %ecx cmovnel %eax, %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -8(%rbp), %eax addl $-1, %eax movl %eax, -8(%rbp) jmp LBB1_1 LBB1_4: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _convert10to2_3 ## -- Begin function convert10to2_3 .p2align 4, 0x90 _convert10to2_3: ## @convert10to2_3 .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) movl $0, -56(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -52(%rbp) je LBB2_3 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl -52(%rbp), %eax andl $1, %eax movb %al, %cl movslq -56(%rbp), %rax movb %cl, -48(%rbp,%rax) movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) movl -52(%rbp), %eax sarl $1, %eax movl %eax, -52(%rbp) jmp LBB2_1 LBB2_3: movl -56(%rbp), %eax subl $1, %eax movl %eax, -60(%rbp) LBB2_4: ## =>This Inner Loop Header: Depth=1 cmpl $0, -60(%rbp) jl LBB2_7 ## %bb.5: ## in Loop: Header=BB2_4 Depth=1 movslq -60(%rbp), %rax movsbl -48(%rbp,%rax), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf ## %bb.6: ## in Loop: Header=BB2_4 Depth=1 movl -60(%rbp), %eax addl $-1, %eax movl %eax, -60(%rbp) jmp LBB2_4 LBB2_7: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_9 ## %bb.8: addq $64, %rsp popq %rbp retq LBB2_9: 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 $10, -8(%rbp) movl -8(%rbp), %edi callq _convert10to2_1 movl -8(%rbp), %edi callq _convert10to2_2 movl -8(%rbp), %edi callq _convert10to2_3 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 "1" L_.str.1: ## @.str.1 .asciz "0" L_.str.2: ## @.str.2 .asciz "\n" L_.str.3: ## @.str.3 .asciz "%d" L_.str.4: ## @.str.4 .asciz "Ne-a iesit exercitiul\n" .subsections_via_symbols
the_stack_data/68887802.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, #30992 movk w9, #4, lsl #16 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #71, lsl #12 ; =290816 sub sp, sp, #2320 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #164] str w0, [sp, #160] str x1, [sp, #152] ldr w8, [sp, #160] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf str wzr, [sp, #164] b LBB0_128 LBB0_2: ldr x8, [sp, #152] ldr x1, [x8, #8] add x0, sp, #51, lsl #12 ; =208896 add x0, x0, #232 str x0, [sp, #48] ; 8-byte Folded Spill mov x2, #2000 bl ___strcpy_chk ldr x0, [sp, #48] ; 8-byte Folded Reload adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen str x0, [sp, #144] ldr x8, [sp, #144] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w8, #-1 str w8, [sp, #164] b LBB0_128 LBB0_4: ldr x0, [sp, #144] mov x9, sp add x8, sp, #128 str x8, [x9] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF str x1, [sp, #40] ; 8-byte Folded Spill bl _fscanf ldr x1, [sp, #40] ; 8-byte Folded Reload ldr x0, [sp, #144] mov x9, sp add x8, sp, #120 str x8, [x9] bl _fscanf ldr x8, [sp, #128] mov x9, #50 mul x8, x8, x9 lsr x0, x8, #0 bl _malloc str x0, [sp, #56] ldr x8, [sp, #128] ldr x9, [sp, #120] mul x8, x8, x9 lsl x0, x8, #2 bl _malloc str x0, [sp, #64] ldr x8, [sp, #64] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ldr x8, [sp, #128] ldr x9, [sp, #120] mul x8, x8, x9 lsl x8, x8, #2 mov x9, #1048576 udiv x11, x8, x9 ldr x10, [sp, #128] ldr x8, [sp, #120] mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf mov w8, #-1 str w8, [sp, #164] b LBB0_128 LBB0_6: str xzr, [sp, #104] b LBB0_7 LBB0_7: ; =>This Loop Header: Depth=1 ; Child Loop BB0_9 Depth 2 ; Child Loop BB0_17 Depth 2 ; Child Loop BB0_21 Depth 2 ; Child Loop BB0_25 Depth 2 ldr x8, [sp, #104] ldr x9, [sp, #128] subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB0_30 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=1 str xzr, [sp, #112] b LBB0_9 LBB0_9: ; Parent Loop BB0_7 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x0, [sp, #144] bl _fgetc ldr x8, [sp, #56] ldr x9, [sp, #104] mov x10, #50 mul x9, x9, x10 ldr x10, [sp, #112] add x9, x9, x10 strb w0, [x8, x9] ldr x0, [sp, #144] bl _feof subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=2 ldr x8, [sp, #56] ldr x9, [sp, #104] mov x10, #50 mul x9, x9, x10 ldr x10, [sp, #112] add x9, x9, x10 ldrsb w8, [x8, x9] subs w8, w8, #32 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_7 Depth=1 b LBB0_16 LBB0_12: ; in Loop: Header=BB0_9 Depth=2 ldr x8, [sp, #112] subs x8, x8, #50 cset w8, ge tbnz w8, #0, LBB0_15 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_9 Depth=2 ldr x8, [sp, #56] ldr x9, [sp, #104] mov x10, #50 mul x9, x9, x10 ldr x10, [sp, #112] add x9, x9, x10 ldrsb w8, [x8, x9] subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_9 Depth=2 ldr x8, [sp, #112] add x8, x8, #1 str x8, [sp, #112] b LBB0_15 LBB0_15: ; in Loop: Header=BB0_9 Depth=2 b LBB0_9 LBB0_16: ; in Loop: Header=BB0_7 Depth=1 ldr x8, [sp, #56] ldr x9, [sp, #104] mov x10, #50 mul x9, x9, x10 ldr x10, [sp, #112] add x9, x9, x10 add x8, x8, x9 strb wzr, [x8] str xzr, [sp, #112] b LBB0_17 LBB0_17: ; Parent Loop BB0_7 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #112] ldr x9, [sp, #120] subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB0_20 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_17 Depth=2 ldr x8, [sp, #64] ldr x9, [sp, #112] ldr x10, [sp, #104] ldr x11, [sp, #120] mul x10, x10, x11 add x9, x9, x10 add x0, x8, x9, lsl #2 ldr x3, [sp, #144] mov x1, #4 mov x2, #1 bl _fread b LBB0_19 LBB0_19: ; in Loop: Header=BB0_17 Depth=2 ldr x8, [sp, #112] add x8, x8, #1 str x8, [sp, #112] b LBB0_17 LBB0_20: ; in Loop: Header=BB0_7 Depth=1 movi d0, #0000000000000000 str s0, [sp, #136] str xzr, [sp, #112] b LBB0_21 LBB0_21: ; Parent Loop BB0_7 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #112] ldr x9, [sp, #120] subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB0_24 b LBB0_22 LBB0_22: ; in Loop: Header=BB0_21 Depth=2 ldr x8, [sp, #64] ldr x9, [sp, #112] ldr x10, [sp, #104] ldr x11, [sp, #120] mul x10, x10, x11 add x9, x9, x10 ldr s0, [x8, x9, lsl #2] ldr x8, [sp, #64] ldr x9, [sp, #112] ldr x10, [sp, #104] ldr x11, [sp, #120] mul x10, x10, x11 add x9, x9, x10 ldr s1, [x8, x9, lsl #2] ldr s2, [sp, #136] fmadd s0, s0, s1, s2 str s0, [sp, #136] b LBB0_23 LBB0_23: ; in Loop: Header=BB0_21 Depth=2 ldr x8, [sp, #112] add x8, x8, #1 str x8, [sp, #112] b LBB0_21 LBB0_24: ; in Loop: Header=BB0_7 Depth=1 ldr s0, [sp, #136] fcvt d0, s0 fsqrt d0, d0 fcvt s0, d0 str s0, [sp, #136] str xzr, [sp, #112] b LBB0_25 LBB0_25: ; Parent Loop BB0_7 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #112] ldr x9, [sp, #120] subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB0_28 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_25 Depth=2 ldr s1, [sp, #136] ldr x8, [sp, #64] ldr x9, [sp, #112] ldr x10, [sp, #104] ldr x11, [sp, #120] mul x10, x10, x11 add x9, x9, x10 add x8, x8, x9, lsl #2 ldr s0, [x8] fdiv s0, s0, s1 str s0, [x8] b LBB0_27 LBB0_27: ; in Loop: Header=BB0_25 Depth=2 ldr x8, [sp, #112] add x8, x8, #1 str x8, [sp, #112] b LBB0_25 LBB0_28: ; in Loop: Header=BB0_7 Depth=1 b LBB0_29 LBB0_29: ; in Loop: Header=BB0_7 Depth=1 ldr x8, [sp, #104] add x8, x8, #1 str x8, [sp, #104] b LBB0_7 LBB0_30: ldr x0, [sp, #144] bl _fclose b LBB0_31 LBB0_31: ; =>This Loop Header: Depth=1 ; Child Loop BB0_32 Depth 2 ; Child Loop BB0_36 Depth 2 ; Child Loop BB0_40 Depth 2 ; Child Loop BB0_47 Depth 2 ; Child Loop BB0_55 Depth 2 ; Child Loop BB0_57 Depth 3 ; Child Loop BB0_71 Depth 2 ; Child Loop BB0_75 Depth 2 ; Child Loop BB0_79 Depth 2 ; Child Loop BB0_83 Depth 2 ; Child Loop BB0_87 Depth 2 ; Child Loop BB0_91 Depth 2 ; Child Loop BB0_99 Depth 3 ; Child Loop BB0_107 Depth 3 ; Child Loop BB0_111 Depth 3 ; Child Loop BB0_114 Depth 3 ; Child Loop BB0_123 Depth 2 str xzr, [sp, #112] b LBB0_32 LBB0_32: ; Parent Loop BB0_31 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #112] subs x8, x8, #40 cset w8, ge tbnz w8, #0, LBB0_35 b LBB0_33 LBB0_33: ; in Loop: Header=BB0_32 Depth=2 ldr x9, [sp, #112] add x8, sp, #2, lsl #12 ; =8192 add x8, x8, #776 movi d0, #0000000000000000 str s0, [x8, x9, lsl #2] b LBB0_34 LBB0_34: ; in Loop: Header=BB0_32 Depth=2 ldr x8, [sp, #112] add x8, x8, #1 str x8, [sp, #112] b LBB0_32 LBB0_35: ; in Loop: Header=BB0_31 Depth=1 str xzr, [sp, #112] b LBB0_36 LBB0_36: ; Parent Loop BB0_31 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #112] subs x8, x8, #40 cset w8, ge tbnz w8, #0, LBB0_39 b LBB0_37 LBB0_37: ; in Loop: Header=BB0_36 Depth=2 ldr x8, [sp, #112] mov x9, #2000 mul x9, x8, x9 add x8, sp, #51, lsl #12 ; =208896 add x8, x8, #2232 add x8, x8, x9 strb wzr, [x8] b LBB0_38 LBB0_38: ; in Loop: Header=BB0_36 Depth=2 ldr x8, [sp, #112] add x8, x8, #1 str x8, [sp, #112] b LBB0_36 LBB0_39: ; in Loop: Header=BB0_31 Depth=1 adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf str xzr, [sp, #112] b LBB0_40 LBB0_40: ; Parent Loop BB0_31 Depth=1 ; => This Inner Loop Header: Depth=2 adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x0, [x8] bl _fgetc ldr x9, [sp, #112] add x8, sp, #71, lsl #12 ; =290816 add x8, x8, #312 strb w0, [x8, x9] ldr x9, [sp, #112] ldrsb w8, [x8, x9] subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB0_42 b LBB0_41 LBB0_41: ; in Loop: Header=BB0_40 Depth=2 ldr x8, [sp, #112] subs x8, x8, #1999 cset w8, lt tbnz w8, #0, LBB0_43 b LBB0_42 LBB0_42: ; in Loop: Header=BB0_31 Depth=1 ldr x9, [sp, #112] add x8, sp, #71, lsl #12 ; =290816 add x8, x8, #312 add x8, x8, x9 strb wzr, [x8] b LBB0_44 LBB0_43: ; in Loop: Header=BB0_40 Depth=2 ldr x8, [sp, #112] add x8, x8, #1 str x8, [sp, #112] b LBB0_40 LBB0_44: ; in Loop: Header=BB0_31 Depth=1 add x0, sp, #71, lsl #12 ; =290816 add x0, x0, #312 adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_46 b LBB0_45 LBB0_45: b LBB0_127 LBB0_46: ; in Loop: Header=BB0_31 Depth=1 str xzr, [sp, #80] str xzr, [sp, #104] str xzr, [sp, #96] b LBB0_47 LBB0_47: ; Parent Loop BB0_31 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x10, [sp, #96] add x8, sp, #71, lsl #12 ; =290816 add x8, x8, #312 mov x9, x8 add x9, x9, x10 ldrb w10, [x9] ldr x9, [sp, #80] mov x11, #2000 mul x13, x9, x11 add x9, sp, #2, lsl #12 ; =8192 add x9, x9, #936 mov x12, x9 add x12, x12, x13 ldr x13, [sp, #104] add x12, x12, x13 strb w10, [x12] ldr x10, [sp, #104] add x10, x10, #1 str x10, [sp, #104] ldr x10, [sp, #96] add x10, x10, #1 str x10, [sp, #96] ldr x10, [sp, #80] mul x10, x10, x11 add x9, x9, x10 ldr x10, [sp, #104] add x9, x9, x10 strb wzr, [x9] ldr x9, [sp, #96] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_49 b LBB0_48 LBB0_48: ; in Loop: Header=BB0_31 Depth=1 b LBB0_52 LBB0_49: ; in Loop: Header=BB0_47 Depth=2 ldr x9, [sp, #96] add x8, sp, #71, lsl #12 ; =290816 add x8, x8, #312 ldrsb w8, [x8, x9] subs w8, w8, #32 cset w8, ne tbnz w8, #0, LBB0_51 b LBB0_50 LBB0_50: ; in Loop: Header=BB0_47 Depth=2 ldr x8, [sp, #80] add x8, x8, #1 str x8, [sp, #80] str xzr, [sp, #104] ldr x8, [sp, #96] add x8, x8, #1 str x8, [sp, #96] b LBB0_51 LBB0_51: ; in Loop: Header=BB0_47 Depth=2 b LBB0_47 LBB0_52: ; in Loop: Header=BB0_31 Depth=1 ldr x8, [sp, #80] add x8, x8, #1 str x8, [sp, #80] ldr x8, [sp, #80] subs x8, x8, #3 cset w8, ge tbnz w8, #0, LBB0_54 b LBB0_53 LBB0_53: ; in Loop: Header=BB0_31 Depth=1 ldr x8, [sp, #80] mov x9, sp str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB0_31 LBB0_54: ; in Loop: Header=BB0_31 Depth=1 str xzr, [sp, #112] b LBB0_55 LBB0_55: ; Parent Loop BB0_31 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_57 Depth 3 ldr x8, [sp, #112] ldr x9, [sp, #80] subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB0_68 b LBB0_56 LBB0_56: ; in Loop: Header=BB0_55 Depth=2 str xzr, [sp, #104] b LBB0_57 LBB0_57: ; Parent Loop BB0_31 Depth=1 ; Parent Loop BB0_55 Depth=2 ; => This Inner Loop Header: Depth=3 ldr x8, [sp, #104] ldr x9, [sp, #128] subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB0_62 b LBB0_58 LBB0_58: ; in Loop: Header=BB0_57 Depth=3 ldr x8, [sp, #56] ldr x9, [sp, #104] mov x10, #50 mul x9, x9, x10 add x0, x8, x9 ldr x8, [sp, #112] mov x9, #2000 mul x9, x8, x9 add x8, sp, #2, lsl #12 ; =8192 add x8, x8, #936 add x1, x8, x9 bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_60 b LBB0_59 LBB0_59: ; in Loop: Header=BB0_55 Depth=2 b LBB0_62 LBB0_60: ; in Loop: Header=BB0_57 Depth=3 b LBB0_61 LBB0_61: ; in Loop: Header=BB0_57 Depth=3 ldr x8, [sp, #104] add x8, x8, #1 str x8, [sp, #104] b LBB0_57 LBB0_62: ; in Loop: Header=BB0_55 Depth=2 ldr x8, [sp, #104] ldr x9, [sp, #128] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB0_64 b LBB0_63 LBB0_63: ; in Loop: Header=BB0_55 Depth=2 str xzr, [sp, #104] b LBB0_64 LBB0_64: ; in Loop: Header=BB0_55 Depth=2 ldr x9, [sp, #104] ldr x10, [sp, #112] add x8, sp, #168 str x9, [x8, x10, lsl #3] ldr x9, [sp, #112] mov x10, #2000 mul x10, x9, x10 add x9, sp, #2, lsl #12 ; =8192 add x9, x9, #936 add x10, x9, x10 ldr x9, [sp, #112] ldr x8, [x8, x9, lsl #3] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf ldr x8, [sp, #104] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_66 b LBB0_65 LBB0_65: ; in Loop: Header=BB0_31 Depth=1 adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf b LBB0_68 LBB0_66: ; in Loop: Header=BB0_55 Depth=2 b LBB0_67 LBB0_67: ; in Loop: Header=BB0_55 Depth=2 ldr x8, [sp, #112] add x8, x8, #1 str x8, [sp, #112] b LBB0_55 LBB0_68: ; in Loop: Header=BB0_31 Depth=1 ldr x8, [sp, #104] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_70 b LBB0_69 LBB0_69: ; in Loop: Header=BB0_31 Depth=1 b LBB0_31 LBB0_70: ; in Loop: Header=BB0_31 Depth=1 adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf str xzr, [sp, #112] b LBB0_71 LBB0_71: ; Parent Loop BB0_31 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #112] ldr x9, [sp, #120] subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB0_74 b LBB0_72 LBB0_72: ; in Loop: Header=BB0_71 Depth=2 ldr x8, [sp, #64] ldr x9, [sp, #112] ldr x10, [sp, #176] ldr x11, [sp, #120] mul x10, x10, x11 add x9, x9, x10 ldr s0, [x8, x9, lsl #2] ldr x8, [sp, #64] ldr x9, [sp, #112] ldr x10, [sp, #168] ldr x11, [sp, #120] mul x10, x10, x11 add x9, x9, x10 ldr s1, [x8, x9, lsl #2] fsub s0, s0, s1 ldr x8, [sp, #64] ldr x9, [sp, #112] ldr x10, [sp, #184] ldr x11, [sp, #120] mul x10, x10, x11 add x9, x9, x10 ldr s1, [x8, x9, lsl #2] fadd s0, s0, s1 ldr x9, [sp, #112] add x8, sp, #968 str s0, [x8, x9, lsl #2] b LBB0_73 LBB0_73: ; in Loop: Header=BB0_71 Depth=2 ldr x8, [sp, #112] add x8, x8, #1 str x8, [sp, #112] b LBB0_71 LBB0_74: ; in Loop: Header=BB0_31 Depth=1 movi d0, #0000000000000000 str s0, [sp, #136] str xzr, [sp, #112] b LBB0_75 LBB0_75: ; Parent Loop BB0_31 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #112] ldr x9, [sp, #120] subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB0_78 b LBB0_76 LBB0_76: ; in Loop: Header=BB0_75 Depth=2 ldr x9, [sp, #112] add x8, sp, #968 ldr s0, [x8, x9, lsl #2] ldr x9, [sp, #112] ldr s1, [x8, x9, lsl #2] ldr s2, [sp, #136] fmadd s0, s0, s1, s2 str s0, [sp, #136] b LBB0_77 LBB0_77: ; in Loop: Header=BB0_75 Depth=2 ldr x8, [sp, #112] add x8, x8, #1 str x8, [sp, #112] b LBB0_75 LBB0_78: ; in Loop: Header=BB0_31 Depth=1 ldr s0, [sp, #136] fcvt d0, s0 fsqrt d0, d0 fcvt s0, d0 str s0, [sp, #136] str xzr, [sp, #112] b LBB0_79 LBB0_79: ; Parent Loop BB0_31 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #112] ldr x9, [sp, #120] subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB0_82 b LBB0_80 LBB0_80: ; in Loop: Header=BB0_79 Depth=2 ldr s1, [sp, #136] ldr x9, [sp, #112] add x8, sp, #968 add x8, x8, x9, lsl #2 ldr s0, [x8] fdiv s0, s0, s1 str s0, [x8] b LBB0_81 LBB0_81: ; in Loop: Header=BB0_79 Depth=2 ldr x8, [sp, #112] add x8, x8, #1 str x8, [sp, #112] b LBB0_79 LBB0_82: ; in Loop: Header=BB0_31 Depth=1 str xzr, [sp, #112] b LBB0_83 LBB0_83: ; Parent Loop BB0_31 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #112] subs x8, x8, #40 cset w8, ge tbnz w8, #0, LBB0_86 b LBB0_84 LBB0_84: ; in Loop: Header=BB0_83 Depth=2 ldr x9, [sp, #112] add x8, sp, #2, lsl #12 ; =8192 add x8, x8, #776 movi d0, #0000000000000000 str s0, [x8, x9, lsl #2] b LBB0_85 LBB0_85: ; in Loop: Header=BB0_83 Depth=2 ldr x8, [sp, #112] add x8, x8, #1 str x8, [sp, #112] b LBB0_83 LBB0_86: ; in Loop: Header=BB0_31 Depth=1 str xzr, [sp, #112] b LBB0_87 LBB0_87: ; Parent Loop BB0_31 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #112] subs x8, x8, #40 cset w8, ge tbnz w8, #0, LBB0_90 b LBB0_88 LBB0_88: ; in Loop: Header=BB0_87 Depth=2 ldr x8, [sp, #112] mov x9, #2000 mul x9, x8, x9 add x8, sp, #51, lsl #12 ; =208896 add x8, x8, #2232 add x8, x8, x9 strb wzr, [x8] b LBB0_89 LBB0_89: ; in Loop: Header=BB0_87 Depth=2 ldr x8, [sp, #112] add x8, x8, #1 str x8, [sp, #112] b LBB0_87 LBB0_90: ; in Loop: Header=BB0_31 Depth=1 str xzr, [sp, #96] b LBB0_91 LBB0_91: ; Parent Loop BB0_31 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_99 Depth 3 ; Child Loop BB0_107 Depth 3 ; Child Loop BB0_111 Depth 3 ; Child Loop BB0_114 Depth 3 ldr x8, [sp, #96] ldr x9, [sp, #128] subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB0_122 b LBB0_92 LBB0_92: ; in Loop: Header=BB0_91 Depth=2 ldr x8, [sp, #96] ldr x9, [sp, #168] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB0_94 b LBB0_93 LBB0_93: ; in Loop: Header=BB0_91 Depth=2 b LBB0_121 LBB0_94: ; in Loop: Header=BB0_91 Depth=2 ldr x8, [sp, #96] ldr x9, [sp, #176] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB0_96 b LBB0_95 LBB0_95: ; in Loop: Header=BB0_91 Depth=2 b LBB0_121 LBB0_96: ; in Loop: Header=BB0_91 Depth=2 ldr x8, [sp, #96] ldr x9, [sp, #184] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB0_98 b LBB0_97 LBB0_97: ; in Loop: Header=BB0_91 Depth=2 b LBB0_121 LBB0_98: ; in Loop: Header=BB0_91 Depth=2 str xzr, [sp, #112] str xzr, [sp, #104] b LBB0_99 LBB0_99: ; Parent Loop BB0_31 Depth=1 ; Parent Loop BB0_91 Depth=2 ; => This Inner Loop Header: Depth=3 ldr x8, [sp, #104] ldr x9, [sp, #80] subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB0_104 b LBB0_100 LBB0_100: ; in Loop: Header=BB0_99 Depth=3 ldr x9, [sp, #104] add x8, sp, #168 ldr x8, [x8, x9, lsl #3] ldr x9, [sp, #96] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB0_102 b LBB0_101 LBB0_101: ; in Loop: Header=BB0_99 Depth=3 mov x8, #1 str x8, [sp, #112] b LBB0_102 LBB0_102: ; in Loop: Header=BB0_99 Depth=3 b LBB0_103 LBB0_103: ; in Loop: Header=BB0_99 Depth=3 ldr x8, [sp, #104] add x8, x8, #1 str x8, [sp, #104] b LBB0_99 LBB0_104: ; in Loop: Header=BB0_91 Depth=2 ldr x8, [sp, #112] subs x8, x8, #1 cset w8, ne tbnz w8, #0, LBB0_106 b LBB0_105 LBB0_105: ; in Loop: Header=BB0_91 Depth=2 b LBB0_121 LBB0_106: ; in Loop: Header=BB0_91 Depth=2 movi d0, #0000000000000000 str s0, [sp, #140] str xzr, [sp, #112] b LBB0_107 LBB0_107: ; Parent Loop BB0_31 Depth=1 ; Parent Loop BB0_91 Depth=2 ; => This Inner Loop Header: Depth=3 ldr x8, [sp, #112] ldr x9, [sp, #120] subs x8, x8, x9 cset w8, ge tbnz w8, #0, LBB0_110 b LBB0_108 LBB0_108: ; in Loop: Header=BB0_107 Depth=3 ldr x9, [sp, #112] add x8, sp, #968 ldr s0, [x8, x9, lsl #2] ldr x8, [sp, #64] ldr x9, [sp, #112] ldr x10, [sp, #96] ldr x11, [sp, #120] mul x10, x10, x11 add x9, x9, x10 ldr s1, [x8, x9, lsl #2] ldr s2, [sp, #140] fmadd s0, s0, s1, s2 str s0, [sp, #140] b LBB0_109 LBB0_109: ; in Loop: Header=BB0_107 Depth=3 ldr x8, [sp, #112] add x8, x8, #1 str x8, [sp, #112] b LBB0_107 LBB0_110: ; in Loop: Header=BB0_91 Depth=2 str xzr, [sp, #112] b LBB0_111 LBB0_111: ; Parent Loop BB0_31 Depth=1 ; Parent Loop BB0_91 Depth=2 ; => This Inner Loop Header: Depth=3 ldr x8, [sp, #112] subs x8, x8, #40 cset w8, ge tbnz w8, #0, LBB0_120 b LBB0_112 LBB0_112: ; in Loop: Header=BB0_111 Depth=3 ldr s0, [sp, #140] ldr x9, [sp, #112] add x8, sp, #2, lsl #12 ; =8192 add x8, x8, #776 ldr s1, [x8, x9, lsl #2] fcmp s0, s1 cset w8, le tbnz w8, #0, LBB0_118 b LBB0_113 LBB0_113: ; in Loop: Header=BB0_91 Depth=2 mov x8, #39 str x8, [sp, #88] b LBB0_114 LBB0_114: ; Parent Loop BB0_31 Depth=1 ; Parent Loop BB0_91 Depth=2 ; => This Inner Loop Header: Depth=3 ldr x8, [sp, #88] ldr x9, [sp, #112] subs x8, x8, x9 cset w8, le tbnz w8, #0, LBB0_117 b LBB0_115 LBB0_115: ; in Loop: Header=BB0_114 Depth=3 ldr x8, [sp, #88] subs x9, x8, #1 add x8, sp, #2, lsl #12 ; =8192 add x8, x8, #776 ldr s0, [x8, x9, lsl #2] ldr x9, [sp, #88] str s0, [x8, x9, lsl #2] ldr x8, [sp, #88] mov x10, #2000 mul x11, x8, x10 add x8, sp, #51, lsl #12 ; =208896 add x8, x8, #2232 mov x9, x8 add x0, x9, x11 ldr x9, [sp, #88] subs x9, x9, #1 mul x9, x9, x10 add x1, x8, x9 mov x2, #-1 bl ___strcpy_chk b LBB0_116 LBB0_116: ; in Loop: Header=BB0_114 Depth=3 ldr x8, [sp, #88] subs x8, x8, #1 str x8, [sp, #88] b LBB0_114 LBB0_117: ; in Loop: Header=BB0_91 Depth=2 ldr s0, [sp, #140] ldr x9, [sp, #112] add x8, sp, #2, lsl #12 ; =8192 add x8, x8, #776 str s0, [x8, x9, lsl #2] ldr x8, [sp, #112] mov x9, #2000 mul x9, x8, x9 add x8, sp, #51, lsl #12 ; =208896 add x8, x8, #2232 add x0, x8, x9 ldr x8, [sp, #56] ldr x9, [sp, #96] mov x10, #50 mul x9, x9, x10 add x1, x8, x9 mov x2, #-1 bl ___strcpy_chk b LBB0_120 LBB0_118: ; in Loop: Header=BB0_111 Depth=3 b LBB0_119 LBB0_119: ; in Loop: Header=BB0_111 Depth=3 ldr x8, [sp, #112] add x8, x8, #1 str x8, [sp, #112] b LBB0_111 LBB0_120: ; in Loop: Header=BB0_91 Depth=2 b LBB0_121 LBB0_121: ; in Loop: Header=BB0_91 Depth=2 ldr x8, [sp, #96] add x8, x8, #1 str x8, [sp, #96] b LBB0_91 LBB0_122: ; in Loop: Header=BB0_31 Depth=1 str xzr, [sp, #112] b LBB0_123 LBB0_123: ; Parent Loop BB0_31 Depth=1 ; => This Inner Loop Header: Depth=2 ldr x8, [sp, #112] subs x8, x8, #40 cset w8, ge tbnz w8, #0, LBB0_126 b LBB0_124 LBB0_124: ; in Loop: Header=BB0_123 Depth=2 ldr x8, [sp, #112] mov x9, #2000 mul x9, x8, x9 add x8, sp, #51, lsl #12 ; =208896 add x8, x8, #2232 add x9, x8, x9 ldr x10, [sp, #112] add x8, sp, #2, lsl #12 ; =8192 add x8, x8, #776 ldr s0, [x8, x10, lsl #2] fcvt d0, s0 mov x8, sp str x9, [x8] str d0, [x8, #8] adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf b LBB0_125 LBB0_125: ; in Loop: Header=BB0_123 Depth=2 ldr x8, [sp, #112] add x8, x8, #1 str x8, [sp, #112] b LBB0_123 LBB0_126: ; in Loop: Header=BB0_31 Depth=1 b LBB0_31 LBB0_127: str wzr, [sp, #164] b LBB0_128 LBB0_128: ldr w8, [sp, #164] str w8, [sp, #36] ; 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_130 b LBB0_129 LBB0_129: bl ___stack_chk_fail LBB0_130: ldr w0, [sp, #36] ; 4-byte Folded Reload add sp, sp, #71, lsl #12 ; =290816 add sp, sp, #2320 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__const .globl _max_size ; @max_size .p2align 3 _max_size: .quad 2000 ; 0x7d0 .globl _N ; @N .p2align 3 _N: .quad 40 ; 0x28 .globl _max_w ; @max_w .p2align 3 _max_w: .quad 50 ; 0x32 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage: ./word-analogy <FILE>\nwhere FILE contains word projections in the BINARY FORMAT\n" l_.str.1: ; @.str.1 .asciz "rb" l_.str.2: ; @.str.2 .asciz "Input file not found\n" l_.str.3: ; @.str.3 .asciz "%lld" l_.str.4: ; @.str.4 .asciz "Cannot allocate memory: %lld MB %lld %lld\n" l_.str.5: ; @.str.5 .asciz "Enter three words (EXIT to break): " l_.str.6: ; @.str.6 .asciz "EXIT" l_.str.7: ; @.str.7 .asciz "Only %lld words were entered.. three words are needed at the input to perform the calculation\n" l_.str.8: ; @.str.8 .asciz "\nWord: %s Position in vocabulary: %lld\n" l_.str.9: ; @.str.9 .asciz "Out of dictionary word!\n" l_.str.10: ; @.str.10 .asciz "\n Word Distance\n------------------------------------------------------------------------\n" l_.str.11: ; @.str.11 .asciz "%50s\t\t%f\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $293104, %eax ## imm = 0x478F0 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -292980(%rbp) movl %edi, -292984(%rbp) movq %rsi, -292992(%rbp) cmpl $2, -292984(%rbp) jge LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $0, -292980(%rbp) jmp LBB0_128 LBB0_2: leaq -84016(%rbp), %rdi movq -292992(%rbp), %rax movq 8(%rax), %rsi movl $2000, %edx ## imm = 0x7D0 callq ___strcpy_chk leaq -84016(%rbp), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -293000(%rbp) cmpq $0, -293000(%rbp) jne LBB0_4 ## %bb.3: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $-1, -292980(%rbp) jmp LBB0_128 LBB0_4: movq -293000(%rbp), %rdi leaq L_.str.3(%rip), %rsi leaq -293016(%rbp), %rdx movb $0, %al callq _fscanf movq -293000(%rbp), %rdi leaq L_.str.3(%rip), %rsi leaq -293024(%rbp), %rdx movb $0, %al callq _fscanf imulq $50, -293016(%rbp), %rdi shlq $0, %rdi callq _malloc movq %rax, -293088(%rbp) movq -293016(%rbp), %rdi imulq -293024(%rbp), %rdi shlq $2, %rdi callq _malloc movq %rax, -293080(%rbp) cmpq $0, -293080(%rbp) jne LBB0_6 ## %bb.5: movq -293016(%rbp), %rsi imulq -293024(%rbp), %rsi shlq $2, %rsi shrq $20, %rsi movq -293016(%rbp), %rdx movq -293024(%rbp), %rcx leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl $-1, -292980(%rbp) jmp LBB0_128 LBB0_6: movq $0, -293040(%rbp) LBB0_7: ## =>This Loop Header: Depth=1 ## Child Loop BB0_9 Depth 2 ## Child Loop BB0_17 Depth 2 ## Child Loop BB0_21 Depth 2 ## Child Loop BB0_25 Depth 2 movq -293040(%rbp), %rax cmpq -293016(%rbp), %rax jge LBB0_30 ## %bb.8: ## in Loop: Header=BB0_7 Depth=1 movq $0, -293032(%rbp) LBB0_9: ## Parent Loop BB0_7 Depth=1 ## => This Inner Loop Header: Depth=2 movq -293000(%rbp), %rdi callq _fgetc movb %al, %dl movq -293088(%rbp), %rax imulq $50, -293040(%rbp), %rcx addq -293032(%rbp), %rcx movb %dl, (%rax,%rcx) movq -293000(%rbp), %rdi callq _feof cmpl $0, %eax jne LBB0_11 ## %bb.10: ## in Loop: Header=BB0_9 Depth=2 movq -293088(%rbp), %rax imulq $50, -293040(%rbp), %rcx addq -293032(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $32, %eax jne LBB0_12 LBB0_11: ## in Loop: Header=BB0_7 Depth=1 jmp LBB0_16 LBB0_12: ## in Loop: Header=BB0_9 Depth=2 cmpq $50, -293032(%rbp) jge LBB0_15 ## %bb.13: ## in Loop: Header=BB0_9 Depth=2 movq -293088(%rbp), %rax imulq $50, -293040(%rbp), %rcx addq -293032(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $10, %eax je LBB0_15 ## %bb.14: ## in Loop: Header=BB0_9 Depth=2 movq -293032(%rbp), %rax addq $1, %rax movq %rax, -293032(%rbp) LBB0_15: ## in Loop: Header=BB0_9 Depth=2 jmp LBB0_9 LBB0_16: ## in Loop: Header=BB0_7 Depth=1 movq -293088(%rbp), %rax imulq $50, -293040(%rbp), %rcx addq -293032(%rbp), %rcx movb $0, (%rax,%rcx) movq $0, -293032(%rbp) LBB0_17: ## Parent Loop BB0_7 Depth=1 ## => This Inner Loop Header: Depth=2 movq -293032(%rbp), %rax cmpq -293024(%rbp), %rax jge LBB0_20 ## %bb.18: ## in Loop: Header=BB0_17 Depth=2 movq -293080(%rbp), %rdi movq -293032(%rbp), %rax movq -293040(%rbp), %rcx imulq -293024(%rbp), %rcx addq %rcx, %rax shlq $2, %rax addq %rax, %rdi movq -293000(%rbp), %rcx movl $4, %esi movl $1, %edx callq _fread ## %bb.19: ## in Loop: Header=BB0_17 Depth=2 movq -293032(%rbp), %rax addq $1, %rax movq %rax, -293032(%rbp) jmp LBB0_17 LBB0_20: ## in Loop: Header=BB0_7 Depth=1 xorps %xmm0, %xmm0 movss %xmm0, -293008(%rbp) movq $0, -293032(%rbp) LBB0_21: ## Parent Loop BB0_7 Depth=1 ## => This Inner Loop Header: Depth=2 movq -293032(%rbp), %rax cmpq -293024(%rbp), %rax jge LBB0_24 ## %bb.22: ## in Loop: Header=BB0_21 Depth=2 movq -293080(%rbp), %rax movq -293032(%rbp), %rcx movq -293040(%rbp), %rdx imulq -293024(%rbp), %rdx addq %rdx, %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -293080(%rbp), %rax movq -293032(%rbp), %rcx movq -293040(%rbp), %rdx imulq -293024(%rbp), %rdx addq %rdx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero movss -293008(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss %xmm0, -293008(%rbp) ## %bb.23: ## in Loop: Header=BB0_21 Depth=2 movq -293032(%rbp), %rax addq $1, %rax movq %rax, -293032(%rbp) jmp LBB0_21 LBB0_24: ## in Loop: Header=BB0_7 Depth=1 movss -293008(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 sqrtsd %xmm0, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -293008(%rbp) movq $0, -293032(%rbp) LBB0_25: ## Parent Loop BB0_7 Depth=1 ## => This Inner Loop Header: Depth=2 movq -293032(%rbp), %rax cmpq -293024(%rbp), %rax jge LBB0_28 ## %bb.26: ## in Loop: Header=BB0_25 Depth=2 movss -293008(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -293080(%rbp), %rax movq -293032(%rbp), %rcx movq -293040(%rbp), %rdx imulq -293024(%rbp), %rdx addq %rdx, %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero divss %xmm1, %xmm0 movss %xmm0, (%rax,%rcx,4) ## %bb.27: ## in Loop: Header=BB0_25 Depth=2 movq -293032(%rbp), %rax addq $1, %rax movq %rax, -293032(%rbp) jmp LBB0_25 LBB0_28: ## in Loop: Header=BB0_7 Depth=1 jmp LBB0_29 LBB0_29: ## in Loop: Header=BB0_7 Depth=1 movq -293040(%rbp), %rax addq $1, %rax movq %rax, -293040(%rbp) jmp LBB0_7 LBB0_30: movq -293000(%rbp), %rdi callq _fclose LBB0_31: ## =>This Loop Header: Depth=1 ## Child Loop BB0_32 Depth 2 ## Child Loop BB0_36 Depth 2 ## Child Loop BB0_40 Depth 2 ## Child Loop BB0_47 Depth 2 ## Child Loop BB0_55 Depth 2 ## Child Loop BB0_57 Depth 3 ## Child Loop BB0_71 Depth 2 ## Child Loop BB0_75 Depth 2 ## Child Loop BB0_79 Depth 2 ## Child Loop BB0_83 Depth 2 ## Child Loop BB0_87 Depth 2 ## Child Loop BB0_91 Depth 2 ## Child Loop BB0_99 Depth 3 ## Child Loop BB0_107 Depth 3 ## Child Loop BB0_111 Depth 3 ## Child Loop BB0_114 Depth 3 ## Child Loop BB0_123 Depth 2 movq $0, -293032(%rbp) LBB0_32: ## Parent Loop BB0_31 Depth=1 ## => This Inner Loop Header: Depth=2 cmpq $40, -293032(%rbp) jge LBB0_35 ## %bb.33: ## in Loop: Header=BB0_32 Depth=2 movq -293032(%rbp), %rax xorps %xmm0, %xmm0 movss %xmm0, -284176(%rbp,%rax,4) ## %bb.34: ## in Loop: Header=BB0_32 Depth=2 movq -293032(%rbp), %rax addq $1, %rax movq %rax, -293032(%rbp) jmp LBB0_32 LBB0_35: ## in Loop: Header=BB0_31 Depth=1 movq $0, -293032(%rbp) LBB0_36: ## Parent Loop BB0_31 Depth=1 ## => This Inner Loop Header: Depth=2 cmpq $40, -293032(%rbp) jge LBB0_39 ## %bb.37: ## in Loop: Header=BB0_36 Depth=2 leaq -82016(%rbp), %rax imulq $2000, -293032(%rbp), %rcx ## imm = 0x7D0 addq %rcx, %rax movb $0, (%rax) ## %bb.38: ## in Loop: Header=BB0_36 Depth=2 movq -293032(%rbp), %rax addq $1, %rax movq %rax, -293032(%rbp) jmp LBB0_36 LBB0_39: ## in Loop: Header=BB0_31 Depth=1 leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movq $0, -293032(%rbp) LBB0_40: ## Parent Loop BB0_31 Depth=1 ## => This Inner Loop Header: Depth=2 movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fgetc movb %al, %cl movq -293032(%rbp), %rax movb %cl, -2016(%rbp,%rax) movq -293032(%rbp), %rax movsbl -2016(%rbp,%rax), %eax cmpl $10, %eax je LBB0_42 ## %bb.41: ## in Loop: Header=BB0_40 Depth=2 cmpq $1999, -293032(%rbp) ## imm = 0x7CF jl LBB0_43 LBB0_42: ## in Loop: Header=BB0_31 Depth=1 movq -293032(%rbp), %rax movb $0, -2016(%rbp,%rax) jmp LBB0_44 LBB0_43: ## in Loop: Header=BB0_40 Depth=2 movq -293032(%rbp), %rax addq $1, %rax movq %rax, -293032(%rbp) jmp LBB0_40 LBB0_44: ## in Loop: Header=BB0_31 Depth=1 leaq -2016(%rbp), %rdi leaq L_.str.6(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB0_46 ## %bb.45: jmp LBB0_127 LBB0_46: ## in Loop: Header=BB0_31 Depth=1 movq $0, -293064(%rbp) movq $0, -293040(%rbp) movq $0, -293048(%rbp) LBB0_47: ## Parent Loop BB0_31 Depth=1 ## => This Inner Loop Header: Depth=2 movq -293048(%rbp), %rax movb -2016(%rbp,%rax), %dl leaq -284016(%rbp), %rax imulq $2000, -293064(%rbp), %rcx ## imm = 0x7D0 addq %rcx, %rax movq -293040(%rbp), %rcx movb %dl, (%rax,%rcx) movq -293040(%rbp), %rax addq $1, %rax movq %rax, -293040(%rbp) movq -293048(%rbp), %rax addq $1, %rax movq %rax, -293048(%rbp) leaq -284016(%rbp), %rax imulq $2000, -293064(%rbp), %rcx ## imm = 0x7D0 addq %rcx, %rax movq -293040(%rbp), %rcx movb $0, (%rax,%rcx) movq -293048(%rbp), %rax movsbl -2016(%rbp,%rax), %eax cmpl $0, %eax jne LBB0_49 ## %bb.48: ## in Loop: Header=BB0_31 Depth=1 jmp LBB0_52 LBB0_49: ## in Loop: Header=BB0_47 Depth=2 movq -293048(%rbp), %rax movsbl -2016(%rbp,%rax), %eax cmpl $32, %eax jne LBB0_51 ## %bb.50: ## in Loop: Header=BB0_47 Depth=2 movq -293064(%rbp), %rax addq $1, %rax movq %rax, -293064(%rbp) movq $0, -293040(%rbp) movq -293048(%rbp), %rax addq $1, %rax movq %rax, -293048(%rbp) LBB0_51: ## in Loop: Header=BB0_47 Depth=2 jmp LBB0_47 LBB0_52: ## in Loop: Header=BB0_31 Depth=1 movq -293064(%rbp), %rax addq $1, %rax movq %rax, -293064(%rbp) cmpq $3, -293064(%rbp) jge LBB0_54 ## %bb.53: ## in Loop: Header=BB0_31 Depth=1 movq -293064(%rbp), %rsi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf jmp LBB0_31 LBB0_54: ## in Loop: Header=BB0_31 Depth=1 movq $0, -293032(%rbp) LBB0_55: ## Parent Loop BB0_31 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_57 Depth 3 movq -293032(%rbp), %rax cmpq -293064(%rbp), %rax jge LBB0_68 ## %bb.56: ## in Loop: Header=BB0_55 Depth=2 movq $0, -293040(%rbp) LBB0_57: ## Parent Loop BB0_31 Depth=1 ## Parent Loop BB0_55 Depth=2 ## => This Inner Loop Header: Depth=3 movq -293040(%rbp), %rax cmpq -293016(%rbp), %rax jge LBB0_62 ## %bb.58: ## in Loop: Header=BB0_57 Depth=3 movq -293088(%rbp), %rdi imulq $50, -293040(%rbp), %rax addq %rax, %rdi leaq -284016(%rbp), %rsi imulq $2000, -293032(%rbp), %rax ## imm = 0x7D0 addq %rax, %rsi callq _strcmp cmpl $0, %eax jne LBB0_60 ## %bb.59: ## in Loop: Header=BB0_55 Depth=2 jmp LBB0_62 LBB0_60: ## in Loop: Header=BB0_57 Depth=3 jmp LBB0_61 LBB0_61: ## in Loop: Header=BB0_57 Depth=3 movq -293040(%rbp), %rax addq $1, %rax movq %rax, -293040(%rbp) jmp LBB0_57 LBB0_62: ## in Loop: Header=BB0_55 Depth=2 movq -293040(%rbp), %rax cmpq -293016(%rbp), %rax jne LBB0_64 ## %bb.63: ## in Loop: Header=BB0_55 Depth=2 movq $0, -293040(%rbp) LBB0_64: ## in Loop: Header=BB0_55 Depth=2 movq -293040(%rbp), %rcx movq -293032(%rbp), %rax movq %rcx, -292976(%rbp,%rax,8) leaq -284016(%rbp), %rsi imulq $2000, -293032(%rbp), %rax ## imm = 0x7D0 addq %rax, %rsi movq -293032(%rbp), %rax movq -292976(%rbp,%rax,8), %rdx leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf cmpq $0, -293040(%rbp) jne LBB0_66 ## %bb.65: ## in Loop: Header=BB0_31 Depth=1 leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf jmp LBB0_68 LBB0_66: ## in Loop: Header=BB0_55 Depth=2 jmp LBB0_67 LBB0_67: ## in Loop: Header=BB0_55 Depth=2 movq -293032(%rbp), %rax addq $1, %rax movq %rax, -293032(%rbp) jmp LBB0_55 LBB0_68: ## in Loop: Header=BB0_31 Depth=1 cmpq $0, -293040(%rbp) jne LBB0_70 ## %bb.69: ## in Loop: Header=BB0_31 Depth=1 jmp LBB0_31 LBB0_70: ## in Loop: Header=BB0_31 Depth=1 leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf movq $0, -293032(%rbp) LBB0_71: ## Parent Loop BB0_31 Depth=1 ## => This Inner Loop Header: Depth=2 movq -293032(%rbp), %rax cmpq -293024(%rbp), %rax jge LBB0_74 ## %bb.72: ## in Loop: Header=BB0_71 Depth=2 movq -293080(%rbp), %rax movq -293032(%rbp), %rcx movq -292968(%rbp), %rdx imulq -293024(%rbp), %rdx addq %rdx, %rcx movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -293080(%rbp), %rax movq -293032(%rbp), %rcx movq -292976(%rbp), %rdx imulq -293024(%rbp), %rdx addq %rdx, %rcx subss (%rax,%rcx,4), %xmm0 movq -293080(%rbp), %rax movq -293032(%rbp), %rcx movq -292960(%rbp), %rdx imulq -293024(%rbp), %rdx addq %rdx, %rcx addss (%rax,%rcx,4), %xmm0 movq -293032(%rbp), %rax movss %xmm0, -292176(%rbp,%rax,4) ## %bb.73: ## in Loop: Header=BB0_71 Depth=2 movq -293032(%rbp), %rax addq $1, %rax movq %rax, -293032(%rbp) jmp LBB0_71 LBB0_74: ## in Loop: Header=BB0_31 Depth=1 xorps %xmm0, %xmm0 movss %xmm0, -293008(%rbp) movq $0, -293032(%rbp) LBB0_75: ## Parent Loop BB0_31 Depth=1 ## => This Inner Loop Header: Depth=2 movq -293032(%rbp), %rax cmpq -293024(%rbp), %rax jge LBB0_78 ## %bb.76: ## in Loop: Header=BB0_75 Depth=2 movq -293032(%rbp), %rax movss -292176(%rbp,%rax,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -293032(%rbp), %rax movss -292176(%rbp,%rax,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero movss -293008(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss %xmm0, -293008(%rbp) ## %bb.77: ## in Loop: Header=BB0_75 Depth=2 movq -293032(%rbp), %rax addq $1, %rax movq %rax, -293032(%rbp) jmp LBB0_75 LBB0_78: ## in Loop: Header=BB0_31 Depth=1 movss -293008(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 sqrtsd %xmm0, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -293008(%rbp) movq $0, -293032(%rbp) LBB0_79: ## Parent Loop BB0_31 Depth=1 ## => This Inner Loop Header: Depth=2 movq -293032(%rbp), %rax cmpq -293024(%rbp), %rax jge LBB0_82 ## %bb.80: ## in Loop: Header=BB0_79 Depth=2 movss -293008(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -293032(%rbp), %rax movss -292176(%rbp,%rax,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero divss %xmm1, %xmm0 movss %xmm0, -292176(%rbp,%rax,4) ## %bb.81: ## in Loop: Header=BB0_79 Depth=2 movq -293032(%rbp), %rax addq $1, %rax movq %rax, -293032(%rbp) jmp LBB0_79 LBB0_82: ## in Loop: Header=BB0_31 Depth=1 movq $0, -293032(%rbp) LBB0_83: ## Parent Loop BB0_31 Depth=1 ## => This Inner Loop Header: Depth=2 cmpq $40, -293032(%rbp) jge LBB0_86 ## %bb.84: ## in Loop: Header=BB0_83 Depth=2 movq -293032(%rbp), %rax xorps %xmm0, %xmm0 movss %xmm0, -284176(%rbp,%rax,4) ## %bb.85: ## in Loop: Header=BB0_83 Depth=2 movq -293032(%rbp), %rax addq $1, %rax movq %rax, -293032(%rbp) jmp LBB0_83 LBB0_86: ## in Loop: Header=BB0_31 Depth=1 movq $0, -293032(%rbp) LBB0_87: ## Parent Loop BB0_31 Depth=1 ## => This Inner Loop Header: Depth=2 cmpq $40, -293032(%rbp) jge LBB0_90 ## %bb.88: ## in Loop: Header=BB0_87 Depth=2 leaq -82016(%rbp), %rax imulq $2000, -293032(%rbp), %rcx ## imm = 0x7D0 addq %rcx, %rax movb $0, (%rax) ## %bb.89: ## in Loop: Header=BB0_87 Depth=2 movq -293032(%rbp), %rax addq $1, %rax movq %rax, -293032(%rbp) jmp LBB0_87 LBB0_90: ## in Loop: Header=BB0_31 Depth=1 movq $0, -293048(%rbp) LBB0_91: ## Parent Loop BB0_31 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_99 Depth 3 ## Child Loop BB0_107 Depth 3 ## Child Loop BB0_111 Depth 3 ## Child Loop BB0_114 Depth 3 movq -293048(%rbp), %rax cmpq -293016(%rbp), %rax jge LBB0_122 ## %bb.92: ## in Loop: Header=BB0_91 Depth=2 movq -293048(%rbp), %rax cmpq -292976(%rbp), %rax jne LBB0_94 ## %bb.93: ## in Loop: Header=BB0_91 Depth=2 jmp LBB0_121 LBB0_94: ## in Loop: Header=BB0_91 Depth=2 movq -293048(%rbp), %rax cmpq -292968(%rbp), %rax jne LBB0_96 ## %bb.95: ## in Loop: Header=BB0_91 Depth=2 jmp LBB0_121 LBB0_96: ## in Loop: Header=BB0_91 Depth=2 movq -293048(%rbp), %rax cmpq -292960(%rbp), %rax jne LBB0_98 ## %bb.97: ## in Loop: Header=BB0_91 Depth=2 jmp LBB0_121 LBB0_98: ## in Loop: Header=BB0_91 Depth=2 movq $0, -293032(%rbp) movq $0, -293040(%rbp) LBB0_99: ## Parent Loop BB0_31 Depth=1 ## Parent Loop BB0_91 Depth=2 ## => This Inner Loop Header: Depth=3 movq -293040(%rbp), %rax cmpq -293064(%rbp), %rax jge LBB0_104 ## %bb.100: ## in Loop: Header=BB0_99 Depth=3 movq -293040(%rbp), %rax movq -292976(%rbp,%rax,8), %rax cmpq -293048(%rbp), %rax jne LBB0_102 ## %bb.101: ## in Loop: Header=BB0_99 Depth=3 movq $1, -293032(%rbp) LBB0_102: ## in Loop: Header=BB0_99 Depth=3 jmp LBB0_103 LBB0_103: ## in Loop: Header=BB0_99 Depth=3 movq -293040(%rbp), %rax addq $1, %rax movq %rax, -293040(%rbp) jmp LBB0_99 LBB0_104: ## in Loop: Header=BB0_91 Depth=2 cmpq $1, -293032(%rbp) jne LBB0_106 ## %bb.105: ## in Loop: Header=BB0_91 Depth=2 jmp LBB0_121 LBB0_106: ## in Loop: Header=BB0_91 Depth=2 xorps %xmm0, %xmm0 movss %xmm0, -293004(%rbp) movq $0, -293032(%rbp) LBB0_107: ## Parent Loop BB0_31 Depth=1 ## Parent Loop BB0_91 Depth=2 ## => This Inner Loop Header: Depth=3 movq -293032(%rbp), %rax cmpq -293024(%rbp), %rax jge LBB0_110 ## %bb.108: ## in Loop: Header=BB0_107 Depth=3 movq -293032(%rbp), %rax movss -292176(%rbp,%rax,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -293080(%rbp), %rax movq -293032(%rbp), %rcx movq -293048(%rbp), %rdx imulq -293024(%rbp), %rdx addq %rdx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero movss -293004(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss %xmm0, -293004(%rbp) ## %bb.109: ## in Loop: Header=BB0_107 Depth=3 movq -293032(%rbp), %rax addq $1, %rax movq %rax, -293032(%rbp) jmp LBB0_107 LBB0_110: ## in Loop: Header=BB0_91 Depth=2 movq $0, -293032(%rbp) LBB0_111: ## Parent Loop BB0_31 Depth=1 ## Parent Loop BB0_91 Depth=2 ## => This Inner Loop Header: Depth=3 cmpq $40, -293032(%rbp) jge LBB0_120 ## %bb.112: ## in Loop: Header=BB0_111 Depth=3 movss -293004(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -293032(%rbp), %rax ucomiss -284176(%rbp,%rax,4), %xmm0 jbe LBB0_118 ## %bb.113: ## in Loop: Header=BB0_91 Depth=2 movq $39, -293056(%rbp) LBB0_114: ## Parent Loop BB0_31 Depth=1 ## Parent Loop BB0_91 Depth=2 ## => This Inner Loop Header: Depth=3 movq -293056(%rbp), %rax cmpq -293032(%rbp), %rax jle LBB0_117 ## %bb.115: ## in Loop: Header=BB0_114 Depth=3 movq -293056(%rbp), %rax subq $1, %rax movss -284176(%rbp,%rax,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -293056(%rbp), %rax movss %xmm0, -284176(%rbp,%rax,4) leaq -82016(%rbp), %rdi imulq $2000, -293056(%rbp), %rax ## imm = 0x7D0 addq %rax, %rdi movq -293056(%rbp), %rax subq $1, %rax leaq -82016(%rbp), %rsi imulq $2000, %rax, %rax ## imm = 0x7D0 addq %rax, %rsi movq $-1, %rdx callq ___strcpy_chk ## %bb.116: ## in Loop: Header=BB0_114 Depth=3 movq -293056(%rbp), %rax addq $-1, %rax movq %rax, -293056(%rbp) jmp LBB0_114 LBB0_117: ## in Loop: Header=BB0_91 Depth=2 movss -293004(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -293032(%rbp), %rax movss %xmm0, -284176(%rbp,%rax,4) leaq -82016(%rbp), %rdi imulq $2000, -293032(%rbp), %rax ## imm = 0x7D0 addq %rax, %rdi movq -293088(%rbp), %rsi imulq $50, -293048(%rbp), %rax addq %rax, %rsi movq $-1, %rdx callq ___strcpy_chk jmp LBB0_120 LBB0_118: ## in Loop: Header=BB0_111 Depth=3 jmp LBB0_119 LBB0_119: ## in Loop: Header=BB0_111 Depth=3 movq -293032(%rbp), %rax addq $1, %rax movq %rax, -293032(%rbp) jmp LBB0_111 LBB0_120: ## in Loop: Header=BB0_91 Depth=2 jmp LBB0_121 LBB0_121: ## in Loop: Header=BB0_91 Depth=2 movq -293048(%rbp), %rax addq $1, %rax movq %rax, -293048(%rbp) jmp LBB0_91 LBB0_122: ## in Loop: Header=BB0_31 Depth=1 movq $0, -293032(%rbp) LBB0_123: ## Parent Loop BB0_31 Depth=1 ## => This Inner Loop Header: Depth=2 cmpq $40, -293032(%rbp) jge LBB0_126 ## %bb.124: ## in Loop: Header=BB0_123 Depth=2 leaq -82016(%rbp), %rsi imulq $2000, -293032(%rbp), %rax ## imm = 0x7D0 addq %rax, %rsi movq -293032(%rbp), %rax movss -284176(%rbp,%rax,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.11(%rip), %rdi movb $1, %al callq _printf ## %bb.125: ## in Loop: Header=BB0_123 Depth=2 movq -293032(%rbp), %rax addq $1, %rax movq %rax, -293032(%rbp) jmp LBB0_123 LBB0_126: ## in Loop: Header=BB0_31 Depth=1 jmp LBB0_31 LBB0_127: movl $0, -292980(%rbp) LBB0_128: movl -292980(%rbp), %eax movl %eax, -293092(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_130 ## %bb.129: movl -293092(%rbp), %eax ## 4-byte Reload addq $293104, %rsp ## imm = 0x478F0 popq %rbp retq LBB0_130: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const .globl _max_size ## @max_size .p2align 3 _max_size: .quad 2000 ## 0x7d0 .globl _N ## @N .p2align 3 _N: .quad 40 ## 0x28 .globl _max_w ## @max_w .p2align 3 _max_w: .quad 50 ## 0x32 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage: ./word-analogy <FILE>\nwhere FILE contains word projections in the BINARY FORMAT\n" L_.str.1: ## @.str.1 .asciz "rb" L_.str.2: ## @.str.2 .asciz "Input file not found\n" L_.str.3: ## @.str.3 .asciz "%lld" L_.str.4: ## @.str.4 .asciz "Cannot allocate memory: %lld MB %lld %lld\n" L_.str.5: ## @.str.5 .asciz "Enter three words (EXIT to break): " L_.str.6: ## @.str.6 .asciz "EXIT" L_.str.7: ## @.str.7 .asciz "Only %lld words were entered.. three words are needed at the input to perform the calculation\n" L_.str.8: ## @.str.8 .asciz "\nWord: %s Position in vocabulary: %lld\n" L_.str.9: ## @.str.9 .asciz "Out of dictionary word!\n" L_.str.10: ## @.str.10 .asciz "\n Word Distance\n------------------------------------------------------------------------\n" L_.str.11: ## @.str.11 .asciz "%50s\t\t%f\n" .subsections_via_symbols
the_stack_data/119823.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-20] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #12 str x8, [x9] bl _scanf ldur w8, [x29, #-8] ldur w9, [x29, #-12] add w8, w8, w9 mov w9, #2 sdiv w8, w8, w9 scvtf s0, w8 stur s0, [x29, #-16] ldur s0, [x29, #-16] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur w0, [x29, #-20] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter marks(subject1-)" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Enter marks(subject2-)" l_.str.3: ; @.str.3 .asciz "%f" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %eax addl -12(%rbp), %eax movl $2, %ecx cltd idivl %ecx cvtsi2ss %eax, %xmm0 movss %xmm0, -16(%rbp) movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.3(%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 "Enter marks(subject1-)" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Enter marks(subject2-)" L_.str.3: ## @.str.3 .asciz "%f" .subsections_via_symbols
the_stack_data/68449.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 _test1 adrp x8, _fail@PAGE ldrb w8, [x8, _fail@PAGEOFF] 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_2 LBB0_2: mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function test1 _test1: ; @test1 .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #-1000 stur w8, [x29, #-4] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] subs w8, w8, #1000 cset w8, gt tbnz w8, #0, LBB1_8 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur w0, [x29, #-4] bl _tolower stur w0, [x29, #-8] ; 4-byte Folded Spill ldur w0, [x29, #-4] bl _ft_tolower mov x8, x0 ldur w0, [x29, #-8] ; 4-byte Folded Reload subs w8, w0, w8 cset w8, eq tbnz w8, #0, LBB1_6 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 adrp x8, _fail@PAGE ldrb w8, [x8, _fail@PAGEOFF] tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-16] ; 8-byte Folded Spill ldur w9, [x29, #-4] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #32] ; 8-byte Folded Spill ldur w0, [x29, #-4] bl _tolower stur w0, [x29, #-20] ; 4-byte Folded Spill ldur w0, [x29, #-4] bl _ft_tolower ldr x8, [sp, #32] ; 8-byte Folded Reload ldur w11, [x29, #-20] ; 4-byte Folded Reload mov x10, x0 ldur x0, [x29, #-16] ; 8-byte Folded Reload mov x9, sp str x8, [x9] ; implicit-def: $x8 mov x8, x11 str x8, [x9, #8] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #16] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf mov w8, #1 adrp x9, _fail@PAGE strb w8, [x9, _fail@PAGEOFF] b LBB1_6 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB1_1 LBB1_8: ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _fail ; @fail .zerofill __DATA,__common,_fail,1,0 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "PASS: ft_tolower\n" l_.str.1: ; @.str.1 .asciz "FAIL: ft_tolower\n" l_.str.2: ; @.str.2 .asciz "\tChar code %d should return %d, not %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 _test1 testb $1, _fail(%rip) jne LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB0_2: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function test1 _test1: ## @test1 .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 $-1000, -4(%rbp) ## imm = 0xFC18 LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $1000, -4(%rbp) ## imm = 0x3E8 jg LBB1_8 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl -4(%rbp), %edi callq _tolower movl %eax, -8(%rbp) ## 4-byte Spill movl -4(%rbp), %edi callq _ft_tolower movl %eax, %ecx movl -8(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB1_6 ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 testb $1, _fail(%rip) jne LBB1_5 ## %bb.4: ## in Loop: Header=BB1_1 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.1(%rip), %rsi movb $0, %al callq _fprintf LBB1_5: ## in Loop: Header=BB1_1 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -24(%rbp) ## 8-byte Spill movl -4(%rbp), %eax movl %eax, -16(%rbp) ## 4-byte Spill movl -4(%rbp), %edi callq _tolower movl %eax, -12(%rbp) ## 4-byte Spill movl -4(%rbp), %edi callq _ft_tolower movq -24(%rbp), %rdi ## 8-byte Reload movl -16(%rbp), %edx ## 4-byte Reload movl -12(%rbp), %ecx ## 4-byte Reload movl %eax, %r8d leaq L_.str.2(%rip), %rsi movb $0, %al callq _fprintf movb $1, _fail(%rip) LBB1_6: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_7 LBB1_7: ## in Loop: Header=BB1_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB1_1 LBB1_8: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _fail ## @fail .zerofill __DATA,__common,_fail,1,0 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "PASS: ft_tolower\n" L_.str.1: ## @.str.1 .asciz "FAIL: ft_tolower\n" L_.str.2: ## @.str.2 .asciz "\tChar code %d should return %d, not %d.\n" .subsections_via_symbols
the_stack_data/156527.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 0x412e848000000000 ; double 1.0E+6 .section __TEXT,__text,regular,pure_instructions .globl _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] movi d0, #0000000000000000 str d0, [sp, #8] stur wzr, [x29, #-8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] mov w9, #16960 movk w9, #15, lsl #16 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur s1, [x29, #-8] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 fmov d1, #0.50000000 fadd d0, d0, d1 adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fdiv d0, d0, d1 str d0, [sp, #16] ldr d0, [sp, #16] ldr d1, [sp, #16] fmov d2, #1.00000000 fmadd d1, d0, d1, d2 fmov d0, #4.00000000 fdiv d0, d0, d1 str d0, [sp, #16] ldr d1, [sp, #16] ldr d0, [sp, #8] fadd d0, d0, d1 str d0, [sp, #8] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB0_1 LBB0_4: ldr d0, [sp, #8] adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fdiv d0, d0, d1 mov x8, sp str d0, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%.10lf\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 0x412e848000000000 ## double 1.0E+6 LCPI0_1: .quad 0x4010000000000000 ## double 4 LCPI0_2: .quad 0x3ff0000000000000 ## double 1 LCPI0_3: .quad 0x3fe0000000000000 ## double 0.5 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) xorps %xmm0, %xmm0 movsd %xmm0, -24(%rbp) movl $0, -8(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $1000000, -8(%rbp) ## imm = 0xF4240 jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 cvtsi2sdl -8(%rbp), %xmm0 movsd LCPI0_3(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movsd %xmm0, -16(%rbp) movsd -16(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero mulsd %xmm0, %xmm1 movsd LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero addsd %xmm0, %xmm1 movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero divsd %xmm1, %xmm0 movsd %xmm0, -16(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -24(%rbp), %xmm0 movsd %xmm0, -24(%rbp) ## %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: movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 leaq L_.str(%rip), %rdi movb $1, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%.10lf\n" .subsections_via_symbols
the_stack_data/40252.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, l___const.main.s1@PAGE add x8, x8, l___const.main.s1@PAGEOFF ldr q0, [x8] stur q0, [x29, #-16] adrp x8, l___const.main.s2@PAGE add x8, x8, l___const.main.s2@PAGEOFF ldr q0, [x8] str q0, [sp, #32] ldr q0, [sp, #32] stur q0, [x29, #-16] mov w8, #9 str w8, [sp, #32] mov x8, #3 str x8, [sp, #40] ldur w8, [x29, #-16] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-8] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF str x0, [sp, #24] ; 8-byte Folded Spill bl _printf ldr x0, [sp, #24] ; 8-byte Folded Reload ldr w8, [sp, #32] ; implicit-def: $x10 mov x10, x8 ldr x8, [sp, #40] mov x9, sp str x10, [x9] str x8, [x9, #8] 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,__literal16,16byte_literals .p2align 3 ; @__const.main.s1 l___const.main.s1: .long 4 ; 0x4 .space 4 .quad 5 ; 0x5 .p2align 3 ; @__const.main.s2 l___const.main.s2: .long 7 ; 0x7 .space 4 .quad 8 ; 0x8 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d %ld\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq L___const.main.s1(%rip), %rax movq %rax, -16(%rbp) movq L___const.main.s1+8(%rip), %rax movq %rax, -8(%rbp) movq L___const.main.s2(%rip), %rax movq %rax, -32(%rbp) movq L___const.main.s2+8(%rip), %rax movq %rax, -24(%rbp) movq -32(%rbp), %rax movq %rax, -16(%rbp) movq -24(%rbp), %rax movq %rax, -8(%rbp) movl $9, -32(%rbp) movq $3, -24(%rbp) movl -16(%rbp), %esi movq -8(%rbp), %rdx leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -32(%rbp), %esi movq -24(%rbp), %rdx leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal16,16byte_literals .p2align 3 ## @__const.main.s1 L___const.main.s1: .long 4 ## 0x4 .space 4 .quad 5 ## 0x5 .p2align 3 ## @__const.main.s2 L___const.main.s2: .long 7 ## 0x7 .space 4 .quad 8 ## 0x8 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d %ld\n" .subsections_via_symbols
the_stack_data/11075728.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, _code@PAGE add x0, x0, _code@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _strlen mov x8, sp str x0, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x8, [sp, #16] ; 8-byte Folded Reload stur x8, [x29, #-8] ldur x8, [x29, #-8] blr x8 mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _code ; @code _code: .asciz "\353\026^1\311\261\r\212\006F\212&\210\006N\210&\203\306\002\342\361\353\005\350\345\377\377\377\3001hP//hs/hib\211nP\343\342\211\211S\260\341\315\013\220\200" .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Shellcode Length: %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 leaq _code(%rip), %rdi callq _strlen movq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq _code(%rip), %rax movq %rax, -8(%rbp) movb $0, %al callq *-8(%rbp) xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _code ## @code .p2align 4 _code: .asciz "\353\026^1\311\261\r\212\006F\212&\210\006N\210&\203\306\002\342\361\353\005\350\345\377\377\377\3001hP//hs/hib\211nP\343\342\211\211S\260\341\315\013\220\200" .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Shellcode Length: %d\n" .subsections_via_symbols
the_stack_data/20451533.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/819392.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] sub x8, x29, #8 str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w8, [x29, #-4] ldur w9, [x29, #-8] mul w8, w8, w9 stur w8, [x29, #-12] ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter the length and breadth of the rectangle\n" l_.str.1: ; @.str.1 .asciz "%d%d" l_.str.2: ; @.str.2 .asciz "Area of the rectangle is %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 leaq -8(%rbp), %rdx movb $0, %al callq _scanf movl -4(%rbp), %eax imull -8(%rbp), %eax movl %eax, -12(%rbp) movl -12(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter the length and breadth of the rectangle\n" L_.str.1: ## @.str.1 .asciz "%d%d" L_.str.2: ## @.str.2 .asciz "Area of the rectangle is %d" .subsections_via_symbols
the_stack_data/170454389.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _get_array_length ; -- Begin function get_array_length .p2align 2 _get_array_length: ; @get_array_length .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] mov w0, #2 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 _get_array_length ## -- Begin function get_array_length .p2align 4, 0x90 _get_array_length: ## @get_array_length .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl $2, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/24796.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #464 .cfi_def_cfa_offset 464 stp x28, x27, [sp, #432] ; 16-byte Folded Spill stp x29, x30, [sp, #448] ; 16-byte Folded Spill add x29, sp, #448 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #44] mov x9, sp sub x8, x29, #74 str x8, [sp, #32] ; 8-byte Folded Spill str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldr x0, [sp, #32] ; 8-byte Folded Reload add x1, sp, #48 mov w2, #9 bl _leggi str w0, [sp, #40] ldr w8, [sp, #40] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: add x0, sp, #48 str x0, [sp, #16] ; 8-byte Folded Spill mov w1, #9 str w1, [sp, #28] ; 4-byte Folded Spill bl _stampa_sudoku ldr x0, [sp, #16] ; 8-byte Folded Reload ldr w1, [sp, #28] ; 4-byte Folded Reload bl _verifica_sudoku str w0, [sp, #40] ldr w9, [sp, #40] ; 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_2 LBB0_2: 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_4 b LBB0_3 LBB0_3: bl ___stack_chk_fail LBB0_4: mov w0, #0 ldp x29, x30, [sp, #448] ; 16-byte Folded Reload ldp x28, x27, [sp, #432] ; 16-byte Folded Reload add sp, sp, #464 ret .cfi_endproc ; -- End function .globl _leggi ; -- Begin function leggi .p2align 2 _leggi: ; @leggi .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur x1, [x29, #-16] stur w2, [x29, #-20] mov w8, #1 stur w8, [x29, #-36] ldur x0, [x29, #-8] adrp x1, l_.str.9@PAGE add x1, x1, l_.str.9@PAGEOFF bl _fopen stur x0, [x29, #-32] ldur x8, [x29, #-32] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_24 b LBB1_1 LBB1_1: str wzr, [sp, #40] b LBB1_2 LBB1_2: ; =>This Loop Header: Depth=1 ; Child Loop BB1_6 Depth 2 ldr w8, [sp, #40] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ge mov w9, #0 str w9, [sp, #32] ; 4-byte Folded Spill tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_2 Depth=1 ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, ne str w8, [sp, #32] ; 4-byte Folded Spill b LBB1_4 LBB1_4: ; in Loop: Header=BB1_2 Depth=1 ldr w8, [sp, #32] ; 4-byte Folded Reload tbz w8, #0, LBB1_23 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_2 Depth=1 str wzr, [sp, #36] b LBB1_6 LBB1_6: ; Parent Loop BB1_2 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #36] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ge mov w9, #0 str w9, [sp, #28] ; 4-byte Folded Spill tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_6 Depth=2 ldur w8, [x29, #-36] subs w8, w8, #0 cset w8, ne str w8, [sp, #28] ; 4-byte Folded Spill b LBB1_8 LBB1_8: ; in Loop: Header=BB1_6 Depth=2 ldr w8, [sp, #28] ; 4-byte Folded Reload tbz w8, #0, LBB1_21 b LBB1_9 LBB1_9: ; in Loop: Header=BB1_6 Depth=2 ldur x8, [x29, #-16] ldrsw x9, [sp, #40] mov x10, #36 mul x9, x9, x10 add x9, x8, x9 ldrsw x11, [sp, #36] mov w8, #-1 str w8, [x9, x11, lsl #2] ldur x0, [x29, #-32] ldur x8, [x29, #-16] ldrsw x9, [sp, #40] mul x9, x9, x10 add x8, x8, x9 ldrsw x9, [sp, #36] add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x1, l_.str.10@PAGE add x1, x1, l_.str.10@PAGEOFF bl _fscanf ldur x0, [x29, #-32] bl _feof subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_12 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_6 Depth=2 ldr w8, [sp, #40] ldur w9, [x29, #-20] subs w9, w9, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_13 b LBB1_11 LBB1_11: ; in Loop: Header=BB1_6 Depth=2 ldr w8, [sp, #36] ldur w9, [x29, #-20] subs w9, w9, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_13 b LBB1_12 LBB1_12: ; in Loop: Header=BB1_6 Depth=2 ldur x8, [x29, #-16] ldrsw x9, [sp, #40] mov x10, #36 mul x9, x9, x10 add x8, x8, x9 ldrsw x9, [sp, #36] ldr w8, [x8, x9, lsl #2] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_14 b LBB1_13 LBB1_13: ; in Loop: Header=BB1_6 Depth=2 adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf stur wzr, [x29, #-36] b LBB1_19 LBB1_14: ; in Loop: Header=BB1_6 Depth=2 ldur x8, [x29, #-16] ldrsw x9, [sp, #40] mov x10, #36 mul x9, x9, x10 add x8, x8, x9 ldrsw x9, [sp, #36] ldr w8, [x8, x9, lsl #2] subs w8, w8, #1 cset w8, lt tbnz w8, #0, LBB1_16 b LBB1_15 LBB1_15: ; in Loop: Header=BB1_6 Depth=2 ldur x8, [x29, #-16] ldrsw x9, [sp, #40] mov x10, #36 mul x9, x9, x10 add x8, x8, x9 ldrsw x9, [sp, #36] ldr w8, [x8, x9, lsl #2] subs w8, w8, #9 cset w8, le tbnz w8, #0, LBB1_18 b LBB1_16 LBB1_16: ; in Loop: Header=BB1_6 Depth=2 ldur x8, [x29, #-16] ldrsw x9, [sp, #40] mov x10, #36 mul x9, x9, x10 add x8, x8, x9 ldrsw x9, [sp, #36] ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_18 b LBB1_17 LBB1_17: ; in Loop: Header=BB1_6 Depth=2 ldr w8, [sp, #40] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #36] ; 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 stur wzr, [x29, #-36] b LBB1_18 LBB1_18: ; in Loop: Header=BB1_6 Depth=2 b LBB1_19 LBB1_19: ; in Loop: Header=BB1_6 Depth=2 b LBB1_20 LBB1_20: ; in Loop: Header=BB1_6 Depth=2 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB1_6 LBB1_21: ; in Loop: Header=BB1_2 Depth=1 b LBB1_22 LBB1_22: ; in Loop: Header=BB1_2 Depth=1 ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #40] b LBB1_2 LBB1_23: ldur x0, [x29, #-32] bl _fclose b LBB1_25 LBB1_24: adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf stur wzr, [x29, #-36] b LBB1_25 LBB1_25: ldur w0, [x29, #-36] ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _stampa_sudoku ; -- Begin function stampa_sudoku .p2align 2 _stampa_sudoku: ; @stampa_sudoku .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str wzr, [sp, #16] b LBB2_1 LBB2_1: ; =>This Loop Header: Depth=1 ; Child Loop BB2_5 Depth 2 ldr w8, [sp, #16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_15 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #16] mov w10, #3 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldur w0, [x29, #-12] bl _stampa_sep_riga b LBB2_4 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 str wzr, [sp, #12] b LBB2_5 LBB2_5: ; Parent Loop BB2_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #12] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_13 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_5 Depth=2 ldr w8, [sp, #12] mov w10, #3 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_8 b LBB2_7 LBB2_7: ; in Loop: Header=BB2_5 Depth=2 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB2_8 LBB2_8: ; in Loop: Header=BB2_5 Depth=2 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] mov x10, #36 mul x9, x9, x10 add x8, x8, x9 ldrsw x9, [sp, #12] ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB2_10 b LBB2_9 LBB2_9: ; in Loop: Header=BB2_5 Depth=2 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB2_11 LBB2_10: ; in Loop: Header=BB2_5 Depth=2 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] mov x10, #36 mul x9, x9, x10 add x8, x8, x9 ldrsw x9, [sp, #12] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB2_11 LBB2_11: ; in Loop: Header=BB2_5 Depth=2 b LBB2_12 LBB2_12: ; in Loop: Header=BB2_5 Depth=2 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB2_5 LBB2_13: ; in Loop: Header=BB2_1 Depth=1 adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB2_14 LBB2_14: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB2_1 LBB2_15: ldur w0, [x29, #-12] bl _stampa_sep_riga ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _verifica_sudoku ; -- Begin function verifica_sudoku .p2align 2 _verifica_sudoku: ; @verifica_sudoku .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] mov w8, #1 stur w8, [x29, #-16] stur wzr, [x29, #-24] b LBB3_1 LBB3_1: ; =>This Loop Header: Depth=1 ; Child Loop BB3_5 Depth 2 ; Child Loop BB3_9 Depth 3 ldur w8, [x29, #-24] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge mov w9, #0 stur w9, [x29, #-44] ; 4-byte Folded Spill tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, ne stur w8, [x29, #-44] ; 4-byte Folded Spill b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-44] ; 4-byte Folded Reload tbz w8, #0, LBB3_20 b LBB3_4 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 mov w8, #1 stur w8, [x29, #-20] b LBB3_5 LBB3_5: ; Parent Loop BB3_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB3_9 Depth 3 ldur w8, [x29, #-20] subs w8, w8, #9 cset w8, gt mov w9, #0 stur w9, [x29, #-48] ; 4-byte Folded Spill tbnz w8, #0, LBB3_7 b LBB3_6 LBB3_6: ; in Loop: Header=BB3_5 Depth=2 ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, ne stur w8, [x29, #-48] ; 4-byte Folded Spill b LBB3_7 LBB3_7: ; in Loop: Header=BB3_5 Depth=2 ldur w8, [x29, #-48] ; 4-byte Folded Reload tbz w8, #0, LBB3_18 b LBB3_8 LBB3_8: ; in Loop: Header=BB3_5 Depth=2 stur wzr, [x29, #-32] stur wzr, [x29, #-28] b LBB3_9 LBB3_9: ; Parent Loop BB3_1 Depth=1 ; Parent Loop BB3_5 Depth=2 ; => This Inner Loop Header: Depth=3 ldur w8, [x29, #-28] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_14 b LBB3_10 LBB3_10: ; in Loop: Header=BB3_9 Depth=3 ldur x8, [x29, #-8] ldursw x9, [x29, #-24] mov x10, #36 mul x9, x9, x10 add x8, x8, x9 ldursw x9, [x29, #-28] ldr w8, [x8, x9, lsl #2] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB3_12 b LBB3_11 LBB3_11: ; in Loop: Header=BB3_9 Depth=3 ldur w8, [x29, #-32] add w8, w8, #1 stur w8, [x29, #-32] b LBB3_12 LBB3_12: ; in Loop: Header=BB3_9 Depth=3 b LBB3_13 LBB3_13: ; in Loop: Header=BB3_9 Depth=3 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB3_9 LBB3_14: ; in Loop: Header=BB3_5 Depth=2 ldur w8, [x29, #-32] subs w8, w8, #1 cset w8, le tbnz w8, #0, LBB3_16 b LBB3_15 LBB3_15: ; in Loop: Header=BB3_5 Depth=2 ldur w8, [x29, #-24] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-20] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-32] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _printf stur wzr, [x29, #-16] b LBB3_16 LBB3_16: ; in Loop: Header=BB3_5 Depth=2 b LBB3_17 LBB3_17: ; in Loop: Header=BB3_5 Depth=2 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB3_5 LBB3_18: ; in Loop: Header=BB3_1 Depth=1 b LBB3_19 LBB3_19: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-24] add w8, w8, #1 stur w8, [x29, #-24] b LBB3_1 LBB3_20: stur wzr, [x29, #-24] b LBB3_21 LBB3_21: ; =>This Loop Header: Depth=1 ; Child Loop BB3_25 Depth 2 ; Child Loop BB3_29 Depth 3 ldur w8, [x29, #-24] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge mov w9, #0 stur w9, [x29, #-52] ; 4-byte Folded Spill tbnz w8, #0, LBB3_23 b LBB3_22 LBB3_22: ; in Loop: Header=BB3_21 Depth=1 ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, ne stur w8, [x29, #-52] ; 4-byte Folded Spill b LBB3_23 LBB3_23: ; in Loop: Header=BB3_21 Depth=1 ldur w8, [x29, #-52] ; 4-byte Folded Reload tbz w8, #0, LBB3_40 b LBB3_24 LBB3_24: ; in Loop: Header=BB3_21 Depth=1 mov w8, #1 stur w8, [x29, #-20] b LBB3_25 LBB3_25: ; Parent Loop BB3_21 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB3_29 Depth 3 ldur w8, [x29, #-20] subs w8, w8, #9 cset w8, gt mov w9, #0 str w9, [sp, #56] ; 4-byte Folded Spill tbnz w8, #0, LBB3_27 b LBB3_26 LBB3_26: ; in Loop: Header=BB3_25 Depth=2 ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, ne str w8, [sp, #56] ; 4-byte Folded Spill b LBB3_27 LBB3_27: ; in Loop: Header=BB3_25 Depth=2 ldr w8, [sp, #56] ; 4-byte Folded Reload tbz w8, #0, LBB3_38 b LBB3_28 LBB3_28: ; in Loop: Header=BB3_25 Depth=2 stur wzr, [x29, #-32] stur wzr, [x29, #-28] b LBB3_29 LBB3_29: ; Parent Loop BB3_21 Depth=1 ; Parent Loop BB3_25 Depth=2 ; => This Inner Loop Header: Depth=3 ldur w8, [x29, #-28] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_34 b LBB3_30 LBB3_30: ; in Loop: Header=BB3_29 Depth=3 ldur x8, [x29, #-8] ldursw x9, [x29, #-28] mov x10, #36 mul x9, x9, x10 add x8, x8, x9 ldursw x9, [x29, #-24] ldr w8, [x8, x9, lsl #2] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB3_32 b LBB3_31 LBB3_31: ; in Loop: Header=BB3_29 Depth=3 ldur w8, [x29, #-32] add w8, w8, #1 stur w8, [x29, #-32] b LBB3_32 LBB3_32: ; in Loop: Header=BB3_29 Depth=3 b LBB3_33 LBB3_33: ; in Loop: Header=BB3_29 Depth=3 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB3_29 LBB3_34: ; in Loop: Header=BB3_25 Depth=2 ldur w8, [x29, #-32] subs w8, w8, #1 cset w8, le tbnz w8, #0, LBB3_36 b LBB3_35 LBB3_35: ; in Loop: Header=BB3_25 Depth=2 ldur w8, [x29, #-24] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-20] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-32] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf stur wzr, [x29, #-16] b LBB3_36 LBB3_36: ; in Loop: Header=BB3_25 Depth=2 b LBB3_37 LBB3_37: ; in Loop: Header=BB3_25 Depth=2 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB3_25 LBB3_38: ; in Loop: Header=BB3_21 Depth=1 b LBB3_39 LBB3_39: ; in Loop: Header=BB3_21 Depth=1 ldur w8, [x29, #-24] add w8, w8, #1 stur w8, [x29, #-24] b LBB3_21 LBB3_40: stur wzr, [x29, #-24] b LBB3_41 LBB3_41: ; =>This Loop Header: Depth=1 ; Child Loop BB3_45 Depth 2 ; Child Loop BB3_49 Depth 3 ; Child Loop BB3_53 Depth 4 ; Child Loop BB3_55 Depth 5 ldur w8, [x29, #-24] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge mov w9, #0 str w9, [sp, #52] ; 4-byte Folded Spill tbnz w8, #0, LBB3_43 b LBB3_42 LBB3_42: ; in Loop: Header=BB3_41 Depth=1 ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, ne str w8, [sp, #52] ; 4-byte Folded Spill b LBB3_43 LBB3_43: ; in Loop: Header=BB3_41 Depth=1 ldr w8, [sp, #52] ; 4-byte Folded Reload tbz w8, #0, LBB3_70 b LBB3_44 LBB3_44: ; in Loop: Header=BB3_41 Depth=1 stur wzr, [x29, #-28] b LBB3_45 LBB3_45: ; Parent Loop BB3_41 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB3_49 Depth 3 ; Child Loop BB3_53 Depth 4 ; Child Loop BB3_55 Depth 5 ldur w8, [x29, #-28] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge mov w9, #0 str w9, [sp, #48] ; 4-byte Folded Spill tbnz w8, #0, LBB3_47 b LBB3_46 LBB3_46: ; in Loop: Header=BB3_45 Depth=2 ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, ne str w8, [sp, #48] ; 4-byte Folded Spill b LBB3_47 LBB3_47: ; in Loop: Header=BB3_45 Depth=2 ldr w8, [sp, #48] ; 4-byte Folded Reload tbz w8, #0, LBB3_68 b LBB3_48 LBB3_48: ; in Loop: Header=BB3_45 Depth=2 mov w8, #1 stur w8, [x29, #-20] b LBB3_49 LBB3_49: ; Parent Loop BB3_41 Depth=1 ; Parent Loop BB3_45 Depth=2 ; => This Loop Header: Depth=3 ; Child Loop BB3_53 Depth 4 ; Child Loop BB3_55 Depth 5 ldur w8, [x29, #-20] subs w8, w8, #9 cset w8, gt mov w9, #0 str w9, [sp, #44] ; 4-byte Folded Spill tbnz w8, #0, LBB3_51 b LBB3_50 LBB3_50: ; in Loop: Header=BB3_49 Depth=3 ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, ne str w8, [sp, #44] ; 4-byte Folded Spill b LBB3_51 LBB3_51: ; in Loop: Header=BB3_49 Depth=3 ldr w8, [sp, #44] ; 4-byte Folded Reload tbz w8, #0, LBB3_66 b LBB3_52 LBB3_52: ; in Loop: Header=BB3_49 Depth=3 stur wzr, [x29, #-32] stur wzr, [x29, #-36] b LBB3_53 LBB3_53: ; Parent Loop BB3_41 Depth=1 ; Parent Loop BB3_45 Depth=2 ; Parent Loop BB3_49 Depth=3 ; => This Loop Header: Depth=4 ; Child Loop BB3_55 Depth 5 ldur w8, [x29, #-36] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB3_62 b LBB3_54 LBB3_54: ; in Loop: Header=BB3_53 Depth=4 stur wzr, [x29, #-40] b LBB3_55 LBB3_55: ; Parent Loop BB3_41 Depth=1 ; Parent Loop BB3_45 Depth=2 ; Parent Loop BB3_49 Depth=3 ; Parent Loop BB3_53 Depth=4 ; => This Inner Loop Header: Depth=5 ldur w8, [x29, #-40] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB3_60 b LBB3_56 LBB3_56: ; in Loop: Header=BB3_55 Depth=5 ldur x10, [x29, #-8] ldur w8, [x29, #-24] ldur w9, [x29, #-36] add w8, w8, w9 mov w9, #36 smaddl x8, w8, w9, x10 ldur w9, [x29, #-28] ldur w10, [x29, #-40] add w9, w9, w10 ldr w8, [x8, w9, sxtw #2] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB3_58 b LBB3_57 LBB3_57: ; in Loop: Header=BB3_55 Depth=5 ldur w8, [x29, #-32] add w8, w8, #1 stur w8, [x29, #-32] b LBB3_58 LBB3_58: ; in Loop: Header=BB3_55 Depth=5 b LBB3_59 LBB3_59: ; in Loop: Header=BB3_55 Depth=5 ldur w8, [x29, #-40] add w8, w8, #1 stur w8, [x29, #-40] b LBB3_55 LBB3_60: ; in Loop: Header=BB3_53 Depth=4 b LBB3_61 LBB3_61: ; in Loop: Header=BB3_53 Depth=4 ldur w8, [x29, #-36] add w8, w8, #1 stur w8, [x29, #-36] b LBB3_53 LBB3_62: ; in Loop: Header=BB3_49 Depth=3 ldur w8, [x29, #-32] subs w8, w8, #1 cset w8, le tbnz w8, #0, LBB3_64 b LBB3_63 LBB3_63: ; in Loop: Header=BB3_49 Depth=3 ldur w8, [x29, #-24] mov w9, #3 sdiv w13, w8, w9 ldur w8, [x29, #-28] sdiv w12, w8, w9 ldur w8, [x29, #-20] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-32] ; implicit-def: $x8 mov x8, x9 mov x9, sp ; implicit-def: $x11 mov x11, x13 str x11, [x9] ; implicit-def: $x11 mov x11, x12 str x11, [x9, #8] str x10, [x9, #16] str x8, [x9, #24] adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf stur wzr, [x29, #-16] b LBB3_64 LBB3_64: ; in Loop: Header=BB3_49 Depth=3 b LBB3_65 LBB3_65: ; in Loop: Header=BB3_49 Depth=3 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB3_49 LBB3_66: ; in Loop: Header=BB3_45 Depth=2 b LBB3_67 LBB3_67: ; in Loop: Header=BB3_45 Depth=2 ldur w8, [x29, #-28] add w8, w8, #3 stur w8, [x29, #-28] b LBB3_45 LBB3_68: ; in Loop: Header=BB3_41 Depth=1 b LBB3_69 LBB3_69: ; in Loop: Header=BB3_41 Depth=1 ldur w8, [x29, #-24] add w8, w8, #3 stur w8, [x29, #-24] b LBB3_41 LBB3_70: ldur w0, [x29, #-16] ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .globl _stampa_sep_riga ; -- Begin function stampa_sep_riga .p2align 2 _stampa_sep_riga: ; @stampa_sep_riga .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 LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_6 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #8] mov w10, #3 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB4_4 b LBB4_3 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf b LBB4_4 LBB4_4: ; in Loop: Header=BB4_1 Depth=1 adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB4_5 LBB4_5: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB4_1 LBB4_6: adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s" l_.str.1: ; @.str.1 .asciz "Valido: %d\n" l_.str.2: ; @.str.2 .asciz "| " l_.str.3: ; @.str.3 .asciz " " l_.str.4: ; @.str.4 .asciz "%d " l_.str.5: ; @.str.5 .asciz "|\n" l_.str.6: ; @.str.6 .asciz "+-" l_.str.7: ; @.str.7 .asciz "--" l_.str.8: ; @.str.8 .asciz "+\n" l_.str.9: ; @.str.9 .asciz "r" l_.str.10: ; @.str.10 .asciz "%d" l_.str.11: ; @.str.11 .asciz "Errore: il file contiene meno elementi di quelli attesi.\n" l_.str.12: ; @.str.12 .asciz "Errore: il valore [%d][%d] non \303\250 valido.\n" l_.str.13: ; @.str.13 .asciz "Errore di apertura del file.\n" l_.str.14: ; @.str.14 .asciz "Riga %d: il numero %d appare %d volte.\n" l_.str.15: ; @.str.15 .asciz "Colonna %d: il numero %d appare %d volte.\n" l_.str.16: ; @.str.16 .asciz "Cella [%d][%d]: il numero %d appare %d volte\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 $416, %rsp ## imm = 0x1A0 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -404(%rbp) leaq -64(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf leaq -64(%rbp), %rdi leaq -400(%rbp), %rsi movl $9, %edx callq _leggi movl %eax, -408(%rbp) cmpl $0, -408(%rbp) je LBB0_2 ## %bb.1: leaq -400(%rbp), %rdi movl $9, %esi callq _stampa_sudoku leaq -400(%rbp), %rdi movl $9, %esi callq _verifica_sudoku movl %eax, -408(%rbp) movl -408(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB0_2: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_4 ## %bb.3: xorl %eax, %eax addq $416, %rsp ## imm = 0x1A0 popq %rbp retq LBB0_4: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _leggi ## -- Begin function leggi .p2align 4, 0x90 _leggi: ## @leggi .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 $1, -36(%rbp) movq -8(%rbp), %rdi leaq L_.str.9(%rip), %rsi callq _fopen movq %rax, -32(%rbp) cmpq $0, -32(%rbp) je LBB1_24 ## %bb.1: movl $0, -40(%rbp) LBB1_2: ## =>This Loop Header: Depth=1 ## Child Loop BB1_6 Depth 2 movl -40(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -20(%rbp), %ecx movb %al, -45(%rbp) ## 1-byte Spill jge LBB1_4 ## %bb.3: ## in Loop: Header=BB1_2 Depth=1 cmpl $0, -36(%rbp) setne %al movb %al, -45(%rbp) ## 1-byte Spill LBB1_4: ## in Loop: Header=BB1_2 Depth=1 movb -45(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_5 jmp LBB1_23 LBB1_5: ## in Loop: Header=BB1_2 Depth=1 movl $0, -44(%rbp) LBB1_6: ## Parent Loop BB1_2 Depth=1 ## => This Inner Loop Header: Depth=2 movl -44(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -20(%rbp), %ecx movb %al, -46(%rbp) ## 1-byte Spill jge LBB1_8 ## %bb.7: ## in Loop: Header=BB1_6 Depth=2 cmpl $0, -36(%rbp) setne %al movb %al, -46(%rbp) ## 1-byte Spill LBB1_8: ## in Loop: Header=BB1_6 Depth=2 movb -46(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_9 jmp LBB1_21 LBB1_9: ## in Loop: Header=BB1_6 Depth=2 movq -16(%rbp), %rax movslq -40(%rbp), %rcx imulq $36, %rcx, %rcx addq %rcx, %rax movslq -44(%rbp), %rcx movl $-1, (%rax,%rcx,4) movq -32(%rbp), %rdi movq -16(%rbp), %rdx movslq -40(%rbp), %rax imulq $36, %rax, %rax addq %rax, %rdx movslq -44(%rbp), %rax shlq $2, %rax addq %rax, %rdx leaq L_.str.10(%rip), %rsi movb $0, %al callq _fscanf movq -32(%rbp), %rdi callq _feof cmpl $0, %eax je LBB1_12 ## %bb.10: ## in Loop: Header=BB1_6 Depth=2 movl -40(%rbp), %eax movl -20(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jne LBB1_13 ## %bb.11: ## in Loop: Header=BB1_6 Depth=2 movl -44(%rbp), %eax movl -20(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jne LBB1_13 LBB1_12: ## in Loop: Header=BB1_6 Depth=2 movq -16(%rbp), %rax movslq -40(%rbp), %rcx imulq $36, %rcx, %rcx addq %rcx, %rax movslq -44(%rbp), %rcx cmpl $-1, (%rax,%rcx,4) jne LBB1_14 LBB1_13: ## in Loop: Header=BB1_6 Depth=2 leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf movl $0, -36(%rbp) jmp LBB1_19 LBB1_14: ## in Loop: Header=BB1_6 Depth=2 movq -16(%rbp), %rax movslq -40(%rbp), %rcx imulq $36, %rcx, %rcx addq %rcx, %rax movslq -44(%rbp), %rcx cmpl $1, (%rax,%rcx,4) jl LBB1_16 ## %bb.15: ## in Loop: Header=BB1_6 Depth=2 movq -16(%rbp), %rax movslq -40(%rbp), %rcx imulq $36, %rcx, %rcx addq %rcx, %rax movslq -44(%rbp), %rcx cmpl $9, (%rax,%rcx,4) jle LBB1_18 LBB1_16: ## in Loop: Header=BB1_6 Depth=2 movq -16(%rbp), %rax movslq -40(%rbp), %rcx imulq $36, %rcx, %rcx addq %rcx, %rax movslq -44(%rbp), %rcx cmpl $0, (%rax,%rcx,4) je LBB1_18 ## %bb.17: ## in Loop: Header=BB1_6 Depth=2 movl -40(%rbp), %esi movl -44(%rbp), %edx leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf movl $0, -36(%rbp) LBB1_18: ## in Loop: Header=BB1_6 Depth=2 jmp LBB1_19 LBB1_19: ## in Loop: Header=BB1_6 Depth=2 jmp LBB1_20 LBB1_20: ## in Loop: Header=BB1_6 Depth=2 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB1_6 LBB1_21: ## in Loop: Header=BB1_2 Depth=1 jmp LBB1_22 LBB1_22: ## in Loop: Header=BB1_2 Depth=1 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB1_2 LBB1_23: movq -32(%rbp), %rdi callq _fclose jmp LBB1_25 LBB1_24: leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf movl $0, -36(%rbp) LBB1_25: movl -36(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _stampa_sudoku ## -- Begin function stampa_sudoku .p2align 4, 0x90 _stampa_sudoku: ## @stampa_sudoku .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl $0, -16(%rbp) LBB2_1: ## =>This Loop Header: Depth=1 ## Child Loop BB2_5 Depth 2 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jge LBB2_15 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl -16(%rbp), %eax movl $3, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB2_4 ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movl -12(%rbp), %edi callq _stampa_sep_riga LBB2_4: ## in Loop: Header=BB2_1 Depth=1 movl $0, -20(%rbp) LBB2_5: ## Parent Loop BB2_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -20(%rbp), %eax cmpl -12(%rbp), %eax jge LBB2_13 ## %bb.6: ## in Loop: Header=BB2_5 Depth=2 movl -20(%rbp), %eax movl $3, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB2_8 ## %bb.7: ## in Loop: Header=BB2_5 Depth=2 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB2_8: ## in Loop: Header=BB2_5 Depth=2 movq -8(%rbp), %rax movslq -16(%rbp), %rcx imulq $36, %rcx, %rcx addq %rcx, %rax movslq -20(%rbp), %rcx cmpl $0, (%rax,%rcx,4) jne LBB2_10 ## %bb.9: ## in Loop: Header=BB2_5 Depth=2 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB2_11 LBB2_10: ## in Loop: Header=BB2_5 Depth=2 movq -8(%rbp), %rax movslq -16(%rbp), %rcx imulq $36, %rcx, %rcx addq %rcx, %rax movslq -20(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf LBB2_11: ## in Loop: Header=BB2_5 Depth=2 jmp LBB2_12 LBB2_12: ## in Loop: Header=BB2_5 Depth=2 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB2_5 LBB2_13: ## in Loop: Header=BB2_1 Depth=1 leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf ## %bb.14: ## in Loop: Header=BB2_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB2_1 LBB2_15: movl -12(%rbp), %edi callq _stampa_sep_riga addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _verifica_sudoku ## -- Begin function verifica_sudoku .p2align 4, 0x90 _verifica_sudoku: ## @verifica_sudoku .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 $1, -16(%rbp) movl $0, -24(%rbp) LBB3_1: ## =>This Loop Header: Depth=1 ## Child Loop BB3_5 Depth 2 ## Child Loop BB3_9 Depth 3 movl -24(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -12(%rbp), %ecx movb %al, -41(%rbp) ## 1-byte Spill jge LBB3_3 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 cmpl $0, -16(%rbp) setne %al movb %al, -41(%rbp) ## 1-byte Spill LBB3_3: ## in Loop: Header=BB3_1 Depth=1 movb -41(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB3_4 jmp LBB3_20 LBB3_4: ## in Loop: Header=BB3_1 Depth=1 movl $1, -20(%rbp) LBB3_5: ## Parent Loop BB3_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB3_9 Depth 3 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $9, -20(%rbp) movb %al, -42(%rbp) ## 1-byte Spill jg LBB3_7 ## %bb.6: ## in Loop: Header=BB3_5 Depth=2 cmpl $0, -16(%rbp) setne %al movb %al, -42(%rbp) ## 1-byte Spill LBB3_7: ## in Loop: Header=BB3_5 Depth=2 movb -42(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB3_8 jmp LBB3_18 LBB3_8: ## in Loop: Header=BB3_5 Depth=2 movl $0, -32(%rbp) movl $0, -28(%rbp) LBB3_9: ## Parent Loop BB3_1 Depth=1 ## Parent Loop BB3_5 Depth=2 ## => This Inner Loop Header: Depth=3 movl -28(%rbp), %eax cmpl -12(%rbp), %eax jge LBB3_14 ## %bb.10: ## in Loop: Header=BB3_9 Depth=3 movq -8(%rbp), %rax movslq -24(%rbp), %rcx imulq $36, %rcx, %rcx addq %rcx, %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax cmpl -20(%rbp), %eax jne LBB3_12 ## %bb.11: ## in Loop: Header=BB3_9 Depth=3 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) LBB3_12: ## in Loop: Header=BB3_9 Depth=3 jmp LBB3_13 LBB3_13: ## in Loop: Header=BB3_9 Depth=3 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB3_9 LBB3_14: ## in Loop: Header=BB3_5 Depth=2 cmpl $1, -32(%rbp) jle LBB3_16 ## %bb.15: ## in Loop: Header=BB3_5 Depth=2 movl -24(%rbp), %esi movl -20(%rbp), %edx movl -32(%rbp), %ecx leaq L_.str.14(%rip), %rdi movb $0, %al callq _printf movl $0, -16(%rbp) LBB3_16: ## in Loop: Header=BB3_5 Depth=2 jmp LBB3_17 LBB3_17: ## in Loop: Header=BB3_5 Depth=2 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB3_5 LBB3_18: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_19 LBB3_19: ## in Loop: Header=BB3_1 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB3_1 LBB3_20: movl $0, -24(%rbp) LBB3_21: ## =>This Loop Header: Depth=1 ## Child Loop BB3_25 Depth 2 ## Child Loop BB3_29 Depth 3 movl -24(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -12(%rbp), %ecx movb %al, -43(%rbp) ## 1-byte Spill jge LBB3_23 ## %bb.22: ## in Loop: Header=BB3_21 Depth=1 cmpl $0, -16(%rbp) setne %al movb %al, -43(%rbp) ## 1-byte Spill LBB3_23: ## in Loop: Header=BB3_21 Depth=1 movb -43(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB3_24 jmp LBB3_40 LBB3_24: ## in Loop: Header=BB3_21 Depth=1 movl $1, -20(%rbp) LBB3_25: ## Parent Loop BB3_21 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB3_29 Depth 3 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $9, -20(%rbp) movb %al, -44(%rbp) ## 1-byte Spill jg LBB3_27 ## %bb.26: ## in Loop: Header=BB3_25 Depth=2 cmpl $0, -16(%rbp) setne %al movb %al, -44(%rbp) ## 1-byte Spill LBB3_27: ## in Loop: Header=BB3_25 Depth=2 movb -44(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB3_28 jmp LBB3_38 LBB3_28: ## in Loop: Header=BB3_25 Depth=2 movl $0, -32(%rbp) movl $0, -28(%rbp) LBB3_29: ## Parent Loop BB3_21 Depth=1 ## Parent Loop BB3_25 Depth=2 ## => This Inner Loop Header: Depth=3 movl -28(%rbp), %eax cmpl -12(%rbp), %eax jge LBB3_34 ## %bb.30: ## in Loop: Header=BB3_29 Depth=3 movq -8(%rbp), %rax movslq -28(%rbp), %rcx imulq $36, %rcx, %rcx addq %rcx, %rax movslq -24(%rbp), %rcx movl (%rax,%rcx,4), %eax cmpl -20(%rbp), %eax jne LBB3_32 ## %bb.31: ## in Loop: Header=BB3_29 Depth=3 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) LBB3_32: ## in Loop: Header=BB3_29 Depth=3 jmp LBB3_33 LBB3_33: ## in Loop: Header=BB3_29 Depth=3 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB3_29 LBB3_34: ## in Loop: Header=BB3_25 Depth=2 cmpl $1, -32(%rbp) jle LBB3_36 ## %bb.35: ## in Loop: Header=BB3_25 Depth=2 movl -24(%rbp), %esi movl -20(%rbp), %edx movl -32(%rbp), %ecx leaq L_.str.15(%rip), %rdi movb $0, %al callq _printf movl $0, -16(%rbp) LBB3_36: ## in Loop: Header=BB3_25 Depth=2 jmp LBB3_37 LBB3_37: ## in Loop: Header=BB3_25 Depth=2 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB3_25 LBB3_38: ## in Loop: Header=BB3_21 Depth=1 jmp LBB3_39 LBB3_39: ## in Loop: Header=BB3_21 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB3_21 LBB3_40: movl $0, -24(%rbp) LBB3_41: ## =>This Loop Header: Depth=1 ## Child Loop BB3_45 Depth 2 ## Child Loop BB3_49 Depth 3 ## Child Loop BB3_53 Depth 4 ## Child Loop BB3_55 Depth 5 movl -24(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -12(%rbp), %ecx movb %al, -45(%rbp) ## 1-byte Spill jge LBB3_43 ## %bb.42: ## in Loop: Header=BB3_41 Depth=1 cmpl $0, -16(%rbp) setne %al movb %al, -45(%rbp) ## 1-byte Spill LBB3_43: ## in Loop: Header=BB3_41 Depth=1 movb -45(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB3_44 jmp LBB3_70 LBB3_44: ## in Loop: Header=BB3_41 Depth=1 movl $0, -28(%rbp) LBB3_45: ## Parent Loop BB3_41 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB3_49 Depth 3 ## Child Loop BB3_53 Depth 4 ## Child Loop BB3_55 Depth 5 movl -28(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -12(%rbp), %ecx movb %al, -46(%rbp) ## 1-byte Spill jge LBB3_47 ## %bb.46: ## in Loop: Header=BB3_45 Depth=2 cmpl $0, -16(%rbp) setne %al movb %al, -46(%rbp) ## 1-byte Spill LBB3_47: ## in Loop: Header=BB3_45 Depth=2 movb -46(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB3_48 jmp LBB3_68 LBB3_48: ## in Loop: Header=BB3_45 Depth=2 movl $1, -20(%rbp) LBB3_49: ## Parent Loop BB3_41 Depth=1 ## Parent Loop BB3_45 Depth=2 ## => This Loop Header: Depth=3 ## Child Loop BB3_53 Depth 4 ## Child Loop BB3_55 Depth 5 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $9, -20(%rbp) movb %al, -47(%rbp) ## 1-byte Spill jg LBB3_51 ## %bb.50: ## in Loop: Header=BB3_49 Depth=3 cmpl $0, -16(%rbp) setne %al movb %al, -47(%rbp) ## 1-byte Spill LBB3_51: ## in Loop: Header=BB3_49 Depth=3 movb -47(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB3_52 jmp LBB3_66 LBB3_52: ## in Loop: Header=BB3_49 Depth=3 movl $0, -32(%rbp) movl $0, -36(%rbp) LBB3_53: ## Parent Loop BB3_41 Depth=1 ## Parent Loop BB3_45 Depth=2 ## Parent Loop BB3_49 Depth=3 ## => This Loop Header: Depth=4 ## Child Loop BB3_55 Depth 5 cmpl $3, -36(%rbp) jge LBB3_62 ## %bb.54: ## in Loop: Header=BB3_53 Depth=4 movl $0, -40(%rbp) LBB3_55: ## Parent Loop BB3_41 Depth=1 ## Parent Loop BB3_45 Depth=2 ## Parent Loop BB3_49 Depth=3 ## Parent Loop BB3_53 Depth=4 ## => This Inner Loop Header: Depth=5 cmpl $3, -40(%rbp) jge LBB3_60 ## %bb.56: ## in Loop: Header=BB3_55 Depth=5 movq -8(%rbp), %rax movl -24(%rbp), %ecx addl -36(%rbp), %ecx movslq %ecx, %rcx imulq $36, %rcx, %rcx addq %rcx, %rax movl -28(%rbp), %ecx addl -40(%rbp), %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %eax cmpl -20(%rbp), %eax jne LBB3_58 ## %bb.57: ## in Loop: Header=BB3_55 Depth=5 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) LBB3_58: ## in Loop: Header=BB3_55 Depth=5 jmp LBB3_59 LBB3_59: ## in Loop: Header=BB3_55 Depth=5 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB3_55 LBB3_60: ## in Loop: Header=BB3_53 Depth=4 jmp LBB3_61 LBB3_61: ## in Loop: Header=BB3_53 Depth=4 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB3_53 LBB3_62: ## in Loop: Header=BB3_49 Depth=3 cmpl $1, -32(%rbp) jle LBB3_64 ## %bb.63: ## in Loop: Header=BB3_49 Depth=3 movl -24(%rbp), %eax movl $3, %ecx cltd idivl %ecx movl %eax, %esi movl -28(%rbp), %eax movl $3, %ecx cltd idivl %ecx movl %eax, %edx movl -20(%rbp), %ecx movl -32(%rbp), %r8d leaq L_.str.16(%rip), %rdi movb $0, %al callq _printf movl $0, -16(%rbp) LBB3_64: ## in Loop: Header=BB3_49 Depth=3 jmp LBB3_65 LBB3_65: ## in Loop: Header=BB3_49 Depth=3 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB3_49 LBB3_66: ## in Loop: Header=BB3_45 Depth=2 jmp LBB3_67 LBB3_67: ## in Loop: Header=BB3_45 Depth=2 movl -28(%rbp), %eax addl $3, %eax movl %eax, -28(%rbp) jmp LBB3_45 LBB3_68: ## in Loop: Header=BB3_41 Depth=1 jmp LBB3_69 LBB3_69: ## in Loop: Header=BB3_41 Depth=1 movl -24(%rbp), %eax addl $3, %eax movl %eax, -24(%rbp) jmp LBB3_41 LBB3_70: movl -16(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _stampa_sep_riga ## -- Begin function stampa_sep_riga .p2align 4, 0x90 _stampa_sep_riga: ## @stampa_sep_riga .cfi_startproc ## %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) LBB4_1: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax cmpl -4(%rbp), %eax jge LBB4_6 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movl -8(%rbp), %eax movl $3, %ecx cltd idivl %ecx cmpl $0, %edx jne LBB4_4 ## %bb.3: ## in Loop: Header=BB4_1 Depth=1 leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf LBB4_4: ## in Loop: Header=BB4_1 Depth=1 leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf ## %bb.5: ## in Loop: Header=BB4_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB4_1 LBB4_6: leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s" L_.str.1: ## @.str.1 .asciz "Valido: %d\n" L_.str.2: ## @.str.2 .asciz "| " L_.str.3: ## @.str.3 .asciz " " L_.str.4: ## @.str.4 .asciz "%d " L_.str.5: ## @.str.5 .asciz "|\n" L_.str.6: ## @.str.6 .asciz "+-" L_.str.7: ## @.str.7 .asciz "--" L_.str.8: ## @.str.8 .asciz "+\n" L_.str.9: ## @.str.9 .asciz "r" L_.str.10: ## @.str.10 .asciz "%d" L_.str.11: ## @.str.11 .asciz "Errore: il file contiene meno elementi di quelli attesi.\n" L_.str.12: ## @.str.12 .asciz "Errore: il valore [%d][%d] non \303\250 valido.\n" L_.str.13: ## @.str.13 .asciz "Errore di apertura del file.\n" L_.str.14: ## @.str.14 .asciz "Riga %d: il numero %d appare %d volte.\n" L_.str.15: ## @.str.15 .asciz "Colonna %d: il numero %d appare %d volte.\n" L_.str.16: ## @.str.16 .asciz "Cella [%d][%d]: il numero %d appare %d volte\n" .subsections_via_symbols
the_stack_data/54825127.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _tcsendbreak ; -- Begin function tcsendbreak .p2align 2 _tcsendbreak: ; @tcsendbreak .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str w1, [sp, #8] bl ___error mov w8, #78 str w8, [x0] mov w0, #-1 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 _tcsendbreak ## -- Begin function tcsendbreak .p2align 4, 0x90 _tcsendbreak: ## @tcsendbreak .cfi_startproc ## %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) callq ___error movl $78, (%rax) movl $4294967295, %eax ## imm = 0xFFFFFFFF addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/179845.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 _kkk ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movb $0, %al callq _kkk addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/27806.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _mx_atoi ; -- Begin function mx_atoi .p2align 2 _mx_atoi: ; @mx_atoi .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] sturb wzr, [x29, #-17] sturb wzr, [x29, #-18] mov w8, #-1 str w8, [sp, #24] str w8, [sp, #20] mov w8, #1 str w8, [sp, #16] str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-16] ldrsw x9, [sp, #12] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_20 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldurb w8, [x29, #-18] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-16] ldrsw x9, [sp, #12] ldrsb w8, [x8, x9] subs w8, w8, #45 cset w8, ne tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 sturb w8, [x29, #-17] sturb w8, [x29, #-18] b LBB0_11 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-16] ldrsw x9, [sp, #12] ldrsb w0, [x8, x9] bl _mx_isdigit tbz w0, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] str w8, [sp, #24] ldr w8, [sp, #12] str w8, [sp, #20] mov w8, #1 sturb w8, [x29, #-18] sturb wzr, [x29, #-17] b LBB0_10 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-16] ldrsw x9, [sp, #12] ldrsb w0, [x8, x9] bl _mx_isspace tbnz w0, #0, LBB0_9 b LBB0_8 LBB0_8: stur wzr, [x29, #-4] b LBB0_32 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 b LBB0_18 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-16] ldrsw x9, [sp, #12] ldrsb w0, [x8, x9] bl _mx_isdigit tbz w0, #0, LBB0_16 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #24] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] str w8, [sp, #24] b LBB0_15 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] str w8, [sp, #20] ldr w8, [sp, #16] mov w9, #10 mul w8, w8, w9 str w8, [sp, #16] b LBB0_17 LBB0_16: b LBB0_20 LBB0_17: ; in Loop: Header=BB0_1 Depth=1 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_1 Depth=1 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_1 LBB0_20: ldr w8, [sp, #24] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_23 b LBB0_21 LBB0_21: ldr w8, [sp, #20] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_23 b LBB0_22 LBB0_22: stur wzr, [x29, #-4] b LBB0_32 LBB0_23: str wzr, [sp, #8] ldurb w8, [x29, #-17] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_25 b LBB0_24 LBB0_24: ldr w8, [sp, #16] mov w9, #10 sdiv w8, w8, w9 str w8, [sp, #16] b LBB0_25 LBB0_25: ldr w8, [sp, #24] str w8, [sp, #4] b LBB0_26 LBB0_26: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_29 b LBB0_27 LBB0_27: ; in Loop: Header=BB0_26 Depth=1 ldr w8, [sp, #16] ldur x9, [x29, #-16] ldrsw x10, [sp, #4] ldrsb w9, [x9, x10] subs w9, w9, #48 mul w9, w8, w9 ldr w8, [sp, #8] add w8, w8, w9 str w8, [sp, #8] ldr w8, [sp, #16] mov w9, #10 sdiv w8, w8, w9 str w8, [sp, #16] b LBB0_28 LBB0_28: ; in Loop: Header=BB0_26 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_26 LBB0_29: ldursb w8, [x29, #-17] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_31 b LBB0_30 LBB0_30: ldr w9, [sp, #8] mov w8, #0 subs w8, w8, w9 str w8, [sp, #8] b LBB0_31 LBB0_31: ldr w8, [sp, #8] stur w8, [x29, #-4] b LBB0_32 LBB0_32: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _mx_atoi ## -- Begin function mx_atoi .p2align 4, 0x90 _mx_atoi: ## @mx_atoi .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) movb $0, -17(%rbp) movb $0, -18(%rbp) movl $-1, -24(%rbp) movl $-1, -28(%rbp) movl $1, -32(%rbp) movl $0, -36(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax movslq -36(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax je LBB0_20 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 cmpb $0, -18(%rbp) jne LBB0_12 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movslq -36(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $45, %eax jne LBB0_5 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 movb $1, -17(%rbp) movb $1, -18(%rbp) jmp LBB0_11 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movslq -36(%rbp), %rcx movsbl (%rax,%rcx), %edi callq _mx_isdigit testb $1, %al jne LBB0_6 jmp LBB0_7 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl -36(%rbp), %eax movl %eax, -24(%rbp) movl -36(%rbp), %eax movl %eax, -28(%rbp) movb $1, -18(%rbp) movb $0, -17(%rbp) jmp LBB0_10 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movslq -36(%rbp), %rcx movsbl (%rax,%rcx), %edi callq _mx_isspace testb $1, %al jne LBB0_9 ## %bb.8: movl $0, -4(%rbp) jmp LBB0_32 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_10 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_11 LBB0_11: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_18 LBB0_12: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movslq -36(%rbp), %rcx movsbl (%rax,%rcx), %edi callq _mx_isdigit testb $1, %al jne LBB0_13 jmp LBB0_16 LBB0_13: ## in Loop: Header=BB0_1 Depth=1 cmpl $-1, -24(%rbp) jne LBB0_15 ## %bb.14: ## in Loop: Header=BB0_1 Depth=1 movl -36(%rbp), %eax movl %eax, -24(%rbp) LBB0_15: ## in Loop: Header=BB0_1 Depth=1 movl -36(%rbp), %eax movl %eax, -28(%rbp) imull $10, -32(%rbp), %eax movl %eax, -32(%rbp) jmp LBB0_17 LBB0_16: jmp LBB0_20 LBB0_17: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_18 LBB0_18: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_19 LBB0_19: ## in Loop: Header=BB0_1 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB0_1 LBB0_20: cmpl $-1, -24(%rbp) jne LBB0_23 ## %bb.21: cmpl $-1, -28(%rbp) jne LBB0_23 ## %bb.22: movl $0, -4(%rbp) jmp LBB0_32 LBB0_23: movl $0, -40(%rbp) cmpb $0, -17(%rbp) je LBB0_25 ## %bb.24: movl -32(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %eax, -32(%rbp) LBB0_25: movl -24(%rbp), %eax movl %eax, -44(%rbp) LBB0_26: ## =>This Inner Loop Header: Depth=1 movl -44(%rbp), %eax cmpl -28(%rbp), %eax jg LBB0_29 ## %bb.27: ## in Loop: Header=BB0_26 Depth=1 movl -32(%rbp), %eax movq -16(%rbp), %rcx movslq -44(%rbp), %rdx movsbl (%rcx,%rdx), %ecx subl $48, %ecx imull %ecx, %eax addl -40(%rbp), %eax movl %eax, -40(%rbp) movl -32(%rbp), %eax movl $10, %ecx cltd idivl %ecx movl %eax, -32(%rbp) ## %bb.28: ## in Loop: Header=BB0_26 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB0_26 LBB0_29: movsbl -17(%rbp), %eax cmpl $1, %eax jne LBB0_31 ## %bb.30: imull $-1, -40(%rbp), %eax movl %eax, -40(%rbp) LBB0_31: movl -40(%rbp), %eax movl %eax, -4(%rbp) LBB0_32: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/154832129.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _init ; -- Begin function init .p2align 2 _init: ; @init .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str w1, [sp, #4] str wzr, [sp] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp] ldr w9, [sp, #4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x9, [sp, #8] ldrsw x10, [sp] mov w8, #-1 str w8, [x9, x10, lsl #2] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB0_1 LBB0_4: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _insert ; -- Begin function insert .p2align 2 _insert: ; @insert .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str w2, [sp, #16] str w3, [sp, #12] ldur x8, [x29, #-8] ldrsw x9, [sp, #16] ldr w8, [x8, x9, lsl #2] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldur w8, [x29, #-12] ldur x9, [x29, #-8] ldrsw x10, [sp, #16] str w8, [x9, x10, lsl #2] b LBB1_18 LBB1_2: ldr w9, [sp, #16] mov w8, #2 mul w9, w8, w9 str w9, [sp, #8] ldr w9, [sp, #16] mul w8, w8, w9 add w8, w8, #1 str w8, [sp, #4] ldur x8, [x29, #-8] ldrsw x9, [sp, #8] ldr w8, [x8, x9, lsl #2] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ldur w8, [x29, #-12] ldur x9, [x29, #-8] ldrsw x10, [sp, #8] str w8, [x9, x10, lsl #2] b LBB1_17 LBB1_4: ldur x8, [x29, #-8] ldrsw x9, [sp, #4] ldr w8, [x8, x9, lsl #2] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ldur w8, [x29, #-12] ldur x9, [x29, #-8] ldrsw x10, [sp, #4] str w8, [x9, x10, lsl #2] b LBB1_16 LBB1_6: ldr w8, [sp, #8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: ldur x0, [x29, #-8] ldur w1, [x29, #-12] ldr w8, [sp, #8] mov w9, #2 sdiv w2, w8, w9 ldr w3, [sp, #12] bl _insert stur x0, [x29, #-8] b LBB1_15 LBB1_8: ldr w8, [sp, #4] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: ldur x0, [x29, #-8] ldur w1, [x29, #-12] ldr w8, [sp, #4] subs w8, w8, #1 mov w9, #2 sdiv w2, w8, w9 ldr w3, [sp, #12] bl _insert stur x0, [x29, #-8] b LBB1_14 LBB1_10: ldr w8, [sp, #8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_12 b LBB1_11 LBB1_11: ldur x0, [x29, #-8] ldur w1, [x29, #-12] ldr w2, [sp, #8] ldr w3, [sp, #12] bl _insert stur x0, [x29, #-8] b LBB1_13 LBB1_12: ldur x0, [x29, #-8] ldur w1, [x29, #-12] ldr w2, [sp, #4] ldr w3, [sp, #12] bl _insert stur x0, [x29, #-8] b LBB1_13 LBB1_13: b LBB1_14 LBB1_14: b LBB1_15 LBB1_15: b LBB1_16 LBB1_16: b LBB1_17 LBB1_17: b LBB1_18 LBB1_18: ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _preorder ; -- Begin function preorder .p2align 2 _preorder: ; @preorder .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str w2, [sp, #16] ldur w8, [x29, #-12] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldur x8, [x29, #-8] ldursw x9, [x29, #-12] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x0, [x29, #-8] ldur w9, [x29, #-12] mov w8, #2 str w8, [sp, #12] ; 4-byte Folded Spill mul w1, w8, w9 ldr w2, [sp, #16] bl _preorder ldr w8, [sp, #12] ; 4-byte Folded Reload ldur x0, [x29, #-8] ldur w9, [x29, #-12] mul w8, w8, w9 add w1, w8, #1 ldr w2, [sp, #16] bl _preorder b LBB2_2 LBB2_2: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _bt ; -- Begin function bt .p2align 2 _bt: ; @bt .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str w1, [sp, #12] str w2, [sp, #8] ldr w9, [sp, #12] mov w8, #2 mul w9, w8, w9 str w9, [sp, #4] ldr w9, [sp, #12] mul w8, w8, w9 add w8, w8, #1 str w8, [sp] ldr x8, [sp, #16] ldrsw x9, [sp, #4] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #16] ldrsw x10, [sp, #12] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_3 b LBB3_1 LBB3_1: ldr w8, [sp, #4] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: ldr x0, [sp, #16] ldr w1, [sp, #4] ldr w2, [sp, #8] bl _bt b LBB3_4 LBB3_3: stur wzr, [x29, #-4] b LBB3_9 LBB3_4: ldr x8, [sp, #16] ldrsw x9, [sp] ldr w8, [x8, x9, lsl #2] ldr x9, [sp, #16] ldrsw x10, [sp, #12] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB3_7 b LBB3_5 LBB3_5: ldr w8, [sp] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB3_7 b LBB3_6 LBB3_6: ldr x0, [sp, #16] ldr w1, [sp] ldr w2, [sp, #8] bl _bt b LBB3_8 LBB3_7: stur wzr, [x29, #-4] b LBB3_9 LBB3_8: mov w8, #1 stur w8, [x29, #-4] b LBB3_9 LBB3_9: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov x9, sp sub x8, x29, #12 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-8] ldursw x8, [x29, #-8] lsl x0, x8, #2 bl _malloc str x0, [sp, #24] ldr x0, [sp, #24] ldur w1, [x29, #-8] bl _init str wzr, [sp, #20] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_4 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf 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 ldr x0, [sp, #24] ldur w1, [x29, #-16] ldur w3, [x29, #-8] mov w2, #1 bl _insert str x0, [sp, #24] b LBB4_3 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB4_1 LBB4_4: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr x0, [sp, #24] ldur w2, [x29, #-8] mov w1, #1 str w1, [sp, #12] ; 4-byte Folded Spill bl _preorder adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldr w1, [sp, #12] ; 4-byte Folded Reload ldr x0, [sp, #24] ldur w2, [x29, #-8] bl _bt str w0, [sp, #16] ldr w8, [sp, #16] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB4_6 b LBB4_5 LBB4_5: adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf b LBB4_7 LBB4_6: adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB4_7 LBB4_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 "%d\t" l_.str.1: ; @.str.1 .asciz "Enter the number of elemenets in the tree: " l_.str.2: ; @.str.2 .asciz "%d" l_.str.3: ; @.str.3 .asciz "Enter the data to be inserted: " l_.str.4: ; @.str.4 .asciz "The tree in preorder is: " l_.str.5: ; @.str.5 .asciz "\n" l_.str.6: ; @.str.6 .asciz "The tree is a binary search tree" l_.str.7: ; @.str.7 .asciz "The tree is not a binary search tree" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _init ## -- Begin function init .p2align 4, 0x90 _init: ## @init .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl $0, -16(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl $-1, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_1 LBB0_4: popq %rbp retq .cfi_endproc ## -- End function .globl _insert ## -- Begin function insert .p2align 4, 0x90 _insert: ## @insert .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movl %ecx, -20(%rbp) movq -8(%rbp), %rax movslq -16(%rbp), %rcx cmpl $-1, (%rax,%rcx,4) jne LBB1_2 ## %bb.1: movl -12(%rbp), %edx movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl %edx, (%rax,%rcx,4) jmp LBB1_18 LBB1_2: movl -16(%rbp), %eax shll $1, %eax movl %eax, -24(%rbp) movl -16(%rbp), %eax shll $1, %eax addl $1, %eax movl %eax, -28(%rbp) movq -8(%rbp), %rax movslq -24(%rbp), %rcx cmpl $-1, (%rax,%rcx,4) jne LBB1_4 ## %bb.3: movl -12(%rbp), %edx movq -8(%rbp), %rax movslq -24(%rbp), %rcx movl %edx, (%rax,%rcx,4) jmp LBB1_17 LBB1_4: movq -8(%rbp), %rax movslq -28(%rbp), %rcx cmpl $-1, (%rax,%rcx,4) jne LBB1_6 ## %bb.5: movl -12(%rbp), %edx movq -8(%rbp), %rax movslq -28(%rbp), %rcx movl %edx, (%rax,%rcx,4) jmp LBB1_16 LBB1_6: movl -24(%rbp), %eax cmpl -20(%rbp), %eax jl LBB1_8 ## %bb.7: movq -8(%rbp), %rdi movl -12(%rbp), %esi movl -24(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edx movl -20(%rbp), %ecx callq _insert movq %rax, -8(%rbp) jmp LBB1_15 LBB1_8: movl -28(%rbp), %eax cmpl -20(%rbp), %eax jl LBB1_10 ## %bb.9: movq -8(%rbp), %rdi movl -12(%rbp), %esi movl -28(%rbp), %eax subl $1, %eax movl $2, %ecx cltd idivl %ecx movl %eax, %edx movl -20(%rbp), %ecx callq _insert movq %rax, -8(%rbp) jmp LBB1_14 LBB1_10: movl -24(%rbp), %eax cmpl -20(%rbp), %eax jge LBB1_12 ## %bb.11: movq -8(%rbp), %rdi movl -12(%rbp), %esi movl -24(%rbp), %edx movl -20(%rbp), %ecx callq _insert movq %rax, -8(%rbp) jmp LBB1_13 LBB1_12: movq -8(%rbp), %rdi movl -12(%rbp), %esi movl -28(%rbp), %edx movl -20(%rbp), %ecx callq _insert movq %rax, -8(%rbp) LBB1_13: jmp LBB1_14 LBB1_14: jmp LBB1_15 LBB1_15: jmp LBB1_16 LBB1_16: jmp LBB1_17 LBB1_17: jmp LBB1_18 LBB1_18: movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _preorder ## -- Begin function preorder .p2align 4, 0x90 _preorder: ## @preorder .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movl -12(%rbp), %eax cmpl -16(%rbp), %eax jge LBB2_2 ## %bb.1: movq -8(%rbp), %rax movslq -12(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rdi movl -12(%rbp), %esi shll $1, %esi movl -16(%rbp), %edx callq _preorder movq -8(%rbp), %rdi movl -12(%rbp), %esi shll $1, %esi addl $1, %esi movl -16(%rbp), %edx callq _preorder LBB2_2: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _bt ## -- Begin function bt .p2align 4, 0x90 _bt: ## @bt .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movl %edx, -24(%rbp) movl -20(%rbp), %eax shll $1, %eax movl %eax, -28(%rbp) movl -20(%rbp), %eax shll $1, %eax addl $1, %eax movl %eax, -32(%rbp) movq -16(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -16(%rbp), %rcx movslq -20(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax jge LBB3_3 ## %bb.1: movl -28(%rbp), %eax cmpl -24(%rbp), %eax jge LBB3_3 ## %bb.2: movq -16(%rbp), %rdi movl -28(%rbp), %esi movl -24(%rbp), %edx callq _bt jmp LBB3_4 LBB3_3: movl $0, -4(%rbp) jmp LBB3_9 LBB3_4: movq -16(%rbp), %rax movslq -32(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -16(%rbp), %rcx movslq -20(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax jle LBB3_7 ## %bb.5: movl -32(%rbp), %eax cmpl -24(%rbp), %eax jge LBB3_7 ## %bb.6: movq -16(%rbp), %rdi movl -32(%rbp), %esi movl -24(%rbp), %edx callq _bt jmp LBB3_8 LBB3_7: movl $0, -4(%rbp) jmp LBB3_9 LBB3_8: movl $1, -4(%rbp) LBB3_9: 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 $32, %rsp movl $0, -4(%rbp) leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movl -12(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) movslq -8(%rbp), %rdi shlq $2, %rdi callq _malloc movq %rax, -24(%rbp) movq -24(%rbp), %rdi movl -8(%rbp), %esi callq _init movl $0, -28(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -12(%rbp), %eax jge LBB4_4 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi leaq -16(%rbp), %rsi movb $0, %al callq _scanf movq -24(%rbp), %rdi movl -16(%rbp), %esi movl -8(%rbp), %ecx movl $1, %edx callq _insert movq %rax, -24(%rbp) ## %bb.3: ## in Loop: Header=BB4_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB4_1 LBB4_4: leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rdi movl -8(%rbp), %edx movl $1, %esi callq _preorder leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rdi movl -8(%rbp), %edx movl $1, %esi callq _bt movl %eax, -32(%rbp) cmpl $1, -32(%rbp) jne LBB4_6 ## %bb.5: leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf jmp LBB4_7 LBB4_6: leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf LBB4_7: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d\t" L_.str.1: ## @.str.1 .asciz "Enter the number of elemenets in the tree: " L_.str.2: ## @.str.2 .asciz "%d" L_.str.3: ## @.str.3 .asciz "Enter the data to be inserted: " L_.str.4: ## @.str.4 .asciz "The tree in preorder is: " L_.str.5: ## @.str.5 .asciz "\n" L_.str.6: ## @.str.6 .asciz "The tree is a binary search tree" L_.str.7: ## @.str.7 .asciz "The tree is not a binary search tree" .subsections_via_symbols
the_stack_data/22011665.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf bl _bar subs w8, w0, #42 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_3 LBB0_2: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_3 LBB0_3: 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 "[BEGIN] dylib-re-export\n" l_.str.1: ; @.str.1 .asciz "[PASS] dylib-re-export\n" l_.str.2: ; @.str.2 .asciz "[FAIL] dylib-re-export, wrong value\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 movb $0, %al callq _bar cmpl $42, %eax jne LBB0_2 ## %bb.1: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_3 LBB0_2: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB0_3: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "[BEGIN] dylib-re-export\n" L_.str.1: ## @.str.1 .asciz "[PASS] dylib-re-export\n" L_.str.2: ## @.str.2 .asciz "[FAIL] dylib-re-export, wrong value\n" .subsections_via_symbols
the_stack_data/165768837.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/86291.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _f_f ; -- Begin function f_f .p2align 2 _f_f: ; @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 str s0, [sp, #8] ldr s0, [sp, #8] fcvt d0, s0 bl _f_d ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _f_d ; -- Begin function f_d .p2align 2 _f_d: ; @f_d .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str d0, [sp, #8] ldr d0, [sp, #8] fcvt s0, d0 bl _f_f ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 fmov s0, #1.00000000 str s0, [sp, #12] ldr s0, [sp, #12] fcvt d0, s0 str d0, [sp] ldr d0, [sp] fcvt s0, d0 str s0, [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 _f_f ## -- Begin function f_f .p2align 4, 0x90 _f_f: ## @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 movss %xmm0, -8(%rbp) movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 callq _f_d movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _f_d ## -- Begin function f_d .p2align 4, 0x90 _f_d: ## @f_d .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movsd %xmm0, -8(%rbp) movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero cvtsd2ss %xmm0, %xmm0 callq _f_f addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function main LCPI2_0: .long 0x3f800000 ## float 1 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movss LCPI2_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -4(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd %xmm0, -16(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero cvtsd2ss %xmm0, %xmm0 movss %xmm0, -4(%rbp) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/104577.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] str wzr, [sp, #24] stur wzr, [x29, #-20] stur wzr, [x29, #-16] stur wzr, [x29, #-12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 bl _getchar stur w0, [x29, #-8] adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] ldur w8, [x29, #-8] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #32 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-8] subs w8, w8, #9 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #24] b LBB0_11 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #24] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 str w8, [sp, #24] ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-16] b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_12: ldur w8, [x29, #-12] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-16] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d %d %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl $0, -24(%rbp) movl $0, -20(%rbp) movl $0, -16(%rbp) movl $0, -12(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 callq _getchar movl %eax, -8(%rbp) cmpl $-1, %eax je LBB0_12 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) cmpl $10, -8(%rbp) jne LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) LBB0_4: ## in Loop: Header=BB0_1 Depth=1 cmpl $32, -8(%rbp) je LBB0_7 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 cmpl $10, -8(%rbp) je LBB0_7 ## %bb.6: ## in Loop: Header=BB0_1 Depth=1 cmpl $9, -8(%rbp) jne LBB0_8 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movl $0, -24(%rbp) jmp LBB0_11 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -24(%rbp) jne LBB0_10 ## %bb.9: ## in Loop: Header=BB0_1 Depth=1 movl $1, -24(%rbp) movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) LBB0_10: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_11 LBB0_11: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_12: movl -12(%rbp), %esi movl -16(%rbp), %edx movl -20(%rbp), %ecx leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d %d %d\n" .subsections_via_symbols
the_stack_data/40319.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _factorial ; -- Begin function factorial .p2align 2 _factorial: ; @factorial .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-12] str x1, [sp, #8] ldur w8, [x29, #-12] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x8, [sp, #8] stur x8, [x29, #-8] b LBB0_3 LBB0_2: ldur w8, [x29, #-12] subs w0, w8, #1 ldr x8, [sp, #8] ldursw x9, [x29, #-12] mul x1, x8, x9 bl _factorial stur x0, [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 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-12] ; 4-byte Folded Spill stur wzr, [x29, #-4] sub x8, x29, #8 str x8, [sp, #16] ; 8-byte Folded Spill stur wzr, [x29, #-8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x8, [sp, #16] ; 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 w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #24] ; 8-byte Folded Spill ldur w0, [x29, #-8] mov x1, #1 bl _factorial ldr x9, [sp, #24] ; 8-byte Folded Reload mov x8, sp str x9, [x8] str x0, [x8, #8] 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, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\320\222\320\262\320\265\320\264\320\270\321\202\320\265 \321\207\320\270\321\201\320\273\320\276: " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "\320\244\320\260\320\272\321\202\320\276\321\200\320\270\320\260\320\273 \321\207\320\270\321\201\320\273\320\260 %d: %ld\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _factorial ## -- Begin function factorial .p2align 4, 0x90 _factorial: ## @factorial .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -12(%rbp) movq %rsi, -24(%rbp) cmpl $1, -12(%rbp) jne LBB0_2 ## %bb.1: movq -24(%rbp), %rax movq %rax, -8(%rbp) jmp LBB0_3 LBB0_2: movl -12(%rbp), %edi subl $1, %edi movq -24(%rbp), %rsi movslq -12(%rbp), %rax imulq %rax, %rsi callq _factorial movq %rax, -8(%rbp) LBB0_3: movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $0, -8(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %eax movl %eax, -12(%rbp) ## 4-byte Spill movl -8(%rbp), %edi movl $1, %esi callq _factorial movl -12(%rbp), %esi ## 4-byte Reload movq %rax, %rdx 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 "\320\222\320\262\320\265\320\264\320\270\321\202\320\265 \321\207\320\270\321\201\320\273\320\276: " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "\320\244\320\260\320\272\321\202\320\276\321\200\320\270\320\260\320\273 \321\207\320\270\321\201\320\273\320\260 %d: %ld\n" .subsections_via_symbols
the_stack_data/7352.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, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str x0, [sp, #16] str w1, [sp, #12] mov w8, #1 str w8, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] ldr w9, [sp, #12] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #16] ldr w9, [sp, #8] subs w9, w9, #1 ldr d0, [x8, w9, sxtw #3] str d0, [sp, #24] ldr x8, [sp, #16] ldr w9, [sp, #8] add w9, w9, #1 ldr d0, [x8, w9, sxtw #3] str d0, [sp, #32] ldr d0, [sp, #24] ldr d1, [sp, #32] fadd d1, d0, d1 ldr x8, [sp, #16] ldrsw x9, [sp, #8] add x8, x8, x9, lsl #3 ldr d0, [x8] fadd d0, d0, d1 str d0, [x8] 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: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: bl ___stack_chk_fail LBB0_6: 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 _foo ## -- Begin function foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -40(%rbp) movl %esi, -44(%rbp) movl $1, -48(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -48(%rbp), %eax movl -44(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -40(%rbp), %rax movl -48(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -32(%rbp) movq -40(%rbp), %rax movl -48(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -24(%rbp) movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -24(%rbp), %xmm0 movq -40(%rbp), %rax movslq -48(%rbp), %rcx addsd (%rax,%rcx,8), %xmm0 movsd %xmm0, (%rax,%rcx,8) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB0_1 LBB0_4: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_6 ## %bb.5: addq $48, %rsp popq %rbp retq LBB0_6: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/747931.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _addr_is_reserved ; -- Begin function addr_is_reserved .p2align 2 _addr_is_reserved: ; @addr_is_reserved .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _addr_is_reserved ## -- Begin function addr_is_reserved .p2align 4, 0x90 _addr_is_reserved: ## @addr_is_reserved .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/109514204.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _Stderr_init_ASL ; -- Begin function Stderr_init_ASL .p2align 2 _Stderr_init_ASL: ; @Stderr_init_ASL .cfi_startproc ; %bb.0: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x8, [x8] adrp x9, _Stderr@PAGE str x8, [x9, _Stderr@PAGEOFF] ret .cfi_endproc ; -- End function .globl _Stderr ; @Stderr .zerofill __DATA,__common,_Stderr,8,3 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _Stderr_init_ASL ## -- Begin function Stderr_init_ASL .p2align 4, 0x90 _Stderr_init_ASL: ## @Stderr_init_ASL .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, _Stderr(%rip) popq %rbp retq .cfi_endproc ## -- End function .globl _Stderr ## @Stderr .zerofill __DATA,__common,_Stderr,8,3 .subsections_via_symbols
the_stack_data/145452536.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 eur_usd lCPI0_0: .quad 0x3ff2305faebc408e ; double 1.1368100000000001 .section __TEXT,__text,regular,pure_instructions .globl _eur_usd .p2align 2 _eur_usd: ; @eur_usd .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str d0, [sp, #8] ldr d0, [sp, #8] adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fmul d0, d0, d1 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, #-8] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp adrp x8, _artikelpreis@GOTPAGE ldr x8, [x8, _artikelpreis@GOTPAGEOFF] str x8, [sp, #16] ; 8-byte Folded Spill str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldr x8, [sp, #16] ; 8-byte Folded Reload ldr d0, [x8] bl _eur_usd mov x8, sp str d0, [x8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w0, [x29, #-8] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__const .globl _usd_kurs ; @usd_kurs .p2align 3 _usd_kurs: .quad 0x3ff2305faebc408e ; double 1.1368100000000001 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Gib einen Preis in EUR an, der in USD umgerechnet werden soll:\n> " l_.str.1: ; @.str.1 .asciz "%lf" .comm _artikelpreis,8,3 ; @artikelpreis l_.str.2: ; @.str.2 .asciz "%lf\n" .comm _ergebnis,8,3 ; @ergebnis .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 eur_usd LCPI0_0: .quad 0x3ff2305faebc408e ## double 1.1368100000000001 .section __TEXT,__text,regular,pure_instructions .globl _eur_usd .p2align 4, 0x90 _eur_usd: ## @eur_usd .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movsd %xmm0, -8(%rbp) movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -8(%rbp), %xmm0 popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi movq _artikelpreis@GOTPCREL(%rip), %rsi movb $0, %al callq _scanf movq _artikelpreis@GOTPCREL(%rip), %rax movsd (%rax), %xmm0 ## xmm0 = mem[0],zero callq _eur_usd 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,__const .globl _usd_kurs ## @usd_kurs .p2align 3 _usd_kurs: .quad 0x3ff2305faebc408e ## double 1.1368100000000001 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Gib einen Preis in EUR an, der in USD umgerechnet werden soll:\n> " L_.str.1: ## @.str.1 .asciz "%lf" .comm _artikelpreis,8,3 ## @artikelpreis L_.str.2: ## @.str.2 .asciz "%lf\n" .comm _ergebnis,8,3 ## @ergebnis .subsections_via_symbols
the_stack_data/236293.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sortedSquares ; -- Begin function sortedSquares .p2align 2 _sortedSquares: ; @sortedSquares .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] ldursw x9, [x29, #-12] mov x8, #4 mul x0, x8, x9 bl _malloc str x0, [sp, #32] str wzr, [sp, #28] ldur w8, [x29, #-12] subs w8, w8, #1 str w8, [sp, #24] ldur w8, [x29, #-12] subs w8, w8, #1 str w8, [sp, #20] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_7 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #28] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-8] ldrsw x10, [sp, #28] ldr w9, [x9, x10, lsl #2] mul w8, w8, w9 str w8, [sp, #16] ldur x8, [x29, #-8] ldrsw x9, [sp, #24] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-8] ldrsw x10, [sp, #24] ldr w9, [x9, x10, lsl #2] mul w8, w8, w9 str w8, [sp, #12] ldr w8, [sp, #16] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] ldr x9, [sp, #32] ldrsw x10, [sp, #20] str w8, [x9, x10, lsl #2] ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_5 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ldr x9, [sp, #32] ldrsw x10, [sp, #20] str w8, [x9, x10, lsl #2] ldr w8, [sp, #24] subs w8, w8, #1 str w8, [sp, #24] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #20] subs w8, w8, #1 str w8, [sp, #20] b LBB0_1 LBB0_7: ldr x0, [sp, #32] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sortedSquares ## -- Begin function sortedSquares .p2align 4, 0x90 _sortedSquares: ## @sortedSquares .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) movslq -12(%rbp), %rdi shlq $2, %rdi callq _malloc movq %rax, -32(%rbp) movl $0, -36(%rbp) movl -12(%rbp), %eax subl $1, %eax movl %eax, -40(%rbp) movl -12(%rbp), %eax subl $1, %eax movl %eax, -44(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -36(%rbp), %eax cmpl -40(%rbp), %eax jg LBB0_7 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movslq -36(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -8(%rbp), %rcx movslq -36(%rbp), %rdx imull (%rcx,%rdx,4), %eax movl %eax, -48(%rbp) movq -8(%rbp), %rax movslq -40(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -8(%rbp), %rcx movslq -40(%rbp), %rdx imull (%rcx,%rdx,4), %eax movl %eax, -52(%rbp) movl -48(%rbp), %eax cmpl -52(%rbp), %eax jle LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -48(%rbp), %edx movq -32(%rbp), %rax movslq -44(%rbp), %rcx movl %edx, (%rax,%rcx,4) movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB0_5 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movl -52(%rbp), %edx movq -32(%rbp), %rax movslq -44(%rbp), %rcx movl %edx, (%rax,%rcx,4) movl -40(%rbp), %eax addl $-1, %eax movl %eax, -40(%rbp) LBB0_5: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_6 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl -44(%rbp), %eax addl $-1, %eax movl %eax, -44(%rbp) jmp LBB0_1 LBB0_7: movq -32(%rbp), %rax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/40761759.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] str x8, [sp, #40] ; 8-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] mov w8, #10 sturb w8, [x29, #-17] mov w8, #9 sturb w8, [x29, #-18] mov w8, #1 stur w8, [x29, #-24] stur w8, [x29, #-28] stur w8, [x29, #-32] stur wzr, [x29, #-36] ldur w8, [x29, #-8] subs w8, w8, #1 cset w8, le tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldur x8, [x29, #-16] ldr x8, [x8, #8] ldrb w8, [x8] sturb w8, [x29, #-18] b LBB0_2 LBB0_2: adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x0, [x8] adrp x1, _buffer1@PAGE add x1, x1, _buffer1@PAGEOFF bl _setbuf ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, _buffer2@PAGE add x1, x1, _buffer2@PAGEOFF bl _setbuf mov w8, #1 stur w8, [x29, #-44] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x0, [x8] bl _getc stur w0, [x29, #-40] adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_52 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 ldur w8, [x29, #-36] add w8, w8, #1 stur w8, [x29, #-36] ldur w8, [x29, #-40] subs w8, w8, #13 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 b LBB0_3 LBB0_6: ; in Loop: Header=BB0_3 Depth=1 ldur w8, [x29, #-40] ldursb w9, [x29, #-18] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=1 ldur w1, [x29, #-44] ldur w2, [x29, #-24] ldur w3, [x29, #-28] ldur w4, [x29, #-32] ldur w5, [x29, #-36] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _die b LBB0_8 LBB0_8: ; in Loop: Header=BB0_3 Depth=1 ldur w8, [x29, #-44] subs w8, w8, #1 ; kill: def $x8 killed $w8 str x8, [sp, #32] ; 8-byte Folded Spill subs x8, x8, #3 cset w8, hi tbnz w8, #0, LBB0_50 ; %bb.9: ; in Loop: Header=BB0_3 Depth=1 ldr x11, [sp, #32] ; 8-byte Folded Reload adrp x10, lJTI0_1@PAGE add x10, x10, lJTI0_1@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB0_10: ; in Loop: Header=BB0_3 Depth=1 ldur w8, [x29, #-40] str w8, [sp, #28] ; 4-byte Folded Spill subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB0_16 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #28] ; 4-byte Folded Reload subs w8, w8, #34 cset w8, eq tbnz w8, #0, LBB0_19 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #28] ; 4-byte Folded Reload subs w8, w8, #44 cset w8, ne tbnz w8, #0, LBB0_20 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x1, [x8] mov w0, #48 bl _putc b LBB0_14 LBB0_14: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload ldursb w0, [x29, #-18] ldr x1, [x8] bl _putc ldur w9, [x29, #-28] mov w8, #1 add w9, w9, #1 stur w9, [x29, #-28] stur w8, [x29, #-44] b LBB0_15 LBB0_15: ; in Loop: Header=BB0_3 Depth=1 b LBB0_21 LBB0_16: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload ldur w9, [x29, #-32] add w9, w9, #1 stur w9, [x29, #-32] ldr x1, [x8] mov w0, #48 bl _putc b LBB0_17 LBB0_17: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x1, [x8] mov w0, #10 bl _putc mov w8, #1 stur w8, [x29, #-28] ldur w9, [x29, #-24] add w9, w9, #1 stur w9, [x29, #-24] stur w8, [x29, #-44] b LBB0_18 LBB0_18: ; in Loop: Header=BB0_3 Depth=1 b LBB0_21 LBB0_19: ; in Loop: Header=BB0_3 Depth=1 mov w8, #2 stur w8, [x29, #-44] b LBB0_21 LBB0_20: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload mov w9, #3 stur w9, [x29, #-44] ldur w0, [x29, #-40] ldr x1, [x8] bl _putc b LBB0_21 LBB0_21: ; in Loop: Header=BB0_3 Depth=1 b LBB0_51 LBB0_22: ; in Loop: Header=BB0_3 Depth=1 ldur w8, [x29, #-40] str w8, [sp, #24] ; 4-byte Folded Spill subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB0_27 b LBB0_23 LBB0_23: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #24] ; 4-byte Folded Reload subs w8, w8, #44 cset w8, ne tbnz w8, #0, LBB0_30 b LBB0_24 LBB0_24: ; in Loop: Header=BB0_3 Depth=1 b LBB0_25 LBB0_25: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload ldursb w0, [x29, #-18] ldr x1, [x8] bl _putc ldur w9, [x29, #-28] mov w8, #1 add w9, w9, #1 stur w9, [x29, #-28] stur w8, [x29, #-44] b LBB0_26 LBB0_26: ; in Loop: Header=BB0_3 Depth=1 b LBB0_31 LBB0_27: ; in Loop: Header=BB0_3 Depth=1 ldur w8, [x29, #-32] add w8, w8, #1 stur w8, [x29, #-32] b LBB0_28 LBB0_28: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x1, [x8] mov w0, #10 bl _putc mov w8, #1 stur w8, [x29, #-28] ldur w9, [x29, #-24] add w9, w9, #1 stur w9, [x29, #-24] stur w8, [x29, #-44] b LBB0_29 LBB0_29: ; in Loop: Header=BB0_3 Depth=1 b LBB0_31 LBB0_30: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload ldur w0, [x29, #-40] ldr x1, [x8] bl _putc b LBB0_31 LBB0_31: ; in Loop: Header=BB0_3 Depth=1 b LBB0_51 LBB0_32: ; in Loop: Header=BB0_3 Depth=1 ldur w8, [x29, #-40] str w8, [sp, #20] ; 4-byte Folded Spill subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB0_34 b LBB0_33 LBB0_33: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #20] ; 4-byte Folded Reload subs w8, w8, #34 cset w8, eq tbnz w8, #0, LBB0_35 b LBB0_36 LBB0_34: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload ldur w9, [x29, #-32] add w9, w9, #1 stur w9, [x29, #-32] ldur w0, [x29, #-40] ldr x1, [x8] bl _putc b LBB0_37 LBB0_35: ; in Loop: Header=BB0_3 Depth=1 mov w8, #4 stur w8, [x29, #-44] b LBB0_37 LBB0_36: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload ldur w0, [x29, #-40] ldr x1, [x8] bl _putc b LBB0_37 LBB0_37: ; in Loop: Header=BB0_3 Depth=1 b LBB0_51 LBB0_38: ; in Loop: Header=BB0_3 Depth=1 ldur w8, [x29, #-40] str w8, [sp, #16] ; 4-byte Folded Spill subs w8, w8, #10 cset w8, eq tbnz w8, #0, LBB0_44 b LBB0_39 LBB0_39: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #16] ; 4-byte Folded Reload subs w8, w8, #34 cset w8, eq tbnz w8, #0, LBB0_47 b LBB0_40 LBB0_40: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #16] ; 4-byte Folded Reload subs w8, w8, #44 cset w8, ne tbnz w8, #0, LBB0_48 b LBB0_41 LBB0_41: ; in Loop: Header=BB0_3 Depth=1 b LBB0_42 LBB0_42: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload ldursb w0, [x29, #-18] ldr x1, [x8] bl _putc ldur w9, [x29, #-28] mov w8, #1 add w9, w9, #1 stur w9, [x29, #-28] stur w8, [x29, #-44] b LBB0_43 LBB0_43: ; in Loop: Header=BB0_3 Depth=1 b LBB0_49 LBB0_44: ; in Loop: Header=BB0_3 Depth=1 ldur w8, [x29, #-32] add w8, w8, #1 stur w8, [x29, #-32] b LBB0_45 LBB0_45: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x1, [x8] mov w0, #10 bl _putc mov w8, #1 stur w8, [x29, #-28] ldur w9, [x29, #-24] add w9, w9, #1 stur w9, [x29, #-24] stur w8, [x29, #-44] b LBB0_46 LBB0_46: ; in Loop: Header=BB0_3 Depth=1 b LBB0_49 LBB0_47: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload mov w9, #2 stur w9, [x29, #-44] ldur w0, [x29, #-40] ldr x1, [x8] bl _putc b LBB0_49 LBB0_48: ; in Loop: Header=BB0_3 Depth=1 ldur w1, [x29, #-44] ldur w2, [x29, #-24] ldur w3, [x29, #-28] ldur w4, [x29, #-32] ldur w5, [x29, #-36] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _die b LBB0_49 LBB0_49: ; in Loop: Header=BB0_3 Depth=1 b LBB0_51 LBB0_50: ; in Loop: Header=BB0_3 Depth=1 ldur w1, [x29, #-44] ldur w2, [x29, #-24] ldur w3, [x29, #-28] ldur w4, [x29, #-32] ldur w5, [x29, #-36] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _die b LBB0_51 LBB0_51: ; in Loop: Header=BB0_3 Depth=1 b LBB0_3 LBB0_52: ldur w8, [x29, #-44] subs w8, w8, #1 ; kill: def $x8 killed $w8 str x8, [sp, #8] ; 8-byte Folded Spill subs x8, x8, #3 cset w8, hi tbnz w8, #0, LBB0_58 ; %bb.53: ldr x11, [sp, #8] ; 8-byte Folded Reload adrp x10, lJTI0_0@PAGE add x10, x10, lJTI0_0@PAGEOFF Ltmp1: adr x8, Ltmp1 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB0_54: b LBB0_58 LBB0_55: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x1, [x8] mov w0, #10 bl _putc b LBB0_58 LBB0_56: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x1, [x8] mov w0, #10 bl _putc b LBB0_58 LBB0_57: ldur w1, [x29, #-44] ldur w2, [x29, #-24] ldur w3, [x29, #-28] ldur w4, [x29, #-32] ldur w5, [x29, #-36] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _die b LBB0_58 LBB0_58: 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_54-Ltmp1 .long LBB0_57-Ltmp1 .long LBB0_55-Ltmp1 .long LBB0_56-Ltmp1 .p2align 2 lJTI0_1: .long LBB0_10-Ltmp0 .long LBB0_32-Ltmp0 .long LBB0_22-Ltmp0 .long LBB0_38-Ltmp0 ; -- End function .p2align 2 ; -- Begin function die _die: ; @die .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, #-8] stur w1, [x29, #-12] stur w2, [x29, #-16] stur w3, [x29, #-20] stur w4, [x29, #-24] stur w5, [x29, #-28] adrp x8, l_.str.4@PAGE add x8, x8, l_.str.4@PAGEOFF stur x8, [x29, #-40] adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x0, [x8] bl _fflush adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur x1, [x29, #-40] ldur x14, [x29, #-8] 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 x14, [x9] str x13, [x9, #8] str x12, [x9, #16] str x11, [x9, #24] str x10, [x9, #32] str x8, [x9, #40] bl _fprintf mov w0, #1 bl _exit .cfi_endproc ; -- End function .zerofill __DATA,__bss,_buffer1,1024,0 ; @buffer1 .zerofill __DATA,__bss,_buffer2,1024,0 ; @buffer2 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "output field separator found in input data" l_.str.1: ; @.str.1 .asciz "unexpected double quote" l_.str.2: ; @.str.2 .asciz "internal error (unexpected state)" l_.str.3: ; @.str.3 .asciz "unexpected end of quoted field" l_.str.4: ; @.str.4 .asciz "\ncsv2txt: %s (state: %d; record: %d; field: %d; line: %d; character: %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 movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movb $10, -17(%rbp) movb $9, -18(%rbp) movl $1, -24(%rbp) movl $1, -28(%rbp) movl $1, -32(%rbp) movl $0, -36(%rbp) cmpl $1, -8(%rbp) jle LBB0_2 ## %bb.1: movq -16(%rbp), %rax movq 8(%rax), %rax movb (%rax), %al movb %al, -18(%rbp) LBB0_2: movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq _buffer1(%rip), %rsi callq _setbuf movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq _buffer2(%rip), %rsi callq _setbuf movl $1, -44(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _getc movl %eax, -40(%rbp) cmpl $-1, %eax je LBB0_45 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) cmpl $13, -40(%rbp) jne LBB0_6 ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_3 Depth=1 movl -40(%rbp), %eax movsbl -18(%rbp), %ecx cmpl %ecx, %eax jne LBB0_8 ## %bb.7: ## in Loop: Header=BB0_3 Depth=1 movl -44(%rbp), %esi movl -24(%rbp), %edx movl -28(%rbp), %ecx movl -32(%rbp), %r8d movl -36(%rbp), %r9d leaq L_.str(%rip), %rdi callq _die LBB0_8: ## in Loop: Header=BB0_3 Depth=1 movl -44(%rbp), %eax decl %eax movl %eax, %ecx movq %rcx, -56(%rbp) ## 8-byte Spill subl $3, %eax ja LBB0_43 ## %bb.52: ## in Loop: Header=BB0_3 Depth=1 movq -56(%rbp), %rax ## 8-byte Reload leaq LJTI0_1(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_9: ## in Loop: Header=BB0_3 Depth=1 movl -40(%rbp), %eax movl %eax, -60(%rbp) ## 4-byte Spill subl $10, %eax je LBB0_13 jmp LBB0_57 LBB0_57: ## in Loop: Header=BB0_3 Depth=1 movl -60(%rbp), %eax ## 4-byte Reload subl $34, %eax je LBB0_16 jmp LBB0_58 LBB0_58: ## in Loop: Header=BB0_3 Depth=1 movl -60(%rbp), %eax ## 4-byte Reload subl $44, %eax jne LBB0_17 jmp LBB0_10 LBB0_10: ## in Loop: Header=BB0_3 Depth=1 movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rsi movl $48, %edi callq _putc ## %bb.11: ## in Loop: Header=BB0_3 Depth=1 movsbl -18(%rbp), %edi movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rsi callq _putc movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) movl $1, -44(%rbp) ## %bb.12: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_18 LBB0_13: ## in Loop: Header=BB0_3 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rsi movl $48, %edi callq _putc ## %bb.14: ## in Loop: Header=BB0_3 Depth=1 movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rsi movl $10, %edi callq _putc movl $1, -28(%rbp) movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) movl $1, -44(%rbp) ## %bb.15: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_18 LBB0_16: ## in Loop: Header=BB0_3 Depth=1 movl $2, -44(%rbp) jmp LBB0_18 LBB0_17: ## in Loop: Header=BB0_3 Depth=1 movl $3, -44(%rbp) movl -40(%rbp), %edi movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rsi callq _putc LBB0_18: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_44 LBB0_19: ## in Loop: Header=BB0_3 Depth=1 movl -40(%rbp), %eax movl %eax, -64(%rbp) ## 4-byte Spill subl $10, %eax je LBB0_23 jmp LBB0_56 LBB0_56: ## in Loop: Header=BB0_3 Depth=1 movl -64(%rbp), %eax ## 4-byte Reload subl $44, %eax jne LBB0_26 jmp LBB0_20 LBB0_20: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_21 LBB0_21: ## in Loop: Header=BB0_3 Depth=1 movsbl -18(%rbp), %edi movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rsi callq _putc movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) movl $1, -44(%rbp) ## %bb.22: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_27 LBB0_23: ## in Loop: Header=BB0_3 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) ## %bb.24: ## in Loop: Header=BB0_3 Depth=1 movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rsi movl $10, %edi callq _putc movl $1, -28(%rbp) movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) movl $1, -44(%rbp) ## %bb.25: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_27 LBB0_26: ## in Loop: Header=BB0_3 Depth=1 movl -40(%rbp), %edi movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rsi callq _putc LBB0_27: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_44 LBB0_28: ## in Loop: Header=BB0_3 Depth=1 movl -40(%rbp), %eax movl %eax, -68(%rbp) ## 4-byte Spill subl $10, %eax je LBB0_29 jmp LBB0_55 LBB0_55: ## in Loop: Header=BB0_3 Depth=1 movl -68(%rbp), %eax ## 4-byte Reload subl $34, %eax je LBB0_30 jmp LBB0_31 LBB0_29: ## in Loop: Header=BB0_3 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) movl -40(%rbp), %edi movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rsi callq _putc jmp LBB0_32 LBB0_30: ## in Loop: Header=BB0_3 Depth=1 movl $4, -44(%rbp) jmp LBB0_32 LBB0_31: ## in Loop: Header=BB0_3 Depth=1 movl -40(%rbp), %edi movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rsi callq _putc LBB0_32: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_44 LBB0_33: ## in Loop: Header=BB0_3 Depth=1 movl -40(%rbp), %eax movl %eax, -72(%rbp) ## 4-byte Spill subl $10, %eax je LBB0_37 jmp LBB0_53 LBB0_53: ## in Loop: Header=BB0_3 Depth=1 movl -72(%rbp), %eax ## 4-byte Reload subl $34, %eax je LBB0_40 jmp LBB0_54 LBB0_54: ## in Loop: Header=BB0_3 Depth=1 movl -72(%rbp), %eax ## 4-byte Reload subl $44, %eax jne LBB0_41 jmp LBB0_34 LBB0_34: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_35 LBB0_35: ## in Loop: Header=BB0_3 Depth=1 movsbl -18(%rbp), %edi movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rsi callq _putc movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) movl $1, -44(%rbp) ## %bb.36: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_42 LBB0_37: ## in Loop: Header=BB0_3 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) ## %bb.38: ## in Loop: Header=BB0_3 Depth=1 movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rsi movl $10, %edi callq _putc movl $1, -28(%rbp) movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) movl $1, -44(%rbp) ## %bb.39: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_42 LBB0_40: ## in Loop: Header=BB0_3 Depth=1 movl $2, -44(%rbp) movl -40(%rbp), %edi movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rsi callq _putc jmp LBB0_42 LBB0_41: ## in Loop: Header=BB0_3 Depth=1 movl -44(%rbp), %esi movl -24(%rbp), %edx movl -28(%rbp), %ecx movl -32(%rbp), %r8d movl -36(%rbp), %r9d leaq L_.str.1(%rip), %rdi callq _die LBB0_42: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_44 LBB0_43: ## in Loop: Header=BB0_3 Depth=1 movl -44(%rbp), %esi movl -24(%rbp), %edx movl -28(%rbp), %ecx movl -32(%rbp), %r8d movl -36(%rbp), %r9d leaq L_.str.2(%rip), %rdi callq _die LBB0_44: ## in Loop: Header=BB0_3 Depth=1 jmp LBB0_3 LBB0_45: movl -44(%rbp), %eax decl %eax movl %eax, %ecx movq %rcx, -80(%rbp) ## 8-byte Spill subl $3, %eax ja LBB0_50 ## %bb.51: movq -80(%rbp), %rax ## 8-byte Reload leaq LJTI0_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB0_46: jmp LBB0_50 LBB0_47: movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rsi movl $10, %edi callq _putc jmp LBB0_50 LBB0_48: movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rsi movl $10, %edi callq _putc jmp LBB0_50 LBB0_49: movl -44(%rbp), %esi movl -24(%rbp), %edx movl -28(%rbp), %ecx movl -32(%rbp), %r8d movl -36(%rbp), %r9d leaq L_.str.3(%rip), %rdi callq _die LBB0_50: xorl %eax, %eax addq $80, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L0_0_set_46, LBB0_46-LJTI0_0 .set L0_0_set_49, LBB0_49-LJTI0_0 .set L0_0_set_47, LBB0_47-LJTI0_0 .set L0_0_set_48, LBB0_48-LJTI0_0 LJTI0_0: .long L0_0_set_46 .long L0_0_set_49 .long L0_0_set_47 .long L0_0_set_48 .set L0_1_set_9, LBB0_9-LJTI0_1 .set L0_1_set_28, LBB0_28-LJTI0_1 .set L0_1_set_19, LBB0_19-LJTI0_1 .set L0_1_set_33, LBB0_33-LJTI0_1 LJTI0_1: .long L0_1_set_9 .long L0_1_set_28 .long L0_1_set_19 .long L0_1_set_33 .end_data_region ## -- End function .p2align 4, 0x90 ## -- Begin function die _die: ## @die .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movl %ecx, -20(%rbp) movl %r8d, -24(%rbp) movl %r9d, -28(%rbp) leaq L_.str.4(%rip), %rax movq %rax, -40(%rbp) movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fflush movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -40(%rbp), %rsi movq -8(%rbp), %rdx movl -12(%rbp), %ecx movl -16(%rbp), %r8d movl -20(%rbp), %r9d movl -24(%rbp), %r10d movl -28(%rbp), %r11d movq %rsp, %rax movl %r11d, 8(%rax) movl %r10d, (%rax) xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit .cfi_endproc ## -- End function .zerofill __DATA,__bss,_buffer1,1024,4 ## @buffer1 .zerofill __DATA,__bss,_buffer2,1024,4 ## @buffer2 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "output field separator found in input data" L_.str.1: ## @.str.1 .asciz "unexpected double quote" L_.str.2: ## @.str.2 .asciz "internal error (unexpected state)" L_.str.3: ## @.str.3 .asciz "unexpected end of quoted field" L_.str.4: ## @.str.4 .asciz "\ncsv2txt: %s (state: %d; record: %d; field: %d; line: %d; character: %d)\n" .subsections_via_symbols
the_stack_data/231394148.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 bl _getchar 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 "Hi NCRE-C !\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf callq _getchar xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Hi NCRE-C !\n" .subsections_via_symbols
the_stack_data/88044.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 wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_1 .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 $0, -4(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) ## 4-byte Spill movl %eax, -4(%rbp) jmp LBB0_1 .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/78513.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] ; kill: def $x8 killed $xzr stur xzr, [x29, #-16] bl _llbuild stur x0, [x29, #-16] ldur x8, [x29, #-16] str x8, [sp, #24] str xzr, [sp, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] subs x8, x8, #0 cset w8, eq mov w9, #0 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, ne str w8, [sp, #4] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #4] ; 4-byte Folded Reload tbz w8, #0, LBB0_9 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldr x8, [x8, #8] str x8, [sp, #8] ldr x8, [sp, #24] ldr x8, [x8, #8] ldr x8, [x8, #8] ldr x9, [sp, #24] str x8, [x9, #8] ldr x8, [sp, #24] ldr x9, [sp, #8] str x8, [x9, #8] ldr x8, [sp, #8] str x8, [sp, #24] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldr x9, [sp, #16] str x8, [x9, #8] b LBB0_7 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] stur x8, [x29, #-16] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldr x8, [x8, #8] str x8, [sp, #16] ldr x8, [sp, #24] ldr x8, [x8, #8] ldr x8, [x8, #8] str x8, [sp, #24] b LBB0_1 LBB0_9: ldur x0, [x29, #-16] bl _display mov w0, #0 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, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] str x8, [sp, #16] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x8, [sp, #16] ldr x8, [x8, #8] str x8, [sp, #16] b LBB1_1 LBB1_3: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _traverse ; -- Begin function traverse .p2align 2 _traverse: ; @traverse .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str w1, [sp, #20] ldr x8, [sp, #24] str x8, [sp, #8] mov w8, #2 str w8, [sp, #4] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] ldr w9, [sp, #20] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB2_4 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #8] str x8, [sp, #8] b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB2_1 LBB2_4: ldr x0, [sp, #8] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _length ; -- Begin function length .p2align 2 _length: ; @length .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] mov w8, #1 str w8, [sp, #12] ldr x8, [sp, #16] str x8, [sp] ldr x8, [sp] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: str wzr, [sp, #28] b LBB3_6 LBB3_2: b LBB3_3 LBB3_3: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB3_5 b LBB3_4 LBB3_4: ; in Loop: Header=BB3_3 Depth=1 ldr x8, [sp] ldr x8, [x8, #8] str x8, [sp] ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB3_3 LBB3_5: ldr w8, [sp, #12] str w8, [sp, #28] b LBB3_6 LBB3_6: ldr w0, [sp, #28] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _addnode ; -- Begin function addnode .p2align 2 _addnode: ; @addnode .cfi_startproc ; %bb.0: sub sp, sp, #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 x8, [x29, #-8] str x8, [sp, #8] ; 8-byte Folded Spill ldur x0, [x29, #-8] bl _length mov x1, x0 ldr x0, [sp, #8] ; 8-byte Folded Reload bl _traverse stur x0, [x29, #-24] mov x0, #16 bl _malloc str x0, [sp, #32] ldr x8, [sp, #32] ldur w9, [x29, #-12] str w9, [sp, #16] ; kill: def $x9 killed $xzr str xzr, [sp, #24] ldr q0, [sp, #16] str q0, [x8] ldur x8, [x29, #-24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: ldr x8, [sp, #32] stur x8, [x29, #-8] b LBB4_3 LBB4_2: ldr x8, [sp, #32] ldur x9, [x29, #-24] str x8, [x9, #8] b LBB4_3 LBB4_3: ldur x0, [x29, #-8] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _llbuild ; -- Begin function llbuild .p2align 2 _llbuild: ; @llbuild .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x0, #256 bl _malloc stur x0, [x29, #-8] ldur x8, [x29, #-8] mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf ; kill: def $x8 killed $xzr stur xzr, [x29, #-16] ldur x0, [x29, #-8] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _strtok str x0, [sp, #24] b LBB5_1 LBB5_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB5_5 b LBB5_2 LBB5_2: ; in Loop: Header=BB5_1 Depth=1 add x1, sp, #16 ; kill: def $x8 killed $xzr str xzr, [sp, #16] ldr x0, [sp, #24] mov w2, #10 bl _strtol mov x8, x0 str w8, [sp, #12] ldr x8, [sp, #16] ldrb w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB5_4 b LBB5_3 LBB5_3: ; in Loop: Header=BB5_1 Depth=1 ldur x0, [x29, #-16] ldr w1, [sp, #12] bl _addnode stur x0, [x29, #-16] b LBB5_4 LBB5_4: ; in Loop: Header=BB5_1 Depth=1 mov x0, #0 adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _strtok str x0, [sp, #24] b LBB5_1 LBB5_5: ldur x0, [x29, #-16] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__const .globl _BUFF ; @BUFF .p2align 2 _BUFF: .long 256 ; 0x100 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d -> " l_.str.1: ; @.str.1 .asciz "NULL\n" l_.str.2: ; @.str.2 .asciz "%[^\n]" l_.str.3: ; @.str.3 .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) movq $0, -16(%rbp) callq _llbuild movq %rax, -16(%rbp) movq -16(%rbp), %rax movq %rax, -24(%rbp) movq $0, -32(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpq $0, -24(%rbp) movb %al, -41(%rbp) ## 1-byte Spill je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rax cmpq $0, 8(%rax) setne %al movb %al, -41(%rbp) ## 1-byte Spill LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movb -41(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_4 jmp LBB0_9 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rax movq 8(%rax), %rax movq %rax, -40(%rbp) movq -24(%rbp), %rax movq 8(%rax), %rax movq 8(%rax), %rcx movq -24(%rbp), %rax movq %rcx, 8(%rax) movq -24(%rbp), %rcx movq -40(%rbp), %rax movq %rcx, 8(%rax) movq -40(%rbp), %rax movq %rax, -24(%rbp) cmpq $0, -32(%rbp) je LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rcx movq -32(%rbp), %rax movq %rcx, 8(%rax) jmp LBB0_7 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rax movq %rax, -16(%rbp) LBB0_7: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_8 LBB0_8: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rax movq 8(%rax), %rax movq %rax, -32(%rbp) movq -24(%rbp), %rax movq 8(%rax), %rax movq 8(%rax), %rax movq %rax, -24(%rbp) jmp LBB0_1 LBB0_9: movq -16(%rbp), %rdi callq _display xorl %eax, %eax 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 $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq %rax, -16(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -16(%rbp) je LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movl (%rax), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -16(%rbp) jmp LBB1_1 LBB1_3: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _traverse ## -- Begin function traverse .p2align 4, 0x90 _traverse: ## @traverse .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq -8(%rbp), %rax movq %rax, -24(%rbp) movl $2, -28(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -12(%rbp), %eax jg LBB2_4 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -24(%rbp), %rax movq 8(%rax), %rax movq %rax, -24(%rbp) ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB2_1 LBB2_4: movq -24(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _length ## -- Begin function length .p2align 4, 0x90 _length: ## @length .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 $1, -20(%rbp) movq -16(%rbp), %rax movq %rax, -32(%rbp) cmpq $0, -32(%rbp) jne LBB3_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB3_6 LBB3_2: jmp LBB3_3 LBB3_3: ## =>This Inner Loop Header: Depth=1 movq -32(%rbp), %rax cmpq $0, 8(%rax) je LBB3_5 ## %bb.4: ## in Loop: Header=BB3_3 Depth=1 movq -32(%rbp), %rax movq 8(%rax), %rax movq %rax, -32(%rbp) movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB3_3 LBB3_5: movl -20(%rbp), %eax movl %eax, -4(%rbp) LBB3_6: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _addnode ## -- Begin function addnode .p2align 4, 0x90 _addnode: ## @addnode .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq -8(%rbp), %rax movq %rax, -56(%rbp) ## 8-byte Spill movq -8(%rbp), %rdi callq _length movq -56(%rbp), %rdi ## 8-byte Reload movl %eax, %esi callq _traverse movq %rax, -24(%rbp) movl $16, %edi callq _malloc movq %rax, -32(%rbp) movq -32(%rbp), %rax movl -12(%rbp), %ecx movl %ecx, -48(%rbp) movq $0, -40(%rbp) movq -48(%rbp), %rcx movq %rcx, (%rax) movq -40(%rbp), %rcx movq %rcx, 8(%rax) cmpq $0, -24(%rbp) jne LBB4_2 ## %bb.1: movq -32(%rbp), %rax movq %rax, -8(%rbp) jmp LBB4_3 LBB4_2: movq -32(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, 8(%rax) LBB4_3: movq -8(%rbp), %rax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _llbuild ## -- Begin function llbuild .p2align 4, 0x90 _llbuild: ## @llbuild .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 $256, %edi ## imm = 0x100 callq _malloc movq %rax, -8(%rbp) movq -8(%rbp), %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _scanf movq $0, -16(%rbp) movq -8(%rbp), %rdi leaq L_.str.3(%rip), %rsi callq _strtok movq %rax, -24(%rbp) LBB5_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -24(%rbp) je LBB5_5 ## %bb.2: ## in Loop: Header=BB5_1 Depth=1 movq $0, -32(%rbp) movq -24(%rbp), %rdi leaq -32(%rbp), %rsi movl $10, %edx callq _strtol ## kill: def $eax killed $eax killed $rax movl %eax, -36(%rbp) movq -32(%rbp), %rax cmpb $0, (%rax) jne LBB5_4 ## %bb.3: ## in Loop: Header=BB5_1 Depth=1 movq -16(%rbp), %rdi movl -36(%rbp), %esi callq _addnode movq %rax, -16(%rbp) LBB5_4: ## in Loop: Header=BB5_1 Depth=1 xorl %eax, %eax movl %eax, %edi leaq L_.str.3(%rip), %rsi callq _strtok movq %rax, -24(%rbp) jmp LBB5_1 LBB5_5: movq -16(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__const .globl _BUFF ## @BUFF .p2align 2 _BUFF: .long 256 ## 0x100 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d -> " L_.str.1: ## @.str.1 .asciz "NULL\n" L_.str.2: ## @.str.2 .asciz "%[^\n]" L_.str.3: ## @.str.3 .asciz " " .subsections_via_symbols
the_stack_data/45450303.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _print_flag ; -- Begin function print_flag .p2align 2 _print_flag: ; @print_flag .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 adrp x8, _flag@PAGE add x8, x8, _flag@PAGEOFF str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #20] str w0, [sp, #16] str x1, [sp, #8] str wzr, [sp, #4] add x0, sp, #24 bl _gets ldr w8, [sp, #4] mov w9, #24867 movk w9, #25497, lsl #16 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: bl _print_flag b LBB1_2 LBB1_2: ldr w8, [sp, #20] str w8, [sp] ; 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_4 b LBB1_3 LBB1_3: bl ___stack_chk_fail LBB1_4: ldr w0, [sp] ; 4-byte Folded Reload ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _flag ; @flag _flag: .asciz "GG{Th3t_W4S_3A5Y}" .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 _print_flag ## -- Begin function print_flag .p2align 4, 0x90 _print_flag: ## @print_flag .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rdi leaq _flag(%rip), %rsi movb $0, %al callq _printf popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -52(%rbp) movl %edi, -56(%rbp) movq %rsi, -64(%rbp) movl $0, -68(%rbp) leaq -48(%rbp), %rdi callq _gets cmpl $1670996259, -68(%rbp) ## imm = 0x63996123 jne LBB1_2 ## %bb.1: callq _print_flag LBB1_2: movl -52(%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_4 ## %bb.3: movl -72(%rbp), %eax ## 4-byte Reload addq $80, %rsp popq %rbp retq LBB1_4: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __DATA,__data .globl _flag ## @flag .p2align 4 _flag: .asciz "GG{Th3t_W4S_3A5Y}" .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s\n" .subsections_via_symbols
the_stack_data/82733.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/565656.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__const .globl _TILE_I_data ; @TILE_I_data .p2align 1 _TILE_I_data: .short 11456 ; 0x2cc0 .short 19776 ; 0x4d40 .short 19776 ; 0x4d40 .short 19776 ; 0x4d40 .short 19776 ; 0x4d40 .short 19776 ; 0x4d40 .short 19776 ; 0x4d40 .short 11456 ; 0x2cc0 .short 19776 ; 0x4d40 .short 32648 ; 0x7f88 .short 32648 ; 0x7f88 .short 32648 ; 0x7f88 .short 32648 ; 0x7f88 .short 32648 ; 0x7f88 .short 32648 ; 0x7f88 .short 19776 ; 0x4d40 .short 19776 ; 0x4d40 .short 29312 ; 0x7280 .short 30368 ; 0x76a0 .short 30368 ; 0x76a0 .short 30368 ; 0x76a0 .short 30368 ; 0x76a0 .short 29312 ; 0x7280 .short 19776 ; 0x4d40 .short 19776 ; 0x4d40 .short 29280 ; 0x7260 .short 30368 ; 0x76a0 .short 30368 ; 0x76a0 .short 30368 ; 0x76a0 .short 30368 ; 0x76a0 .short 29280 ; 0x7260 .short 19776 ; 0x4d40 .short 19776 ; 0x4d40 .short 29280 ; 0x7260 .short 29312 ; 0x7280 .short 30368 ; 0x76a0 .short 30368 ; 0x76a0 .short 29312 ; 0x7280 .short 29280 ; 0x7260 .short 19776 ; 0x4d40 .short 19776 ; 0x4d40 .short 29216 ; 0x7220 .short 29280 ; 0x7260 .short 29280 ; 0x7260 .short 29280 ; 0x7260 .short 29280 ; 0x7260 .short 29216 ; 0x7220 .short 19776 ; 0x4d40 .short 19776 ; 0x4d40 .short 29184 ; 0x7200 .short 29216 ; 0x7220 .short 29216 ; 0x7220 .short 29216 ; 0x7220 .short 29216 ; 0x7220 .short 29184 ; 0x7200 .short 19776 ; 0x4d40 .short 11456 ; 0x2cc0 .short 19776 ; 0x4d40 .short 19776 ; 0x4d40 .short 19776 ; 0x4d40 .short 19776 ; 0x4d40 .short 19776 ; 0x4d40 .short 19776 ; 0x4d40 .short 11456 ; 0x2cc0 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__const .globl _TILE_I_data ## @TILE_I_data .p2align 4 _TILE_I_data: .short 11456 ## 0x2cc0 .short 19776 ## 0x4d40 .short 19776 ## 0x4d40 .short 19776 ## 0x4d40 .short 19776 ## 0x4d40 .short 19776 ## 0x4d40 .short 19776 ## 0x4d40 .short 11456 ## 0x2cc0 .short 19776 ## 0x4d40 .short 32648 ## 0x7f88 .short 32648 ## 0x7f88 .short 32648 ## 0x7f88 .short 32648 ## 0x7f88 .short 32648 ## 0x7f88 .short 32648 ## 0x7f88 .short 19776 ## 0x4d40 .short 19776 ## 0x4d40 .short 29312 ## 0x7280 .short 30368 ## 0x76a0 .short 30368 ## 0x76a0 .short 30368 ## 0x76a0 .short 30368 ## 0x76a0 .short 29312 ## 0x7280 .short 19776 ## 0x4d40 .short 19776 ## 0x4d40 .short 29280 ## 0x7260 .short 30368 ## 0x76a0 .short 30368 ## 0x76a0 .short 30368 ## 0x76a0 .short 30368 ## 0x76a0 .short 29280 ## 0x7260 .short 19776 ## 0x4d40 .short 19776 ## 0x4d40 .short 29280 ## 0x7260 .short 29312 ## 0x7280 .short 30368 ## 0x76a0 .short 30368 ## 0x76a0 .short 29312 ## 0x7280 .short 29280 ## 0x7260 .short 19776 ## 0x4d40 .short 19776 ## 0x4d40 .short 29216 ## 0x7220 .short 29280 ## 0x7260 .short 29280 ## 0x7260 .short 29280 ## 0x7260 .short 29280 ## 0x7260 .short 29216 ## 0x7220 .short 19776 ## 0x4d40 .short 19776 ## 0x4d40 .short 29184 ## 0x7200 .short 29216 ## 0x7220 .short 29216 ## 0x7220 .short 29216 ## 0x7220 .short 29216 ## 0x7220 .short 29184 ## 0x7200 .short 19776 ## 0x4d40 .short 11456 ## 0x2cc0 .short 19776 ## 0x4d40 .short 19776 ## 0x4d40 .short 19776 ## 0x4d40 .short 19776 ## 0x4d40 .short 19776 ## 0x4d40 .short 19776 ## 0x4d40 .short 11456 ## 0x2cc0 .subsections_via_symbols
the_stack_data/32949852.c