	.file	"991618.c"
	.intel_syntax noprefix
	.text
	.globl	recursiveFibonacci
	.type	recursiveFibonacci, @function
recursiveFibonacci:
.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:
	cmp	DWORD PTR -20[rbp], 2
	jg	.L4
	mov	eax, 1
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	edi, eax
	call	recursiveFibonacci
	mov	ebx, eax
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 2
	mov	edi, eax
	call	recursiveFibonacci
	add	eax, ebx
.L3:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	recursiveFibonacci, .-recursiveFibonacci
	.globl	iterativeFibonacci
	.type	iterativeFibonacci, @function
iterativeFibonacci:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	jg	.L6
	mov	eax, -1
	jmp	.L7
.L6:
	mov	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -12[rbp], 1
	mov	DWORD PTR -8[rbp], 1
	mov	DWORD PTR -4[rbp], 0
	jmp	.L8
.L9:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -12[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L8:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 2
	cmp	DWORD PTR -4[rbp], eax
	jl	.L9
	mov	eax, DWORD PTR -8[rbp]
.L7:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	iterativeFibonacci, .-iterativeFibonacci
	.globl	testFibonacci
	.type	testFibonacci, @function
testFibonacci:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 1
	call	recursiveFibonacci
	cmp	eax, 1
	jne	.L11
	mov	edi, 2
	call	recursiveFibonacci
	cmp	eax, 1
	jne	.L11
	mov	edi, 1
	call	iterativeFibonacci
	cmp	eax, 1
	jne	.L11
	mov	edi, 2
	call	iterativeFibonacci
	cmp	eax, 1
	jne	.L11
	mov	edi, 10
	call	recursiveFibonacci
	cmp	eax, 55
	jne	.L11
	mov	edi, 10
	call	iterativeFibonacci
	cmp	eax, 55
	jne	.L11
	mov	eax, 1
	jmp	.L12
.L11:
	mov	eax, 0
.L12:
	and	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	testFibonacci, .-testFibonacci
	.globl	testFibonacciIncorrectInput
	.type	testFibonacciIncorrectInput, @function
testFibonacciIncorrectInput:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, -1
	call	recursiveFibonacci
	cmp	eax, -1
	jne	.L15
	mov	edi, -1
	call	iterativeFibonacci
	cmp	eax, -1
	jne	.L15
	mov	edi, 0
	call	recursiveFibonacci
	cmp	eax, -1
	jne	.L15
	mov	edi, 0
	call	iterativeFibonacci
	cmp	eax, -1
	jne	.L15
	mov	eax, 1
	jmp	.L16
.L15:
	mov	eax, 0
.L16:
	and	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	testFibonacciIncorrectInput, .-testFibonacciIncorrectInput
	.section	.rodata
.LC0:
	.string	"Tests failed"
.LC1:
	.string	"Rus"
	.align 8
.LC2:
	.string	"\320\222\320\262\320\265\320\264\320\270\321\202\320\265 \320\275\320\276\320\274\320\265\321\200 \321\207\320\270\321\201\320\273\320\260 \320\244\320\270\320\261\320\276\320\275\320\260\321\207\321\207\320\270: "
.LC3:
	.string	"%i"
	.align 8
.LC4:
	.string	"\320\235\320\276\320\274\320\265\321\200 \321\207\320\270\321\201\320\273\320\260 \320\244\320\270\320\261\320\276\320\275\320\260\321\207\321\207\320\270 \320\264\320\276\320\273\320\266\320\265\320\275 \320\261\321\213\321\202\321\214 \320\275\320\260\321\202\321\203\321\200\320\260\320\273\321\214\320\275\321\213\320\274 \321\207\320\270\321\201\320\273\320\276\320\274"
	.align 8
.LC5:
	.string	"%i \321\207\320\270\321\201\320\273\320\276 \320\244\320\270\320\261\320\276\320\275\320\260\321\207\321\207\320\270: %i (\320\277\320\276\320\264\321\201\321\207\320\270\321\202\320\260\320\275\320\276 \320\270\321\202\320\265\321\200\320\260\321\202\320\270\320\262\320\275\320\276)\n"
	.align 8
.LC6:
	.string	"%i \321\207\320\270\321\201\320\273\320\276 \320\244\320\270\320\261\320\276\320\275\320\260\321\207\321\207\320\270: %i (\320\277\320\276\320\264\321\201\321\207\320\270\321\202\320\260\320\275\320\276 \321\200\320\265\320\272\321\203\321\200\321\201\320\270\320\262\320\275\320\276)\n"
	.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
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	testFibonacci
	xor	eax, 1
	test	al, al
	jne	.L19
	mov	eax, 0
	call	testFibonacciIncorrectInput
	xor	eax, 1
	test	al, al
	je	.L20
.L19:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L20:
	lea	rsi, .LC1[rip]
	mov	edi, 6
	call	setlocale@PLT
	mov	DWORD PTR -20[rbp], 0
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jg	.L22
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L22:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	iterativeFibonacci
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	recursiveFibonacci
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L18:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	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	"991618.c"
	.text
	.align	2
	.global	recursiveFibonacci
	.syntax unified
	.arm
	.fpu softvfp
	.type	recursiveFibonacci, %function
recursiveFibonacci:
	@ 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
	mvn	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bgt	.L4
	mov	r3, #1
	b	.L3
.L4:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	mov	r0, r3
	bl	recursiveFibonacci
	mov	r4, r0
	ldr	r3, [fp, #-16]
	sub	r3, r3, #2
	mov	r0, r3
	bl	recursiveFibonacci
	mov	r3, r0
	add	r3, r4, r3
.L3:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	recursiveFibonacci, .-recursiveFibonacci
	.align	2
	.global	iterativeFibonacci
	.syntax unified
	.arm
	.fpu softvfp
	.type	iterativeFibonacci, %function
iterativeFibonacci:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bgt	.L6
	mvn	r3, #0
	b	.L7
.L6:
	mov	r3, #1
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L8
.L9:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L8:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #2
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L9
	ldr	r3, [fp, #-12]
.L7:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	iterativeFibonacci, .-iterativeFibonacci
	.align	2
	.global	testFibonacci
	.syntax unified
	.arm
	.fpu softvfp
	.type	testFibonacci, %function
testFibonacci:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #1
	bl	recursiveFibonacci
	mov	r3, r0
	cmp	r3, #1
	bne	.L11
	mov	r0, #2
	bl	recursiveFibonacci
	mov	r3, r0
	cmp	r3, #1
	bne	.L11
	mov	r0, #1
	bl	iterativeFibonacci
	mov	r3, r0
	cmp	r3, #1
	bne	.L11
	mov	r0, #2
	bl	iterativeFibonacci
	mov	r3, r0
	cmp	r3, #1
	bne	.L11
	mov	r0, #10
	bl	recursiveFibonacci
	mov	r3, r0
	cmp	r3, #55
	bne	.L11
	mov	r0, #10
	bl	iterativeFibonacci
	mov	r3, r0
	cmp	r3, #55
	bne	.L11
	mov	r3, #1
	b	.L12
.L11:
	mov	r3, #0
.L12:
	and	r3, r3, #1
	and	r3, r3, #255
	mov	r0, r3
	pop	{fp, pc}
	.size	testFibonacci, .-testFibonacci
	.align	2
	.global	testFibonacciIncorrectInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	testFibonacciIncorrectInput, %function
testFibonacciIncorrectInput:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mvn	r0, #0
	bl	recursiveFibonacci
	mov	r3, r0
	cmn	r3, #1
	bne	.L15
	mvn	r0, #0
	bl	iterativeFibonacci
	mov	r3, r0
	cmn	r3, #1
	bne	.L15
	mov	r0, #0
	bl	recursiveFibonacci
	mov	r3, r0
	cmn	r3, #1
	bne	.L15
	mov	r0, #0
	bl	iterativeFibonacci
	mov	r3, r0
	cmn	r3, #1
	bne	.L15
	mov	r3, #1
	b	.L16
.L15:
	mov	r3, #0
.L16:
	and	r3, r3, #1
	and	r3, r3, #255
	mov	r0, r3
	pop	{fp, pc}
	.size	testFibonacciIncorrectInput, .-testFibonacciIncorrectInput
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Tests failed\000"
	.align	2
.LC1:
	.ascii	"Rus\000"
	.align	2
.LC2:
	.ascii	"\320\222\320\262\320\265\320\264\320\270\321\202\320"
	.ascii	"\265 \320\275\320\276\320\274\320\265\321\200 \321\207"
	.ascii	"\320\270\321\201\320\273\320\260 \320\244\320\270\320"
	.ascii	"\261\320\276\320\275\320\260\321\207\321\207\320\270"
	.ascii	": \000"
	.align	2
.LC3:
	.ascii	"%i\000"
	.align	2
.LC4:
	.ascii	"\320\235\320\276\320\274\320\265\321\200 \321\207\320"
	.ascii	"\270\321\201\320\273\320\260 \320\244\320\270\320\261"
	.ascii	"\320\276\320\275\320\260\321\207\321\207\320\270 \320"
	.ascii	"\264\320\276\320\273\320\266\320\265\320\275 \320\261"
	.ascii	"\321\213\321\202\321\214 \320\275\320\260\321\202\321"
	.ascii	"\203\321\200\320\260\320\273\321\214\320\275\321\213"
	.ascii	"\320\274 \321\207\320\270\321\201\320\273\320\276\320"
	.ascii	"\274\000"
	.align	2
.LC5:
	.ascii	"%i \321\207\320\270\321\201\320\273\320\276 \320\244"
	.ascii	"\320\270\320\261\320\276\320\275\320\260\321\207\321"
	.ascii	"\207\320\270: %i (\320\277\320\276\320\264\321\201\321"
	.ascii	"\207\320\270\321\202\320\260\320\275\320\276 \320\270"
	.ascii	"\321\202\320\265\321\200\320\260\321\202\320\270\320"
	.ascii	"\262\320\275\320\276)\012\000"
	.align	2
.LC6:
	.ascii	"%i \321\207\320\270\321\201\320\273\320\276 \320\244"
	.ascii	"\320\270\320\261\320\276\320\275\320\260\321\207\321"
	.ascii	"\207\320\270: %i (\320\277\320\276\320\264\321\201\321"
	.ascii	"\207\320\270\321\202\320\260\320\275\320\276 \321\200"
	.ascii	"\320\265\320\272\321\203\321\200\321\201\320\270\320"
	.ascii	"\262\320\275\320\276)\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	testFibonacci
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L19
	bl	testFibonacciIncorrectInput
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L20
.L19:
	ldr	r0, .L25+4
	bl	printf
	b	.L18
.L20:
	ldr	r1, .L25+8
	mov	r0, #6
	bl	setlocale
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r0, .L25+12
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L25+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bgt	.L22
	ldr	r0, .L25+20
	bl	printf
	b	.L18
.L22:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	iterativeFibonacci
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L25+24
	bl	printf
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	recursiveFibonacci
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L25+28
	bl	printf
.L18:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
