	.file	"922777.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC1:
	.string	"***** ELECTRICITY BILL CALCULATOR *****\n\n"
.LC2:
	.string	"%d"
	.align 8
.LC3:
	.string	"\n\nEnter the number of units (in kWh): "
	.align 8
.LC5:
	.string	"\n\nTotal energy charge for the customer is: $%.2f"
	.align 8
.LC6:
	.string	"\n\nTotal Bill due from this connection is: $%.2f"
	.align 8
.LC7:
	.string	"\n\nDo you want to continue and calculate another bill? If Yes enter 1 else 0: "
	.align 8
.LC8:
	.string	"Error! Program only recognizes 1 or 0 to continue or quit, please try again: "
	.align 8
.LC9:
	.string	"\n\n\nYou calculated the bill %d time(s) and the total amount from all the bills due is $%.2f\n\n"
	.align 8
.LC10:
	.string	"\n\n\nEXITING ELECTRICITY BILL CALCULATOR"
.LC11:
	.string	"\n\n*** BONUS ***\n"
.LC12:
	.string	"Enter a number: "
	.align 8
.LC13:
	.string	"\nError! Please enter a positive number: "
.LC14:
	.string	"\nThe numbers are: "
.LC15:
	.string	"%d "
	.align 8
.LC16:
	.string	"\n\nThe sum of all numbers from 0 to %d is %d"
.LC17:
	.string	"\n\nSum of Even numbers = %d"
.LC18:
	.string	"\n\nSum of Odd numbers = %d"
