Guest User

if-else-if

a guest
Nov 17th, 2023
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. value[abi:cxx11](int): # @value[abi:cxx11](int)
  2. push r15
  3. push r14
  4. push rbx
  5. mov rbx, rdi
  6. lea r15, [rdi + 16]
  7. mov qword ptr [rdi], r15
  8. mov qword ptr [rdi + 8], 0
  9. mov byte ptr [rdi + 16], 0
  10. dec esi
  11. cmp esi, 5
  12. jae .LBB0_1
  13. movsxd rax, esi
  14. lea rdx, [rip + .Lreltable.value[abi:cxx11](int)]
  15. movsxd rcx, dword ptr [rdx + 4*rax]
  16. add rcx, rdx
  17. lea rdx, [rip + .Lswitch.table.value[abi:cxx11](int).8]
  18. mov r8, qword ptr [rdx + 8*rax]
  19. jmp .LBB0_6
  20. .LBB0_1:
  21. mov r8d, 7
  22. lea rcx, [rip + .L.str.6]
  23. .LBB0_6:
  24. mov rdi, rbx
  25. xor esi, esi
  26. xor edx, edx
  27. call std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)@PLT
  28. mov rax, rbx
  29. pop rbx
  30. pop r14
  31. pop r15
  32. ret
  33. mov r14, rax
  34. mov rdi, qword ptr [rbx]
  35. cmp rdi, r15
  36. je .LBB0_4
  37. call operator delete(void*)@PLT
  38. .LBB0_4:
  39. mov rdi, r14
  40. call _Unwind_Resume@PLT
  41. .L.str.1:
  42. .asciz "Hello"
  43.  
  44. .L.str.2:
  45. .asciz "What"
  46.  
  47. .L.str.3:
  48. .asciz "Are"
  49.  
  50. .L.str.4:
  51. .asciz "You"
  52.  
  53. .L.str.5:
  54. .asciz "Doing"
  55.  
  56. .L.str.6:
  57. .asciz "Invalid"
  58.  
  59. .Lreltable.value[abi:cxx11](int):
  60. .long .L.str.1-.Lreltable.value[abi:cxx11](int)
  61. .long .L.str.2-.Lreltable.value[abi:cxx11](int)
  62. .long .L.str.3-.Lreltable.value[abi:cxx11](int)
  63. .long .L.str.4-.Lreltable.value[abi:cxx11](int)
  64. .long .L.str.5-.Lreltable.value[abi:cxx11](int)
  65.  
  66. .Lswitch.table.value[abi:cxx11](int).8:
  67. .quad 5 # 0x5
  68. .quad 4 # 0x4
  69. .quad 3 # 0x3
  70. .quad 3 # 0x3
  71. .quad 5 # 0x5
  72.  
  73. DW.ref.__gxx_personality_v0:
  74. .quad __gxx_personality_v0
Add Comment
Please, Sign In to add comment