	.file	"161081217.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(A, B, C, D, or Q for exit):"
.LC7:
	.string	"%c"
	.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L2
.L30:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 64
	jle	.L3
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 68
	jle	.L4
.L3:
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 96
	jle	.L5
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 100
	jle	.L4
.L5:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L2
.L4:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	pxor	xmm0, xmm0
	movsd	QWORD PTR -16[rbp], xmm0
	movzx	eax, BYTE PTR -21[rbp]
	movsx	eax, al
	sub	eax, 65
	cmp	eax, 35
	ja	.L6
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L8[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L8[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L8:
	.long	.L11-.L8
	.long	.L10-.L8
	.long	.L9-.L8
	.long	.L7-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L11-.L8
	.long	.L10-.L8
	.long	.L9-.L8
	.long	.L7-.L8
	.text
.L11:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jle	.L12
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, edx
	sal	eax, 4
	sub	eax, edx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm2, QWORD PTR .LC4[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	jmp	.L13
.L12:
	pxor	xmm1, xmm1
.L13:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 17850
	jle	.L14
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, -17850[rax]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 2
	add	eax, edx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm2, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm2
	jmp	.L15
.L14:
	pxor	xmm0, xmm0
.L15:
	addsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -16[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	jmp	.L6
.L10:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jle	.L16
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 2
	add	eax, edx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm2, QWORD PTR .LC4[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	jmp	.L17
.L16:
	pxor	xmm1, xmm1
.L17:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 23900
	jle	.L18
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, -23900[rax]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 2
	add	eax, edx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm2, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm2
	jmp	.L19
.L18:
	pxor	xmm0, xmm0
.L19:
	addsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -16[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jle	.L20
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 2
	add	eax, edx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm2, QWORD PTR .LC4[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	jmp	.L21
.L20:
	pxor	xmm1, xmm1
.L21:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 29750
	jle	.L22
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, -29750[rax]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 2
	add	eax, edx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm2, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm2
	jmp	.L23
.L22:
	pxor	xmm0, xmm0
.L23:
	addsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -16[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jle	.L24
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, eax, 14
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm2, QWORD PTR .LC4[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	jmp	.L25
.L24:
	pxor	xmm1, xmm1
.L25:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 14875
	jle	.L26
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, -14875[rax]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 2
	add	eax, edx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm2, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm2
	jmp	.L27
.L26:
	pxor	xmm0, xmm0
.L27:
	addsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -16[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	nop
.L6:
	mov	rax, QWORD PTR -16[rbp]
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
.L2:
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -21[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 81
	je	.L28
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 113
	je	.L28
	mov	eax, 1
	jmp	.L29
.L28:
	mov	eax, 0
.L29:
	test	eax, eax
	jne	.L30
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	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	"161081217.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(A, B, C, D, or Q for exit):\000"
	.align	2
.LC5:
	.ascii	"%c\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	b	.L2
.L30:
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L3
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #68
	bls	.L4
.L3:
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L5
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #100
	bls	.L4
.L5:
	ldr	r0, .L33+8
	bl	puts
	b	.L2
.L4:
	ldr	r0, .L33+12
	bl	printf
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L33+16
	bl	__isoc99_scanf
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	sub	r3, r3, #65
	cmp	r3, #35
	ldrls	pc, [pc, r3, asl #2]
	b	.L6
.L8:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L7
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L7
.L11:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	ble	.L12
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L33+20
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	b	.L13
.L12:
	mov	r4, #0
	mov	r5, #0
.L13:
	ldr	r3, [fp, #-32]
	ldr	r2, .L33+24
	cmp	r3, r2
	ble	.L14
	ldr	r3, [fp, #-32]
	sub	r2, r3, #17664
	sub	r2, r2, #186
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L33+20
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	b	.L15
.L14:
	mov	r2, #0
	mov	r3, #0
.L15:
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	b	.L6
.L10:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	ble	.L16
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L33+20
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	b	.L17
.L16:
	mov	r4, #0
	mov	r5, #0
.L17:
	ldr	r3, [fp, #-32]
	ldr	r2, .L33+28
	cmp	r3, r2
	ble	.L18
	ldr	r3, [fp, #-32]
	sub	r2, r3, #23808
	sub	r2, r2, #92
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L33+20
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	b	.L19
.L18:
	mov	r2, #0
	mov	r3, #0
.L19:
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	b	.L6
.L9:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	ble	.L20
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L33+20
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	b	.L21
.L20:
	mov	r4, #0
	mov	r5, #0
.L21:
	ldr	r3, [fp, #-32]
	ldr	r2, .L33+32
	cmp	r3, r2
	ble	.L22
	ldr	r3, [fp, #-32]
	sub	r2, r3, #29696
	sub	r2, r2, #54
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L33+20
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	b	.L23
.L22:
	mov	r2, #0
	mov	r3, #0
.L23:
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	b	.L6
.L7:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	ble	.L24
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L33+20
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	b	.L25
.L24:
	mov	r4, #0
	mov	r5, #0
.L25:
	ldr	r3, [fp, #-32]
	ldr	r2, .L33+36
	cmp	r3, r2
	ble	.L26
	ldr	r3, [fp, #-32]
	sub	r2, r3, #14848
	sub	r2, r2, #27
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L33+20
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	b	.L27
.L26:
	mov	r2, #0
	mov	r3, #0
.L27:
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	nop
.L6:
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r0, .L33+40
	bl	printf
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L2:
	ldr	r0, .L33+44
	bl	printf
	sub	r3, fp, #33
	mov	r1, r3
	ldr	r0, .L33+48
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #81
	beq	.L28
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #113
	beq	.L28
	mov	r3, #1
	b	.L29
.L28:
	mov	r3, #0
.L29:
	cmp	r3, #0
	bne	.L30
	mov	r3, #0
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC6
	.word	stdin
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1079574528
	.word	17850
	.word	23900
	.word	29750
	.word	14875
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