.LC19:
	.string	"\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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -64[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -60[rbp], 1
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	pxor	xmm0, xmm0
	movss	DWORD PTR -24[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -20[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -16[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -12[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -28[rbp], xmm0
	jmp	.L2
.L9:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L3
.L4:
	mov	eax, 0
	call	displayMenu
	lea	rax, -68[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	errorCheck
	mov	DWORD PTR -52[rbp], eax
.L3:
	cmp	DWORD PTR -52[rbp], 0
	je	.L4
	mov	DWORD PTR -52[rbp], 0
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L6:
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -64[rbp]
	mov	edi, eax
	call	errorCheckUnits
	mov	DWORD PTR -52[rbp], eax
.L5:
	cmp	DWORD PTR -52[rbp], 0
	je	.L6
	mov	DWORD PTR -52[rbp], 0
	mov	edx, DWORD PTR -68[rbp]
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, edx
	mov	edi, eax
	call	getRate
	movd	eax, xmm0
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	movss	xmm0, DWORD PTR -24[rbp]
	movss	xmm2, DWORD PTR .LC4[rip]
	divss	xmm0, xmm2
	mulss	xmm0, xmm1
	movss	DWORD PTR -20[rbp], xmm0
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	charge
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	DWORD PTR -16[rbp], xmm0
	movss	xmm0, DWORD PTR -20[rbp]
	addss	xmm0, DWORD PTR -16[rbp]
	movss	DWORD PTR -12[rbp], xmm0
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -20[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, DWORD PTR -12[rbp]
	movq	rax, xmm4
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L7
.L8:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L7:
	mov	eax, DWORD PTR -60[rbp]
	test	eax, eax
	js	.L8
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, 1
	jg	.L8
	add	DWORD PTR -48[rbp], 1
	movss	xmm0, DWORD PTR -28[rbp]
	addss	xmm0, DWORD PTR -12[rbp]
	movss	DWORD PTR -28[rbp], xmm0
.L2:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, 1
	je	.L9
	pxor	xmm5, xmm5
	cvtss2sd	xmm5, DWORD PTR -28[rbp]
	movq	rdx, xmm5
	mov	eax, DWORD PTR -48[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L10
.L11:
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L10:
	mov	eax, DWORD PTR -56[rbp]
	test	eax, eax
	js	.L11
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -44[rbp], 0
	jmp	.L12
.L15:
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -44[rbp]
	add	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cmp	eax, 1
	jne	.L13
	mov	eax, DWORD PTR -44[rbp]
	add	DWORD PTR -36[rbp], eax
	jmp	.L14
.L13:
	mov	eax, DWORD PTR -44[rbp]
	add	DWORD PTR -32[rbp], eax
.L14:
	add	DWORD PTR -44[rbp], 1
.L12:
	mov	eax, DWORD PTR -56[rbp]
	cmp	DWORD PTR -44[rbp], eax
	jle	.L15
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC19[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC20:
	.string	"1. Residential\n"
.LC21:
	.string	"2. Commercial\n"
.LC22:
	.string	"3. Industrial\n\n"
	.align 8
.LC23:
	.string	"Choose the type of connection: "
	.text
	.globl	displayMenu
	.type	displayMenu, @function
displayMenu:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC20[rip]
	call	puts@PLT
	lea	rdi, .LC21[rip]
	call	puts@PLT
	lea	rdi, .LC22[rip]
	call	puts@PLT
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	displayMenu, .-displayMenu
	.section	.rodata
	.align 8
.LC24:
	.string	"\n\nInvalid Choice! Please enter a valid choice"
	.text
	.globl	errorCheck
	.type	errorCheck, @function
errorCheck:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	jle	.L20
	cmp	DWORD PTR -4[rbp], 3
	jle	.L21
.L20:
	lea	rdi, .LC24[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L22
.L21:
	mov	eax, 1
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	errorCheck, .-errorCheck
	.section	.rodata
	.align 8
.LC25:
	.string	"\n\nInvalid input! Please enter a positive value: "
	.text
	.globl	errorCheckUnits
	.type	errorCheckUnits, @function
errorCheckUnits:
.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
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	jns	.L24
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L25
.L24:
	mov	eax, 1
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	errorCheckUnits, .-errorCheckUnits
	.globl	getRate
	.type	getRate, @function
getRate:
.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 -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	pxor	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
	cmp	DWORD PTR -24[rbp], 1
	jne	.L27
	cmp	DWORD PTR -20[rbp], 0
	js	.L28
	cmp	DWORD PTR -20[rbp], 300
	jg	.L28
	movss	xmm0, DWORD PTR .LC26[rip]
	movss	DWORD PTR -4[rbp], xmm0
	jmp	.L27
.L28:
	cmp	DWORD PTR -20[rbp], 300
	jle	.L29
	cmp	DWORD PTR -20[rbp], 750
	jg	.L29
	movss	xmm0, DWORD PTR .LC27[rip]
	movss	DWORD PTR -4[rbp], xmm0
	jmp	.L27
.L29:
	cmp	DWORD PTR -20[rbp], 750
	jle	.L30
	cmp	DWORD PTR -20[rbp], 1500
	jg	.L30
	movss	xmm0, DWORD PTR .LC28[rip]
	movss	DWORD PTR -4[rbp], xmm0
	jmp	.L27
.L30:
	movss	xmm0, DWORD PTR .LC29[rip]
	movss	DWORD PTR -4[rbp], xmm0
.L27:
	cmp	DWORD PTR -24[rbp], 2
	jne	.L31
	cmp	DWORD PTR -20[rbp], 0
	js	.L32
	cmp	DWORD PTR -20[rbp], 300
	jg	.L32
	movss	xmm0, DWORD PTR .LC30[rip]
	movss	DWORD PTR -4[rbp], xmm0
	jmp	.L31
.L32:
	cmp	DWORD PTR -20[rbp], 300
	jle	.L33
	cmp	DWORD PTR -20[rbp], 750
	jg	.L33
	movss	xmm0, DWORD PTR .LC31[rip]
	movss	DWORD PTR -4[rbp], xmm0
	jmp	.L31
.L33:
	cmp	DWORD PTR -20[rbp], 750
	jle	.L34
	cmp	DWORD PTR -20[rbp], 1500
	jg	.L34
	movss	xmm0, DWORD PTR .LC32[rip]
	movss	DWORD PTR -4[rbp], xmm0
	jmp	.L31
.L34:
	movss	xmm0, DWORD PTR .LC33[rip]
	movss	DWORD PTR -4[rbp], xmm0
.L31:
	cmp	DWORD PTR -24[rbp], 3
	jne	.L35
	cmp	DWORD PTR -20[rbp], 0
	js	.L36
	cmp	DWORD PTR -20[rbp], 300
	jg	.L36
	movss	xmm0, DWORD PTR .LC34[rip]
	movss	DWORD PTR -4[rbp], xmm0
	jmp	.L35
.L36:
	cmp	DWORD PTR -20[rbp], 300
	jle	.L37
	cmp	DWORD PTR -20[rbp], 750
	jg	.L37
	movss	xmm0, DWORD PTR .LC35[rip]
	movss	DWORD PTR -4[rbp], xmm0
	jmp	.L35
.L37:
	cmp	DWORD PTR -20[rbp], 750
	jle	.L38
	cmp	DWORD PTR -20[rbp], 1500
	jg	.L38
	movss	xmm0, DWORD PTR .LC36[rip]
	movss	DWORD PTR -4[rbp], xmm0
	jmp	.L35
.L38:
	movss	xmm0, DWORD PTR .LC37[rip]
	movss	DWORD PTR -4[rbp], xmm0
.L35:
	movss	xmm0, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	getRate, .-getRate
	.globl	charge
	.type	charge, @function
charge:
.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
	cmp	DWORD PTR -4[rbp], 1
	jne	.L41
	mov	eax, 25
	jmp	.L42
.L41:
	cmp	DWORD PTR -4[rbp], 2
	jne	.L43
	mov	eax, 90
	jmp	.L42
.L43:
	mov	eax, 850
.L42:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	charge, .-charge
	.section	.rodata
	.align 4
.LC4:
	.long	1120403456
	.align 4
.LC26:
	.long	1089470464
	.align 4
.LC27:
	.long	1092616192
	.align 4
.LC28:
	.long	1096286208
	.align 4
.LC29:
	.long	1097859072
	.align 4
.LC30:
	.long	1093140480
	.align 4
.LC31:
	.long	1096810496
	.align 4
.LC32:
	.long	1099694080
	.align 4
.LC33:
	.long	1101004800
	.align 4
.LC34:
	.long	1108475904
	.align 4
.LC35:
	.long	1109393408
	.align 4
.LC36:
	.long	1110835200
	.align 4
.LC37:
	.long	1112014848
	.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	"922777.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"***** ELECTRICITY BILL CALCULATOR *****\012\012\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"\012\012Enter the number of units (in kWh): \000"
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_fmul
	.global	__aeabi_fadd
	.global	__aeabi_f2d
	.align	2
.LC3:
	.ascii	"\012\012Total energy charge for the customer is: $%"
	.ascii	".2f\000"
	.align	2
.LC4:
	.ascii	"\012\012Total Bill due from this connection is: $%."
	.ascii	"2f\000"
	.align	2
.LC5:
	.ascii	"\012\012Do you want to continue and calculate anoth"
	.ascii	"er bill? If Yes enter 1 else 0: \000"
	.align	2
.LC6:
	.ascii	"Error! Program only recognizes 1 or 0 to continue o"
	.ascii	"r quit, please try again: \000"
	.align	2
.LC7:
	.ascii	"\012\012\012You calculated the bill %d time(s) and "
	.ascii	"the total amount from all the bills due is $%.2f\012"
	.ascii	"\012\000"
	.align	2
.LC8:
	.ascii	"\012\012\012EXITING ELECTRICITY BILL CALCULATOR\000"
	.align	2
.LC9:
	.ascii	"\012\012*** BONUS ***\012\000"
	.align	2
.LC10:
	.ascii	"Enter a number: \000"
	.align	2
.LC11:
	.ascii	"\012Error! Please enter a positive number: \000"
	.align	2
.LC12:
	.ascii	"\012The numbers are: \000"
	.align	2
.LC13:
	.ascii	"%d \000"
	.align	2
.LC14:
	.ascii	"\012\012The sum of all numbers from 0 to %d is %d\000"
	.align	2
.LC15:
	.ascii	"\012\012Sum of Even numbers = %d\000"
	.align	2
.LC16:
	.ascii	"\012\012Sum of Odd numbers = %d\000"
	.align	2
.LC17:
	.ascii	"\012\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #1
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-32]	@ float
	mov	r3, #0
	str	r3, [fp, #-28]	@ float
	mov	r3, #0
	str	r3, [fp, #-24]	@ float
	mov	r3, #0
	str	r3, [fp, #-20]	@ float
	mov	r3, #0
	str	r3, [fp, #-36]	@ float
	b	.L2
.L9:
	ldr	r0, .L18+4
	bl	puts
	b	.L3
.L4:
	bl	displayMenu
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-76]
	mov	r0, r3
	bl	errorCheck
	str	r0, [fp, #-60]
.L3:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L4
	mov	r3, #0
	str	r3, [fp, #-60]
	ldr	r0, .L18+12
	bl	printf
	b	.L5
.L6:
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-72]
	mov	r0, r3
	bl	errorCheckUnits
	str	r0, [fp, #-60]
.L5:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L6
	mov	r3, #0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-76]
	mov	r1, r2
	mov	r0, r3
	bl	getRate
	str	r0, [fp, #-32]	@ float
	ldr	r3, [fp, #-72]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r1, .L18+16
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-28]	@ float
	ldr	r3, [fp, #-76]
	mov	r0, r3
	bl	charge
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r1, [fp, #-24]	@ float
	ldr	r0, [fp, #-28]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	ldr	r0, [fp, #-28]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L18+20
	bl	printf
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L18+24
	bl	printf
	ldr	r0, .L18+28
	bl	printf
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	b	.L7
.L8:
	ldr	r0, .L18+32
	bl	printf
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
.L7:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	blt	.L8
	ldr	r3, [fp, #-68]
	cmp	r3, #1
	bgt	.L8
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
	ldr	r1, [fp, #-20]	@ float
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-36]	@ float
.L2:
	ldr	r3, [fp, #-68]
	cmp	r3, #1
	beq	.L9
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-56]
	ldr	r0, .L18+36
	bl	printf
	ldr	r0, .L18+40
	bl	printf
	ldr	r0, .L18+44
	bl	puts
	ldr	r0, .L18+48
	bl	printf
	sub	r3, fp, #64
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	b	.L10
.L11:
	ldr	r0, .L18+52
	bl	printf
	sub	r3, fp, #64
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
.L10:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	blt	.L11
	ldr	r0, .L18+56
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L12
.L15:
	ldr	r1, [fp, #-52]
	ldr	r0, .L18+60
	bl	printf
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	cmp	r3, #1
	bne	.L13
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-44]
	b	.L14
.L13:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-40]
.L14:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L12:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	ble	.L15
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-48]
	mov	r1, r3
	ldr	r0, .L18+64
	bl	printf
	ldr	r1, [fp, #-40]
	ldr	r0, .L18+68
	bl	printf
	ldr	r1, [fp, #-44]
	ldr	r0, .L18+72
	bl	printf
	ldr	r0, .L18+76
	bl	puts
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC18
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1120403456
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	main, .-main
	.section	.rodata
	.align	2
.LC19:
	.ascii	"1. Residential\012\000"
	.align	2
.LC20:
	.ascii	"2. Commercial\012\000"
	.align	2
.LC21:
	.ascii	"3. Industrial\012\012\000"
	.align	2
.LC22:
	.ascii	"Choose the type of connection: \000"
	.text
	.align	2
	.global	displayMenu
	.syntax unified
	.arm
	.fpu softvfp
	.type	displayMenu, %function
displayMenu:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L21
	bl	puts
	ldr	r0, .L21+4
	bl	puts
	ldr	r0, .L21+8
	bl	puts
	ldr	r0, .L21+12
	bl	printf
	nop
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	displayMenu, .-displayMenu
	.section	.rodata
	.align	2
.LC23:
	.ascii	"\012\012Invalid Choice! Please enter a valid choice"
	.ascii	"\000"
	.text
	.align	2
	.global	errorCheck
	.syntax unified
	.arm
	.fpu softvfp
	.type	errorCheck, %function
errorCheck:
	@ 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]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L24
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ble	.L25
.L24:
	ldr	r0, .L27
	bl	puts
	mov	r3, #0
	b	.L26
.L25:
	mov	r3, #1
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC23
	.size	errorCheck, .-errorCheck
	.section	.rodata
	.align	2
.LC24:
	.ascii	"\012\012Invalid input! Please enter a positive valu"
	.ascii	"e: \000"
	.text
	.align	2
	.global	errorCheckUnits
	.syntax unified
	.arm
	.fpu softvfp
	.type	errorCheckUnits, %function
errorCheckUnits:
	@ 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]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L30
	ldr	r0, .L32
	bl	printf
	mov	r3, #0
	b	.L31
.L30:
	mov	r3, #1
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC24
	.size	errorCheckUnits, .-errorCheckUnits
	.align	2
	.global	getRate
	.syntax unified
	.arm
	.fpu softvfp
	.type	getRate, %function
getRate:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]	@ float
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L35
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L36
	ldr	r3, [fp, #-16]
	cmp	r3, #300
	bgt	.L36
	ldr	r3, .L48
	str	r3, [fp, #-8]	@ float
	b	.L35
.L36:
	ldr	r3, [fp, #-16]
	cmp	r3, #300
	ble	.L37
	ldr	r3, [fp, #-16]
	ldr	r2, .L48+4
	cmp	r3, r2
	bgt	.L37
	ldr	r3, .L48+8
	str	r3, [fp, #-8]	@ float
	b	.L35
.L37:
	ldr	r3, [fp, #-16]
	ldr	r2, .L48+4
	cmp	r3, r2
	ble	.L38
	ldr	r3, [fp, #-16]
	ldr	r2, .L48+12
	cmp	r3, r2
	bgt	.L38
	ldr	r3, .L48+16
	str	r3, [fp, #-8]	@ float
	b	.L35
.L38:
	ldr	r3, .L48+20
	str	r3, [fp, #-8]	@ float
.L35:
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	bne	.L39
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L40
	ldr	r3, [fp, #-16]
	cmp	r3, #300
	bgt	.L40
	ldr	r3, .L48+24
	str	r3, [fp, #-8]	@ float
	b	.L39
.L40:
	ldr	r3, [fp, #-16]
	cmp	r3, #300
	ble	.L41
	ldr	r3, [fp, #-16]
	ldr	r2, .L48+4
	cmp	r3, r2
	bgt	.L41
	ldr	r3, .L48+28
	str	r3, [fp, #-8]	@ float
	b	.L39
.L41:
	ldr	r3, [fp, #-16]
	ldr	r2, .L48+4
	cmp	r3, r2
	ble	.L42
	ldr	r3, [fp, #-16]
	ldr	r2, .L48+12
	cmp	r3, r2
	bgt	.L42
	ldr	r3, .L48+32
	str	r3, [fp, #-8]	@ float
	b	.L39
.L42:
	ldr	r3, .L48+36
	str	r3, [fp, #-8]	@ float
.L39:
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	bne	.L43
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L44
	ldr	r3, [fp, #-16]
	cmp	r3, #300
	bgt	.L44
	ldr	r3, .L48+40
	str	r3, [fp, #-8]	@ float
	b	.L43
.L44:
	ldr	r3, [fp, #-16]
	cmp	r3, #300
	ble	.L45
	ldr	r3, [fp, #-16]
	ldr	r2, .L48+4
	cmp	r3, r2
	bgt	.L45
	ldr	r3, .L48+44
	str	r3, [fp, #-8]	@ float
	b	.L43
.L45:
	ldr	r3, [fp, #-16]
	ldr	r2, .L48+4
	cmp	r3, r2
	ble	.L46
	ldr	r3, [fp, #-16]
	ldr	r2, .L48+12
	cmp	r3, r2
	bgt	.L46
	ldr	r3, .L48+48
	str	r3, [fp, #-8]	@ float
	b	.L43
.L46:
	ldr	r3, .L48+52
	str	r3, [fp, #-8]	@ float
.L43:
	ldr	r3, [fp, #-8]	@ float
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L49:
	.align	2
.L48:
	.word	1089470464
	.word	750
	.word	1092616192
	.word	1500
	.word	1096286208
	.word	1097859072
	.word	1093140480
	.word	1096810496
	.word	1099694080
	.word	1101004800
	.word	1108475904
	.word	1109393408
	.word	1110835200
	.word	1112014848
	.size	getRate, .-getRate
	.align	2
	.global	charge
	.syntax unified
	.arm
	.fpu softvfp
	.type	charge, %function
charge:
	@ 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]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L51
	mov	r3, #25
	b	.L52
.L51:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bne	.L53
	mov	r3, #90
	b	.L52
.L53:
	ldr	r3, .L54
.L52:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L55:
	.align	2
.L54:
	.word	850
	.size	charge, .-charge
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
