	.file	"754369.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"PENNY"
.LC1:
	.string	"NICKEL"
.LC2:
	.string	"DIME"
.LC3:
	.string	"QUARTER"
.LC4:
	.string	"HALF DOLLAR"
.LC5:
	.string	"ONE"
.LC6:
	.string	"TWO"
.LC7:
	.string	"FIVE"
.LC8:
	.string	"TEN"
.LC9:
	.string	"TWENTY"
.LC10:
	.string	"FIFTY"
.LC11:
	.string	"ONE HUNDRED"
	.section	.data.rel.local,"aw"
	.align 32
	.type	units, @object
	.size	units, 96
units:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.quad	.LC6
	.quad	.LC7
	.quad	.LC8
	.quad	.LC9
	.quad	.LC10
	.quad	.LC11
	.section	.rodata
	.align 32
	.type	value, @object
	.size	value, 48
value:
	.long	1
	.long	5
	.long	10
	.long	25
	.long	50
	.long	100
	.long	200
	.long	500
	.long	1000
	.long	2000
	.long	5000
	.long	10000
	.align 32
	.type	sorted, @object
	.size	sorted, 48
sorted:
	.long	2
	.long	10
	.long	7
	.long	4
	.long	1
	.long	5
	.long	11
	.long	0
	.long	3
	.long	8
	.long	9
	.long	6
.LC12:
	.string	"Usage: %s [FILE]\n"
.LC13:
	.string	"r"
.LC14:
	.string	"%d%*c"
.LC15:
	.string	"%d"
.LC16:
	.string	"ERROR"
.LC17:
	.string	"ZERO"
.LC18:
	.string	"%s"
	.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
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -116[rbp], 2
	je	.L2
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L21
.L2:
	add	QWORD PTR -128[rbp], 8
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -72[rbp], rax
	jmp	.L4
.L20:
	mov	DWORD PTR -92[rbp], 0
	mov	DWORD PTR -88[rbp], 0
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	getc@PLT
	cmp	eax, 46
	jne	.L5
	lea	rdx, -92[rbp]
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
.L5:
	lea	rdx, -96[rbp]
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	getc@PLT
	cmp	eax, 46
	jne	.L6
	lea	rdx, -88[rbp]
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
.L6:
	mov	eax, DWORD PTR -100[rbp]
	imul	edx, eax, 100
	mov	eax, DWORD PTR -92[rbp]
	add	eax, edx
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -96[rbp]
	imul	edx, eax, 100
	mov	eax, DWORD PTR -88[rbp]
	add	eax, edx
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jle	.L7
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jne	.L9
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L8
.L9:
	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	QWORD PTR -24[rbp], 0
	mov	BYTE PTR -101[rbp], 0
	mov	DWORD PTR -80[rbp], 11
	jmp	.L10
.L12:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	mov	eax, DWORD PTR -64[rbp+rax*4]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	mov	DWORD PTR -64[rbp+rax*4], edx
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, value[rip]
	mov	eax, DWORD PTR [rdx+rax]
	sub	DWORD PTR -84[rbp], eax
