	.file	"810603.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter first movie title:"
.LC1:
	.string	"Enter your rating <0-10>:"
.LC2:
	.string	"%d"
.LC3:
	.string	"Enter next movie title:"
.LC4:
	.string	"No data"
.LC5:
	.string	"list:"
.LC6:
	.string	"Bye!"
	.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
	sub	rsp, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -280[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L2
.L6:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -280[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -280[rbp], edx
	lea	rcx, -272[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, 48
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L3
.L4:
	nop
.L3:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L4
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L2:
	cmp	DWORD PTR -280[rbp], 4
	jg	.L5
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -280[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	esi, 45
	mov	rdi, rax
	call	s_gets
	test	rax, rax
	je	.L5
	mov	eax, DWORD PTR -280[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 272
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L6
.L5:
	cmp	DWORD PTR -280[rbp], 0
	jne	.L7
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L8
.L7:
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L8:
	mov	DWORD PTR -276[rbp], 0
	nop
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	s_gets
	.type	s_gets, @function
s_gets:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -12[rbp], 0
	mov	rdx, QWORD PTR stdin[rip]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L12
	jmp	.L13
.L15:
	add	DWORD PTR -12[rbp], 1
.L13:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L14
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L15
.L14:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L17
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L12
.L18:
	nop
.L17:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L18
.L12:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	s_gets, .-s_gets
	.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	"810603.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter first movie title:\000"
	.align	2
.LC1:
	.ascii	"Enter your rating <0-10>:\000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"Enter next movie title:\000"
	.align	2
.LC4:
	.ascii	"No data\000"
	.align	2
.LC5:
	.ascii	"list:\000"
	.align	2
.LC6:
	.ascii	"Bye!\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 = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #272
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-276]
	ldr	r0, .L11+4
	bl	puts
	b	.L2
.L6:
	ldr	r0, .L11+8
	bl	puts
	ldr	r2, [fp, #-276]
	add	r3, r2, #1
	str	r3, [fp, #-276]
	sub	r1, fp, #268
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, #48
	add	r3, r1, r3
	mov	r1, r3
	ldr	r0, .L11+12
	bl	__isoc99_scanf
	b	.L3
.L4:
	nop
.L3:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L4
	ldr	r0, .L11+16
	bl	puts
.L2:
	ldr	r3, [fp, #-276]
	cmp	r3, #4
	bgt	.L5
	sub	r1, fp, #268
	ldr	r2, [fp, #-276]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r1, #45
	mov	r0, r3
	bl	s_gets
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r2, [fp, #-276]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #264
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
.L5:
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L11+20
	bl	printf
	b	.L8
.L7:
	ldr	r0, .L11+24
	bl	puts
.L8:
	mov	r3, #0
	str	r3, [fp, #-272]
	nop
	ldr	r0, .L11+28
	bl	puts
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.align	2
	.global	s_gets
	.syntax unified
	.arm
	.fpu softvfp
	.type	s_gets, %function
s_gets:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L22
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	fgets
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L14
	b	.L15
.L17:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L15:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L16
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L17
.L16:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L19
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L14
.L20:
	nop
.L19:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L20
.L14:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	stdin
	.size	s_gets, .-s_gets
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
