	.file	"391275.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Please Select:"
.LC1:
	.string	"1. Add Two Numbers"
.LC2:
	.string	"2. Subtract Two Numbers"
.LC3:
	.string	"0. Quit"
	.text
	.globl	showMenu
	.type	showMenu, @function
showMenu:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	showMenu, .-showMenu
	.section	.rodata
	.align 8
.LC4:
	.string	"Enter two numbers spearated by space: "
.LC5:
	.string	"%d%d"
	.text
	.globl	getNumbers
	.type	getNumbers, @function
getNumbers:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getNumbers, .-getNumbers
	.globl	add
	.type	add, @function
add:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	add, .-add
	.globl	sub
	.type	sub, @function
sub:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	sub, .-sub
	.section	.rodata
.LC6:
	.string	"clear"
.LC7:
	.string	"%d"
.LC8:
	.string	"%d + %d = %d\n"
.LC9:
	.string	"%d - %d = %d\n"
.LC10:
	.string	"Enter to continue..."
.LC11:
	.string	"%c"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L13:
	lea	rdi, .LC6[rip]
	call	system@PLT
	mov	eax, 0
	call	showMenu
	lea	rax, -124[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -124[rbp]
	test	eax, eax
	je	.L17
	lea	rdx, -116[rbp]
	lea	rax, -120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	getNumbers
	mov	eax, DWORD PTR -124[rbp]
	cmp	eax, 1
	je	.L10
	cmp	eax, 2
	je	.L11
	jmp	.L12
.L10:
	mov	edx, DWORD PTR -116[rbp]
	mov	eax, DWORD PTR -120[rbp]
	mov	esi, edx
	mov	edi, eax
	call	add
	mov	ecx, eax
	mov	edx, DWORD PTR -116[rbp]
	mov	eax, DWORD PTR -120[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L11:
	mov	edx, DWORD PTR -116[rbp]
	mov	eax, DWORD PTR -120[rbp]
	mov	esi, edx
	mov	edi, eax
	call	sub
	mov	ecx, eax
	mov	edx, DWORD PTR -116[rbp]
	mov	eax, DWORD PTR -120[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L12:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rax, -125[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L13
.L17:
	nop
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"391275.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Please Select:\000"
	.align	2
.LC1:
	.ascii	"1. Add Two Numbers\000"
	.align	2
.LC2:
	.ascii	"2. Subtract Two Numbers\000"
	.align	2
.LC3:
	.ascii	"0. Quit\000"
	.text
	.align	2
	.global	showMenu
	.syntax unified
	.arm
	.fpu softvfp
	.type	showMenu, %function
showMenu:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	puts
	ldr	r0, .L2+4
	bl	puts
	ldr	r0, .L2+8
	bl	puts
	ldr	r0, .L2+12
	bl	puts
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	showMenu, .-showMenu
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Enter two numbers spearated by space: \000"
	.align	2
.LC5:
	.ascii	"%d%d\000"
	.text
	.align	2
	.global	getNumbers
	.syntax unified
	.arm
	.fpu softvfp
	.type	getNumbers, %function
getNumbers:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r0, .L5
	bl	printf
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, .L5+4
	bl	__isoc99_scanf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC4
	.word	.LC5
	.size	getNumbers, .-getNumbers
	.align	2
	.global	add
	.syntax unified
	.arm
	.fpu softvfp
	.type	add, %function
add:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	add, .-add
	.align	2
	.global	sub
	.syntax unified
	.arm
	.fpu softvfp
	.type	sub, %function
sub:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	sub, .-sub
	.section	.rodata
	.align	2
.LC6:
	.ascii	"clear\000"
	.align	2
.LC7:
	.ascii	"%d\000"
	.align	2
.LC8:
	.ascii	"%d + %d = %d\012\000"
	.align	2
.LC9:
	.ascii	"%d - %d = %d\012\000"
	.align	2
.LC10:
	.ascii	"Enter to continue...\000"
	.align	2
.LC11:
	.ascii	"%c\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #120
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
.L17:
	ldr	r0, .L22+4
	bl	system
	bl	showMenu
	sub	r3, fp, #128
	mov	r1, r3
	ldr	r0, .L22+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	beq	.L21
	sub	r2, fp, #120
	sub	r3, fp, #124
	mov	r1, r2
	mov	r0, r3
	bl	getNumbers
	ldr	r3, [fp, #-128]
	cmp	r3, #1
	beq	.L14
	cmp	r3, #2
	beq	.L15
	b	.L16
.L14:
	ldr	r4, [fp, #-124]
	ldr	r5, [fp, #-120]
	ldr	r3, [fp, #-124]
	ldr	r2, [fp, #-120]
	mov	r1, r2
	mov	r0, r3
	bl	add
	mov	r3, r0
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L22+12
	bl	printf
	b	.L16
.L15:
	ldr	r4, [fp, #-124]
	ldr	r5, [fp, #-120]
	ldr	r3, [fp, #-124]
	ldr	r2, [fp, #-120]
	mov	r1, r2
	mov	r0, r3
	bl	sub
	mov	r3, r0
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L22+16
	bl	printf
	nop
.L16:
	ldr	r3, .L22+20
	ldr	r2, [r3]
	sub	r3, fp, #116
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	ldr	r0, .L22+24
	bl	puts
	sub	r3, fp, #129
	mov	r1, r3
	ldr	r0, .L22+28
	bl	__isoc99_scanf
	b	.L17
.L21:
	nop
	mov	r3, #0
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC12
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	stdin
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
