Skip to content

Instantly share code, notes, and snippets.

@zimmerle
Created January 3, 2018 13:02
Show Gist options
  • Save zimmerle/12b063251a38ffd31c7d2755bb7e1b73 to your computer and use it in GitHub Desktop.
Save zimmerle/12b063251a38ffd31c7d2755bb7e1b73 to your computer and use it in GitHub Desktop.
.file "vlad.cc"
.section .rodata
.type _ZStL19piecewise_construct, @object
.size _ZStL19piecewise_construct, 1
_ZStL19piecewise_construct:
.zero 1
.local _ZStL8__ioinit
.comm _ZStL8__ioinit,1,1
.LC0:
.string "%{"
.LC1:
.string "}"
.text
.globl _Z4testRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.type _Z4testRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, @function
_Z4testRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
.LFB1493:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $32, %rsp
movq %rdi, -24(%rbp)
movq -24(%rbp), %rax
movl $0, %edx
leaq .LC0(%rip), %rsi
movq %rax, %rdi
call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
movq %rax, -8(%rbp)
cmpq $-1, -8(%rbp)
je .L2
movq -8(%rbp), %rdx
movq -24(%rbp), %rax
leaq .LC1(%rip), %rsi
movq %rax, %rdi
call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcm@PLT
cmpq $-1, %rax
setne %al
jmp .L3
.L2:
movl $0, %eax
.L3:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1493:
.size _Z4testRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, .-_Z4testRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.type _Z41__static_initialization_and_destruction_0ii, @function
_Z41__static_initialization_and_destruction_0ii:
.LFB1975:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $16, %rsp
movl %edi, -4(%rbp)
movl %esi, -8(%rbp)
cmpl $1, -4(%rbp)
jne .L6
cmpl $65535, -8(%rbp)
jne .L6
leaq _ZStL8__ioinit(%rip), %rdi
call _ZNSt8ios_base4InitC1Ev@PLT
leaq __dso_handle(%rip), %rdx
leaq _ZStL8__ioinit(%rip), %rsi
movq _ZNSt8ios_base4InitD1Ev@GOTPCREL(%rip), %rax
movq %rax, %rdi
call __cxa_atexit@PLT
.L6:
nop
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1975:
.size _Z41__static_initialization_and_destruction_0ii, .-_Z41__static_initialization_and_destruction_0ii
.type _GLOBAL__sub_I__Z4testRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, @function
_GLOBAL__sub_I__Z4testRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
.LFB1976:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movl $65535, %esi
movl $1, %edi
call _Z41__static_initialization_and_destruction_0ii
popq %rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE1976:
.size _GLOBAL__sub_I__Z4testRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, .-_GLOBAL__sub_I__Z4testRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.section .init_array,"aw"
.align 8
.quad _GLOBAL__sub_I__Z4testRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.hidden __dso_handle
.ident "GCC: (GNU) 7.2.1 20171128"
.section .note.GNU-stack,"",@progbits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment