	.file	"86574.c"
	.intel_syntax noprefix
	.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	eax, DWORD PTR -8[rbp]
	jle	.L2
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -8[rbp]
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\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
	push	rbx
	lea	r11, -36864[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 3976
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdx, -40844[rbp]
	lea	rax, -40848[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -40840[rbp], 0
	jmp	.L5
.L6:
	lea	rdx, -40832[rbp]
	mov	eax, DWORD PTR -40840[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 -40840[rbp], 1
.L5:
	mov	eax, DWORD PTR -40848[rbp]
	cmp	DWORD PTR -40840[rbp], eax
	jl	.L6
	mov	DWORD PTR -40840[rbp], 0
	jmp	.L7
.L8:
	lea	rdx, -40432[rbp]
	mov	eax, DWORD PTR -40840[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 -40840[rbp], 1
.L7:
	mov	eax, DWORD PTR -40848[rbp]
	cmp	DWORD PTR -40840[rbp], eax
	jl	.L8
	lea	rax, -40032[rbp]
	mov	edx, 40004
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -40840[rbp], 0
	jmp	.L9
.L13:
	mov	DWORD PTR -40836[rbp], 10000
	jmp	.L10
.L12:
	mov	eax, DWORD PTR -40836[rbp]
	cdqe
	mov	eax, DWORD PTR -40032[rbp+rax*4]
	test	eax, eax
	je	.L11
	mov	eax, DWORD PTR -40840[rbp]
	cdqe
	mov	edx, DWORD PTR -40432[rbp+rax*4]
	mov	eax, DWORD PTR -40836[rbp]
	add	eax, edx
	cmp	eax, 10000
	jg	.L11
	mov	eax, DWORD PTR -40836[rbp]
	cdqe
	mov	edx, DWORD PTR -40032[rbp+rax*4]
	mov	eax, DWORD PTR -40840[rbp]
	cdqe
	mov	eax, DWORD PTR -40832[rbp+rax*4]
	add	edx, eax
	mov	eax, DWORD PTR -40840[rbp]
	cdqe
	mov	ecx, DWORD PTR -40432[rbp+rax*4]
	mov	eax, DWORD PTR -40836[rbp]
	add	eax, ecx
	cdqe
	mov	eax, DWORD PTR -40032[rbp+rax*4]
	mov	ecx, DWORD PTR -40840[rbp]
	movsx	rcx, ecx
	mov	esi, DWORD PTR -40432[rbp+rcx*4]
	mov	ecx, DWORD PTR -40836[rbp]
	lea	ebx, [rsi+rcx]
	mov	esi, edx
	mov	edi, eax
	call	max
	movsx	rdx, ebx
	mov	DWORD PTR -40032[rbp+rdx*4], eax
.L11:
	sub	DWORD PTR -40836[rbp], 1
.L10:
	cmp	DWORD PTR -40836[rbp], 0
	jg	.L12
	mov	eax, DWORD PTR -40840[rbp]
	cdqe
	mov	edx, DWORD PTR -40832[rbp+rax*4]
	mov	eax, DWORD PTR -40840[rbp]
	cdqe
	mov	eax, DWORD PTR -40432[rbp+rax*4]
	cdqe
	mov	eax, DWORD PTR -40032[rbp+rax*4]
	mov	ecx, DWORD PTR -40840[rbp]
	movsx	rcx, ecx
	mov	ebx, DWORD PTR -40432[rbp+rcx*4]
	mov	esi, edx
	mov	edi, eax
	call	max
	movsx	rdx, ebx
	mov	DWORD PTR -40032[rbp+rdx*4], eax
	add	DWORD PTR -40840[rbp], 1
.L9:
	mov	eax, DWORD PTR -40848[rbp]
	cmp	DWORD PTR -40840[rbp], eax
	jl	.L13
	mov	DWORD PTR -40840[rbp], 0
	jmp	.L14
.L17:
	mov	eax, DWORD PTR -40840[rbp]
	cdqe
	mov	edx, DWORD PTR -40032[rbp+rax*4]
	mov	eax, DWORD PTR -40844[rbp]
	cmp	edx, eax
	jl	.L15
	mov	eax, DWORD PTR -40840[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L16
.L15:
	add	DWORD PTR -40840[rbp], 1
.L14:
	cmp	DWORD PTR -40840[rbp], 9999
	jle	.L17
	mov	eax, 0
.L16:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	mov	rbx, QWORD PTR -8[rbp]
	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	"86574.c"
	.text
	.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, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	ble	.L2
	ldr	r3, [fp, #-8]
	b	.L3
.L2:
	ldr	r3, [fp, #-12]
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	max, .-max
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d %d\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"%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 = 40824
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #40704
	sub	sp, sp, #124
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r2, fp, #40704
	sub	r2, r2, #12
	sub	r2, r2, #116
	sub	r3, fp, #40704
	sub	r3, r3, #12
	sub	r3, r3, #120
	mov	r1, r3
	ldr	r0, .L19+4
	bl	__isoc99_scanf
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3952]
	b	.L5
.L6:
	sub	r3, fp, #40704
	sub	r3, r3, #12
	sub	r3, r3, #104
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3952]
	lsl	r2, r2, #2
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L19+8
	bl	__isoc99_scanf
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3952]
	add	r3, r3, #1
	str	r3, [r2, #-3952]
.L5:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3960]
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3952]
	cmp	r2, r3
	blt	.L6
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3952]
	b	.L7
.L8:
	sub	r3, fp, #40192
	sub	r3, r3, #12
	sub	r3, r3, #216
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3952]
	lsl	r2, r2, #2
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L19+8
	bl	__isoc99_scanf
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3952]
	add	r3, r3, #1
	str	r3, [r2, #-3952]
.L7:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3960]
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3952]
	cmp	r2, r3
	blt	.L8
	sub	r3, fp, #36864
	sub	r3, r3, #12
	sub	r3, r3, #3136
	sub	r3, r3, #8
	ldr	r2, .L19+12
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3952]
	b	.L9
