Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .file "main.c"
- .intel_syntax noprefix
- .text
- .globl getNodeByValue
- .type getNodeByValue, @function
- getNodeByValue:
- .LFB0:
- .cfi_startproc
- push rbp
- .cfi_def_cfa_offset 16
- .cfi_offset 6, -16
- mov rbp, rsp
- .cfi_def_cfa_register 6
- mov QWORD PTR -8[rbp], rdi
- mov DWORD PTR -12[rbp], esi
- jmp .L2
- .L6:
- mov rax, QWORD PTR -8[rbp]
- mov eax, DWORD PTR [rax]
- cmp eax, DWORD PTR -12[rbp]
- jle .L3
- mov rax, QWORD PTR -8[rbp]
- mov rax, QWORD PTR 8[rax]
- mov QWORD PTR -8[rbp], rax
- jmp .L2
- .L3:
- mov rax, QWORD PTR -8[rbp]
- mov eax, DWORD PTR [rax]
- cmp eax, DWORD PTR -12[rbp]
- jge .L4
- mov rax, QWORD PTR -8[rbp]
- mov rax, QWORD PTR 16[rax]
- mov QWORD PTR -8[rbp], rax
- jmp .L2
- .L4:
- mov rax, QWORD PTR -8[rbp]
- jmp .L5
- .L2:
- cmp QWORD PTR -8[rbp], 0
- jne .L6
- mov eax, 0
- .L5:
- pop rbp
- .cfi_def_cfa 7, 8
- ret
- .cfi_endproc
- .LFE0:
- .size getNodeByValue, .-getNodeByValue
- .ident "GCC: (Debian 6.3.0-18) 6.3.0 20170516"
- .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement