.data
x:
.long 0
s:
.string "%d\n\0"
.text
.global main
main: # int main()
# {
loop: # for (;;) {
pushl $x # scanf("%d", &x);
pushl $s
addl $8, %esp
movl x, %eax # if (x == 42) break;
subl $42, %eax
jz break
pushl x # printf("%d\n", x);
pushl $s
addl $8, %esp
jmp loop # }
break:
xor %eax, %eax # return 0;
ret
# }
LmRhdGEKeDoKCS5sb25nCTAKczoKCS5zdHJpbmcgIiVkXG5cMCIKCi50ZXh0Ci5nbG9iYWwgbWFpbgptYWluOgkJCQkjIGludCBtYWluKCkKCQkJCSMgewpsb29wOgkJCQkjIAlmb3IgKDs7KSB7CglwdXNobAkkeAkJIyAJCXNjYW5mKCIlZCIsICZ4KTsKCXB1c2hsCSRzCgljYWxsCXNjYW5mCglhZGRsCSQ4LCAlZXNwCgoJbW92bAl4LCAlZWF4CQkjIAkJaWYgKHggPT0gNDIpIGJyZWFrOwoJc3VibAkkNDIsICVlYXgKCWp6CWJyZWFrCgoJcHVzaGwJeAkJIyAJCXByaW50ZigiJWRcbiIsIHgpOwoJcHVzaGwJJHMKCWNhbGwJcHJpbnRmCglhZGRsCSQ4LCAlZXNwCgoJam1wCWxvb3AJCSMgCX0KYnJlYWs6CgoJeG9yCSVlYXgsICVlYXgJIyAJcmV0dXJuIDA7CglyZXQKCQkJCSMgfQo=