	.file	"903199.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter time: "
.LC1:
	.string	"%d"
.LC2:
	.string	"Enter the total amount: "
.LC3:
	.string	"%f"
.LC4:
	.string	"Final amount: %.2f"
	.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	testCalDiscount
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movss	xmm2, DWORD PTR -16[rbp]
	movss	DWORD PTR -36[rbp], xmm2
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	movd	xmm0, edx
	mov	edi, eax
	call	calDiscount
	movaps	xmm1, xmm0
	movss	xmm0, DWORD PTR -36[rbp]
	subss	xmm0, xmm1
	movss	DWORD PTR -12[rbp], xmm0
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -12[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	movd	xmm0, eax
	call	displayGift
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	calDiscount
	.type	calDiscount, @function
calDiscount:
.LFB1:
	.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
	movss	DWORD PTR -8[rbp], xmm0
	cmp	DWORD PTR -4[rbp], 15
	jle	.L5
	cmp	DWORD PTR -4[rbp], 19
	jg	.L5
	movss	xmm0, DWORD PTR -8[rbp]
	comiss	xmm0, DWORD PTR .LC5[rip]
	jb	.L5
	movss	xmm1, DWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR .LC6[rip]
	mulss	xmm0, xmm1
	movss	xmm1, DWORD PTR .LC7[rip]
	divss	xmm0, xmm1
	jmp	.L7
.L5:
	cmp	DWORD PTR -4[rbp], 15
	jle	.L8
	cmp	DWORD PTR -4[rbp], 19
	jg	.L8
	movss	xmm0, DWORD PTR -8[rbp]
	comiss	xmm0, DWORD PTR .LC8[rip]
	jb	.L8
	movss	xmm0, DWORD PTR .LC5[rip]
	comiss	xmm0, DWORD PTR -8[rbp]
	jbe	.L8
	movss	xmm1, DWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR .LC9[rip]
	mulss	xmm0, xmm1
	movss	xmm1, DWORD PTR .LC7[rip]
	divss	xmm0, xmm1
	jmp	.L7
.L8:
	cmp	DWORD PTR -4[rbp], 19
	jle	.L11
	cmp	DWORD PTR -4[rbp], 21
	jg	.L11
	movss	xmm0, DWORD PTR -8[rbp]
	comiss	xmm0, DWORD PTR .LC5[rip]
	jb	.L11
	movss	xmm1, DWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR .LC10[rip]
	mulss	xmm0, xmm1
	movss	xmm1, DWORD PTR .LC7[rip]
	divss	xmm0, xmm1
	jmp	.L7
.L11:
	cmp	DWORD PTR -4[rbp], 19
	jle	.L13
	cmp	DWORD PTR -4[rbp], 21
	jg	.L13
	movss	xmm0, DWORD PTR -8[rbp]
	comiss	xmm0, DWORD PTR .LC8[rip]
	jb	.L13
	movss	xmm0, DWORD PTR .LC5[rip]
	comiss	xmm0, DWORD PTR -8[rbp]
	jbe	.L13
	movss	xmm1, DWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR .LC11[rip]
	mulss	xmm0, xmm1
	movss	xmm1, DWORD PTR .LC7[rip]
	divss	xmm0, xmm1
	jmp	.L7
.L13:
	pxor	xmm0, xmm0
.L7:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	calDiscount, .-calDiscount
	.section	.rodata
.LC13:
	.string	"the_stack_data/903199.c"
.LC14:
	.string	"calDiscount (12, 5000) == 0"
.LC16:
	.string	"calDiscount (16, 5000) == 500"
	.align 8
.LC17:
	.string	"testCalDiscount() unit tests passed."
	.text
	.globl	testCalDiscount
	.type	testCalDiscount, @function
testCalDiscount:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movss	xmm0, DWORD PTR .LC5[rip]
	mov	edi, 12
	call	calDiscount
	movd	eax, xmm0
	pxor	xmm0, xmm0
	movd	xmm1, eax
	ucomiss	xmm1, xmm0
	jp	.L27
	pxor	xmm0, xmm0
	movd	xmm2, eax
	ucomiss	xmm2, xmm0
	je	.L23
.L27:
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 43
	lea	rsi, .LC13[rip]
	lea	rdi, .LC14[rip]
	call	__assert_fail@PLT
.L23:
	movss	xmm0, DWORD PTR .LC5[rip]
	mov	edi, 16
	call	calDiscount
	movd	eax, xmm0
	movd	xmm3, eax
	ucomiss	xmm3, DWORD PTR .LC15[rip]
	jp	.L28
	movd	xmm4, eax
	ucomiss	xmm4, DWORD PTR .LC15[rip]
	je	.L25
.L28:
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 44
	lea	rsi, .LC13[rip]
	lea	rdi, .LC16[rip]
	call	__assert_fail@PLT
.L25:
	lea	rdi, .LC17[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	testCalDiscount, .-testCalDiscount
	.section	.rodata
.LC19:
	.string	" (Packet of Milk)"
.LC21:
	.string	" (1kg of Sugar)"
.LC24:
	.string	" (Pack of 6 Eggs)"
.LC25:
	.string	" (No Gift)"
	.text
	.globl	displayGift
	.type	displayGift, @function
displayGift:
.LFB3:
	.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
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm0, DWORD PTR -4[rbp]
	comiss	xmm0, DWORD PTR .LC18[rip]
	jb	.L30
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
.L30:
	movss	xmm0, DWORD PTR .LC20[rip]
	comiss	xmm0, DWORD PTR -4[rbp]
	jb	.L32
	movss	xmm0, DWORD PTR -4[rbp]
	comiss	xmm0, DWORD PTR .LC5[rip]
	jb	.L32
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
.L32:
	movss	xmm0, DWORD PTR .LC22[rip]
	comiss	xmm0, DWORD PTR -4[rbp]
	jb	.L35
	movss	xmm0, DWORD PTR -4[rbp]
	comiss	xmm0, DWORD PTR .LC23[rip]
	jb	.L35
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
.L35:
	movss	xmm0, DWORD PTR .LC23[rip]
	comiss	xmm0, DWORD PTR -4[rbp]
	ja	.L45
	jmp	.L46
.L45:
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
.L46:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	displayGift, .-displayGift
	.section	.rodata
	.align 16
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 16
__PRETTY_FUNCTION__.0:
	.string	"testCalDiscount"
	.align 4
.LC5:
	.long	1167867904
	.align 4
.LC6:
	.long	1092616192
	.align 4
.LC7:
	.long	1120403456
	.align 4
.LC8:
	.long	1159479296
	.align 4
.LC9:
	.long	1088421888
	.align 4
.LC10:
	.long	1094713344
	.align 4
.LC11:
	.long	1091567616
	.align 4
.LC15:
	.long	1140457472
	.align 4
.LC18:
	.long	1171963904
	.align 4
.LC20:
	.long	1171961856
	.align 4
.LC22:
	.long	1167865856
	.align 4
.LC23:
	.long	1161527296
	.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	"903199.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter time: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Enter the total amount: \000"
	.align	2
.LC3:
	.ascii	"%f\000"
	.global	__aeabi_fsub
	.global	__aeabi_f2d
	.align	2
.LC4:
	.ascii	"Final amount: %.2f\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 = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	testCalDiscount
	ldr	r0, .L4+4
	bl	printf
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L4+8
	bl	__isoc99_scanf
	ldr	r0, .L4+12
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L4+16
	bl	__isoc99_scanf
	ldr	r4, [fp, #-24]	@ float
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	calDiscount
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L4+20
	bl	printf
	ldr	r0, [fp, #-20]	@ float
	bl	displayGift
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.global	__aeabi_fcmpge
	.global	__aeabi_fmul
	.global	__aeabi_fdiv
	.global	__aeabi_fcmplt
	.align	2
	.global	calDiscount
	.syntax unified
	.arm
	.fpu softvfp
	.type	calDiscount, %function
calDiscount:
	@ 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]	@ float
	ldr	r3, [fp, #-8]
	cmp	r3, #15
	ble	.L7
	ldr	r3, [fp, #-8]
	cmp	r3, #19
	bgt	.L7
	ldr	r1, .L24
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r1, .L24+4
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	ldr	r1, .L24+8
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	b	.L9
.L7:
	ldr	r3, [fp, #-8]
	cmp	r3, #15
	ble	.L10
	ldr	r3, [fp, #-8]
	cmp	r3, #19
	bgt	.L10
	ldr	r1, .L24+12
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r1, .L24
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r1, .L24+16
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	ldr	r1, .L24+8
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	b	.L9
.L10:
	ldr	r3, [fp, #-8]
	cmp	r3, #19
	ble	.L13
	ldr	r3, [fp, #-8]
	cmp	r3, #21
	bgt	.L13
	ldr	r1, .L24
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r1, .L24+20
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	ldr	r1, .L24+8
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	b	.L9
.L13:
	ldr	r3, [fp, #-8]
	cmp	r3, #19
	ble	.L15
	ldr	r3, [fp, #-8]
	cmp	r3, #21
	bgt	.L15
	ldr	r1, .L24+12
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r1, .L24
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r1, .L24+24
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	ldr	r1, .L24+8
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	b	.L9
.L15:
	mov	r3, #0
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	1167867904
	.word	1092616192
	.word	1120403456
	.word	1159479296
	.word	1088421888
	.word	1094713344
	.word	1091567616
	.size	calDiscount, .-calDiscount
	.global	__aeabi_fcmpeq
	.section	.rodata
	.align	2
.LC6:
	.ascii	"the_stack_data/903199.c\000"
	.align	2
.LC7:
	.ascii	"calDiscount (12, 5000) == 0\000"
	.align	2
.LC8:
	.ascii	"calDiscount (16, 5000) == 500\000"
	.align	2
.LC9:
	.ascii	"testCalDiscount() unit tests passed.\000"
	.text
	.align	2
	.global	testCalDiscount
	.syntax unified
	.arm
	.fpu softvfp
	.type	testCalDiscount, %function
testCalDiscount:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L29
	mov	r0, #12
	bl	calDiscount
	mov	r3, r0
	mov	r1, #0
	mov	r0, r3
	bl	__aeabi_fcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	ldr	r3, .L29+4
	mov	r2, #43
	ldr	r1, .L29+8
	ldr	r0, .L29+12
	bl	__assert_fail
.L27:
	ldr	r1, .L29
	mov	r0, #16
	bl	calDiscount
	mov	r3, r0
	ldr	r1, .L29+16
	mov	r0, r3
	bl	__aeabi_fcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	ldr	r3, .L29+4
	mov	r2, #44
	ldr	r1, .L29+8
	ldr	r0, .L29+20
	bl	__assert_fail
.L28:
	ldr	r0, .L29+24
	bl	puts
	nop
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	1167867904
	.word	__PRETTY_FUNCTION__.4629
	.word	.LC6
	.word	.LC7
	.word	1140457472
	.word	.LC8
	.word	.LC9
	.size	testCalDiscount, .-testCalDiscount
	.section	.rodata
	.align	2
.LC10:
	.ascii	" (Packet of Milk)\000"
	.global	__aeabi_fcmple
	.align	2
.LC11:
	.ascii	" (1kg of Sugar)\000"
	.align	2
.LC12:
	.ascii	" (Pack of 6 Eggs)\000"
	.align	2
.LC13:
	.ascii	" (No Gift)\000"
	.text
	.align	2
	.global	displayGift
	.syntax unified
	.arm
	.fpu softvfp
	.type	displayGift, %function
displayGift:
	@ 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]	@ float
	ldr	r1, .L49
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	ldr	r0, .L49+4
	bl	printf
.L32:
	ldr	r1, .L49+8
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L34
	ldr	r1, .L49+12
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L34
	ldr	r0, .L49+16
	bl	printf
.L34:
	ldr	r1, .L49+20
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L37
	ldr	r1, .L49+24
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L37
	ldr	r0, .L49+28
	bl	printf
.L37:
	ldr	r1, .L49+24
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L47
	b	.L48
.L47:
	ldr	r0, .L49+32
	bl	printf
.L48:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	1171963904
	.word	.LC10
	.word	1171961856
	.word	1167867904
	.word	.LC11
	.word	1167865856
	.word	1161527296
	.word	.LC12
	.word	.LC13
	.size	displayGift, .-displayGift
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4629, %object
	.size	__PRETTY_FUNCTION__.4629, 16
__PRETTY_FUNCTION__.4629:
	.ascii	"testCalDiscount\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
