	.file	"48803.c"
	.intel_syntax noprefix
	.text
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 4036
s:
	.zero	4036
	.globl	j
	.align 32
	.type	j, @object
	.size	j, 4036
j:
	.zero	4036
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"NO"
.LC2:
	.string	"%d %d\n"
.LC3:
	.string	"%d%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, 16
	jmp	.L2
.L22:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, s[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, s[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, s[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -16[rbp], 1
.L3:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L4
	mov	DWORD PTR -16[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, j[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, j[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, j[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -16[rbp], 1
.L5:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L6
	mov	DWORD PTR -12[rbp], 1
	jmp	.L7
.L21:
	mov	DWORD PTR -8[rbp], 1
	jmp	.L8
.L20:
	mov	DWORD PTR -4[rbp], 1
	mov	DWORD PTR -16[rbp], 0
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, s[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -8[rbp]
	add	ecx, edx
	cdq
	idiv	ecx
	mov	eax, edx
	cmp	DWORD PTR -12[rbp], eax
	jg	.L10
	mov	DWORD PTR -4[rbp], 0
	jmp	.L11
.L10:
	add	DWORD PTR -16[rbp], 1
.L9:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L12
.L11:
	cmp	DWORD PTR -4[rbp], 0
	je	.L25
	mov	DWORD PTR -16[rbp], 0
	jmp	.L15
.L18:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, j[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -8[rbp]
	add	ecx, edx
	cdq
	idiv	ecx
	mov	eax, edx
	cmp	DWORD PTR -12[rbp], eax
	jle	.L16
	mov	DWORD PTR -4[rbp], 0
	jmp	.L17
.L16:
	add	DWORD PTR -16[rbp], 1
.L15:
	mov	eax, DWORD PTR M[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L18
.L17:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L26
	jmp	.L14
.L25:
	nop
.L14:
	add	DWORD PTR -8[rbp], 1
.L8:
	mov	edx, DWORD PTR N[rip]
	mov	eax, DWORD PTR M[rip]
	add	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	add	eax, edx
	cmp	DWORD PTR -8[rbp], eax
	jl	.L20
	add	DWORD PTR -12[rbp], 1
.L7:
	mov	edx, DWORD PTR N[rip]
	mov	eax, DWORD PTR M[rip]
	add	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	add	eax, edx
	cmp	DWORD PTR -12[rbp], eax
	jl	.L21
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L2
.L26:
	nop
.L19:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	lea	rdx, M[rip]
	lea	rsi, N[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 2
	je	.L22
	mov	eax, 0
	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	"48803.c"
	.text
	.comm	N,4,4
	.comm	M,4,4
	.comm	s,4036,4
	.comm	j,4036,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.global	__aeabi_idivmod
	.align	2
.LC1:
	.ascii	"NO\000"
	.align	2
.LC2:
	.ascii	"%d %d\012\000"
	.align	2
.LC3:
	.ascii	"%d%d\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
	b	.L2
.L22:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L3
.L4:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, .L27
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L27+4
	bl	__isoc99_scanf
	ldr	r2, .L27
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	sub	r2, r3, #1
	ldr	r1, .L27
	ldr	r3, [fp, #-20]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L3:
	ldr	r3, .L27+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L4
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L5
.L6:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, .L27+12
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L27+4
	bl	__isoc99_scanf
	ldr	r2, .L27+12
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	sub	r2, r3, #1
	ldr	r1, .L27+12
	ldr	r3, [fp, #-20]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L5:
	ldr	r3, .L27+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L6
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L7
.L21:
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L8
.L20:
	mov	r3, #1
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L9
.L12:
	ldr	r2, .L27
	ldr	r3, [fp, #-20]
	ldr	r0, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r1, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	bgt	.L10
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L11
.L10:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L9:
	ldr	r3, .L27+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L12
.L11:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L25
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L15
.L18:
	ldr	r2, .L27+12
	ldr	r3, [fp, #-20]
	ldr	r0, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r1, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	ble	.L16
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L17
.L16:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L15:
	ldr	r3, .L27+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L18
.L17:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L26
	b	.L14
.L25:
	nop
.L14:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L8:
	ldr	r3, .L27+8
	ldr	r2, [r3]
	ldr	r3, .L27+16
	ldr	r3, [r3]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L20
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L7:
	ldr	r3, .L27+8
	ldr	r2, [r3]
	ldr	r3, .L27+16
	ldr	r3, [r3]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L21
	ldr	r0, .L27+20
	bl	puts
	b	.L2
.L26:
	nop
.L19:
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, .L27+24
	bl	printf
.L2:
	ldr	r2, .L27+16
	ldr	r1, .L27+8
	ldr	r0, .L27+28
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #2
	beq	.L22
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	s
	.word	.LC0
	.word	N
	.word	j
	.word	M
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
