	.file	"509574.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
	.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
	lea	r11, -798720[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 1344
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -800048[rbp], 0
	mov	QWORD PTR -800040[rbp], 0
	mov	QWORD PTR -800032[rbp], 0
	mov	QWORD PTR -800024[rbp], 0
	lea	rax, -800056[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -800052[rbp], 0
	jmp	.L2
.L5:
	lea	rdx, -800016[rbp]
	mov	eax, DWORD PTR -800052[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -800052[rbp]
	cdqe
	mov	eax, DWORD PTR -800016[rbp+rax*4]
	cdqe
	add	QWORD PTR -800032[rbp], rax
	mov	rax, QWORD PTR -800032[rbp]
	cmp	rax, QWORD PTR -800024[rbp]
	jle	.L3
	mov	rax, QWORD PTR -800032[rbp]
	mov	QWORD PTR -800024[rbp], rax
.L3:
	mov	rdx, QWORD PTR -800048[rbp]
	mov	rax, QWORD PTR -800024[rbp]
	add	rax, rdx
	cmp	QWORD PTR -800040[rbp], rax
	jge	.L4
	mov	rdx, QWORD PTR -800048[rbp]
	mov	rax, QWORD PTR -800024[rbp]
	add	rax, rdx
	mov	QWORD PTR -800040[rbp], rax
.L4:
	mov	rax, QWORD PTR -800032[rbp]
	add	QWORD PTR -800048[rbp], rax
	add	DWORD PTR -800052[rbp], 1
.L2:
	mov	eax, DWORD PTR -800056[rbp]
	cmp	DWORD PTR -800052[rbp], eax
	jl	.L5
	mov	rax, QWORD PTR -800040[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	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	"509574.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%lld\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 800056
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #798720
	sub	sp, sp, #1328
	sub	sp, sp, #12
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	sub	r3, fp, #798720
	sub	r3, r3, #36
	sub	r3, r3, #1312
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stmdb	r1, {r2-r3}
	sub	r3, fp, #798720
	sub	r3, r3, #36
	sub	r3, r3, #1312
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	sub	r3, fp, #798720
	sub	r3, r3, #36
	sub	r3, r3, #1296
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stmdb	r1, {r2-r3}
	sub	r3, fp, #798720
	sub	r3, r3, #36
	sub	r3, r3, #1296
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	sub	r3, fp, #798720
	sub	r3, r3, #36
	sub	r3, r3, #1328
	mov	r1, r3
	ldr	r0, .L8+4
	bl	__isoc99_scanf
	sub	r3, fp, #798720
	sub	r3, r3, #36
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1324]
	b	.L2
.L5:
	ldr	r3, .L8+8
	sub	r2, fp, #36
	add	r3, r2, r3
	sub	r2, fp, #798720
	sub	r2, r2, #36
	ldr	r2, [r2, #-1324]
	lsl	r2, r2, #2
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L8+4
	bl	__isoc99_scanf
	sub	r3, fp, #798720
	sub	r3, r3, #36
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #36
	ldr	r3, [r3, #-1324]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-1284]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #798720
	sub	r1, r1, #36
	sub	r1, r1, #1296
	mov	ip, r1
	sub	r1, fp, #798720
	sub	r1, r1, #36
	sub	r1, r1, #1296
	ldmdb	r1, {r0-r1}
	adds	r6, r0, r2
	adc	r7, r1, r3
	stmdb	ip, {r6-r7}
	sub	r3, fp, #798720
	sub	r3, r3, #36
	sub	r3, r3, #1296
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #36
	sub	r3, r3, #1296
	mov	r1, r3
	ldmdb	r2, {r2-r3}
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L3
	sub	r3, fp, #798720
	sub	r3, r3, #36
	sub	r3, r3, #1296
	mov	r1, r3
	sub	r3, fp, #798720
	sub	r3, r3, #36
	sub	r3, r3, #1296
	ldmdb	r3, {r2-r3}
	stm	r1, {r2-r3}
.L3:
	sub	r3, fp, #798720
	sub	r3, r3, #36
	sub	r3, r3, #1312
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #36
	sub	r3, r3, #1296
	ldmdb	r2, {r0-r1}
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	sub	r3, fp, #798720
	sub	r3, r3, #36
	sub	r3, r3, #1312
	ldmia	r3, {r2-r3}
	cmp	r2, r4
	sbcs	r3, r3, r5
	bge	.L4
	sub	r3, fp, #798720
	sub	r3, r3, #36
	sub	r3, r3, #1312
	mov	ip, r3
	sub	r3, fp, #798720
	sub	r3, r3, #36
	sub	r3, r3, #1312
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #36
	sub	r3, r3, #1296
	ldmdb	r2, {r0-r1}
	ldmia	r3, {r2-r3}
	adds	r8, r0, r2
	adc	r9, r1, r3
	stm	ip, {r8-r9}
.L4:
	sub	r3, fp, #798720
	sub	r3, r3, #36
	sub	r3, r3, #1312
	mov	ip, r3
	sub	r3, fp, #798720
	sub	r3, r3, #36
	sub	r3, r3, #1312
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #36
	sub	r3, r3, #1296
	ldmdb	r2, {r0-r1}
	ldmdb	r3, {r2-r3}
	adds	lr, r0, r2
	ldr	r10, .L8+12
	add	r10, fp, r10
	str	lr, [r10]
	adc	r3, r1, r3
	ldr	r2, .L8+16
	add	r2, fp, r2
	str	r3, [r2]
	ldr	r3, .L8+12
	add	r3, fp, r3
	ldmia	r3, {r2-r3}
	stmdb	ip, {r2-r3}
	sub	r3, fp, #798720
	sub	r3, r3, #36
	mov	r2, r3
	sub	r3, fp, #798720
	sub	r3, r3, #36
	ldr	r3, [r3, #-1324]
	add	r3, r3, #1
	str	r3, [r2, #-1324]
.L2:
	sub	r3, fp, #798720
	sub	r3, r3, #36
	ldr	r3, [r3, #-1328]
	sub	r2, fp, #798720
	sub	r2, r2, #36
	ldr	r2, [r2, #-1324]
	cmp	r2, r3
	blt	.L5
	sub	r3, fp, #798720
	sub	r3, r3, #36
	sub	r3, r3, #1312
	ldmia	r3, {r2-r3}
	ldr	r0, .L8+20
	bl	printf
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-40]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC2
	.word	.LC0
	.word	-800004
	.word	-800092
	.word	-800088
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
