	.file	"348498.c"
	.intel_syntax noprefix
	.text
	.local	longest
	.comm	longest,8,8
	.local	longcount
	.comm	longcount,8,8
	.section	.rodata
.LC0:
	.string	"%lu\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -8[rbp], 0
	mov	esi, 8
	mov	edi, 1000002
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	mov	eax, -1
	jmp	.L3
.L2:
	mov	QWORD PTR -32[rbp], 2
	jmp	.L4
.L12:
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L5
.L10:
	cmp	QWORD PTR -16[rbp], 999999
	ja	.L6
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	QWORD PTR -24[rbp], rax
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -16[rbp]
	and	eax, 1
	test	rax, rax
	jne	.L8
	mov	rax, QWORD PTR -16[rbp]
	shr	rax
	jmp	.L9
.L8:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, 1
.L9:
	mov	QWORD PTR -16[rbp], rax
	add	QWORD PTR -24[rbp], 1
.L5:
	cmp	QWORD PTR -16[rbp], 1
	jne	.L10
.L7:
	mov	rax, QWORD PTR longcount[rip]
	cmp	QWORD PTR -24[rbp], rax
	jbe	.L11
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR longcount[rip], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR longest[rip], rax
.L11:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	add	QWORD PTR -32[rbp], 1
.L4:
	cmp	QWORD PTR -32[rbp], 999999
	jbe	.L12
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR longest[rip]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"348498.c"
	.text
	.local	longest
	.comm	longest,8,8
	.local	longcount
	.comm	longcount,8,8
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%llu\012\000"
	.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
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r1, #8
	ldr	r0, .L13
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L2
	mvn	r3, #0
	b	.L3
.L2:
	mov	r2, #2
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	b	.L4
.L12:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L5
.L10:
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	ldr	r2, .L13+4
	mov	r3, #0
	cmp	r1, r3
	cmpeq	r0, r2
	bcs	.L6
	ldr	r3, [fp, #-36]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-56]
	add	r3, r3, r2
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L6
	ldr	r3, [fp, #-36]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-56]
	add	r3, r3, r2
	ldmia	r3, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	ip, r2, r0
	str	ip, [fp, #-76]
	adc	r3, r3, r1
	str	r3, [fp, #-72]
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L7
.L6:
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	mov	r2, #1
	mov	r3, #0
	and	r8, r0, r2
	and	r9, r1, r3
	orrs	r3, r8, r9
	bne	.L8
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	mov	r4, #0
	mov	r5, #0
	lsr	r4, r2, #1
	orr	r4, r4, r3, lsl #31
	lsr	r5, r3, #1
	b	.L9
.L8:
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	mov	r2, r0
	mov	r3, r1
	adds	ip, r2, r2
	str	ip, [fp, #-84]
	adc	r3, r3, r3
	str	r3, [fp, #-80]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	adds	r6, r2, r0
	adc	r7, r3, r1
	adds	r4, r6, #1
	adc	r5, r7, #0
.L9:
	str	r4, [fp, #-36]
	str	r5, [fp, #-32]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-92]
	adc	r3, r3, #0
	str	r3, [fp, #-88]
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
.L5:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #1
	bne	.L10
.L7:
	ldr	r3, .L13+8
	ldmia	r3, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	cmp	r3, r1
	cmpeq	r2, r0
	bls	.L11
	ldr	r1, .L13+8
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r1, .L13+12
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
.L11:
	ldr	r3, [fp, #-52]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-56]
	add	r1, r3, r2
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-100]
	adc	r3, r3, #0
	str	r3, [fp, #-96]
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
.L4:
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	ldr	r2, .L13+4
	mov	r3, #0
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L12
	ldr	r0, [fp, #-56]
	bl	free
	ldr	r3, .L13+12
	ldmia	r3, {r2-r3}
	ldr	r0, .L13+16
	bl	printf
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L14:
	.align	2
.L13:
	.word	1000002
	.word	1000000
	.word	longcount
	.word	longest
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
