	.file	"72012200.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Game %d:\n"
.LC1:
	.string	"%d"
.LC2:
	.string	"    (%d,%d)\n"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4064
	mov	DWORD PTR -8148[rbp], edi
	mov	QWORD PTR -8160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -8124[rbp], 0
	jmp	.L2
.L18:
	add	DWORD PTR -8124[rbp], 1
	mov	eax, DWORD PTR -8124[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8120[rbp], 0
	jmp	.L3
.L4:
	lea	rdx, -4048[rbp]
	mov	eax, DWORD PTR -8120[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -8120[rbp], 1
.L3:
	mov	eax, DWORD PTR -8140[rbp]
	cmp	DWORD PTR -8120[rbp], eax
	jl	.L4
.L16:
	mov	DWORD PTR -8128[rbp], 0
	mov	DWORD PTR -8136[rbp], 0
	mov	DWORD PTR -8132[rbp], 0
	mov	DWORD PTR -8116[rbp], 0
	jmp	.L5
.L8:
	lea	rdx, -8096[rbp]
	mov	eax, DWORD PTR -8116[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -8116[rbp]
	cdqe
	mov	eax, DWORD PTR -8096[rbp+rax*4]
	test	eax, eax
	je	.L6
	mov	DWORD PTR -8128[rbp], 1
.L6:
	mov	eax, DWORD PTR -8116[rbp]
	cdqe
	mov	edx, DWORD PTR -8096[rbp+rax*4]
	mov	eax, DWORD PTR -8116[rbp]
	cdqe
	mov	eax, DWORD PTR -4048[rbp+rax*4]
	cmp	edx, eax
	jne	.L7
	add	DWORD PTR -8136[rbp], 1
.L7:
	add	DWORD PTR -8116[rbp], 1
.L5:
	mov	eax, DWORD PTR -8140[rbp]
	cmp	DWORD PTR -8116[rbp], eax
	jl	.L8
	mov	DWORD PTR -8112[rbp], 0
	jmp	.L9
.L14:
	mov	DWORD PTR -8108[rbp], 0
	mov	DWORD PTR -8104[rbp], 0
	mov	DWORD PTR -8100[rbp], 0
	jmp	.L10
.L13:
	mov	eax, DWORD PTR -8100[rbp]
	cdqe
	mov	eax, DWORD PTR -4048[rbp+rax*4]
	cmp	DWORD PTR -8112[rbp], eax
	jne	.L11
	add	DWORD PTR -8108[rbp], 1
.L11:
	mov	eax, DWORD PTR -8100[rbp]
	cdqe
	mov	eax, DWORD PTR -8096[rbp+rax*4]
	cmp	DWORD PTR -8112[rbp], eax
	jne	.L12
	add	DWORD PTR -8104[rbp], 1
.L12:
	add	DWORD PTR -8100[rbp], 1
.L10:
	mov	eax, DWORD PTR -8140[rbp]
	cmp	DWORD PTR -8100[rbp], eax
	jl	.L13
	mov	eax, DWORD PTR -8108[rbp]
	cmp	DWORD PTR -8104[rbp], eax
	cmovle	eax, DWORD PTR -8104[rbp]
	add	DWORD PTR -8132[rbp], eax
	add	DWORD PTR -8112[rbp], 1
.L9:
	cmp	DWORD PTR -8112[rbp], 9
	jle	.L14
	cmp	DWORD PTR -8128[rbp], 0
	je	.L15
	mov	eax, DWORD PTR -8132[rbp]
	sub	eax, DWORD PTR -8136[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -8136[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	cmp	DWORD PTR -8128[rbp], 0
	jne	.L16
.L2:
	lea	rax, -8140[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 1
	jne	.L17
	mov	eax, DWORD PTR -8140[rbp]
	test	eax, eax
	jne	.L18
.L17:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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	"72012200.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Game %d:\012\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"    (%d,%d)\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8128
	sub	sp, sp, #8
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r0, [r3, #-4036]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r1, [r3, #-4040]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4016]
	b	.L2
.L18:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-4016]
	add	r3, r3, #1
	str	r3, [r2, #-4016]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r1, [r3, #-4016]
	ldr	r0, .L21+4
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4012]
	b	.L3
.L4:
	sub	r3, fp, #4032
	sub	r3, r3, #4
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldr	r2, [r2, #-4012]
	lsl	r2, r2, #2
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L21+8
	bl	__isoc99_scanf
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-4012]
	add	r3, r3, #1
	str	r3, [r2, #-4012]
.L3:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-4032]
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldr	r2, [r2, #-4012]
	cmp	r2, r3
	blt	.L4
.L16:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4020]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4028]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4024]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4008]
	b	.L5
.L8:
	sub	r3, fp, #8064
	sub	r3, r3, #4
	sub	r3, r3, #20
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldr	r2, [r2, #-4008]
	lsl	r2, r2, #2
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L21+8
	bl	__isoc99_scanf
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-4008]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-3988]
	cmp	r3, #0
	beq	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-4020]
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-4008]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-3988]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-4008]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-4044]
	cmp	r2, r3
	bne	.L7
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-4028]
	add	r3, r3, #1
	str	r3, [r2, #-4028]
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-4008]
	add	r3, r3, #1
	str	r3, [r2, #-4008]
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-4032]
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldr	r2, [r2, #-4008]
	cmp	r2, r3
	blt	.L8
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4004]
	b	.L9
.L14:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4000]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3996]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3992]
	b	.L10
.L13:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3992]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-4044]
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldr	r2, [r2, #-4004]
	cmp	r2, r3
	bne	.L11
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-4000]
	add	r3, r3, #1
	str	r3, [r2, #-4000]
.L11:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3992]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-3988]
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldr	r2, [r2, #-4004]
	cmp	r2, r3
	bne	.L12
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3996]
	add	r3, r3, #1
	str	r3, [r2, #-3996]
.L12:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3992]
	add	r3, r3, #1
	str	r3, [r2, #-3992]
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-4032]
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldr	r2, [r2, #-3992]
	cmp	r2, r3
	blt	.L13
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r2, #-3996]
	ldr	r3, [r3, #-4000]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	sub	r2, fp, #4096
	sub	r2, r2, #4
	mov	r1, r2
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldr	r2, [r2, #-4024]
	add	r3, r2, r3
	str	r3, [r1, #-4024]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-4004]
	add	r3, r3, #1
	str	r3, [r2, #-4004]
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-4004]
	cmp	r3, #9
	ble	.L14
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-4020]
	cmp	r3, #0
	beq	.L15
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r2, #-4024]
	ldr	r3, [r3, #-4028]
	sub	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #4
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-4028]
	ldr	r0, .L21+12
	bl	printf
.L15:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-4020]
	cmp	r3, #0
	bne	.L16
.L2:
	sub	r3, fp, #8128
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L21+8
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L17
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-4032]
	cmp	r3, #0
	bne	.L18
.L17:
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
