	.file	"593357.c"
	.intel_syntax noprefix
	.text
	.local	N
	.comm	N,4,4
	.local	M
	.comm	M,4,4
	.local	C
	.comm	C,204,32
	.local	V
	.comm	V,102408,32
	.globl	solve
	.type	solve, @function
solve:
.LFB6:
	.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 -16[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	imul	rax, rax, 2008
	lea	rdx, V[rip]
	mov	QWORD PTR [rax+rdx], 1
	add	DWORD PTR -16[rbp], 1
.L2:
	mov	eax, DWORD PTR M[rip]
	cmp	DWORD PTR -16[rbp], eax
	jle	.L3
	mov	DWORD PTR -12[rbp], 1
	jmp	.L4
.L8:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L5
.L7:
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	movsx	rax, edx
	imul	rax, rax, 251
	add	rax, rcx
	lea	rdx, 0[0+rax*8]
	lea	rax, V[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	imul	rdx, rdx, 251
	add	rdx, rcx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, V[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, C[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	js	.L6
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	imul	rax, rax, 251
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, V[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	imul	rax, rax, 251
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, V[rip]
	mov	rax, QWORD PTR [rdx+rax]
	add	rcx, rax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	imul	rax, rax, 251
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, V[rip]
	mov	QWORD PTR [rdx+rax], rcx
.L6:
	add	DWORD PTR -8[rbp], 1
.L5:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -8[rbp], eax
	jle	.L7
	add	DWORD PTR -12[rbp], 1
.L4:
	mov	eax, DWORD PTR M[rip]
	cmp	DWORD PTR -12[rbp], eax
	jle	.L8
	mov	eax, DWORD PTR M[rip]
	mov	edx, DWORD PTR N[rip]
	movsx	rdx, edx
	cdqe
	imul	rax, rax, 251
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, V[rip]
	mov	rax, QWORD PTR [rdx+rax]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	solve, .-solve
	.section	.rodata
.LC0:
	.string	"%d %d\n"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.text
	.globl	load
	.type	load, @function
load:
.LFB7:
	.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, M[rip]
	lea	rdx, N[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -4[rbp], 1
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, C[rip]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	add	DWORD PTR -4[rbp], 1
.L11:
	mov	eax, DWORD PTR M[rip]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L12
	mov	eax, 0
	call	solve
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	load, .-load
	.section	.rodata
.LC3:
	.string	"COHADAR"
.LC4:
	.string	"r"
.LC5:
	.string	"the-coin-change-problem.in"
.LC6:
	.string	"the_stack_data/593357.c"
.LC7:
	.string	"in"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 2
	jne	.L14
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L14
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L18
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 41
	lea	rsi, .LC6[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L14:
	mov	rax, QWORD PTR stdin[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L16
.L18:
	nop
.L16:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	load
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"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	"593357.c"
	.text
	.local	N
	.comm	N,4,4
	.local	M
	.comm	M,4,4
	.local	C
	.comm	C,204,4
	.local	V
	.comm	V,102408,8
	.align	2
	.global	solve
	.syntax unified
	.arm
	.fpu softvfp
	.type	solve, %function
solve:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, fp}
	add	fp, sp, #8
	sub	sp, sp, #20
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L2
.L3:
	ldr	r1, .L10
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r1, r1, r3
	mov	r2, #1
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L2:
	ldr	r3, .L10+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	ble	.L3
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L4
.L8:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L5
.L7:
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	ldr	r1, .L10
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-20]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldmia	r3, {r0-r1}
	ldr	ip, .L10
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-20]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, ip, r3
	stm	r3, {r0-r1}
	ldr	r2, .L10+8
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L6
	ldr	r1, .L10
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-20]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldmia	r3, {r0-r1}
	ldr	ip, .L10
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, ip, r3
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	ldr	r1, .L10
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-20]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	stm	r3, {r4-r5}
.L6:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L5:
	ldr	r3, .L10+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L7
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L4:
	ldr	r3, .L10+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L8
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, .L10+12
	ldr	r1, [r3]
	ldr	r0, .L10
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	add	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r0, r3
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, r5, fp}
	bx	lr
.L11:
	.align	2
.L10:
	.word	V
	.word	M
	.word	C
	.word	N
	.size	solve, .-solve
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d %d\012\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"%lld\012\000"
	.text
	.align	2
	.global	load
	.syntax unified
	.arm
	.fpu softvfp
	.type	load, %function
load:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L15
	ldr	r2, .L15+4
	ldr	r1, .L15+8
	ldr	r0, [fp, #-16]
	bl	__isoc99_fscanf
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L13
.L14:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, .L15+12
	add	r3, r3, r2
	mov	r2, r3
	ldr	r1, .L15+16
	ldr	r0, [fp, #-16]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L13:
	ldr	r3, .L15
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L14
	bl	solve
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L15+20
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	M
	.word	N
	.word	.LC0
	.word	C
	.word	.LC1
	.word	.LC2
	.size	load, .-load
	.section	.rodata
	.align	2
.LC3:
	.ascii	"COHADAR\000"
	.align	2
.LC4:
	.ascii	"r\000"
	.align	2
.LC5:
	.ascii	"the-coin-change-problem.in\000"
	.align	2
.LC6:
	.ascii	"the_stack_data/593357.c\000"
	.align	2
.LC7:
	.ascii	"in\000"
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L18
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L23
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r1, .L23+4
	ldr	r0, .L23+8
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L22
	ldr	r3, .L23+12
	mov	r2, #41
	ldr	r1, .L23+16
	ldr	r0, .L23+20
	bl	__assert_fail
.L18:
	ldr	r3, .L23+24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L20
.L22:
	nop
.L20:
	ldr	r0, [fp, #-8]
	bl	load
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	__PRETTY_FUNCTION__.5340
	.word	.LC6
	.word	.LC7
	.word	stdin
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5340, %object
	.size	__PRETTY_FUNCTION__.5340, 5
__PRETTY_FUNCTION__.5340:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
