	.file	"27736.c"
	.intel_syntax noprefix
	.text
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 4000180
buf:
	.zero	4000180
	.globl	suf
	.align 32
	.type	suf, @object
	.size	suf, 1600072
suf:
	.zero	1600072
	.globl	nxt
	.align 32
	.type	nxt, @object
	.size	nxt, 800036
nxt:
	.zero	800036
	.text
	.globl	llmax
	.type	llmax, @function
llmax:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	cmp	QWORD PTR -16[rbp], rax
	cmovge	rax, QWORD PTR -16[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	llmax, .-llmax
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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, 56
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L4
.L18:
	lea	rax, -52[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -48[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, buf[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, suf[rip]
	mov	QWORD PTR [rdx+rax], 0
	add	DWORD PTR -48[rbp], 1
.L5:
	mov	eax, DWORD PTR -52[rbp]
	add	eax, eax
	sub	eax, 1
	cmp	DWORD PTR -48[rbp], eax
	jl	.L6
	mov	eax, DWORD PTR -52[rbp]
	add	eax, eax
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, suf[rip]
	mov	QWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -52[rbp]
	add	eax, eax
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, suf[rip]
	mov	QWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, 1
	add	eax, eax
	mov	DWORD PTR -48[rbp], eax
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -48[rbp]
	add	eax, 2
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, suf[rip]
	mov	rbx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, buf[rip]
	add	rax, rdx
	mov	rdi, rax
	call	atoll@PLT
	lea	rcx, [rbx+rax]
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, suf[rip]
	mov	QWORD PTR [rdx+rax], rcx
	sub	DWORD PTR -48[rbp], 2
.L7:
	cmp	DWORD PTR -48[rbp], 0
	jns	.L8
	mov	DWORD PTR -44[rbp], -1
	mov	DWORD PTR -48[rbp], 2
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -48[rbp]
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, buf[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 45
	jne	.L10
	cmp	DWORD PTR -44[rbp], 0
	js	.L11
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, nxt[rip]
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L11:
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -44[rbp], eax
.L10:
	add	DWORD PTR -48[rbp], 2
.L9:
	mov	eax, DWORD PTR -52[rbp]
	add	eax, eax
	sub	eax, 1
	cmp	DWORD PTR -48[rbp], eax
	jl	.L12
	cmp	DWORD PTR -44[rbp], 0
	js	.L13
	mov	eax, DWORD PTR -52[rbp]
	lea	ecx, [rax+rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, nxt[rip]
	mov	DWORD PTR [rdx+rax], ecx
.L13:
	mov	QWORD PTR -40[rbp], 0
	movabs	rax, -9223372036854775808
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -48[rbp], 0
	jmp	.L14
.L17:
	cmp	DWORD PTR -48[rbp], 0
	jle	.L15
	mov	eax, DWORD PTR -48[rbp]
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, buf[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 45
	jne	.L15
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, suf[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -48[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, nxt[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, suf[rip]
	mov	rdx, QWORD PTR [rcx+rdx]
	sub	rax, rdx
	mov	rsi, rax
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, rsi
	mov	rcx, rax
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, nxt[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, suf[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	llmax
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, buf[rip]
	add	rax, rdx
	mov	rdi, rax
	call	atoll@PLT
	sub	QWORD PTR -40[rbp], rax
	jmp	.L16
.L15:
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, buf[rip]
	add	rax, rdx
	mov	rdi, rax
	call	atoll@PLT
	add	QWORD PTR -40[rbp], rax
.L16:
	add	DWORD PTR -48[rbp], 2
.L14:
	mov	eax, DWORD PTR -52[rbp]
	add	eax, eax
	sub	eax, 1
	cmp	DWORD PTR -48[rbp], eax
	jl	.L17
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	llmax
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -56[rbp], edx
	test	eax, eax
	jne	.L18
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"27736.c"
	.text
	.comm	buf,4000180,4
	.comm	suf,1600072,8
	.comm	nxt,800036,4
	.align	2
	.global	llmax
	.syntax unified
	.arm
	.fpu softvfp
	.type	llmax, %function
llmax:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	cmp	r2, r0
	sbcs	ip, r3, r1
	bge	.L3
	mov	r2, r0
	mov	r3, r1
.L3:
	mov	r0, r2
	mov	r1, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	llmax, .-llmax
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"%lld\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 = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #72
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L22+4
	bl	__isoc99_scanf
	b	.L5
.L19:
	sub	r3, fp, #64
	mov	r1, r3
	ldr	r0, .L22+4
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L6
.L7:
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L22+8
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L22+12
	bl	__isoc99_scanf
	ldr	r2, .L22+16
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L6:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #1
	sub	r3, r3, #1
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	blt	.L7
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #1
	add	r3, r3, #1
	ldr	r2, .L22+16
	lsl	r3, r3, #3
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #1
	ldr	r2, .L22+16
	lsl	r3, r3, #3
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-64]
	sub	r3, r3, #1
	lsl	r3, r3, #1
	str	r3, [fp, #-60]
	b	.L8
.L9:
	ldr	r3, [fp, #-60]
	add	r3, r3, #2
	ldr	r2, .L22+16
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r4-r5}
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L22+8
	add	r3, r3, r2
	mov	r0, r3
	bl	atoll
	mov	r2, r0
	mov	r3, r1
	adds	r1, r4, r2
	str	r1, [fp, #-76]
	adc	r3, r5, r3
	str	r3, [fp, #-72]
	ldr	r2, .L22+16
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r2, fp, #76
	ldmia	r2, {r1-r2}
	stm	r3, {r1-r2}
	ldr	r3, [fp, #-60]
	sub	r3, r3, #2
	str	r3, [fp, #-60]
.L8:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bge	.L9
	mvn	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #2
	str	r3, [fp, #-60]
	b	.L10
.L13:
	ldr	r3, [fp, #-60]
	sub	r2, r3, #1
	ldr	r1, .L22+8
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L11
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	blt	.L12
	ldr	r1, .L22+20
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-60]
	str	r3, [r1, r2, lsl #2]
.L12:
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-56]
.L11:
	ldr	r3, [fp, #-60]
	add	r3, r3, #2
	str	r3, [fp, #-60]
.L10:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #1
	sub	r3, r3, #1
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	blt	.L13
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	blt	.L14
	ldr	r3, [fp, #-64]
	lsl	r2, r3, #1
	ldr	r1, .L22+20
	ldr	r3, [fp, #-56]
	str	r2, [r1, r3, lsl #2]
.L14:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	mov	r3, #-2147483648
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L15
.L18:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	ble	.L16
	ldr	r3, [fp, #-60]
	sub	r2, r3, #1
	ldr	r1, .L22+8
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L16
	ldr	r2, .L22+16
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r2, .L22+20
	ldr	r3, [fp, #-60]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L22+16
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	subs	r6, r0, r2
	sbc	r7, r1, r3
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	subs	r8, r2, r6
	sbc	r9, r3, r7
	ldr	r2, .L22+20
	ldr	r3, [fp, #-60]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L22+16
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	adds	r1, r8, r2
	str	r1, [fp, #-84]
	adc	r3, r9, r3
	str	r3, [fp, #-80]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	llmax
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L22+8
	add	r3, r3, r2
	mov	r0, r3
	bl	atoll
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	subs	ip, r2, r0
	str	ip, [fp, #-92]
	sbc	r3, r3, r1
	str	r3, [fp, #-88]
	sub	r4, fp, #92
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-52]
	str	r4, [fp, #-48]
	b	.L17
.L16:
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L22+8
	add	r3, r3, r2
	mov	r0, r3
	bl	atoll
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	ip, r2, r0
	str	ip, [fp, #-100]
	adc	r3, r3, r1
	str	r3, [fp, #-96]
	sub	r4, fp, #100
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-52]
	str	r4, [fp, #-48]
.L17:
	ldr	r3, [fp, #-60]
	add	r3, r3, #2
	str	r3, [fp, #-60]
.L15:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #1
	sub	r3, r3, #1
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	blt	.L18
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	llmax
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	ldr	r0, .L22+24
	bl	printf
.L5:
	ldr	r3, [fp, #-68]
	sub	r2, r3, #1
	str	r2, [fp, #-68]
	cmp	r3, #0
	bne	.L19
	mov	r3, #0
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC3
	.word	.LC0
	.word	buf
	.word	.LC1
	.word	suf
	.word	nxt
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
