	.file	"712718.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"mode error"
.LC1:
	.string	"money:"
.LC2:
	.string	"%d"
.LC5:
	.string	"ans:%.2lf\n"
	.align 8
.LC6:
	.string	"mode(1, 2, 3, 4, or 0 for exit):"
	.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, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -68[rbp], 17850
	mov	DWORD PTR -64[rbp], 15
	mov	DWORD PTR -60[rbp], 28
	mov	DWORD PTR -56[rbp], 23900
	mov	DWORD PTR -52[rbp], 13
	mov	DWORD PTR -48[rbp], 26
	mov	DWORD PTR -44[rbp], 29750
	mov	DWORD PTR -40[rbp], 13
	mov	DWORD PTR -36[rbp], 26
	mov	DWORD PTR -32[rbp], 14875
	mov	DWORD PTR -28[rbp], 14
	mov	DWORD PTR -24[rbp], 27
	jmp	.L2
.L7:
	mov	eax, DWORD PTR -96[rbp]
	test	eax, eax
	js	.L3
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 4
	jle	.L4
.L3:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L4:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -92[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	pxor	xmm0, xmm0
	movsd	QWORD PTR -88[rbp], xmm0
	mov	eax, DWORD PTR -92[rbp]
	test	eax, eax
	jle	.L5
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 76
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -92[rbp]
	imul	eax, edx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -88[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -88[rbp], xmm0
.L5:
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 80
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -92[rbp]
	cmp	edx, eax
	jge	.L6
	mov	ecx, DWORD PTR -92[rbp]
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 80
	mov	eax, DWORD PTR [rax]
	sub	ecx, eax
	mov	esi, ecx
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 72
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 76
	mov	edx, DWORD PTR [rax]
	mov	eax, ecx
	sub	eax, edx
	imul	eax, esi
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -88[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -88[rbp], xmm0
.L6:
	mov	rax, QWORD PTR -88[rbp]
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
.L2:
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -96[rbp]
	test	eax, eax
	jne	.L7
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC4:
	.long	0
	.long	1079574528
	.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	"712718.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"mode error\000"
	.align	2
.LC1:
	.ascii	"money:\000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.align	2
.LC3:
	.ascii	"ans:%.2lf\012\000"
	.align	2
.LC4:
	.ascii	"mode(1, 2, 3, 4, or 0 for exit):\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #68
	mov	r2, #60
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L10+4
	str	r3, [fp, #-56]
	mov	r3, #15
	str	r3, [fp, #-52]
	mov	r3, #28
	str	r3, [fp, #-48]
	ldr	r3, .L10+8
	str	r3, [fp, #-44]
	mov	r3, #13
	str	r3, [fp, #-40]
	mov	r3, #26
	str	r3, [fp, #-36]
	ldr	r3, .L10+12
	str	r3, [fp, #-32]
	mov	r3, #13
	str	r3, [fp, #-28]
	mov	r3, #26
	str	r3, [fp, #-24]
	ldr	r3, .L10+16
	str	r3, [fp, #-20]
	mov	r3, #14
	str	r3, [fp, #-16]
	mov	r3, #27
	str	r3, [fp, #-12]
	b	.L2
.L7:
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	blt	.L3
	ldr	r3, [fp, #-84]
	cmp	r3, #4
	ble	.L4
.L3:
	ldr	r0, .L10+20
	bl	printf
	b	.L2
.L4:
	ldr	r0, .L10+24
	bl	printf
	sub	r3, fp, #80
	mov	r1, r3
	ldr	r0, .L10+28
	bl	__isoc99_scanf
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	ble	.L5
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #60
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	mul	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L10+32
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
.L5:
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #64
	ldr	r2, [r3]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	bge	.L6
	ldr	r1, [fp, #-80]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #64
	ldr	r3, [r3]
	sub	r1, r1, r3
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #56
	ldr	r0, [r3]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #60
	ldr	r3, [r3]
	sub	r3, r0, r3
	mul	r3, r1, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L10+32
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
.L6:
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	ldr	r0, .L10+36
	bl	printf
.L2:
	ldr	r0, .L10+40
	bl	printf
	sub	r3, fp, #84
	mov	r1, r3
	ldr	r0, .L10+28
	bl	__isoc99_scanf
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L7
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC5
	.word	17850
	.word	23900
	.word	29750
	.word	14875
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1079574528
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
