Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .file "main.cpp"
- .text
- .section .rodata
- .type _ZStL19piecewise_construct, @object
- .size _ZStL19piecewise_construct, 1
- _ZStL19piecewise_construct:
- .zero 1
- .local _ZStL8__ioinit
- .comm _ZStL8__ioinit,1,1
- .LC0:
- .string "clear"
- .text
- .globl main
- .type main, @function
- main:
- .LFB1493:
- .cfi_startproc
- pushq %rbp
- .cfi_def_cfa_offset 16
- .cfi_offset 6, -16
- movq %rsp, %rbp
- .cfi_def_cfa_register 6
- leaq .LC0(%rip), %rdi
- call system@PLT
- call _Z10mainScreenv
- movl $0, %eax
- popq %rbp
- .cfi_def_cfa 7, 8
- ret
- .cfi_endproc
- .LFE1493:
- .size main, .-main
- .section .rodata
- .LC1:
- .string "Welcome to the console game!\n"
- .align 8
- .LC2:
- .string "Choose one of the options below to start a game:\n\n"
- .LC3:
- .string "1. Print Number\n"
- .LC4:
- .string "2. Guessing Game\n"
- .LC5:
- .string "Anything else to exit\n\n"
- .LC6:
- .string "Your answer: "
- .text
- .globl _Z10mainScreenv
- .type _Z10mainScreenv, @function
- _Z10mainScreenv:
- .LFB1494:
- .cfi_startproc
- pushq %rbp
- .cfi_def_cfa_offset 16
- .cfi_offset 6, -16
- movq %rsp, %rbp
- .cfi_def_cfa_register 6
- subq $16, %rsp
- movq %fs:40, %rax
- movq %rax, -8(%rbp)
- xorl %eax, %eax
- leaq .LC1(%rip), %rsi
- leaq _ZSt4cout(%rip), %rdi
- call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
- leaq .LC2(%rip), %rsi
- movq %rax, %rdi
- call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
- leaq .LC3(%rip), %rsi
- movq %rax, %rdi
- call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
- leaq .LC4(%rip), %rsi
- movq %rax, %rdi
- call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
- leaq .LC5(%rip), %rsi
- movq %rax, %rdi
- call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
- leaq .LC6(%rip), %rsi
- movq %rax, %rdi
- call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
- leaq -9(%rbp), %rax
- movq %rax, %rsi
- leaq _ZSt3cin(%rip), %rdi
- call _ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_@PLT
- movzbl -9(%rbp), %eax
- movsbl %al, %eax
- cmpl $49, %eax
- je .L5
- cmpl $50, %eax
- je .L6
- jmp .L7
- .L5:
- call _Z12printNumbersv
- jmp .L7
- .L6:
- call _Z12guessingGamev
- nop
- .L7:
- nop
- movq -8(%rbp), %rax
- xorq %fs:40, %rax
- je .L8
- call __stack_chk_fail@PLT
- .L8:
- leave
- .cfi_def_cfa 7, 8
- ret
- .cfi_endproc
- .LFE1494:
- .size _Z10mainScreenv, .-_Z10mainScreenv
- .section .rodata
- .align 8
- .LC7:
- .string "Welcome to the Print Numbers game!\n"
- .align 8
- .LC8:
- .string "Here you can print numbers from 1 to your preffered one!\n"
- .align 8
- .LC9:
- .string "Please enter a number between 1 and 10.000.000 (ten million)\n\n"
- .LC10:
- .string "Your number: "
- .LC11:
- .string ", "
- .LC12:
- .string "."
- .LC13:
- .string "\n"
- .align 8
- .LC14:
- .string "\nFinished! Do you wish to restart the game? [y/n]: "
- .LC15:
- .string "\nError! Choose either y or n."
- .text
- .globl _Z12printNumbersv
- .type _Z12printNumbersv, @function
- _Z12printNumbersv:
- .LFB1495:
- .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 %fs:40, %rax
- movq %rax, -8(%rbp)
- xorl %eax, %eax
- leaq .LC0(%rip), %rdi
- call system@PLT
- leaq .LC7(%rip), %rsi
- leaq _ZSt4cout(%rip), %rdi
- call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
- leaq .LC8(%rip), %rsi
- movq %rax, %rdi
- call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
- leaq .LC9(%rip), %rsi
- movq %rax, %rdi
- call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
- leaq .LC10(%rip), %rsi
- movq %rax, %rdi
- call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
- leaq -16(%rbp), %rax
- movq %rax, %rsi
- leaq _ZSt3cin(%rip), %rdi
- call _ZNSirsERi@PLT
- movl $1, -12(%rbp)
- .L13:
- movl -16(%rbp), %eax
- cmpl %eax, -12(%rbp)
- jg .L10
- movl -12(%rbp), %eax
- movl %eax, %esi
- leaq _ZSt4cout(%rip), %rdi
- call _ZNSolsEi@PLT
- movl -16(%rbp), %eax
- cmpl %eax, -12(%rbp)
- jge .L11
- leaq .LC11(%rip), %rsi
- leaq _ZSt4cout(%rip), %rdi
- call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
- jmp .L23
- .L11:
- leaq .LC12(%rip), %rsi
- leaq _ZSt4cout(%rip), %rdi
- call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
- jmp .L10
- .L23:
- addl $1, -12(%rbp)
- jmp .L13
- .L10:
- leaq .LC13(%rip), %rsi
- leaq _ZSt4cout(%rip), %rdi
- call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
- .L14:
- leaq .LC14(%rip), %rsi
- leaq _ZSt4cout(%rip), %rdi
- call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
- leaq -17(%rbp), %rax
- movq %rax, %rsi
- leaq _ZSt3cin(%rip), %rdi
- call _ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_@PLT
- movzbl -17(%rbp), %eax
- movsbl %al, %eax
- cmpl $89, %eax
- je .L16
- cmpl $89, %eax
- jg .L17
- cmpl $78, %eax
- je .L18
- jmp .L15
- .L17:
- cmpl $110, %eax
- je .L19
- cmpl $121, %eax
- jne .L15
- call _Z12printNumbersv
- jmp .L21
- .L16:
- call _Z12printNumbersv
- jmp .L21
- .L19:
- call main
- jmp .L21
- .L18:
- call main
- jmp .L21
- .L15:
- leaq .LC15(%rip), %rsi
- leaq _ZSt4cout(%rip), %rdi
- call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
- jmp .L14
- .L21:
- nop
- movq -8(%rbp), %rax
- xorq %fs:40, %rax
- je .L22
- call __stack_chk_fail@PLT
- .L22:
- leave
- .cfi_def_cfa 7, 8
- ret
- .cfi_endproc
- .LFE1495:
- .size _Z12printNumbersv, .-_Z12printNumbersv
- .section .rodata
- .LC16:
- .string "Sucessfull\n"
- .text
- .globl _Z12guessingGamev
- .type _Z12guessingGamev, @function
- _Z12guessingGamev:
- .LFB1496:
- .cfi_startproc
- pushq %rbp
- .cfi_def_cfa_offset 16
- .cfi_offset 6, -16
- movq %rsp, %rbp
- .cfi_def_cfa_register 6
- leaq .LC16(%rip), %rsi
- leaq _ZSt4cout(%rip), %rdi
- call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
- nop
- popq %rbp
- .cfi_def_cfa 7, 8
- ret
- .cfi_endproc
- .LFE1496:
- .size _Z12guessingGamev, .-_Z12guessingGamev
- .type _Z41__static_initialization_and_destruction_0ii, @function
- _Z41__static_initialization_and_destruction_0ii:
- .LFB1980:
- .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 .L27
- cmpl $65535, -8(%rbp)
- jne .L27
- 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
- .L27:
- nop
- leave
- .cfi_def_cfa 7, 8
- ret
- .cfi_endproc
- .LFE1980:
- .size _Z41__static_initialization_and_destruction_0ii, .-_Z41__static_initialization_and_destruction_0ii
- .type _GLOBAL__sub_I_main, @function
- _GLOBAL__sub_I_main:
- .LFB1981:
- .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
- .LFE1981:
- .size _GLOBAL__sub_I_main, .-_GLOBAL__sub_I_main
- .section .init_array,"aw"
- .align 8
- .quad _GLOBAL__sub_I_main
- .hidden __dso_handle
- .ident "GCC: (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0"
- .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement