Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.61 KB | None | 0 0
  1. .text
  2. .intel_syntax noprefix
  3. .file "rust_out.cgu-0.rs"
  4. .section ".text._ZN40_$LT$alloc..raw_vec..RawVec$LT$T$GT$$GT$6double17h17920b8a90cfe6cfE","ax",@progbits
  5. .p2align 4, 0x90
  6. .type _ZN40_$LT$alloc..raw_vec..RawVec$LT$T$GT$$GT$6double17h17920b8a90cfe6cfE,@function
  7. _ZN40_$LT$alloc..raw_vec..RawVec$LT$T$GT$$GT$6double17h17920b8a90cfe6cfE:
  8. .cfi_startproc
  9. push r14
  10. .Ltmp0:
  11. .cfi_def_cfa_offset 16
  12. push rbx
  13. .Ltmp1:
  14. .cfi_def_cfa_offset 24
  15. push rax
  16. .Ltmp2:
  17. .cfi_def_cfa_offset 32
  18. .Ltmp3:
  19. .cfi_offset rbx, -24
  20. .Ltmp4:
  21. .cfi_offset r14, -16
  22. mov rbx, rdi
  23. mov rsi, qword ptr [rbx + 8]
  24. test rsi, rsi
  25. je .LBB0_2
  26. mov rdi, qword ptr [rbx]
  27. lea r14, [rsi + rsi]
  28. mov ecx, 1
  29. mov rdx, r14
  30. call __rust_reallocate@PLT
  31. jmp .LBB0_3
  32. .LBB0_2:
  33. mov r14d, 4
  34. mov edi, 4
  35. mov esi, 1
  36. call __rust_allocate@PLT
  37. .LBB0_3:
  38. test rax, rax
  39. je .LBB0_5
  40. mov qword ptr [rbx], rax
  41. mov qword ptr [rbx + 8], r14
  42. add rsp, 8
  43. pop rbx
  44. pop r14
  45. ret
  46. .LBB0_5:
  47. call _ZN5alloc3oom3oom17he12d244509df7328E@PLT
  48. .Lfunc_end0:
  49. .size _ZN40_$LT$alloc..raw_vec..RawVec$LT$T$GT$$GT$6double17h17920b8a90cfe6cfE, .Lfunc_end0-_ZN40_$LT$alloc..raw_vec..RawVec$LT$T$GT$$GT$6double17h17920b8a90cfe6cfE
  50. .cfi_endproc
  51.  
  52. .section .text._ZN8rust_out4main17ha208b69ccbc11839E,"ax",@progbits
  53. .p2align 4, 0x90
  54. .type _ZN8rust_out4main17ha208b69ccbc11839E,@function
  55. _ZN8rust_out4main17ha208b69ccbc11839E:
  56. .Lfunc_begin0:
  57. .cfi_startproc
  58. .cfi_personality 155, DW.ref.rust_eh_personality
  59. .cfi_lsda 27, .Lexception0
  60. push rbp
  61. .Ltmp25:
  62. .cfi_def_cfa_offset 16
  63. push r15
  64. .Ltmp26:
  65. .cfi_def_cfa_offset 24
  66. push r14
  67. .Ltmp27:
  68. .cfi_def_cfa_offset 32
  69. push r13
  70. .Ltmp28:
  71. .cfi_def_cfa_offset 40
  72. push r12
  73. .Ltmp29:
  74. .cfi_def_cfa_offset 48
  75. push rbx
  76. .Ltmp30:
  77. .cfi_def_cfa_offset 56
  78. sub rsp, 40
  79. .Ltmp31:
  80. .cfi_def_cfa_offset 96
  81. .Ltmp32:
  82. .cfi_offset rbx, -56
  83. .Ltmp33:
  84. .cfi_offset r12, -48
  85. .Ltmp34:
  86. .cfi_offset r13, -40
  87. .Ltmp35:
  88. .cfi_offset r14, -32
  89. .Ltmp36:
  90. .cfi_offset r15, -24
  91. .Ltmp37:
  92. .cfi_offset rbp, -16
  93. mov qword ptr [rsp], 1
  94. xorps xmm0, xmm0
  95. movups xmmword ptr [rsp + 8], xmm0
  96. lea rax, [rip + str.8]
  97. mov qword ptr [rsp + 24], rax
  98. mov qword ptr [rsp + 32], 3
  99. lea rax, [rsp + 24]
  100. #APP
  101. #NO_APP
  102. mov r13, qword ptr [rsp + 32]
  103. test r13, r13
  104. je .LBB1_20
  105. mov r14, qword ptr [rsp + 24]
  106. xor ecx, ecx
  107. mov r15d, 335544337
  108. lea rbp, [rip + .LJTI1_0]
  109. lea r12, [rsp]
  110. jmp .LBB1_2
  111. .LBB1_50:
  112. mov rsi, qword ptr [rsp + 8]
  113. mov rax, rsi
  114. sub rax, rcx
  115. cmp rax, 4
  116. jae .LBB1_51
  117. add rcx, 4
  118. jb .LBB1_53
  119. lea r12, [rsi + rsi]
  120. cmp rcx, r12
  121. cmovae r12, rcx
  122. test rsi, rsi
  123. je .LBB1_56
  124. mov rdi, qword ptr [rsp]
  125. mov ecx, 1
  126. mov rdx, r12
  127. call __rust_reallocate@PLT
  128. jmp .LBB1_58
  129. .LBB1_23:
  130. mov rsi, qword ptr [rsp + 8]
  131. mov rax, rsi
  132. sub rax, rcx
  133. cmp rax, 5
  134. jae .LBB1_24
  135. add rcx, 5
  136. jb .LBB1_26
  137. lea r12, [rsi + rsi]
  138. cmp rcx, r12
  139. cmovae r12, rcx
  140. test rsi, rsi
  141. je .LBB1_29
  142. mov rdi, qword ptr [rsp]
  143. mov ecx, 1
  144. mov rdx, r12
  145. call __rust_reallocate@PLT
  146. jmp .LBB1_31
  147. .LBB1_36:
  148. mov rsi, qword ptr [rsp + 8]
  149. mov rax, rsi
  150. sub rax, rcx
  151. cmp rax, 4
  152. jae .LBB1_37
  153. add rcx, 4
  154. jb .LBB1_39
  155. lea r12, [rsi + rsi]
  156. cmp rcx, r12
  157. cmovae r12, rcx
  158. test rsi, rsi
  159. je .LBB1_42
  160. mov rdi, qword ptr [rsp]
  161. mov ecx, 1
  162. mov rdx, r12
  163. call __rust_reallocate@PLT
  164. jmp .LBB1_44
  165. .LBB1_51:
  166. mov rax, qword ptr [rsp]
  167. jmp .LBB1_62
  168. .LBB1_7:
  169. mov rax, qword ptr [rsp]
  170. jmp .LBB1_18
  171. .LBB1_24:
  172. mov rax, qword ptr [rsp]
  173. jmp .LBB1_35
  174. .LBB1_37:
  175. mov rax, qword ptr [rsp]
  176. jmp .LBB1_48
  177. .LBB1_56:
  178. mov esi, 1
  179. mov rdi, r12
  180. call __rust_allocate@PLT
  181. .LBB1_58:
  182. test rax, rax
  183. je .LBB1_59
  184. mov qword ptr [rsp], rax
  185. mov qword ptr [rsp + 8], r12
  186. mov rcx, qword ptr [rsp + 16]
  187. lea r12, [rsp]
  188. .LBB1_62:
  189. mov byte ptr [rax + rcx], 38
  190. mov byte ptr [rax + rcx + 1], 108
  191. jmp .LBB1_49
  192. .LBB1_12:
  193. mov esi, 1
  194. mov rdi, r12
  195. call __rust_allocate@PLT
  196. .LBB1_14:
  197. test rax, rax
  198. je .LBB1_15
  199. mov qword ptr [rsp], rax
  200. mov qword ptr [rsp + 8], r12
  201. mov rcx, qword ptr [rsp + 16]
  202. lea r12, [rsp]
  203. .LBB1_18:
  204. mov byte ptr [rax + rcx], 38
  205. mov byte ptr [rax + rcx + 1], 113
  206. mov byte ptr [rax + rcx + 2], 117
  207. mov byte ptr [rax + rcx + 3], 111
  208. mov byte ptr [rax + rcx + 4], 116
  209. mov byte ptr [rax + rcx + 5], 59
  210. add rcx, 6
  211. jmp .LBB1_19
  212. .LBB1_29:
  213. mov esi, 1
  214. mov rdi, r12
  215. call __rust_allocate@PLT
  216. .LBB1_31:
  217. test rax, rax
  218. je .LBB1_32
  219. mov qword ptr [rsp], rax
  220. mov qword ptr [rsp + 8], r12
  221. mov rcx, qword ptr [rsp + 16]
  222. lea r12, [rsp]
  223. .LBB1_35:
  224. mov byte ptr [rax + rcx], 38
  225. mov byte ptr [rax + rcx + 1], 97
  226. mov byte ptr [rax + rcx + 2], 109
  227. mov byte ptr [rax + rcx + 3], 112
  228. mov byte ptr [rax + rcx + 4], 59
  229. add rcx, 5
  230. jmp .LBB1_19
  231. .LBB1_42:
  232. mov esi, 1
  233. mov rdi, r12
  234. call __rust_allocate@PLT
  235. .LBB1_44:
  236. test rax, rax
  237. je .LBB1_45
  238. mov qword ptr [rsp], rax
  239. mov qword ptr [rsp + 8], r12
  240. mov rcx, qword ptr [rsp + 16]
  241. lea r12, [rsp]
  242. .LBB1_48:
  243. mov byte ptr [rax + rcx], 38
  244. mov byte ptr [rax + rcx + 1], 103
  245. .LBB1_49:
  246. mov byte ptr [rax + rcx + 2], 116
  247. mov byte ptr [rax + rcx + 3], 59
  248. add rcx, 4
  249. jmp .LBB1_19
  250. .p2align 4, 0x90
  251. .LBB1_2:
  252. movzx ebx, byte ptr [r14]
  253. mov eax, ebx
  254. add al, -34
  255. cmp al, 28
  256. ja .LBB1_63
  257. movzx edx, al
  258. bt r15d, edx
  259. jae .LBB1_63
  260. cmp al, 28
  261. ja .LBB1_63
  262. movsxd rax, dword ptr [rbp + 4*rdx]
  263. add rax, rbp
  264. jmp rax
  265. .LBB1_6:
  266. mov rsi, qword ptr [rsp + 8]
  267. mov rax, rsi
  268. sub rax, rcx
  269. cmp rax, 6
  270. jae .LBB1_7
  271. add rcx, 6
  272. jb .LBB1_9
  273. lea r12, [rsi + rsi]
  274. cmp rcx, r12
  275. cmovae r12, rcx
  276. test rsi, rsi
  277. je .LBB1_12
  278. mov rdi, qword ptr [rsp]
  279. mov ecx, 1
  280. mov rdx, r12
  281. call __rust_reallocate@PLT
  282. jmp .LBB1_14
  283. .p2align 4, 0x90
  284. .LBB1_63:
  285. cmp rcx, qword ptr [rsp + 8]
  286. jne .LBB1_66
  287. .Ltmp22:
  288. mov rdi, r12
  289. call _ZN40_$LT$alloc..raw_vec..RawVec$LT$T$GT$$GT$6double17h17920b8a90cfe6cfE
  290. .Ltmp23:
  291. mov rcx, qword ptr [rsp + 16]
  292. .LBB1_66:
  293. mov rax, qword ptr [rsp]
  294. mov byte ptr [rax + rcx], bl
  295. mov rcx, qword ptr [rsp + 16]
  296. inc rcx
  297. .LBB1_19:
  298. mov qword ptr [rsp + 16], rcx
  299. inc r14
  300. dec r13
  301. jne .LBB1_2
  302. .LBB1_20:
  303. lea rax, [rsp]
  304. mov qword ptr [rsp + 24], rax
  305. lea rax, [rsp + 24]
  306. #APP
  307. #NO_APP
  308. mov rsi, qword ptr [rsp + 8]
  309. test rsi, rsi
  310. je .LBB1_22
  311. mov rdi, qword ptr [rsp]
  312. mov edx, 1
  313. call __rust_deallocate@PLT
  314. .LBB1_22:
  315. add rsp, 40
  316. pop rbx
  317. pop r12
  318. pop r13
  319. pop r14
  320. pop r15
  321. pop rbp
  322. ret
  323. .LBB1_45:
  324. .Ltmp9:
  325. call _ZN5alloc3oom3oom17he12d244509df7328E@PLT
  326. .Ltmp10:
  327. .LBB1_39:
  328. .Ltmp11:
  329. lea rdi, [rip + str.0]
  330. mov esi, 17
  331. call _ZN4core6option13expect_failed17h6be288f6c3caa41aE@PLT
  332. .Ltmp12:
  333. .LBB1_59:
  334. .Ltmp5:
  335. call _ZN5alloc3oom3oom17he12d244509df7328E@PLT
  336. .Ltmp6:
  337. .LBB1_53:
  338. .Ltmp7:
  339. lea rdi, [rip + str.0]
  340. mov esi, 17
  341. call _ZN4core6option13expect_failed17h6be288f6c3caa41aE@PLT
  342. .Ltmp8:
  343. .LBB1_32:
  344. .Ltmp13:
  345. call _ZN5alloc3oom3oom17he12d244509df7328E@PLT
  346. .Ltmp14:
  347. .LBB1_26:
  348. .Ltmp15:
  349. lea rdi, [rip + str.0]
  350. mov esi, 17
  351. call _ZN4core6option13expect_failed17h6be288f6c3caa41aE@PLT
  352. .Ltmp16:
  353. .LBB1_15:
  354. .Ltmp17:
  355. call _ZN5alloc3oom3oom17he12d244509df7328E@PLT
  356. .Ltmp18:
  357. .LBB1_9:
  358. .Ltmp19:
  359. lea rdi, [rip + str.0]
  360. mov esi, 17
  361. call _ZN4core6option13expect_failed17h6be288f6c3caa41aE@PLT
  362. .Ltmp20:
  363. .LBB1_68:
  364. .Ltmp21:
  365. jmp .LBB1_69
  366. .LBB1_67:
  367. .Ltmp24:
  368. .LBB1_69:
  369. mov rbx, rax
  370. mov rsi, qword ptr [rsp + 8]
  371. test rsi, rsi
  372. je .LBB1_71
  373. mov rdi, qword ptr [rsp]
  374. mov edx, 1
  375. call __rust_deallocate@PLT
  376. .LBB1_71:
  377. mov rdi, rbx
  378. call _Unwind_Resume@PLT
  379. .Lfunc_end1:
  380. .size _ZN8rust_out4main17ha208b69ccbc11839E, .Lfunc_end1-_ZN8rust_out4main17ha208b69ccbc11839E
  381. .cfi_endproc
  382. .section .rodata._ZN8rust_out4main17ha208b69ccbc11839E,"a",@progbits
  383. .p2align 2
  384. .LJTI1_0:
  385. .long .LBB1_6-.LJTI1_0
  386. .long .LBB1_63-.LJTI1_0
  387. .long .LBB1_63-.LJTI1_0
  388. .long .LBB1_63-.LJTI1_0
  389. .long .LBB1_23-.LJTI1_0
  390. .long .LBB1_63-.LJTI1_0
  391. .long .LBB1_63-.LJTI1_0
  392. .long .LBB1_63-.LJTI1_0
  393. .long .LBB1_63-.LJTI1_0
  394. .long .LBB1_63-.LJTI1_0
  395. .long .LBB1_63-.LJTI1_0
  396. .long .LBB1_63-.LJTI1_0
  397. .long .LBB1_63-.LJTI1_0
  398. .long .LBB1_63-.LJTI1_0
  399. .long .LBB1_63-.LJTI1_0
  400. .long .LBB1_63-.LJTI1_0
  401. .long .LBB1_63-.LJTI1_0
  402. .long .LBB1_63-.LJTI1_0
  403. .long .LBB1_63-.LJTI1_0
  404. .long .LBB1_63-.LJTI1_0
  405. .long .LBB1_63-.LJTI1_0
  406. .long .LBB1_63-.LJTI1_0
  407. .long .LBB1_63-.LJTI1_0
  408. .long .LBB1_63-.LJTI1_0
  409. .long .LBB1_63-.LJTI1_0
  410. .long .LBB1_63-.LJTI1_0
  411. .long .LBB1_50-.LJTI1_0
  412. .long .LBB1_63-.LJTI1_0
  413. .long .LBB1_36-.LJTI1_0
  414. .section .gcc_except_table,"a",@progbits
  415. .p2align 2
  416. GCC_except_table1:
  417. .Lexception0:
  418. .byte 255
  419. .byte 155
  420. .byte 41
  421. .byte 3
  422. .byte 39
  423. .long .Ltmp22-.Lfunc_begin0
  424. .long .Ltmp23-.Ltmp22
  425. .long .Ltmp24-.Lfunc_begin0
  426. .byte 0
  427. .long .Ltmp9-.Lfunc_begin0
  428. .long .Ltmp20-.Ltmp9
  429. .long .Ltmp21-.Lfunc_begin0
  430. .byte 0
  431. .long .Ltmp20-.Lfunc_begin0
  432. .long .Lfunc_end1-.Ltmp20
  433. .long 0
  434. .byte 0
  435. .p2align 2
  436.  
  437. .section .text.main,"ax",@progbits
  438. .globl main
  439. .p2align 4, 0x90
  440. .type main,@function
  441. main:
  442. .cfi_startproc
  443. mov rax, rsi
  444. mov rcx, rdi
  445. lea rdi, [rip + _ZN8rust_out4main17ha208b69ccbc11839E]
  446. mov rsi, rcx
  447. mov rdx, rax
  448. jmp _ZN3std2rt10lang_start17h5d71a3afaaa4b2ffE@PLT
  449. .Lfunc_end2:
  450. .size main, .Lfunc_end2-main
  451. .cfi_endproc
  452.  
  453. .type str.0,@object
  454. .section .rodata.str.0,"a",@progbits
  455. .p2align 4
  456. str.0:
  457. .ascii "capacity overflow"
  458. .size str.0, 17
  459.  
  460. .type str.4,@object
  461. .section .rodata.str.4,"a",@progbits
  462. str.4:
  463. .ascii "<"
  464. .size str.4, 4
  465.  
  466. .type str.5,@object
  467. .section .rodata.str.5,"a",@progbits
  468. str.5:
  469. .ascii ">"
  470. .size str.5, 4
  471.  
  472. .type str.6,@object
  473. .section .rodata.str.6,"a",@progbits
  474. str.6:
  475. .ascii "&"
  476. .size str.6, 5
  477.  
  478. .type str.7,@object
  479. .section .rodata.str.7,"a",@progbits
  480. str.7:
  481. .ascii """
  482. .size str.7, 6
  483.  
  484. .type str.8,@object
  485. .section .rodata.str.8,"a",@progbits
  486. str.8:
  487. .zero 3,97
  488. .size str.8, 3
  489.  
  490. .hidden DW.ref.rust_eh_personality
  491. .weak DW.ref.rust_eh_personality
  492. .section .data.DW.ref.rust_eh_personality,"aGw",@progbits,DW.ref.rust_eh_personality,comdat
  493. .p2align 3
  494. .type DW.ref.rust_eh_personality,@object
  495. .size DW.ref.rust_eh_personality, 8
  496. DW.ref.rust_eh_personality:
  497. .quad rust_eh_personality
  498.  
  499. .section ".note.GNU-stack","",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement