	.file	"469066.c"
	.intel_syntax noprefix
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 5000
a:
	.zero	5000
	.globl	hx
	.align 4
	.type	hx, @object
	.size	hx, 4
hx:
	.zero	4
	.globl	hy
	.align 4
	.type	hy, @object
	.size	hy, 4
hy:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.text
	.globl	ok
	.type	ok, @function
ok:
.LFB0:
	.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
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR hx[rip]
	add	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jne	.L2
	mov	eax, DWORD PTR hy[rip]
	add	eax, 2
	cmp	DWORD PTR -8[rbp], eax
	je	.L3
	mov	eax, DWORD PTR hy[rip]
	sub	eax, 2
	cmp	DWORD PTR -8[rbp], eax
	jne	.L2
.L3:
	mov	eax, 0
	jmp	.L4
.L2:
	mov	eax, DWORD PTR hx[rip]
	add	eax, 2
	cmp	DWORD PTR -4[rbp], eax
	jne	.L5
	mov	eax, DWORD PTR hy[rip]
	add	eax, 1
	cmp	DWORD PTR -8[rbp], eax
	je	.L6
	mov	eax, DWORD PTR hy[rip]
	sub	eax, 1
	cmp	DWORD PTR -8[rbp], eax
	jne	.L5
.L6:
	mov	eax, 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR hx[rip]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jne	.L7
	mov	eax, DWORD PTR hy[rip]
	add	eax, 2
	cmp	DWORD PTR -8[rbp], eax
	je	.L8
	mov	eax, DWORD PTR hy[rip]
	sub	eax, 2
	cmp	DWORD PTR -8[rbp], eax
	jne	.L7
.L8:
	mov	eax, 0
	jmp	.L4
.L7:
	mov	eax, DWORD PTR hx[rip]
	sub	eax, 2
	cmp	DWORD PTR -4[rbp], eax
	jne	.L9
	mov	eax, DWORD PTR hy[rip]
	add	eax, 1
	cmp	DWORD PTR -8[rbp], eax
	je	.L10
	mov	eax, DWORD PTR hy[rip]
	sub	eax, 1
	cmp	DWORD PTR -8[rbp], eax
	jne	.L9
.L10:
	mov	eax, 0
	jmp	.L4
.L9:
	mov	eax, DWORD PTR hx[rip]
	cmp	DWORD PTR -4[rbp], eax
	jne	.L11
	mov	eax, DWORD PTR hy[rip]
	cmp	DWORD PTR -8[rbp], eax
	jne	.L11
	mov	eax, 0
	jmp	.L4
.L11:
	mov	eax, 1
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ok, .-ok
	.section	.rodata
.LC0:
	.string	"%d%d%d%d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	lea	r8, hy[rip]
	lea	rcx, hx[rip]
	lea	rdx, n[rip]
	lea	rsi, m[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L13
.L16:
	mov	edx, DWORD PTR n[rip]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	ok
	test	eax, eax
	je	.L14
	mov	eax, DWORD PTR n[rip]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*8]
	lea	rax, a[rip]
	mov	QWORD PTR [rdx+rax], 1
	jmp	.L15
.L14:
	mov	eax, DWORD PTR n[rip]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*8]
	lea	rax, a[rip]
	mov	QWORD PTR [rdx+rax], 0
.L15:
	add	DWORD PTR -8[rbp], 1
.L13:
	mov	eax, DWORD PTR m[rip]
	cmp	DWORD PTR -8[rbp], eax
	jle	.L16
	mov	DWORD PTR -8[rbp], 0
	jmp	.L17
.L20:
	mov	eax, DWORD PTR m[rip]
	mov	edx, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	ok
	test	eax, eax
	je	.L18
	mov	eax, DWORD PTR m[rip]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*8]
	lea	rax, a[rip]
	mov	QWORD PTR [rdx+rax], 1
	jmp	.L19
.L18:
	mov	eax, DWORD PTR m[rip]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*8]
	lea	rax, a[rip]
	mov	QWORD PTR [rdx+rax], 0
.L19:
	add	DWORD PTR -8[rbp], 1
.L17:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -8[rbp], eax
	jle	.L20
	mov	eax, DWORD PTR n[rip]
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
	jmp	.L21
