Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 KB | None | 0 0
  1. .section __TEXT,__text,regular,pure_instructions
  2. .build_version macos, 10, 14
  3. .globl _main ## -- Begin function main
  4. .p2align 4, 0x90
  5. _main: ## @main
  6. Lfunc_begin0:
  7. .cfi_startproc
  8. .cfi_personality 155, ___gxx_personality_v0
  9. .cfi_lsda 16, Lexception0
  10. ## %bb.0:
  11. pushq %rbp
  12. .cfi_def_cfa_offset 16
  13. .cfi_offset %rbp, -16
  14. movq %rsp, %rbp
  15. .cfi_def_cfa_register %rbp
  16. pushq %r14
  17. pushq %rbx
  18. subq $16, %rsp
  19. .cfi_offset %rbx, -32
  20. .cfi_offset %r14, -24
  21. movq 8(%rsi), %rdi
  22. callq _atoll
  23. cmpq $1, %rax
  24. jne LBB0_2
  25. jmp LBB0_5
  26. .p2align 4, 0x90
  27. LBB0_4: ## in Loop: Header=BB0_2 Depth=1
  28. movq %rax, %rcx
  29. shrq $63, %rcx
  30. addq %rax, %rcx
  31. sarq %rcx
  32. movq %rcx, %rax
  33. cmpq $1, %rax
  34. je LBB0_5
  35. LBB0_2: ## =>This Inner Loop Header: Depth=1
  36. testb $1, %al
  37. je LBB0_4
  38. ## %bb.3: ## in Loop: Header=BB0_2 Depth=1
  39. leaq 1(%rax,%rax,2), %rax
  40. cmpq $1, %rax
  41. jne LBB0_2
  42. LBB0_5:
  43. movq __ZNSt3__14coutE@GOTPCREL(%rip), %rdi
  44. movl $1, %esi
  45. callq __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEElsEx
  46. movq %rax, %rbx
  47. movq (%rbx), %rax
  48. movq -24(%rax), %rsi
  49. addq %rbx, %rsi
  50. leaq -24(%rbp), %r14
  51. movq %r14, %rdi
  52. callq __ZNKSt3__18ios_base6getlocEv
  53. Ltmp0:
  54. movq __ZNSt3__15ctypeIcE2idE@GOTPCREL(%rip), %rsi
  55. movq %r14, %rdi
  56. callq __ZNKSt3__16locale9use_facetERNS0_2idE
  57. Ltmp1:
  58. ## %bb.6:
  59. movq (%rax), %rcx
  60. Ltmp2:
  61. movl $10, %esi
  62. movq %rax, %rdi
  63. callq *56(%rcx)
  64. movl %eax, %r14d
  65. Ltmp3:
  66. ## %bb.7:
  67. leaq -24(%rbp), %rdi
  68. callq __ZNSt3__16localeD1Ev
  69. movsbl %r14b, %esi
  70. movq %rbx, %rdi
  71. callq __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE3putEc
  72. movq %rbx, %rdi
  73. callq __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE5flushEv
  74. xorl %eax, %eax
  75. addq $16, %rsp
  76. popq %rbx
  77. popq %r14
  78. popq %rbp
  79. retq
  80. LBB0_8:
  81. Ltmp4:
  82. movq %rax, %rbx
  83. leaq -24(%rbp), %rdi
  84. callq __ZNSt3__16localeD1Ev
  85. movq %rbx, %rdi
  86. callq __Unwind_Resume
  87. ud2
  88. Lfunc_end0:
  89. .cfi_endproc
  90. .section __TEXT,__gcc_except_tab
  91. .p2align 2
  92. GCC_except_table0:
  93. Lexception0:
  94. .byte 255 ## @LPStart Encoding = omit
  95. .byte 155 ## @TType Encoding = indirect pcrel sdata4
  96. .byte 41 ## @TType base offset
  97. .byte 3 ## Call site Encoding = udata4
  98. .byte 39 ## Call site table length
  99. Lset0 = Lfunc_begin0-Lfunc_begin0 ## >> Call Site 1 <<
  100. .long Lset0
  101. Lset1 = Ltmp0-Lfunc_begin0 ## Call between Lfunc_begin0 and Ltmp0
  102. .long Lset1
  103. .long 0 ## has no landing pad
  104. .byte 0 ## On action: cleanup
  105. Lset2 = Ltmp0-Lfunc_begin0 ## >> Call Site 2 <<
  106. .long Lset2
  107. Lset3 = Ltmp3-Ltmp0 ## Call between Ltmp0 and Ltmp3
  108. .long Lset3
  109. Lset4 = Ltmp4-Lfunc_begin0 ## jumps to Ltmp4
  110. .long Lset4
  111. .byte 0 ## On action: cleanup
  112. Lset5 = Ltmp3-Lfunc_begin0 ## >> Call Site 3 <<
  113. .long Lset5
  114. Lset6 = Lfunc_end0-Ltmp3 ## Call between Ltmp3 and Lfunc_end0
  115. .long Lset6
  116. .long 0 ## has no landing pad
  117. .byte 0 ## On action: cleanup
  118. .p2align 2
  119. ## -- End function
  120.  
  121. .subsections_via_symbols
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement