	.file	"240870.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\350\250\210\347\256\227\347\265\220\346\236\234: %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
	call	Calculator
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC1:
	.string	"\350\253\213\350\274\270\345\205\245\347\254\254\344\270\200\345\200\213\346\225\270\345\200\274:"
.LC2:
	.string	"%d"
.LC3:
	.string	"\350\253\213\350\274\270\345\205\245\347\254\254\344\272\214\345\200\213\346\225\270\345\200\274:"
.LC4:
	.string	"\346\262\222\346\234\211 %d \345\212\237\350\203\275\351\201\270\351\240\205.\n"
	.text
	.globl	Calculator
	.type	Calculator, @function
Calculator:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 0
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	Menu
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 4
	je	.L4
	cmp	eax, 4
	jg	.L5
	cmp	eax, 3
	je	.L6
	cmp	eax, 3
	jg	.L5
	cmp	eax, 1
	je	.L7
	cmp	eax, 2
	je	.L8
	jmp	.L5
.L7:
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	call	Add
	mov	DWORD PTR -12[rbp], eax
	jmp	.L9
.L8:
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	call	Sub
	mov	DWORD PTR -12[rbp], eax
	jmp	.L9
.L6:
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	call	Mul
	mov	DWORD PTR -12[rbp], eax
	jmp	.L9
.L4:
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	call	Div
	mov	DWORD PTR -12[rbp], eax
	jmp	.L9
.L5:
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L9:
	mov	eax, DWORD PTR -12[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Calculator, .-Calculator
	.section	.rodata
.LC5:
	.string	"Menu \350\253\213\350\274\270\345\205\245\345\212\237\350\203\275\347\267\250\350\231\237:"
.LC6:
	.string	"================"
.LC7:
	.string	" - 1 - \345\212\240\346\263\225"
.LC8:
	.string	" - 2 - \346\270\233\346\263\225"
.LC9:
	.string	" - 3 - \344\271\230\346\263\225"
.LC10:
	.string	" - 4 - \351\231\244\346\263\225"
.LC11:
	.string	"================End"
	.text
	.globl	Menu
	.type	Menu, @function
Menu:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	Menu, .-Menu
	.globl	Add
	.type	Add, @function
Add:
.LFB3:
	.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
.LFE3:
	.size	Add, .-Add
	.globl	Sub
	.type	Sub, @function
Sub:
.LFB4:
	.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
.LFE4:
	.size	Sub, .-Sub
	.globl	Mul
	.type	Mul, @function
Mul:
.LFB5:
	.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]
	imul	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	Mul, .-Mul
	.globl	Div
	.type	Div, @function
Div:
.LFB6:
	.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]
	cdq
	idiv	DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	Div, .-Div
	.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	"240870.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\350\250\210\347\256\227\347\265\220\346\236\234: %"
	.ascii	"d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	Calculator
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L3
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	main, .-main
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\350\253\213\350\274\270\345\205\245\347\254\254\344"
	.ascii	"\270\200\345\200\213\346\225\270\345\200\274:\000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"\350\253\213\350\274\270\345\205\245\347\254\254\344"
	.ascii	"\272\214\345\200\213\346\225\270\345\200\274:\000"
	.align	2
.LC4:
	.ascii	"\346\262\222\346\234\211 %d \345\212\237\350\203\275"
	.ascii	"\351\201\270\351\240\205.\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Calculator
	.syntax unified
	.arm
	.fpu softvfp
	.type	Calculator, %function
Calculator:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, .L15+4
	bl	puts
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L15+8
	bl	__isoc99_scanf
	ldr	r0, .L15+12
	bl	puts
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L15+8
	bl	__isoc99_scanf
	bl	Menu
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L15+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L6
.L8:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L7
.L11:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	Add
	str	r0, [fp, #-12]
	b	.L12
.L10:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	Sub
	str	r0, [fp, #-12]
	b	.L12
.L9:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	Mul
	str	r0, [fp, #-12]
	b	.L12
.L7:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	Div
	str	r0, [fp, #-12]
	b	.L12
.L6:
	ldr	r3, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L15+16
	bl	printf
	nop
.L12:
	ldr	r3, [fp, #-12]
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC5
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	Calculator, .-Calculator
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Menu \350\253\213\350\274\270\345\205\245\345\212\237"
	.ascii	"\350\203\275\347\267\250\350\231\237:\000"
	.align	2
.LC7:
	.ascii	"================\000"
	.align	2
.LC8:
	.ascii	" - 1 - \345\212\240\346\263\225\000"
	.align	2
.LC9:
	.ascii	" - 2 - \346\270\233\346\263\225\000"
	.align	2
.LC10:
	.ascii	" - 3 - \344\271\230\346\263\225\000"
	.align	2
.LC11:
	.ascii	" - 4 - \351\231\244\346\263\225\000"
	.align	2
.LC12:
	.ascii	"================End\000"
	.text
	.align	2
	.global	Menu
	.syntax unified
	.arm
	.fpu softvfp
	.type	Menu, %function
Menu:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L18
	bl	puts
	ldr	r0, .L18+4
	bl	puts
	ldr	r0, .L18+8
	bl	puts
	ldr	r0, .L18+12
	bl	puts
	ldr	r0, .L18+16
	bl	puts
	ldr	r0, .L18+20
	bl	puts
	ldr	r0, .L18+24
	bl	puts
	nop
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	Menu, .-Menu
	.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
	.align	2
	.global	Mul
	.syntax unified
	.arm
	.fpu softvfp
	.type	Mul, %function
Mul:
	@ 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	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	mul	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	Mul, .-Mul
	.global	__aeabi_idiv
	.align	2
	.global	Div
	.syntax unified
	.arm
	.fpu softvfp
	.type	Div, %function
Div:
	@ 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	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	Div, .-Div
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
