	.file	"302582.c"
	.intel_syntax noprefix
	.text
	.globl	fibo
	.bss
	.align 32
	.type	fibo, @object
	.size	fibo, 40004
fibo:
	.zero	40004
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 40004
p:
	.zero	40004
	.text
	.globl	getfibo
	.type	getfibo, @function
getfibo:
.LFB0:
	.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, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	jg	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, fibo[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L4
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, fibo[rip]
	mov	eax, DWORD PTR [rdx+rax]
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	edi, eax
	call	getfibo
	mov	ebx, eax
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 2
	mov	edi, eax
	call	getfibo
	lea	edx, [rbx+rax]
	movsx	rax, edx
	imul	rax, rax, 1098413215
	shr	rax, 32
	sar	eax, 8
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 1001
	mov	eax, edx
	sub	eax, ecx
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, fibo[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, fibo[rip]
	mov	eax, DWORD PTR [rdx+rax]
.L3:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getfibo, .-getfibo
	.globl	root
	.type	root, @function
root:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, p[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	js	.L6
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, p[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	root
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, p[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, p[rip]
	mov	eax, DWORD PTR [rdx+rax]
	jmp	.L8
.L6:
	mov	eax, DWORD PTR -4[rbp]
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	root, .-root
	.globl	find
	.type	find, @function
find:
.LFB2:
	.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, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	root
	mov	ebx, eax
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	root
	cmp	ebx, eax
	sete	al
	movzx	eax, al
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	find, .-find
	.globl	merge
	.type	merge, @function
merge:
.LFB3:
	.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, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	root
	mov	ebx, eax
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	root
	movsx	rdx, ebx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, p[rip]
	mov	DWORD PTR [rcx+rdx], eax
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	merge, .-merge
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.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, 3192
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR fibo[rip], 1
	mov	DWORD PTR fibo[rip+4], 2
	jmp	.L13
.L22:
	mov	edx, 40004
	mov	esi, -1
	lea	rdi, p[rip]
	call	memset@PLT
	mov	DWORD PTR -40048[rbp], 1
	jmp	.L14
.L18:
	mov	DWORD PTR -40044[rbp], 1
	jmp	.L15
.L17:
	mov	eax, DWORD PTR -40048[rbp]
	mov	edi, eax
	call	getfibo
	mov	ebx, eax
	mov	eax, DWORD PTR -40044[rbp]
	mov	edi, eax
	call	getfibo
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
	cdq
	xor	eax, edx
	sub	eax, edx
	mov	edx, DWORD PTR -40052[rbp]
	cmp	eax, edx
	jge	.L16
	mov	edx, DWORD PTR -40044[rbp]
	mov	eax, DWORD PTR -40048[rbp]
	mov	esi, edx
	mov	edi, eax
	call	find
	test	eax, eax
	jne	.L16
	mov	edx, DWORD PTR -40044[rbp]
	mov	eax, DWORD PTR -40048[rbp]
	mov	esi, edx
	mov	edi, eax
	call	merge
.L16:
	add	DWORD PTR -40044[rbp], 1
.L15:
	mov	eax, DWORD PTR -40056[rbp]
	cmp	DWORD PTR -40044[rbp], eax
	jle	.L17
	add	DWORD PTR -40048[rbp], 1
.L14:
	mov	eax, DWORD PTR -40056[rbp]
	cmp	DWORD PTR -40048[rbp], eax
	jle	.L18
	lea	rax, -40032[rbp]
	mov	edx, 40004
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -40040[rbp], 0
	mov	DWORD PTR -40048[rbp], 1
	jmp	.L19
.L21:
	mov	eax, DWORD PTR -40048[rbp]
	mov	edi, eax
	call	root
	mov	DWORD PTR -40036[rbp], eax
	mov	eax, DWORD PTR -40036[rbp]
	cdqe
	mov	eax, DWORD PTR -40032[rbp+rax*4]
	test	eax, eax
	jne	.L20
	mov	eax, DWORD PTR -40036[rbp]
	cdqe
	mov	DWORD PTR -40032[rbp+rax*4], 1
	add	DWORD PTR -40040[rbp], 1
.L20:
	add	DWORD PTR -40048[rbp], 1
.L19:
	mov	eax, DWORD PTR -40056[rbp]
	cmp	DWORD PTR -40048[rbp], eax
	jle	.L21
	mov	eax, DWORD PTR -40040[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	lea	rdx, -40052[rbp]
	lea	rax, -40056[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 2
	je	.L22
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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	"302582.c"
	.text
	.comm	fibo,40004,4
	.comm	p,40004,4
	.align	2
	.global	getfibo
	.syntax unified
	.arm
	.fpu softvfp
	.type	getfibo, %function
getfibo:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L2
	mov	r3, #1
	b	.L3
.L2:
	ldr	r2, .L5
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L4
	ldr	r2, .L5
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	b	.L3
.L4:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	mov	r0, r3
	bl	getfibo
	mov	r4, r0
	ldr	r3, [fp, #-16]
	sub	r3, r3, #2
	mov	r0, r3
	bl	getfibo
	mov	r3, r0
	add	r1, r4, r3
	ldr	r3, .L5+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #8
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	sub	r2, r1, r2
	ldr	r1, .L5
	ldr	r3, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L5
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
.L3:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L6:
	.align	2
.L5:
	.word	fibo
	.word	1098413215
	.size	getfibo, .-getfibo
	.align	2
	.global	root
	.syntax unified
	.arm
	.fpu softvfp
	.type	root, %function
root:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r2, .L11
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	blt	.L8
	ldr	r2, .L11
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	root
	mov	r2, r0
	ldr	r1, .L11
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L11
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	b	.L10
.L8:
	ldr	r3, [fp, #-8]
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	p
	.size	root, .-root
	.align	2
	.global	find
	.syntax unified
	.arm
	.fpu softvfp
	.type	find, %function
find:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	root
	mov	r4, r0
	ldr	r0, [fp, #-20]
	bl	root
	mov	r3, r0
	cmp	r4, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	find, .-find
	.align	2
	.global	merge
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge, %function
merge:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	root
	mov	r4, r0
	ldr	r0, [fp, #-20]
	bl	root
	mov	r3, r0
	ldr	r2, .L16
	str	r3, [r2, r4, lsl #2]
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	p
	.size	merge, .-merge
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\012\000"
	.align	2
.LC1:
	.ascii	"%d%d\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 = 40032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #39936
	sub	sp, sp, #100
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L31+4
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L31+4
	mov	r2, #2
	str	r2, [r3, #4]
	b	.L19
.L28:
	ldr	r2, .L31+8
	mvn	r1, #0
	ldr	r0, .L31+12
	bl	memset
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-3160]
	b	.L20
.L24:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-3156]
	b	.L21
.L23:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r0, [r3, #-3160]
	bl	getfibo
	mov	r4, r0
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r0, [r3, #-3156]
	bl	getfibo
	mov	r3, r0
	sub	r3, r4, r3
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3164]
	cmp	r2, r3
	bge	.L22
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r1, [r2, #-3156]
	ldr	r0, [r3, #-3160]
	bl	find
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r1, [r2, #-3156]
	ldr	r0, [r3, #-3160]
	bl	merge
.L22:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3156]
	add	r3, r3, #1
	str	r3, [r2, #-3156]
.L21:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3168]
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3156]
	cmp	r2, r3
	ble	.L23
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3160]
	add	r3, r3, #1
	str	r3, [r2, #-3160]
.L20:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3168]
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3160]
	cmp	r2, r3
	ble	.L24
	sub	r3, fp, #36864
	sub	r3, r3, #12
	sub	r3, r3, #3136
	sub	r3, r3, #8
	ldr	r2, .L31+8
	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, #-3152]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-3160]
	b	.L25
.L27:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r0, [r3, #-3160]
	bl	root
	str	r0, [r4, #-3148]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3148]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-3144]
	cmp	r3, #0
	bne	.L26
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3148]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	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, #-3152]
	add	r3, r3, #1
	str	r3, [r2, #-3152]
.L26:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3160]
	add	r3, r3, #1
	str	r3, [r2, #-3160]
.L25:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3168]
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3160]
	cmp	r2, r3
	ble	.L27
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r1, [r3, #-3152]
	ldr	r0, .L31+16
	bl	printf
.L19:
	sub	r2, fp, #39936
	sub	r2, r2, #12
	sub	r2, r2, #92
	sub	r3, fp, #39936
	sub	r3, r3, #12
	sub	r3, r3, #96
	mov	r1, r3
	ldr	r0, .L31+20
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #2
	beq	.L28
	mov	r3, #0
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC2
	.word	fibo
	.word	40004
	.word	p
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
