	.file	"104828325.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter your choice:"
.LC1:
	.string	"a.+ b.- c.* d./ q.quit"
.LC2:
	.string	"result is %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
.L14:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	call	getchar@PLT
	mov	BYTE PTR -9[rbp], al
	cmp	BYTE PTR -9[rbp], 113
	je	.L17
	cmp	BYTE PTR -9[rbp], 96
	jle	.L18
	cmp	BYTE PTR -9[rbp], 100
	jg	.L18
	call	get_first
	mov	DWORD PTR -8[rbp], eax
	call	get_second
	mov	DWORD PTR -4[rbp], eax
	movsx	eax, BYTE PTR -9[rbp]
	cmp	eax, 100
	je	.L7
	cmp	eax, 100
	jg	.L12
	cmp	eax, 99
	je	.L9
	cmp	eax, 99
	jg	.L12
	cmp	eax, 97
	je	.L10
	cmp	eax, 98
	je	.L11
	jmp	.L8
.L10:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -8[rbp]
	cdq
	idiv	DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L8:
	jmp	.L12
.L13:
	nop
.L12:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L13
	jmp	.L14
.L18:
	nop
	jmp	.L14
.L17:
	nop
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC3:
	.string	"Enter the first num:"
.LC4:
	.string	"%d"
	.text
	.globl	get_first
	.type	get_first, @function
get_first:
.LFB1:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 1
	je	.L20
	jmp	.L21
.L22:
	nop
.L21:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L22
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L20:
	mov	eax, DWORD PTR -12[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	get_first, .-get_first
	.section	.rodata
.LC5:
	.string	"Enter the second num:"
	.text
	.globl	get_second
	.type	get_second, @function
get_second:
.LFB2:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 0
.L30:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 1
	jne	.L28
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	jne	.L27
	jmp	.L28
.L29:
	nop
.L28:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L29
	jmp	.L30
.L27:
	mov	eax, DWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	get_second, .-get_second
	.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	"104828325.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter your choice:\000"
	.align	2
.LC1:
	.ascii	"a.+ b.- c.* d./ q.quit\000"
	.align	2
.LC2:
	.ascii	"result is %d\012\000"
	.global	__aeabi_idiv
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
.L15:
	ldr	r0, .L20
	bl	puts
	ldr	r0, .L20+4
	bl	puts
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #113
	beq	.L18
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L19
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #100
	bhi	.L19
	bl	get_first
	str	r0, [fp, #-12]
	bl	get_second
	str	r0, [fp, #-8]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	sub	r3, r3, #97
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L13
.L9:
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L8
.L12:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L20+8
	bl	printf
	b	.L7
.L11:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L20+8
	bl	printf
	b	.L7
.L10:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	mul	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L20+8
	bl	printf
	b	.L7
.L8:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L20+8
	bl	printf
	nop
.L7:
	b	.L13
.L14:
	nop
.L13:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L14
	b	.L15
.L19:
	nop
	b	.L15
.L18:
	nop
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Enter the first num:\000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_first
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_first, %function
get_first:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L28+4
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L28+8
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L23
	b	.L24
.L25:
	nop
.L24:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L25
	ldr	r0, .L28+4
	bl	puts
.L23:
	ldr	r3, [fp, #-12]
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC5
	.word	.LC3
	.word	.LC4
	.size	get_first, .-get_first
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Enter the second num:\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_second
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_second, %function
get_second:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
.L35:
	ldr	r0, .L38+4
	bl	puts
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L38+8
	bl	__isoc99_scanf
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L33
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L32
	b	.L33
.L34:
	nop
.L33:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L34
	b	.L35
.L32:
	ldr	r3, [fp, #-16]
	ldr	r2, .L38
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L37
	bl	__stack_chk_fail
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC7
	.word	.LC6
	.word	.LC4
	.size	get_second, .-get_second
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
