← Back to archive

Stdle #2 · 2026-06-08

What does this log?

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

.global _main
.align 2
_main:
stp x29, x30, [sp, #-16]!
mov w19, #0
mov w20, #1
mov w21, #6
1:
sub sp, sp, #16
str x19, [sp]
adrp x0, fmt@PAGE
add x0, x0, fmt@PAGEOFF
bl _printf
add sp, sp, #16
add w22, w19, w20
mov w19, w20
mov w20, w22
subs w21, w21, #1
bne 1b
ldp x29, x30, [sp], #16
mov w0, #0
ret
.section __TEXT,__cstring
fmt: .asciz "%d\n"
Branching
6 lines
4 attempts left

Answer & explanation