	.file	"82949883.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter your amount of coins in pence to find out how many ways there are to collect this amount from English coins:"
.LC1:
	.string	"%d%c"
	.align 8
.LC2:
	.string	"Data you entered is incorrect.\nPlease check it for correctness and re-enter."
	.align 8
.LC3:
	.string	"Number of all possible combinations: %d."
	.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, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	DWORD PTR -80[rbp], 0
	jmp	.L2
.L5:
	mov	BYTE PTR -81[rbp], 0
	lea	rdx, -52[rbp]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	sal	rax, 2
	lea	rcx, [rdx+rax]
	lea	rax, -81[rbp]
	mov	rdx, rax
	mov	rsi, rcx
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 2
	jne	.L3
	movzx	eax, BYTE PTR -81[rbp]
	cmp	al, 10
	jne	.L3
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	mov	eax, DWORD PTR -52[rbp+rax*4]
	test	eax, eax
	jg	.L4
.L3:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	sub	DWORD PTR -80[rbp], 1
.L4:
	add	DWORD PTR -80[rbp], 1
.L2:
	cmp	DWORD PTR -80[rbp], 0
	jle	.L5
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -68[rbp], eax
	mov	DWORD PTR -48[rbp], 1
	mov	DWORD PTR -44[rbp], 2
	mov	DWORD PTR -40[rbp], 5
	mov	DWORD PTR -36[rbp], 10
	mov	DWORD PTR -32[rbp], 20
	mov	DWORD PTR -28[rbp], 50
	mov	DWORD PTR -24[rbp], 100
	mov	DWORD PTR -20[rbp], 200
	mov	eax, DWORD PTR -68[rbp]
	add	eax, 1
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -72[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	add	DWORD PTR -72[rbp], 1
.L6:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jle	.L7
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], 1
	mov	DWORD PTR -76[rbp], 0
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	mov	DWORD PTR -72[rbp], eax
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	mov	edx, DWORD PTR -48[rbp+rax*4]
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rsi, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rsi
	add	edx, ecx
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -72[rbp], 1
.L9:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jle	.L10
	add	DWORD PTR -76[rbp], 1
.L8:
	cmp	DWORD PTR -76[rbp], 7
	jle	.L11
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	"82949883.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Enter your amount of coins in pence to find out how"
	.ascii	" many ways there are to collect this amount from En"
	.ascii	"glish coins:\000"
	.align	2
.LC2:
	.ascii	"%d%c\000"
	.align	2
.LC3:
	.ascii	"Data you entered is incorrect.\012Please check it f"
	.ascii	"or correctness and re-enter.\000"
	.align	2
.LC4:
	.ascii	"Number of all possible combinations: %d.\000"
	.align	2
.LC0:
	.word	1
	.word	2
	.word	5
	.word	10
	.word	20
	.word	50
	.word	100
	.word	200
	.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 = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L14+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L2
.L5:
	mov	r3, #0
	strb	r3, [fp, #-65]
	sub	r2, fp, #44
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	add	r3, r2, r3
	sub	r2, fp, #65
	mov	r1, r3
	ldr	r0, .L14+8
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #2
	bne	.L3
	ldrb	r3, [fp, #-65]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L3
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-40]
	cmp	r3, #0
	bgt	.L4
.L3:
	ldr	r0, .L14+12
	bl	puts
	ldr	r3, .L14+16
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #0
	mov	r0, r3
	bl	fseek
	ldr	r3, [fp, #-64]
	sub	r3, r3, #1
	str	r3, [fp, #-64]
.L4:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L2:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	ble	.L5
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-52]
	ldr	r3, .L14+20
	sub	ip, fp, #40
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L6
.L7:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L6:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	ble	.L7
	ldr	r3, [fp, #-48]
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L8
.L11:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	str	r3, [fp, #-56]
	b	.L9
.L10:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	ldr	r2, [fp, #-56]
	sub	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r0, [fp, #-48]
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L9:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	ble	.L10
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L8:
	ldr	r3, [fp, #-60]
	cmp	r3, #7
	ble	.L11
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L14+24
	bl	printf
	ldr	r0, [fp, #-48]
	bl	free
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC5
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	stdin
	.word	.LC0
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
