Guest User

Generated Assembly from LLVM Code

a guest
Mar 27th, 2024
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | Source Code | 0 0
  1. tarLookup:
  2. .cfi_startproc
  3. pushq %r15
  4. .cfi_def_cfa_offset 16
  5. pushq %r14
  6. .cfi_def_cfa_offset 24
  7. pushq %r12
  8. .cfi_def_cfa_offset 32
  9. pushq %rbx
  10. .cfi_def_cfa_offset 40
  11. subq $40, %rsp
  12. .cfi_def_cfa_offset 80
  13. .cfi_offset %rbx, -40
  14. .cfi_offset %r12, -32
  15. .cfi_offset %r14, -24
  16. .cfi_offset %r15, -16
  17. movq %rdi, 32(%rsp)
  18. movq %rsi, 16(%rsp)
  19. movq %rdx, 24(%rsp)
  20. movq %rdi, (%rsp)
  21. movl $257, %r12d
  22. leaq .L__unnamed_1(%rip), %rbx
  23. .p2align 4, 0x90
  24. .LBB3_1:
  25. movq (%rsp), %rdi
  26. addq %r12, %rdi
  27. movq %rbx, %rsi
  28. movl $5, %edx
  29. callq memeq@PLT
  30. testb $1, %al
  31. je .LBB3_2
  32. movq (%rsp), %rdi
  33. addq $124, %rdi
  34. movl $11, %esi
  35. callq oct2bin@PLT
  36. movl %eax, 12(%rsp)
  37. movq 16(%rsp), %rdi
  38. callq strlen@PLT
  39. leal 30(%rax), %esi
  40. movl $1016, %edi
  41. callq outb@PLT
  42. movq (%rsp), %r14
  43. movq 16(%rsp), %r15
  44. movq %r15, %rdi
  45. callq strlen@PLT
  46. movq %r14, %rdi
  47. movq %r15, %rsi
  48. movl %eax, %edx
  49. callq memeq@PLT
  50. testb $1, %al
  51. jne .LBB3_6
  52. movl 12(%rsp), %eax
  53. leal 511(%rax), %ecx
  54. addl $1022, %eax
  55. testl %ecx, %ecx
  56. cmovnsl %ecx, %eax
  57. andl $-512, %eax
  58. addl $512, %eax
  59. cltq
  60. addq %rax, (%rsp)
  61. jmp .LBB3_1
  62. .LBB3_2:
  63. xorl %eax, %eax
  64. jmp .LBB3_3
  65. .LBB3_6:
  66. movl $512, %eax
  67. addq (%rsp), %rax
  68. movq 24(%rsp), %rcx
  69. movq %rax, (%rcx)
  70. movl 12(%rsp), %eax
  71. .LBB3_3:
  72. addq $40, %rsp
  73. .cfi_def_cfa_offset 40
  74. popq %rbx
  75. .cfi_def_cfa_offset 32
  76. popq %r12
  77. .cfi_def_cfa_offset 24
  78. popq %r14
  79. .cfi_def_cfa_offset 16
  80. popq %r15
  81. .cfi_def_cfa_offset 8
  82. retq
  83. .Lfunc_end3:
  84. .size tarLookup, .Lfunc_end3-tarLookup
  85. .cfi_endproc
  86.  
  87. .type .L__unnamed_1,@object
  88. .section .rodata.str1.1,"aMS",@progbits,1
  89. .L__unnamed_1:
  90. .asciz "ustar"
  91. .size .L__unnamed_1, 6
  92.  
Advertisement
Add Comment
Please, Sign In to add comment