Impossible Assembly Decompilation
can you decompile the following code to C? func0(int*, int): push rbp mov rbp, rsp mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-24] mov eax, DWORD PTR [rax] mov DWORD PTR [rbp-4], eax mov rax, QWORD PTR [rbp-32] mov edx, DWORD PTR [rax] mov rax, QWORD PTR [rbp-24] mov DWORD PTR [rax], edx nop pop rbp ret func1(int*, int): push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov DWORD PTR [rbp-28], esi mov DWORD PTR [rbp-4], 0 jmp .L3 .L7:
A programming screenshot asks someone to decompile a long, opaque block of x86-64 assembly into C. The joke is that the code is deliberately tedious and confusing, making the request feel absurdly difficult as a reaction to overly complicated low-level code. EN: A programming screenshot asks someone to decompile a long, opaque block of x86-64 assembly into C. The joke is that the code is deliberately tedious and confusing, making the request feel absurdly difficult as a reaction to overly complicated low-level code.
- @ithueti / 8335 2022-12-02
- Type
- image
- Size
- 435×707 · 51.4 KiB
- Mood
- absurd, confusing
- Language
- en
- Added