	.file	"498042.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter a cost and the amount of money that given\n>>> "
.LC1:
	.string	"%lf %lf"
	.align 8
.LC2:
	.string	"\nYour change: %d dollar(s) and %d cent(s).\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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -24[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movsd	xmm0, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, -16[rbp]
	mov	rdi, rdx
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	give_change
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	je	.L2
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	print_change
.L2:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	give_change
	.type	give_change, @function
give_change:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	QWORD PTR -16[rbp], xmm1
	mov	QWORD PTR -24[rbp], rdi
	movsd	xmm0, QWORD PTR -16[rbp]
	subsd	xmm0, QWORD PTR -8[rbp]
	cvttsd2si	edx, xmm0
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	movsd	xmm1, QWORD PTR -16[rbp]
	movsd	xmm0, QWORD PTR .LC3[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	movsd	xmm1, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR .LC3[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	ecx, xmm0
	sub	eax, ecx
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR 4[rdx], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	give_change, .-give_change
	.section	.rodata
.LC4:
	.string	"half"
.LC5:
	.string	"quarter"
.LC6:
	.string	"dime"
.LC7:
	.string	"nickel"
.LC8:
	.string	"penn(y/ie)"
.LC9:
	.string	"You will get: "
.LC10:
	.string	"s"
.LC11:
	.string	""
.LC12:
	.string	"%d %s%s%c "
	.text
	.globl	print_change
	.type	print_change, @function
print_change:
.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, 112
	mov	DWORD PTR -100[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -80[rbp], 50
	mov	DWORD PTR -76[rbp], 25
	mov	DWORD PTR -72[rbp], 10
	mov	DWORD PTR -68[rbp], 5
	mov	DWORD PTR -64[rbp], 1
	lea	rax, .LC4[rip]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC5[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rax, .LC6[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC7[rip]
	mov	QWORD PTR -24[rbp], rax
	lea	rax, .LC8[rip]
	mov	QWORD PTR -16[rbp], rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -88[rbp], 0
	jmp	.L8
.L14:
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	mov	esi, DWORD PTR -80[rbp+rax*4]
	mov	eax, DWORD PTR -100[rbp]
	cdq
	idiv	esi
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L9
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	mov	eax, DWORD PTR -80[rbp+rax*4]
	imul	eax, DWORD PTR -84[rbp]
	sub	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], 0
	jle	.L10
	mov	ecx, 44
	jmp	.L11
.L10:
	mov	ecx, 46
.L11:
	cmp	DWORD PTR -84[rbp], 1
	je	.L12
	lea	rax, .LC10[rip]
	jmp	.L13
.L12:
	lea	rax, .LC11[rip]
.L13:
	mov	edx, DWORD PTR -88[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR -48[rbp+rdx*8]
	mov	esi, DWORD PTR -84[rbp]
	mov	r8d, ecx
	mov	rcx, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	add	DWORD PTR -88[rbp], 1
.L8:
	cmp	DWORD PTR -88[rbp], 4
	jle	.L14
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	print_change, .-print_change
	.section	.rodata
	.align 8
.LC3:
	.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	"498042.c"
	.section	.rodata
	.align	2
.LC1:
	.ascii	"half\000"
	.align	2
.LC2:
	.ascii	"quarter\000"
	.align	2
.LC3:
	.ascii	"dime\000"
	.align	2
.LC4:
	.ascii	"nickel\000"
	.align	2
.LC5:
	.ascii	"penn(y/ie)\000"
	.text
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Enter a cost and the amount of money that given\012"
	.ascii	">>> \000"
	.align	2
.LC8:
	.ascii	"%lf %lf\000"
	.align	2
.LC9:
	.ascii	"\012Your change: %d dollar(s) and %d cent(s).\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L5+4
	bl	printf
	sub	r2, fp, #28
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L5+8
	bl	__isoc99_scanf
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	ip, fp, #16
	str	ip, [sp]
	bl	give_change
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L5+12
	bl	printf
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	print_change
.L2:
	mov	r3, #0
	ldr	r2, .L5
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L4
	bl	__stack_chk_fail
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC10
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.global	__aeabi_dsub
	.global	__aeabi_d2iz
	.global	__aeabi_dmul
	.align	2
	.global	give_change
	.syntax unified
	.arm
	.fpu softvfp
	.type	give_change, %function
give_change:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r2, r0
	ldr	r3, [fp, #4]
	str	r2, [r3]
	mov	r2, #0
	ldr	r3, .L9
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r4, r0
	mov	r2, #0
	ldr	r3, .L9
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	sub	r1, r4, r3
	ldr	r3, .L9+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	ldr	r3, [fp, #4]
	str	r2, [r3, #4]
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L10:
	.align	2
.L9:
	.word	1079574528
	.word	1374389535
	.size	give_change, .-give_change
	.section	.rodata
	.align	2
.LC12:
	.ascii	"You will get: \000"
	.global	__aeabi_idiv
	.align	2
.LC13:
	.ascii	"s\000"
	.align	2
.LC14:
	.ascii	"\000"
	.align	2
.LC15:
	.ascii	"%d %s%s%c \000"
	.align	2
.LC0:
	.word	50
	.word	25
	.word	10
	.word	5
	.word	1
	.align	2
.LC11:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	print_change
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_change, %function
print_change:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-64]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L20+4
	sub	ip, fp, #48
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	ldr	r3, .L20+8
	sub	ip, fp, #28
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	ldr	r0, .L20+12
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L12
.L18:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	ldr	r2, [fp, #-52]
	mul	r3, r2, r3
	ldr	r2, [fp, #-64]
	sub	r3, r2, r3
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-24]
	ldr	r3, [fp, #-52]
	cmp	r3, #1
	beq	.L14
	ldr	r1, .L20+16
	b	.L15
.L14:
	ldr	r1, .L20+20
.L15:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	ble	.L16
	mov	r3, #44
	b	.L17
.L16:
	mov	r3, #46
.L17:
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-52]
	ldr	r0, .L20+24
	bl	printf
.L13:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L12:
	ldr	r3, [fp, #-56]
	cmp	r3, #4
	ble	.L18
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC16
	.word	.LC0
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	print_change, .-print_change
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
