← Back to archive

Stdle #4 · 2026-06-10

What does this log?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

.global _main
.align 2
_main:
stp x29, x30, [sp, #-32]!
mov w8, #10
str w8, [sp, #16]
loop:
ldr w9, [sp, #16]
sub w9, w9, #3
str w9, [sp, #16]
cmp w9, #0
bgt loop
ldr w10, [sp, #16]
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,__cstring
fmt: .asciz "%d\n"
Stack
4 attempts left

Answer & explanation