.L26:
	mov	eax, DWORD PTR m[rip]
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	jmp	.L22
.L25:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	ok
	test	eax, eax
	je	.L23
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*8]
	lea	rax, a[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	movsx	rsi, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rsi
	lea	rdx, 0[0+rax*8]
	lea	rax, a[rip]
	mov	rax, QWORD PTR [rdx+rax]
	add	rcx, rax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rsi
	lea	rdx, 0[0+rax*8]
	lea	rax, a[rip]
	mov	QWORD PTR [rdx+rax], rcx
	jmp	.L24
.L23:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*8]
	lea	rax, a[rip]
	mov	QWORD PTR [rdx+rax], 0
.L24:
	sub	DWORD PTR -8[rbp], 1
.L22:
	cmp	DWORD PTR -8[rbp], 0
	jns	.L25
	sub	DWORD PTR -4[rbp], 1
.L21:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L26
	mov	rax, QWORD PTR a[rip]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"469066.c"
	.text
	.comm	a,5000,8
	.comm	hx,4,4
	.comm	hy,4,4
	.comm	m,4,4
	.comm	n,4,4
	.align	2
	.global	ok
	.syntax unified
	.arm
	.fpu softvfp
	.type	ok, %function
ok:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, .L12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L2
	ldr	r3, .L12+4
	ldr	r3, [r3]
	add	r3, r3, #2
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	beq	.L3
	ldr	r3, .L12+4
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L2
.L3:
	mov	r3, #0
	b	.L4
.L2:
	ldr	r3, .L12
	ldr	r3, [r3]
	add	r3, r3, #2
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L5
	ldr	r3, .L12+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	beq	.L6
	ldr	r3, .L12+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L5
.L6:
	mov	r3, #0
	b	.L4
.L5:
	ldr	r3, .L12
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L7
	ldr	r3, .L12+4
	ldr	r3, [r3]
	add	r3, r3, #2
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	beq	.L8
	ldr	r3, .L12+4
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L7
.L8:
	mov	r3, #0
	b	.L4
.L7:
	ldr	r3, .L12
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L9
	ldr	r3, .L12+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	beq	.L10
	ldr	r3, .L12+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L9
.L10:
	mov	r3, #0
	b	.L4
.L9:
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L11
	ldr	r3, .L12+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L11
	mov	r3, #0
	b	.L4
.L11:
	mov	r3, #1
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L13:
	.align	2
.L12:
	.word	hx
	.word	hy
	.size	ok, .-ok
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d%d%d%d\000"
	.align	2
.LC1:
	.ascii	"%lld\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	ldr	r3, .L30
	str	r3, [sp]
	ldr	r3, .L30+4
	ldr	r2, .L30+8
	ldr	r1, .L30+12
	ldr	r0, .L30+16
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L15
.L18:
	ldr	r3, .L30+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	ok
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L30+8
	ldr	r1, [r3]
	ldr	r0, .L30+20
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	add	r3, r3, r1
	lsl	r3, r3, #3
	add	r1, r0, r3
	mov	r2, #1
	mov	r3, #0
	stm	r1, {r2-r3}
	b	.L17
.L16:
	ldr	r3, .L30+8
	ldr	r1, [r3]
	ldr	r0, .L30+20
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	add	r3, r3, r1
	lsl	r3, r3, #3
	add	r1, r0, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
.L17:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L15:
	ldr	r3, .L30+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L18
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L19
.L22:
	ldr	r3, .L30+12
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	ok
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L30+12
	ldr	r2, [r3]
	ldr	r1, .L30+20
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r1, r1, r3
	mov	r2, #1
	mov	r3, #0
	stm	r1, {r2-r3}
	b	.L21
.L20:
	ldr	r3, .L30+12
	ldr	r2, [r3]
	ldr	r1, .L30+20
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r1, r1, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
.L21:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L19:
	ldr	r3, .L30+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L22
	ldr	r3, .L30+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L23
.L28:
	ldr	r3, .L30+12
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L24
.L27:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	ok
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	ldr	r1, .L30+20
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-16]
	add	ip, r3, #1
	ldr	lr, .L30+20
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	add	r3, r3, ip
	lsl	r3, r3, #3
	add	r3, lr, r3
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	ldr	r1, .L30+20
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	stm	r3, {r4-r5}
	b	.L26
.L25:
	ldr	r1, .L30+20
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r1, r1, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
.L26:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
.L24:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L27
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L23:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L28
	ldr	r3, .L30+20
	ldmia	r3, {r2-r3}
	ldr	r0, .L30+24
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L31:
	.align	2
.L30:
	.word	hy
	.word	hx
	.word	n
	.word	m
	.word	.LC0
	.word	a
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