.L13:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L19+16
	str	r3, [r2, #-3948]
	b	.L10
.L12:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3948]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-3144]
	cmp	r3, #0
	beq	.L11
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3952]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-3544]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3948]
	add	r3, r2, r3
	ldr	r2, .L19+16
	cmp	r3, r2
	bgt	.L11
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3952]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-3544]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3948]
	add	r3, r2, r3
	sub	r2, fp, #36864
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r0, [r3, #-3144]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3948]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-3144]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3952]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-3944]
	add	r1, r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3952]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-3544]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3948]
	add	r4, r2, r3
	bl	max
	mov	r2, r0
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r4, #2
	add	r3, r1, r3
	str	r2, [r3, #-3144]
.L11:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3948]
	sub	r3, r3, #1
	str	r3, [r2, #-3948]
.L10:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3948]
	cmp	r3, #0
	bgt	.L12
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3952]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-3544]
	sub	r2, fp, #36864
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-3144]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3952]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-3944]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3952]
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r4, [r3, #-3544]
	mov	r0, r2
	bl	max
	mov	r2, r0
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r4, #2
	add	r3, r1, r3
	str	r2, [r3, #-3144]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3952]
	add	r3, r3, #1
	str	r3, [r2, #-3952]
.L9:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3960]
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3952]
	cmp	r2, r3
	blt	.L13
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3952]
	b	.L14
.L17:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3952]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-3144]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3956]
	cmp	r2, r3
	blt	.L15
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r1, [r3, #-3952]
	ldr	r0, .L19+20
	bl	printf
	mov	r3, #0
	b	.L16
.L15:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3952]
	add	r3, r3, #1
	str	r3, [r2, #-3952]
.L14:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3952]
	ldr	r2, .L19+24
	cmp	r3, r2
	ble	.L17
	mov	r3, #0
.L16:
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	40004
	.word	10000
	.word	.LC2
	.word	9999
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
