Advertisement
Guest User

Untitled

a guest
Nov 21st, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .file   "main.c"
  2.     .intel_syntax noprefix
  3.     .text
  4.     .globl  getNodeByValue
  5.     .type   getNodeByValue, @function
  6. getNodeByValue:
  7. .LFB0:
  8.     .cfi_startproc
  9.     push    rbp
  10.     .cfi_def_cfa_offset 16
  11.     .cfi_offset 6, -16
  12.     mov rbp, rsp
  13.     .cfi_def_cfa_register 6
  14.     mov QWORD PTR -8[rbp], rdi
  15.     mov DWORD PTR -12[rbp], esi
  16.     jmp .L2
  17. .L6:
  18.     mov rax, QWORD PTR -8[rbp]
  19.     mov eax, DWORD PTR [rax]
  20.     cmp eax, DWORD PTR -12[rbp]
  21.     jle .L3
  22.     mov rax, QWORD PTR -8[rbp]
  23.     mov rax, QWORD PTR 8[rax]
  24.     mov QWORD PTR -8[rbp], rax
  25.     jmp .L2
  26. .L3:
  27.     mov rax, QWORD PTR -8[rbp]
  28.     mov eax, DWORD PTR [rax]
  29.     cmp eax, DWORD PTR -12[rbp]
  30.     jge .L4
  31.     mov rax, QWORD PTR -8[rbp]
  32.     mov rax, QWORD PTR 16[rax]
  33.     mov QWORD PTR -8[rbp], rax
  34.     jmp .L2
  35. .L4:
  36.     mov rax, QWORD PTR -8[rbp]
  37.     jmp .L5
  38. .L2:
  39.     cmp QWORD PTR -8[rbp], 0
  40.     jne .L6
  41.     mov eax, 0
  42. .L5:
  43.     pop rbp
  44.     .cfi_def_cfa 7, 8
  45.     ret
  46.     .cfi_endproc
  47. .LFE0:
  48.     .size   getNodeByValue, .-getNodeByValue
  49.     .ident  "GCC: (Debian 6.3.0-18) 6.3.0 20170516"
  50.     .section    .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement