Stdle #144 · branching · 2026-10-28
What does this Assembly snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
.global _main.align 2_main: stp x29, x30, [sp, #-32]! mov w8, #-9 mov w9, #-2 cmp w8, w9 csel w10, w8, w9, gt sub sp, sp, #16 str x10, [sp] adrp x0, fmt@PAGE add x0, x0, fmt@PAGEOFF bl _printf add sp, sp, #16 ldp x29, x30, [sp], #32 mov w0, #0 ret.section __TEXT,__cstringfmt: .asciz "%d\n"Branching