	.file	"1076397.c"
	.intel_syntax noprefix
	.text
	.globl	fib
	.type	fib, @function
fib:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	WORD PTR -36[rbp], ax
	mov	QWORD PTR -16[rbp], 0
	mov	QWORD PTR -8[rbp], 1
	cmp	WORD PTR -36[rbp], 0
	js	.L2
	cmp	WORD PTR -36[rbp], 92
	jle	.L3
.L2:
	mov	rax, -1
	jmp	.L4
.L3:
	cmp	WORD PTR -36[rbp], 1
	jg	.L5
	movsx	rax, WORD PTR -36[rbp]
	jmp	.L4
.L5:
	mov	DWORD PTR -20[rbp], 2
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -16[rbp]
	add	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -16[rbp], rax
	add	DWORD PTR -20[rbp], 1
.L6:
	movsx	eax, WORD PTR -36[rbp]
	cmp	DWORD PTR -20[rbp], eax
	jle	.L7
	mov	rax, QWORD PTR -8[rbp]
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	fib, .-fib
	.section	.rodata
.LC0:
	.string	"Input non negative n:\n    "
.LC1:
	.string	"%d"
.LC2:
	.string	"Input error"
.LC3:
	.string	"N isn't in correct interval"
.LC4:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 1
	je	.L9
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L12
.L9:
	mov	eax, DWORD PTR -20[rbp]
	cwde
	mov	edi, eax
	call	fib
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], -1
	jne	.L11
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L12
.L11:
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L12:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"1076397.c"
	.text
	.align	2
	.global	fib
	.syntax unified
	.arm
	.fpu softvfp
	.type	fib, %function
fib:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, r7, fp}
	add	fp, sp, #16
	sub	sp, sp, #36
	mov	r3, r0
	strh	r3, [fp, #-46]	@ movhi
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldrsh	r3, [fp, #-46]
	cmp	r3, #0
	blt	.L2
	ldrsh	r3, [fp, #-46]
	cmp	r3, #92
	ble	.L3
.L2:
	mvn	r2, #0
	mvn	r3, #0
	b	.L4
.L3:
	ldrsh	r3, [fp, #-46]
	cmp	r3, #1
	bgt	.L5
	ldrsh	r3, [fp, #-46]
	mov	r2, r3
	asr	r3, r2, #31
	b	.L4
.L5:
	mov	r3, #2
	str	r3, [fp, #-40]
	b	.L6
.L7:
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	str	r4, [fp, #-28]
	str	r5, [fp, #-24]
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	subs	r6, r0, r2
	sbc	r7, r1, r3
	str	r6, [fp, #-36]
	str	r7, [fp, #-32]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L6:
	ldrsh	r3, [fp, #-46]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	ble	.L7
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
.L4:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, fp}
	bx	lr
	.size	fib, .-fib
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Input non negative n:\012    \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Input error\000"
	.align	2
.LC3:
	.ascii	"N isn't in correct interval\000"
	.align	2
.LC4:
	.ascii	"%lld\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L14+4
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L14+8
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L9
	ldr	r0, .L14+12
	bl	puts
	mov	r3, #1
	b	.L12
.L9:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r0, r3
	bl	fib
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	mvn	r0, #0
	mvn	r1, #0
	cmp	r3, r1
	cmpeq	r2, r0
	bne	.L11
	ldr	r0, .L14+16
	bl	puts
	mvn	r3, #0
	b	.L12
.L11:
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L14+20
	bl	printf
	mov	r3, #0
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
