	.file	"581600.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%ld\n"
	.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, -32768[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32784[rbp]
	mov	edx, 32768
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	QWORD PTR -32784[rbp], 2
	mov	QWORD PTR -32832[rbp], 1
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -32832[rbp]
	mov	QWORD PTR -32784[rbp+rax*8], 0
	add	QWORD PTR -32832[rbp], 1
.L2:
	cmp	QWORD PTR -32832[rbp], 4095
	jle	.L3
	mov	QWORD PTR -32824[rbp], 2
	jmp	.L4
.L9:
	mov	QWORD PTR -32816[rbp], 0
	jmp	.L5
.L6:
	mov	rax, QWORD PTR -32816[rbp]
	mov	rax, QWORD PTR -32784[rbp+rax*8]
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -32816[rbp]
	mov	QWORD PTR -32784[rbp+rax*8], rdx
	add	QWORD PTR -32816[rbp], 1
.L5:
	cmp	QWORD PTR -32816[rbp], 4095
	jle	.L6
	mov	QWORD PTR -32808[rbp], 0
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -32808[rbp]
	add	rax, 1
	mov	rsi, QWORD PTR -32784[rbp+rax*8]
	mov	rax, QWORD PTR -32808[rbp]
	mov	rcx, QWORD PTR -32784[rbp+rax*8]
	movabs	rdx, 7378697629483820647
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 2
	sar	rcx, 63
	sub	rax, rcx
	mov	rdx, rax
	mov	rax, QWORD PTR -32808[rbp]
	add	rax, 1
	add	rdx, rsi
	mov	QWORD PTR -32784[rbp+rax*8], rdx
	mov	rax, QWORD PTR -32808[rbp]
	mov	rcx, QWORD PTR -32784[rbp+rax*8]
	movabs	rdx, 7378697629483820647
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 2
	mov	rsi, rcx
	sar	rsi, 63
	sub	rax, rsi
	mov	rdx, rax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	sub	rcx, rax
	mov	rdx, rcx
	mov	rax, QWORD PTR -32808[rbp]
	mov	QWORD PTR -32784[rbp+rax*8], rdx
	add	QWORD PTR -32808[rbp], 1
.L7:
	cmp	QWORD PTR -32808[rbp], 4094
	jle	.L8
	add	QWORD PTR -32824[rbp], 1
.L4:
	cmp	QWORD PTR -32824[rbp], 1000
	jle	.L9
	mov	QWORD PTR -32800[rbp], 0
	mov	QWORD PTR -32792[rbp], 0
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -32792[rbp]
	mov	rax, QWORD PTR -32784[rbp+rax*8]
	add	QWORD PTR -32800[rbp], rax
	add	QWORD PTR -32792[rbp], 1
.L10:
	cmp	QWORD PTR -32792[rbp], 4095
	jle	.L11
	mov	rax, QWORD PTR -32800[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	"581600.c"
	.text
	.global	__aeabi_ldivmod
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%lld\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32880
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #32768
	sub	sp, sp, #112
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r0, r3, #8
	mov	r3, #32768
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #32768
	sub	r3, r3, #28
	mov	r1, r3
	mov	r2, #2
	mov	r3, #0
	stmdb	r1, {r2-r3}
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #48
	mov	r1, r3
	mov	r2, #1
	mov	r3, #0
	stmdb	r1, {r2-r3}
	b	.L2
.L3:
	sub	r3, fp, #32768
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #48
	ldr	r3, [r3, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r1, r3, #8
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #48
	mov	r1, r3
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #48
	ldmdb	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	stmdb	r1, {r4-r5}
.L2:
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #48
	ldmdb	r3, {r2-r3}
	cmp	r2, #4096
	sbcs	r3, r3, #0
	blt	.L3
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #48
	mov	r1, r3
	mov	r2, #2
	mov	r3, #0
	stm	r1, {r2-r3}
	b	.L4
.L9:
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #32
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stmdb	r1, {r2-r3}
	b	.L5
.L6:
	sub	r3, fp, #32768
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #32
	ldr	r3, [r3, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #8
	ldmia	r3, {r2-r3}
	adds	r1, r2, r2
	sub	r0, fp, #32768
	sub	r0, r0, #116
	str	r1, [r0]
	adc	r3, r3, r3
	sub	r2, fp, #32768
	sub	r2, r2, #112
	str	r3, [r2]
	sub	r3, fp, #32768
	sub	r3, r3, #116
	ldmia	r3, {r0-r1}
	sub	r3, fp, #32768
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #32
	ldr	r3, [r3, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #8
	stm	r3, {r0-r1}
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #32
	mov	r1, r3
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #32
	ldmdb	r3, {r2-r3}
	adds	r0, r2, #1
	sub	ip, fp, #32768
	sub	ip, ip, #124
	str	r0, [ip]
	adc	r3, r3, #0
	sub	r2, fp, #32768
	sub	r2, r2, #120
	str	r3, [r2]
	sub	r3, fp, #32768
	sub	r3, r3, #124
	ldmia	r3, {r3-r4}
	stmdb	r1, {r3-r4}
.L5:
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #32
	ldmdb	r3, {r2-r3}
	cmp	r2, #4096
	sbcs	r3, r3, #0
	blt	.L6
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #32
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	b	.L7
.L8:
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #32
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	sub	r0, fp, #32768
	sub	r0, r0, #92
	str	r1, [r0]
	adc	r3, r3, #0
	sub	r2, fp, #32768
	sub	r2, r2, #88
	str	r3, [r2]
	sub	r3, fp, #32768
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #92
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #8
	ldmia	r3, {r4-r5}
	sub	r3, fp, #32768
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #32
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #8
	ldmia	r3, {r0-r1}
	mov	r2, #10
	mov	r3, #0
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #32
	ldmia	r3, {r2-r3}
	adds	ip, r2, #1
	sub	lr, fp, #32768
	sub	lr, lr, #100
	str	ip, [lr]
	adc	r3, r3, #0
	sub	r2, fp, #32768
	sub	r2, r2, #96
	str	r3, [r2]
	adds	r3, r4, r0
	sub	r2, fp, #32768
	sub	r2, r2, #108
	str	r3, [r2]
	adc	r3, r5, r1
	sub	r2, fp, #32768
	sub	r2, r2, #104
	str	r3, [r2]
	sub	r3, fp, #32768
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #100
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #8
	sub	r2, fp, #32768
	sub	r2, r2, #108
	ldmia	r2, {r1-r2}
	stm	r3, {r1-r2}
	sub	r3, fp, #32768
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #32
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #8
	ldmia	r3, {r0-r1}
	mov	r2, #10
	mov	r3, #0
	bl	__aeabi_ldivmod
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #32768
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #32
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #8
	stm	r3, {r0-r1}
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #32
	mov	r1, r3
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #32
	ldmia	r3, {r2-r3}
	adds	r0, r2, #1
	sub	ip, fp, #32768
	sub	ip, ip, #132
	str	r0, [ip]
	adc	r3, r3, #0
	sub	r2, fp, #32768
	sub	r2, r2, #128
	str	r3, [r2]
	sub	r3, fp, #32768
	sub	r3, r3, #132
	ldmia	r3, {r3-r4}
	stm	r1, {r3-r4}
.L7:
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #32
	ldmia	r3, {r0-r1}
	ldr	r2, .L14+4
	mov	r3, #0
	cmp	r2, r0
	sbcs	r3, r3, r1
	bge	.L8
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #48
	mov	r1, r3
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #48
	ldmia	r3, {r2-r3}
	adds	r0, r2, #1
	sub	ip, fp, #32768
	sub	ip, ip, #140
	str	r0, [ip]
	adc	r3, r3, #0
	sub	r2, fp, #32768
	sub	r2, r2, #136
	str	r3, [r2]
	sub	r3, fp, #32768
	sub	r3, r3, #140
	ldmia	r3, {r3-r4}
	stm	r1, {r3-r4}
.L4:
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #48
	ldmia	r3, {r0-r1}
	mov	r2, #1000
	mov	r3, #0
	cmp	r2, r0
	sbcs	r3, r3, r1
	bge	.L9
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #16
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stmdb	r1, {r2-r3}
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #16
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	b	.L10
.L11:
	sub	r3, fp, #32768
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #16
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #8
	ldmia	r3, {r2-r3}
	sub	r1, fp, #32768
	sub	r1, r1, #28
	sub	r1, r1, #16
	mov	ip, r1
	sub	r1, fp, #32768
	sub	r1, r1, #28
	sub	r1, r1, #16
	ldmdb	r1, {r0-r1}
	adds	r6, r0, r2
	adc	r7, r1, r3
	stmdb	ip, {r6-r7}
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #16
	mov	r1, r3
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #16
	ldmia	r3, {r2-r3}
	adds	r8, r2, #1
	adc	r9, r3, #0
	stm	r1, {r8-r9}
.L10:
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #16
	ldmia	r3, {r2-r3}
	cmp	r2, #4096
	sbcs	r3, r3, #0
	blt	.L11
	sub	r3, fp, #32768
	sub	r3, r3, #28
	sub	r3, r3, #16
	ldmdb	r3, {r2-r3}
	ldr	r0, .L14+8
	bl	printf
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	4094
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