.L11:
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, DWORD PTR -76[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, value[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cmp	edx, eax
	jge	.L12
	sub	DWORD PTR -80[rbp], 1
.L10:
	cmp	DWORD PTR -80[rbp], 0
	jns	.L11
	mov	DWORD PTR -80[rbp], 0
	jmp	.L14
.L18:
	cmp	BYTE PTR -101[rbp], 0
	je	.L16
	mov	edi, 44
	call	putchar@PLT
	jmp	.L17
.L16:
	mov	BYTE PTR -101[rbp], 1
.L17:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sorted[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, units[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sorted[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	mov	edx, DWORD PTR -64[rbp+rdx*4]
	sub	edx, 1
	cdqe
	mov	DWORD PTR -64[rbp+rax*4], edx
.L15:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sorted[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	mov	eax, DWORD PTR -64[rbp+rax*4]
	test	eax, eax
	jne	.L18
	add	DWORD PTR -80[rbp], 1
.L14:
	cmp	DWORD PTR -80[rbp], 11
	jle	.L15
.L8:
	mov	edi, 10
	call	putchar@PLT
.L4:
	lea	rdx, -100[rbp]
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, -1
	jne	.L20
	mov	eax, 0
.L21:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.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	"754369.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"PENNY\000"
	.align	2
.LC1:
	.ascii	"NICKEL\000"
	.align	2
.LC2:
	.ascii	"DIME\000"
	.align	2
.LC3:
	.ascii	"QUARTER\000"
	.align	2
.LC4:
	.ascii	"HALF DOLLAR\000"
	.align	2
.LC5:
	.ascii	"ONE\000"
	.align	2
.LC6:
	.ascii	"TWO\000"
	.align	2
.LC7:
	.ascii	"FIVE\000"
	.align	2
.LC8:
	.ascii	"TEN\000"
	.align	2
.LC9:
	.ascii	"TWENTY\000"
	.align	2
.LC10:
	.ascii	"FIFTY\000"
	.align	2
.LC11:
	.ascii	"ONE HUNDRED\000"
	.data
	.align	2
	.type	units, %object
	.size	units, 48
units:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.section	.rodata
	.align	2
	.type	value, %object
	.size	value, 48
value:
	.word	1
	.word	5
	.word	10
	.word	25
	.word	50
	.word	100
	.word	200
	.word	500
	.word	1000
	.word	2000
	.word	5000
	.word	10000
	.align	2
	.type	sorted, %object
	.size	sorted, 48
sorted:
	.word	2
	.word	10
	.word	7
	.word	4
	.word	1
	.word	5
	.word	11
	.word	0
	.word	3
	.word	8
	.word	9
	.word	6
	.align	2
.LC12:
	.ascii	"Usage: %s [FILE]\012\000"
	.align	2
.LC13:
	.ascii	"r\000"
	.align	2
.LC14:
	.ascii	"%d%*c\000"
	.align	2
.LC15:
	.ascii	"%d\000"
	.align	2
.LC16:
	.ascii	"ERROR\000"
	.align	2
.LC17:
	.ascii	"ZERO\000"
	.align	2
.LC18:
	.ascii	"%s\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-96]
	cmp	r3, #2
	beq	.L2
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L23+4
	bl	printf
	mov	r3, #1
	b	.L21
.L2:
	ldr	r3, [fp, #-100]
	add	r3, r3, #4
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	ldr	r1, .L23+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-64]
	b	.L4
.L20:
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-76]
	ldr	r0, [fp, #-64]
	bl	getc
	mov	r3, r0
	cmp	r3, #46
	bne	.L5
	sub	r3, fp, #80
	mov	r2, r3
	ldr	r1, .L23+12
	ldr	r0, [fp, #-64]
	bl	__isoc99_fscanf
.L5:
	sub	r3, fp, #84
	mov	r2, r3
	ldr	r1, .L23+16
	ldr	r0, [fp, #-64]
	bl	__isoc99_fscanf
	ldr	r0, [fp, #-64]
	bl	getc
	mov	r3, r0
	cmp	r3, #46
	bne	.L6
	sub	r3, fp, #76
	mov	r2, r3
	ldr	r1, .L23+12
	ldr	r0, [fp, #-64]
	bl	__isoc99_fscanf
.L6:
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-80]
	add	r3, r2, r3
	str	r3, [fp, #-60]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-76]
	add	r3, r2, r3
	str	r3, [fp, #-72]
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	ble	.L7
	ldr	r0, .L23+20
	bl	printf
	b	.L8
.L7:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	bne	.L9
	ldr	r0, .L23+24
	bl	printf
	b	.L8
.L9:
	sub	r3, fp, #56
	mov	r2, #48
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	strb	r3, [fp, #-89]
	mov	r3, #11
	str	r3, [fp, #-68]
	b	.L10
.L12:
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-52]
	add	r2, r3, #1
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-52]
	ldr	r2, .L23+28
	ldr	r3, [fp, #-68]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-72]
	sub	r3, r2, r3
	str	r3, [fp, #-72]
.L11:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-60]
	sub	r2, r2, r3
	ldr	r1, .L23+28
	ldr	r3, [fp, #-68]
	ldr	r3, [r1, r3, lsl #2]
	cmp	r2, r3
	bge	.L12
	ldr	r3, [fp, #-68]
	sub	r3, r3, #1
	str	r3, [fp, #-68]
.L10:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bge	.L11
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L14
.L18:
	ldrb	r3, [fp, #-89]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L16
	mov	r0, #44
	bl	putchar
	b	.L17
.L16:
	mov	r3, #1
	strb	r3, [fp, #-89]
.L17:
	ldr	r2, .L23+32
	ldr	r3, [fp, #-68]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L23+36
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L23+40
	bl	printf
	ldr	r2, .L23+32
	ldr	r3, [fp, #-68]
	ldr	r2, [r2, r3, lsl #2]
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-52]
	sub	r1, r3, #1
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-52]
.L15:
	ldr	r2, .L23+32
	ldr	r3, [fp, #-68]
	ldr	r3, [r2, r3, lsl #2]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-52]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L14:
	ldr	r3, [fp, #-68]
	cmp	r3, #11
	ble	.L15
.L8:
	mov	r0, #10
	bl	putchar
.L4:
	sub	r3, fp, #88
	mov	r2, r3
	ldr	r1, .L23+16
	ldr	r0, [fp, #-64]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L20
	mov	r3, #0
.L21:
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC19
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	value
	.word	sorted
	.word	units
	.word	.LC18
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
