Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .file   "Source.cpp"
  2.     .section .rdata,"dr"
  3. __ZStL19piecewise_construct:
  4.     .space 1
  5. .lcomm __ZStL8__ioinit,1,1
  6. .lcomm __ZZ4mainE7counter,4,4
  7.     .def    ___main;    .scl    2;  .type   32; .endef
  8.     .text
  9.     .globl  _main
  10.     .def    _main;  .scl    2;  .type   32; .endef
  11. _main:
  12. LFB1445:
  13.     .cfi_startproc
  14.     leal    4(%esp), %ecx
  15.     .cfi_def_cfa 1, 0
  16.     andl    $-16, %esp
  17.     pushl   -4(%ecx)
  18.     pushl   %ebp
  19.     .cfi_escape 0x10,0x5,0x2,0x75,0
  20.     movl    %esp, %ebp
  21.     pushl   %ebx
  22.     pushl   %ecx
  23.     .cfi_escape 0xf,0x3,0x75,0x78,0x6
  24.     .cfi_escape 0x10,0x3,0x2,0x75,0x7c
  25.     subl    $16, %esp
  26.     call    ___main
  27.     movl    $0, %ebx
  28. L5:
  29.     addl    $1, %ebx
  30.     movl    %ebx, (%esp)
  31.     call    __Z7isPrimei
  32.     testb   %al, %al
  33.     je  L2
  34.     movl    __ZZ4mainE7counter, %eax
  35.     addl    $1, %eax
  36.     movl    %eax, __ZZ4mainE7counter
  37. L2:
  38.     movl    __ZZ4mainE7counter, %eax
  39.     cmpl    $10001, %eax
  40.     je  L8
  41.     jmp L5
  42. L8:
  43.     nop
  44.     movl    %ebx, (%esp)
  45.     movl    $__ZSt4cout, %ecx
  46.     call    __ZNSolsEi
  47.     subl    $4, %esp
  48.     movl    $0, %eax
  49.     leal    -8(%ebp), %esp
  50.     popl    %ecx
  51.     .cfi_restore 1
  52.     .cfi_def_cfa 1, 0
  53.     popl    %ebx
  54.     .cfi_restore 3
  55.     popl    %ebp
  56.     .cfi_restore 5
  57.     leal    -4(%ecx), %esp
  58.     .cfi_def_cfa 4, 4
  59.     ret
  60.     .cfi_endproc
  61. LFE1445:
  62.     .globl  __Z7isPrimei
  63.     .def    __Z7isPrimei;   .scl    2;  .type   32; .endef
  64. __Z7isPrimei:
  65. LFB1446:
  66.     .cfi_startproc
  67.     pushl   %ebp
  68.     .cfi_def_cfa_offset 8
  69.     .cfi_offset 5, -8
  70.     movl    %esp, %ebp
  71.     .cfi_def_cfa_register 5
  72.     subl    $16, %esp
  73.     cmpl    $1, 8(%ebp)
  74.     jne L10
  75.     movl    $0, %eax
  76.     jmp L11
  77. L10:
  78.     movl    $2, -4(%ebp)
  79. L14:
  80.     movl    -4(%ebp), %eax
  81.     cmpl    8(%ebp), %eax
  82.     jge L12
  83.     movl    8(%ebp), %eax
  84.     cltd
  85.     idivl   -4(%ebp)
  86.     movl    %edx, %eax
  87.     testl   %eax, %eax
  88.     jne L13
  89.     movl    $0, %eax
  90.     jmp L11
  91. L13:
  92.     addl    $1, -4(%ebp)
  93.     jmp L14
  94. L12:
  95.     movl    $1, %eax
  96. L11:
  97.     leave
  98.     .cfi_restore 5
  99.     .cfi_def_cfa 4, 4
  100.     ret
  101.     .cfi_endproc
  102. LFE1446:
  103.     .def    ___tcf_0;   .scl    3;  .type   32; .endef
  104. ___tcf_0:
  105. LFB1871:
  106.     .cfi_startproc
  107.     pushl   %ebp
  108.     .cfi_def_cfa_offset 8
  109.     .cfi_offset 5, -8
  110.     movl    %esp, %ebp
  111.     .cfi_def_cfa_register 5
  112.     subl    $8, %esp
  113.     movl    $__ZStL8__ioinit, %ecx
  114.     call    __ZNSt8ios_base4InitD1Ev
  115.     leave
  116.     .cfi_restore 5
  117.     .cfi_def_cfa 4, 4
  118.     ret
  119.     .cfi_endproc
  120. LFE1871:
  121.     .def    __Z41__static_initialization_and_destruction_0ii;   .scl    3;  .type   32; .endef
  122. __Z41__static_initialization_and_destruction_0ii:
  123. LFB1870:
  124.     .cfi_startproc
  125.     pushl   %ebp
  126.     .cfi_def_cfa_offset 8
  127.     .cfi_offset 5, -8
  128.     movl    %esp, %ebp
  129.     .cfi_def_cfa_register 5
  130.     subl    $24, %esp
  131.     cmpl    $1, 8(%ebp)
  132.     jne L18
  133.     cmpl    $65535, 12(%ebp)
  134.     jne L18
  135.     movl    $__ZStL8__ioinit, %ecx
  136.     call    __ZNSt8ios_base4InitC1Ev
  137.     movl    $___tcf_0, (%esp)
  138.     call    _atexit
  139. L18:
  140.     nop
  141.     leave
  142.     .cfi_restore 5
  143.     .cfi_def_cfa 4, 4
  144.     ret
  145.     .cfi_endproc
  146. LFE1870:
  147.     .def    __GLOBAL__sub_I_main;   .scl    3;  .type   32; .endef
  148. __GLOBAL__sub_I_main:
  149. LFB1872:
  150.     .cfi_startproc
  151.     pushl   %ebp
  152.     .cfi_def_cfa_offset 8
  153.     .cfi_offset 5, -8
  154.     movl    %esp, %ebp
  155.     .cfi_def_cfa_register 5
  156.     subl    $24, %esp
  157.     movl    $65535, 4(%esp)
  158.     movl    $1, (%esp)
  159.     call    __Z41__static_initialization_and_destruction_0ii
  160.     leave
  161.     .cfi_restore 5
  162.     .cfi_def_cfa 4, 4
  163.     ret
  164.     .cfi_endproc
  165. LFE1872:
  166.     .section    .ctors,"w"
  167.     .align 4
  168.     .long   __GLOBAL__sub_I_main
  169.     .ident  "GCC: (MinGW.org GCC-6.3.0-1) 6.3.0"
  170.     .def    __ZNSolsEi; .scl    2;  .type   32; .endef
  171.     .def    __ZNSt8ios_base4InitD1Ev;   .scl    2;  .type   32; .endef
  172.     .def    __ZNSt8ios_base4InitC1Ev;   .scl    2;  .type   32; .endef
  173.     .def    _atexit;    .scl    2;  .type   32; .endef
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement