	.file	"294309.c"
	.intel_syntax noprefix
	.text
	.globl	lose
	.bss
	.align 32
	.type	lose, @object
	.size	lose, 4036
lose:
	.zero	4036
	.globl	win
	.align 32
	.type	win, @object
	.size	win, 4036
win:
	.zero	4036
	.globl	use
	.align 32
	.type	use, @object
	.size	use, 4036
use:
	.zero	4036
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.text
	.globl	max
	.type	max, @function
max:
.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 -4[rbp]
	cmp	DWORD PTR -8[rbp], eax
	cmovge	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	max, .-max
	.globl	mem
	.bss
	.align 32
	.type	mem, @object
	.size	mem, 4072324
mem:
	.zero	4072324
	.text
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rax, rax, 1009
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, mem[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	js	.L4
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rax, rax, 1009
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, mem[rip]
	mov	eax, DWORD PTR [rdx+rax]
	jmp	.L12
.L4:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -20[rbp], eax
	je	.L6
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, use[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -24[rbp], eax
	jl	.L7
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, use[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	esi, edx
	mov	edi, eax
	call	dfs
	mov	ecx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, win[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ebx, [rcx+rax]
	jmp	.L8
.L7:
	mov	ebx, 0
.L8:
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	mov	edi, edx
	call	dfs
	mov	ecx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, use[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L9
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, win[rip]
	mov	eax, DWORD PTR [rdx+rax]
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, lose[rip]
	mov	eax, DWORD PTR [rdx+rax]
.L10:
	add	eax, ecx
	mov	esi, ebx
	mov	edi, eax
	call	max
	mov	edx, DWORD PTR -24[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	imul	rdx, rdx, 1009
	add	rdx, rcx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, mem[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rax, rax, 1009
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, mem[rip]
	mov	eax, DWORD PTR [rdx+rax]
	jmp	.L12
.L6:
	mov	eax, 0
.L12:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	dfs, .-dfs
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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
	mov	edx, 4072324
	mov	esi, -1
	lea	rdi, mem[rip]
	call	memset@PLT
	lea	rdx, x[rip]
	lea	rsi, n[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, use[rip]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, win[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rsi, 0[0+rax*4]
	lea	rax, lose[rip]
	add	rax, rsi
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -4[rbp], 1
.L14:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L15
	mov	eax, DWORD PTR x[rip]
	mov	esi, eax
	mov	edi, 0
	call	dfs
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"294309.c"
	.text
	.comm	lose,4036,4
	.comm	win,4036,4
	.comm	use,4036,4
	.comm	n,4,4
	.comm	x,4,4
	.align	2
	.global	max
	.syntax unified
	.arm
	.fpu softvfp
	.type	max, %function
max:
	@ 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	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	max, .-max
	.comm	mem,4072324,4
	.align	2
	.global	dfs
	.syntax unified
	.arm
	.fpu softvfp
	.type	dfs, %function
dfs:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r1, .L13
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #0
	blt	.L4
	ldr	r1, .L13
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	b	.L12
.L4:
	ldr	r3, .L13+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	beq	.L6
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	dfs
	mov	r2, r0
	ldr	r1, .L13+8
	ldr	r3, [fp, #-16]
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #0
	bne	.L7
	ldr	r1, .L13+12
	ldr	r3, [fp, #-16]
	ldr	r3, [r1, r3, lsl #2]
	b	.L8
.L7:
	ldr	r1, .L13+16
	ldr	r3, [fp, #-16]
	ldr	r3, [r1, r3, lsl #2]
.L8:
	add	r4, r3, r2
	ldr	r2, .L13+8
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L9
	ldr	r3, [fp, #-16]
	add	r0, r3, #1
	ldr	r2, .L13+8
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-20]
	sub	r3, r2, r3
	mov	r1, r3
	bl	dfs
	mov	r2, r0
	ldr	r1, .L13+12
	ldr	r3, [fp, #-16]
	ldr	r3, [r1, r3, lsl #2]
	add	r3, r2, r3
	b	.L10
.L9:
	mov	r3, #0
.L10:
	mov	r1, r3
	mov	r0, r4
	bl	max
	mov	r1, r0
	ldr	r0, .L13
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	add	r3, r3, r2
	str	r1, [r0, r3, lsl #2]
	ldr	r1, .L13
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	b	.L12
.L6:
	mov	r3, #0
.L12:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	mem
	.word	n
	.word	use
	.word	win
	.word	lose
	.size	dfs, .-dfs
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d%d\000"
	.align	2
.LC1:
	.ascii	"%d%d%d\000"
	.align	2
.LC2:
	.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, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8
	ldr	r2, .L19
	mvn	r1, #0
	ldr	r0, .L19+4
	bl	memset
	ldr	r2, .L19+8
	ldr	r1, .L19+12
	ldr	r0, .L19+16
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L16
.L17:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, .L19+20
	add	r1, r3, r2
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, .L19+24
	add	r2, r3, r2
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r0, .L19+28
	add	r3, r3, r0
	ldr	r0, .L19+32
	bl	__isoc99_scanf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L16:
	ldr	r3, .L19+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L17
	ldr	r3, .L19+8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #0
	bl	dfs
	mov	r3, r0
	mov	r4, r3
	asr	r5, r4, #31
	mov	r2, r4
	mov	r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #2
	orr	r1, r1, r2, lsr #30
	lsl	r0, r2, #2
	mov	r2, r0
	mov	r3, r1
	adds	r6, r2, r4
	adc	r7, r3, r5
	mov	r2, r6
	mov	r3, r7
	ldr	r0, .L19+36
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L20:
	.align	2
.L19:
	.word	4072324
	.word	mem
	.word	x
	.word	n
	.word	.LC0
	.word	lose
	.word	win
	.word	use
	.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
