Last active
January 17, 2019 10:28
-
-
Save eira-fransham/7a66795aa238faab19a8bb57258c8237 to your computer and use it in GitHub Desktop.
Lightbeam fibonacci generated code before and after #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
push rbp | push rbp | |
mov rbp, rsp | mov rbp, rsp | |
sub rsp, 0x20 | sub rsp, 0x10 | |
mov edx, 1 | mov qword ptr [rsp + 8], rdi | |
xor eax, eax | mov eax, 0 | |
cmp esi, 2 | push rax | |
setb al | mov rax, qword ptr [rsp + 0x10] | |
test eax, eax | push rax | |
je 0x2d | pop rax | |
jmp 0x8e | pop rcx | |
mov edx, 1 | xor rdx, rdx | |
mov rax, rsi | cmp ecx, eax | |
add eax, 0xffffffff | sete dl | |
mov qword ptr [rsp + 8], rsi | push rdx | |
mov qword ptr [rsp], rdx | pop rax | |
mov rsi, rax | test eax, eax | |
call 0 | je 0x4d | |
add eax, dword ptr [rsp] | mov eax, 1 | |
mov rdx, rax | push rax | |
mov rax, qword ptr [rsp + 8] | jmp 0xf4 | |
add eax, 0xfffffffe | mov eax, 1 | |
mov rsi, rax | push rax | |
xor r10d, r10d | mov rax, qword ptr [rsp + 0x10] | |
cmp eax, 1 | push rax | |
seta r10b | pop rax | |
test r10d, r10d | pop rcx | |
je 0x8e | xor rdx, rdx | |
jmp 0x33 | cmp ecx, eax | |
mov rax, rdx | sete dl | |
mov rsp, rbp | push rdx | |
pop rbp | pop rax | |
ret | test eax, eax | |
| je 0x87 | |
| mov eax, 1 | |
| push rax | |
| jmp 0xf4 | |
| mov rax, qword ptr [rsp + 8] | |
| push rax | |
| mov eax, 0xffffffff | |
| push rax | |
| pop rcx | |
| add ecx, eax | |
| push rcx | |
| pop rdi | |
| sub rsp, 0 | |
| call 0 | |
| add rsp, 0 | |
| push rax | |
| mov rax, qword ptr [rsp + 0x10] | |
| push rax | |
| mov eax, 0xfffffffe | |
| push rax | |
| pop rax | |
| pop rcx | |
| add ecx, eax | |
| push rcx | |
| pop rdi | |
| sub rsp, 0 | |
| call 0 | |
| add rsp, 0 | |
| push rax | |
| pop rax | |
| pop rcx | |
| add ecx, eax | |
| push rcx | |
| pop rax | |
| mov rsp, rbp | |
| pop rbp | |
| ret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment