Skip to content

Instantly share code, notes, and snippets.

@eddyb
Created February 13, 2015 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eddyb/48971bd8f812d4ec80ad to your computer and use it in GitHub Desktop.
Save eddyb/48971bd8f812d4ec80ad to your computer and use it in GitHub Desktop.
.section __TEXT,__text,regular,pure_instructions
.align 4, 0x90
__ZN4main20h84fd99f07df2d50ffaaE:
.cfi_startproc
.cfi_personality 155, _rust_eh_personality
Leh_func_begin0:
.cfi_lsda 16, Lexception0
cmpq %gs:816, %rsp
ja LBB0_2
movabsq $56, %r10
movabsq $0, %r11
callq ___morestack
retq
LBB0_2:
pushq %rbp
Ltmp3:
.cfi_def_cfa_offset 16
Ltmp4:
.cfi_offset %rbp, -16
movq %rsp, %rbp
Ltmp5:
.cfi_def_cfa_register %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $24, %rsp
Ltmp6:
.cfi_offset %rbx, -40
Ltmp7:
.cfi_offset %r14, -32
Ltmp8:
.cfi_offset %r15, -24
movl $32, %edi
xorl %esi, %esi
callq _je_mallocx
movq %rax, %rbx
testq %rbx, %rbx
je LBB0_19
movq L_const16+8(%rip), %rax
movq %rax, 8(%rbx)
movq L_const16(%rip), %rax
movq %rax, (%rbx)
leaq L_const16(%rip), %rdi
movq %rbx, %r15
addq $16, %r15
movq $1, 16(%rbx)
movq $1, 24(%rbx)
leaq L_const16+16(%rip), %r8
movq %rbx, %rcx
LBB0_4:
cmpq %r15, %rcx
movq %r15, %r9
movl $0, %esi
je LBB0_6
leaq 4(%rcx), %r9
movq %rcx, %rsi
LBB0_6:
cmpq %r8, %rdi
movq %r8, %rax
movl $0, %ecx
je LBB0_8
leaq 4(%rdi), %rax
movq %rdi, %rcx
LBB0_8:
testq %rsi, %rsi
setne %dl
je LBB0_16
testb %dl, %dl
je LBB0_17
testq %rcx, %rcx
je LBB0_17
movl (%rsi), %edx
cmpl (%rcx), %edx
movq %rax, %rdi
movq %r9, %rcx
je LBB0_4
jmp LBB0_17
LBB0_16:
testq %rcx, %rcx
jne LBB0_17
LBB0_18:
xorps %xmm0, %xmm0
movups %xmm0, 16(%rbx)
movl $32, %esi
xorl %edx, %edx
movq %rbx, %rdi
addq $24, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp _je_sdallocx
LBB0_17:
movq l_const31+8(%rip), %rax
movq %rax, -32(%rbp)
movq l_const31(%rip), %rax
movq %rax, -40(%rbp)
Ltmp0:
leaq -40(%rbp), %rdi
callq __ZN2rt6unwind12begin_unwind20h9411346150187872259E
Ltmp1:
jmp LBB0_18
LBB0_12:
Ltmp2:
movq %rax, %r14
decq (%r15)
jne LBB0_15
decq 24(%rbx)
jne LBB0_15
movl $32, %esi
xorl %edx, %edx
movq %rbx, %rdi
callq _je_sdallocx
LBB0_15:
movq %r14, %rdi
callq __Unwind_Resume
LBB0_19:
callq __ZN3oom20he8e13486a48b9f16A4aE
.cfi_endproc
Leh_func_end0:
.section __TEXT,__gcc_except_tab
.align 2
GCC_except_table0:
Lexception0:
.byte 255
.byte 155
.byte 41
.byte 3
.byte 39
Lset0 = Leh_func_begin0-Leh_func_begin0
.long Lset0
Lset1 = Ltmp0-Leh_func_begin0
.long Lset1
.long 0
.byte 0
Lset2 = Ltmp0-Leh_func_begin0
.long Lset2
Lset3 = Ltmp1-Ltmp0
.long Lset3
Lset4 = Ltmp2-Leh_func_begin0
.long Lset4
.byte 0
Lset5 = Ltmp1-Leh_func_begin0
.long Lset5
Lset6 = Leh_func_end0-Ltmp1
.long Lset6
.long 0
.byte 0
.align 2
.section __TEXT,__text,regular,pure_instructions
.globl _main
.align 4, 0x90
_main:
.cfi_startproc
cmpq %gs:816, %rsp
ja LBB1_2
movabsq $8, %r10
movabsq $0, %r11
callq ___morestack
retq
LBB1_2:
pushq %rbp
Ltmp9:
.cfi_def_cfa_offset 16
Ltmp10:
.cfi_offset %rbp, -16
movq %rsp, %rbp
Ltmp11:
.cfi_def_cfa_register %rbp
movq %rsi, %rax
movq %rdi, %rcx
leaq __ZN4main20h84fd99f07df2d50ffaaE(%rip), %rdi
movq %rcx, %rsi
movq %rax, %rdx
popq %rbp
jmp __ZN2rt10lang_start20h9a2f0b3b976f0290ZqJE
.cfi_endproc
.align 4, 0x90
__ZN2rt6unwind12begin_unwind20h9411346150187872259E:
.cfi_startproc
cmpq %gs:816, %rsp
ja LBB2_2
movabsq $40, %r10
movabsq $0, %r11
callq ___morestack
retq
LBB2_2:
pushq %rbp
Ltmp12:
.cfi_def_cfa_offset 16
Ltmp13:
.cfi_offset %rbp, -16
movq %rsp, %rbp
Ltmp14:
.cfi_def_cfa_register %rbp
pushq %rbx
subq $24, %rsp
Ltmp15:
.cfi_offset %rbx, -24
movq %rdi, %rbx
movl $16, %edi
xorl %esi, %esi
callq _je_mallocx
testq %rax, %rax
jne LBB2_4
callq __ZN3oom20he8e13486a48b9f16A4aE
LBB2_4:
movq (%rbx), %rcx
movq 8(%rbx), %rdx
movq %rdx, 8(%rax)
movq %rcx, (%rax)
movq %rax, -24(%rbp)
leaq _vtable1384(%rip), %rax
movq %rax, -16(%rbp)
leaq __ZN4main10_FILE_LINE20h5e2501685784356dMaaE(%rip), %rsi
leaq -24(%rbp), %rdi
callq __ZN2rt6unwind18begin_unwind_inner20h6bcde96cac45d6c1eeJE
.cfi_endproc
.align 4, 0x90
__ZN34Box$LT$$RF$$u27$static$u20$str$GT$14glue_drop.136617h2340fdee8f4602e0E:
.cfi_startproc
cmpq %gs:816, %rsp
ja LBB3_2
movabsq $8, %r10
movabsq $0, %r11
callq ___morestack
retq
LBB3_2:
pushq %rbp
Ltmp16:
.cfi_def_cfa_offset 16
Ltmp17:
.cfi_offset %rbp, -16
movq %rsp, %rbp
Ltmp18:
.cfi_def_cfa_register %rbp
movq (%rdi), %rdi
testq %rdi, %rdi
je LBB3_3
movl $16, %esi
xorl %edx, %edx
popq %rbp
jmp _je_sdallocx
LBB3_3:
popq %rbp
retq
.cfi_endproc
.align 4, 0x90
__ZN3any5T.Any11get_type_id20h7965868486715348098E:
.cfi_startproc
cmpq %gs:816, %rsp
ja LBB4_2
movabsq $8, %r10
movabsq $0, %r11
callq ___morestack
retq
LBB4_2:
pushq %rbp
Ltmp19:
.cfi_def_cfa_offset 16
Ltmp20:
.cfi_offset %rbp, -16
movq %rsp, %rbp
Ltmp21:
.cfi_def_cfa_register %rbp
movabsq $8802261786977977801, %rax
popq %rbp
retq
.cfi_endproc
.section __TEXT,__literal16,16byte_literals
.align 2
L_const16:
.long 1
.long 2
.long 3
.long 4
.section __DATA,__const
.align 4
_vtable1384:
.quad __ZN34Box$LT$$RF$$u27$static$u20$str$GT$14glue_drop.136617h2340fdee8f4602e0E
.quad 16
.quad 8
.quad __ZN3any5T.Any11get_type_id20h7965868486715348098E
.section __TEXT,__const
.align 4
_str1385:
.ascii "assertion failed: *x == [1, 2, 3, 4]"
.section __DATA,__const
.align 3
l_const31:
.quad _str1385
.quad 36
.section __TEXT,__const
.align 4
_str1386:
.ascii "src/test/run-pass/deref-rc.rs"
.section __DATA,__const
.align 4
__ZN4main10_FILE_LINE20h5e2501685784356dMaaE:
.quad _str1386
.quad 29
.quad 15
.subsections_via_symbols
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment