fail.out: (__TEXT,__text) section __Z11Foo_va_listiPKcz: 0000000100003e20 sub sp, sp, #0x40 0000000100003e24 stp x29, x30, [sp, #0x30] 0000000100003e28 add x29, sp, #0x30 0000000100003e2c stur w0, [x29, #-0x4] 0000000100003e30 stur x1, [x29, #-0x10] 0000000100003e34 add x9, sp, #0x18 0000000100003e38 add x8, x29, #0x10 0000000100003e3c str x8, [x9] 0000000100003e40 str wzr, [sp, #0xc] 0000000100003e44 ldr w8, [sp, #0xc] 0000000100003e48 ldur w9, [x29, #-0x4] 0000000100003e4c subs w8, w8, w9 0000000100003e50 b.ge 0x100003e98 0000000100003e54 ldr x9, [sp, #0x18] 0000000100003e58 ldr w8, [x9] 0000000100003e5c add x9, x9, #0x8 0000000100003e60 str x9, [sp, #0x18] 0000000100003e64 str w8, [sp, #0x8] 0000000100003e68 ldrsw x8, [sp, #0x8] 0000000100003e6c str x8, [sp, #0x10] 0000000100003e70 ldr x8, [sp, #0x10] 0000000100003e74 adrp x0, 0 ; 0x100003000 0000000100003e78 add x0, x0, #0xf74 ; literal pool for: "Value = 0x%llx\n" 0000000100003e7c mov x9, sp 0000000100003e80 str x8, [x9] 0000000100003e84 bl 0x100003f44 ; symbol stub for: _printf 0000000100003e88 ldr w8, [sp, #0xc] 0000000100003e8c add w8, w8, #0x1 0000000100003e90 str w8, [sp, #0xc] 0000000100003e94 b 0x100003e44 0000000100003e98 ldp x29, x30, [sp, #0x30] 0000000100003e9c add sp, sp, #0x40 0000000100003ea0 ret _main: 0000000100003ea4 sub sp, sp, #0x70 0000000100003ea8 stp x29, x30, [sp, #0x60] 0000000100003eac add x29, sp, #0x60 0000000100003eb0 mov w2, #0x0 0000000100003eb4 stur w2, [x29, #-0x8] 0000000100003eb8 stur wzr, [x29, #-0x4] 0000000100003ebc mov w0, #0x10 0000000100003ec0 adrp x1, 0 ; 0x100003000 0000000100003ec4 add x1, x1, #0xf84 ; literal pool for: "0123456789abcdef= %x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x\n" 0000000100003ec8 mov w3, #0x1 0000000100003ecc mov w4, #0x2 0000000100003ed0 mov w5, #0x3 0000000100003ed4 mov w6, #0x4 0000000100003ed8 mov w7, #0x5 0000000100003edc mov x9, sp 0000000100003ee0 mov w8, #0x6 0000000100003ee4 str w8, [x9] 0000000100003ee8 mov w8, #0x7 0000000100003eec str w8, [x9, #0x8] 0000000100003ef0 mov w8, #0x8 0000000100003ef4 str w8, [x9, #0x10] 0000000100003ef8 mov w8, #0x9 0000000100003efc str w8, [x9, #0x18] 0000000100003f00 mov w8, #0xa 0000000100003f04 str w8, [x9, #0x20] 0000000100003f08 mov w8, #0xb 0000000100003f0c str w8, [x9, #0x28] 0000000100003f10 mov w8, #0xc 0000000100003f14 str w8, [x9, #0x30] 0000000100003f18 mov w8, #0xd 0000000100003f1c str w8, [x9, #0x38] 0000000100003f20 mov w8, #0xe 0000000100003f24 str w8, [x9, #0x40] 0000000100003f28 mov w8, #0xf 0000000100003f2c str w8, [x9, #0x48] 0000000100003f30 bl __Z11Foo_va_listiPKcz 0000000100003f34 ldur w0, [x29, #-0x8] 0000000100003f38 ldp x29, x30, [sp, #0x60] 0000000100003f3c add sp, sp, #0x70 0000000100003f40 ret