Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .file   "main.cpp"
  2.     .text
  3.     .section    .rodata
  4.     .type   _ZStL19piecewise_construct, @object
  5.     .size   _ZStL19piecewise_construct, 1
  6. _ZStL19piecewise_construct:
  7.     .zero   1
  8.     .local  _ZStL8__ioinit
  9.     .comm   _ZStL8__ioinit,1,1
  10. .LC0:
  11.     .string "clear"
  12.     .text
  13.     .globl  main
  14.     .type   main, @function
  15. main:
  16. .LFB1493:
  17.     .cfi_startproc
  18.     pushq   %rbp
  19.     .cfi_def_cfa_offset 16
  20.     .cfi_offset 6, -16
  21.     movq    %rsp, %rbp
  22.     .cfi_def_cfa_register 6
  23.     leaq    .LC0(%rip), %rdi
  24.     call    system@PLT
  25.     call    _Z10mainScreenv
  26.     movl    $0, %eax
  27.     popq    %rbp
  28.     .cfi_def_cfa 7, 8
  29.     ret
  30.     .cfi_endproc
  31. .LFE1493:
  32.     .size   main, .-main
  33.     .section    .rodata
  34. .LC1:
  35.     .string "Welcome to the console game!\n"
  36.     .align 8
  37. .LC2:
  38.     .string "Choose one of the options below to start a game:\n\n"
  39. .LC3:
  40.     .string "1. Print Number\n"
  41. .LC4:
  42.     .string "2. Guessing Game\n"
  43. .LC5:
  44.     .string "Anything else to exit\n\n"
  45. .LC6:
  46.     .string "Your answer: "
  47.     .text
  48.     .globl  _Z10mainScreenv
  49.     .type   _Z10mainScreenv, @function
  50. _Z10mainScreenv:
  51. .LFB1494:
  52.     .cfi_startproc
  53.     pushq   %rbp
  54.     .cfi_def_cfa_offset 16
  55.     .cfi_offset 6, -16
  56.     movq    %rsp, %rbp
  57.     .cfi_def_cfa_register 6
  58.     subq    $16, %rsp
  59.     movq    %fs:40, %rax
  60.     movq    %rax, -8(%rbp)
  61.     xorl    %eax, %eax
  62.     leaq    .LC1(%rip), %rsi
  63.     leaq    _ZSt4cout(%rip), %rdi
  64.     call    _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
  65.     leaq    .LC2(%rip), %rsi
  66.     movq    %rax, %rdi
  67.     call    _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
  68.     leaq    .LC3(%rip), %rsi
  69.     movq    %rax, %rdi
  70.     call    _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
  71.     leaq    .LC4(%rip), %rsi
  72.     movq    %rax, %rdi
  73.     call    _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
  74.     leaq    .LC5(%rip), %rsi
  75.     movq    %rax, %rdi
  76.     call    _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
  77.     leaq    .LC6(%rip), %rsi
  78.     movq    %rax, %rdi
  79.     call    _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
  80.     leaq    -9(%rbp), %rax
  81.     movq    %rax, %rsi
  82.     leaq    _ZSt3cin(%rip), %rdi
  83.     call    _ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_@PLT
  84.     movzbl  -9(%rbp), %eax
  85.     movsbl  %al, %eax
  86.     cmpl    $49, %eax
  87.     je  .L5
  88.     cmpl    $50, %eax
  89.     je  .L6
  90.     jmp .L7
  91. .L5:
  92.     call    _Z12printNumbersv
  93.     jmp .L7
  94. .L6:
  95.     call    _Z12guessingGamev
  96.     nop
  97. .L7:
  98.     nop
  99.     movq    -8(%rbp), %rax
  100.     xorq    %fs:40, %rax
  101.     je  .L8
  102.     call    __stack_chk_fail@PLT
  103. .L8:
  104.     leave
  105.     .cfi_def_cfa 7, 8
  106.     ret
  107.     .cfi_endproc
  108. .LFE1494:
  109.     .size   _Z10mainScreenv, .-_Z10mainScreenv
  110.     .section    .rodata
  111.     .align 8
  112. .LC7:
  113.     .string "Welcome to the Print Numbers game!\n"
  114.     .align 8
  115. .LC8:
  116.     .string "Here you can print numbers from 1 to your preffered one!\n"
  117.     .align 8
  118. .LC9:
  119.     .string "Please enter a number between 1 and 10.000.000 (ten million)\n\n"
  120. .LC10:
  121.     .string "Your number: "
  122. .LC11:
  123.     .string ", "
  124. .LC12:
  125.     .string "."
  126. .LC13:
  127.     .string "\n"
  128.     .align 8
  129. .LC14:
  130.     .string "\nFinished! Do you wish to restart the game? [y/n]: "
  131. .LC15:
  132.     .string "\nError! Choose either y or n."
  133.     .text
  134.     .globl  _Z12printNumbersv
  135.     .type   _Z12printNumbersv, @function
  136. _Z12printNumbersv:
  137. .LFB1495:
  138.     .cfi_startproc
  139.     pushq   %rbp
  140.     .cfi_def_cfa_offset 16
  141.     .cfi_offset 6, -16
  142.     movq    %rsp, %rbp
  143.     .cfi_def_cfa_register 6
  144.     subq    $32, %rsp
  145.     movq    %fs:40, %rax
  146.     movq    %rax, -8(%rbp)
  147.     xorl    %eax, %eax
  148.     leaq    .LC0(%rip), %rdi
  149.     call    system@PLT
  150.     leaq    .LC7(%rip), %rsi
  151.     leaq    _ZSt4cout(%rip), %rdi
  152.     call    _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
  153.     leaq    .LC8(%rip), %rsi
  154.     movq    %rax, %rdi
  155.     call    _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
  156.     leaq    .LC9(%rip), %rsi
  157.     movq    %rax, %rdi
  158.     call    _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
  159.     leaq    .LC10(%rip), %rsi
  160.     movq    %rax, %rdi
  161.     call    _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
  162.     leaq    -16(%rbp), %rax
  163.     movq    %rax, %rsi
  164.     leaq    _ZSt3cin(%rip), %rdi
  165.     call    _ZNSirsERi@PLT
  166.     movl    $1, -12(%rbp)
  167. .L13:
  168.     movl    -16(%rbp), %eax
  169.     cmpl    %eax, -12(%rbp)
  170.     jg  .L10
  171.     movl    -12(%rbp), %eax
  172.     movl    %eax, %esi
  173.     leaq    _ZSt4cout(%rip), %rdi
  174.     call    _ZNSolsEi@PLT
  175.     movl    -16(%rbp), %eax
  176.     cmpl    %eax, -12(%rbp)
  177.     jge .L11
  178.     leaq    .LC11(%rip), %rsi
  179.     leaq    _ZSt4cout(%rip), %rdi
  180.     call    _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
  181.     jmp .L23
  182. .L11:
  183.     leaq    .LC12(%rip), %rsi
  184.     leaq    _ZSt4cout(%rip), %rdi
  185.     call    _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
  186.     jmp .L10
  187. .L23:
  188.     addl    $1, -12(%rbp)
  189.     jmp .L13
  190. .L10:
  191.     leaq    .LC13(%rip), %rsi
  192.     leaq    _ZSt4cout(%rip), %rdi
  193.     call    _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
  194. .L14:
  195.     leaq    .LC14(%rip), %rsi
  196.     leaq    _ZSt4cout(%rip), %rdi
  197.     call    _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
  198.     leaq    -17(%rbp), %rax
  199.     movq    %rax, %rsi
  200.     leaq    _ZSt3cin(%rip), %rdi
  201.     call    _ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_@PLT
  202.     movzbl  -17(%rbp), %eax
  203.     movsbl  %al, %eax
  204.     cmpl    $89, %eax
  205.     je  .L16
  206.     cmpl    $89, %eax
  207.     jg  .L17
  208.     cmpl    $78, %eax
  209.     je  .L18
  210.     jmp .L15
  211. .L17:
  212.     cmpl    $110, %eax
  213.     je  .L19
  214.     cmpl    $121, %eax
  215.     jne .L15
  216.     call    _Z12printNumbersv
  217.     jmp .L21
  218. .L16:
  219.     call    _Z12printNumbersv
  220.     jmp .L21
  221. .L19:
  222.     call    main
  223.     jmp .L21
  224. .L18:
  225.     call    main
  226.     jmp .L21
  227. .L15:
  228.     leaq    .LC15(%rip), %rsi
  229.     leaq    _ZSt4cout(%rip), %rdi
  230.     call    _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
  231.     jmp .L14
  232. .L21:
  233.     nop
  234.     movq    -8(%rbp), %rax
  235.     xorq    %fs:40, %rax
  236.     je  .L22
  237.     call    __stack_chk_fail@PLT
  238. .L22:
  239.     leave
  240.     .cfi_def_cfa 7, 8
  241.     ret
  242.     .cfi_endproc
  243. .LFE1495:
  244.     .size   _Z12printNumbersv, .-_Z12printNumbersv
  245.     .section    .rodata
  246. .LC16:
  247.     .string "Sucessfull\n"
  248.     .text
  249.     .globl  _Z12guessingGamev
  250.     .type   _Z12guessingGamev, @function
  251. _Z12guessingGamev:
  252. .LFB1496:
  253.     .cfi_startproc
  254.     pushq   %rbp
  255.     .cfi_def_cfa_offset 16
  256.     .cfi_offset 6, -16
  257.     movq    %rsp, %rbp
  258.     .cfi_def_cfa_register 6
  259.     leaq    .LC16(%rip), %rsi
  260.     leaq    _ZSt4cout(%rip), %rdi
  261.     call    _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
  262.     nop
  263.     popq    %rbp
  264.     .cfi_def_cfa 7, 8
  265.     ret
  266.     .cfi_endproc
  267. .LFE1496:
  268.     .size   _Z12guessingGamev, .-_Z12guessingGamev
  269.     .type   _Z41__static_initialization_and_destruction_0ii, @function
  270. _Z41__static_initialization_and_destruction_0ii:
  271. .LFB1980:
  272.     .cfi_startproc
  273.     pushq   %rbp
  274.     .cfi_def_cfa_offset 16
  275.     .cfi_offset 6, -16
  276.     movq    %rsp, %rbp
  277.     .cfi_def_cfa_register 6
  278.     subq    $16, %rsp
  279.     movl    %edi, -4(%rbp)
  280.     movl    %esi, -8(%rbp)
  281.     cmpl    $1, -4(%rbp)
  282.     jne .L27
  283.     cmpl    $65535, -8(%rbp)
  284.     jne .L27
  285.     leaq    _ZStL8__ioinit(%rip), %rdi
  286.     call    _ZNSt8ios_base4InitC1Ev@PLT
  287.     leaq    __dso_handle(%rip), %rdx
  288.     leaq    _ZStL8__ioinit(%rip), %rsi
  289.     movq    _ZNSt8ios_base4InitD1Ev@GOTPCREL(%rip), %rax
  290.     movq    %rax, %rdi
  291.     call    __cxa_atexit@PLT
  292. .L27:
  293.     nop
  294.     leave
  295.     .cfi_def_cfa 7, 8
  296.     ret
  297.     .cfi_endproc
  298. .LFE1980:
  299.     .size   _Z41__static_initialization_and_destruction_0ii, .-_Z41__static_initialization_and_destruction_0ii
  300.     .type   _GLOBAL__sub_I_main, @function
  301. _GLOBAL__sub_I_main:
  302. .LFB1981:
  303.     .cfi_startproc
  304.     pushq   %rbp
  305.     .cfi_def_cfa_offset 16
  306.     .cfi_offset 6, -16
  307.     movq    %rsp, %rbp
  308.     .cfi_def_cfa_register 6
  309.     movl    $65535, %esi
  310.     movl    $1, %edi
  311.     call    _Z41__static_initialization_and_destruction_0ii
  312.     popq    %rbp
  313.     .cfi_def_cfa 7, 8
  314.     ret
  315.     .cfi_endproc
  316. .LFE1981:
  317.     .size   _GLOBAL__sub_I_main, .-_GLOBAL__sub_I_main
  318.     .section    .init_array,"aw"
  319.     .align 8
  320.     .quad   _GLOBAL__sub_I_main
  321.     .hidden __dso_handle
  322.     .ident  "GCC: (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0"
  323.     .section    .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement