	.file	"636951.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter some lines:"
.LC1:
	.string	"Empty line%s\n"
.LC2:
	.string	"\\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
	sub	rsp, 1040
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L2
.L12:
	mov	DWORD PTR -1028[rbp], 1
	mov	eax, DWORD PTR -1016[rbp]
	sub	eax, 2
	mov	DWORD PTR -1024[rbp], eax
	jmp	.L3
.L6:
	mov	eax, DWORD PTR -1024[rbp]
	cdqe
	movzx	eax, BYTE PTR -1008[rbp+rax]
	cmp	al, 32
	je	.L4
	mov	eax, DWORD PTR -1024[rbp]
	cdqe
	movzx	eax, BYTE PTR -1008[rbp+rax]
	cmp	al, 9
	je	.L4
	mov	eax, DWORD PTR -1024[rbp]
	add	eax, 1
	cdqe
	mov	BYTE PTR -1008[rbp+rax], 10
	mov	eax, DWORD PTR -1024[rbp]
	add	eax, 2
	cdqe
	mov	BYTE PTR -1008[rbp+rax], 0
	mov	DWORD PTR -1028[rbp], 0
	jmp	.L5
.L4:
	sub	DWORD PTR -1024[rbp], 1
.L3:
	cmp	DWORD PTR -1024[rbp], 0
	jns	.L6
.L5:
	cmp	DWORD PTR -1028[rbp], 0
	je	.L7
	mov	BYTE PTR -1008[rbp], 0
	lea	rax, -1008[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L7:
	mov	DWORD PTR -1020[rbp], 0
	jmp	.L8
.L11:
	cmp	DWORD PTR -1012[rbp], 10
	jne	.L9
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -1012[rbp]
	mov	edi, eax
	call	putchar@PLT
.L10:
	add	DWORD PTR -1020[rbp], 1
.L8:
	mov	eax, DWORD PTR -1020[rbp]
	cdqe
	movzx	eax, BYTE PTR -1008[rbp+rax]
	movsx	eax, al
	mov	DWORD PTR -1012[rbp], eax
	cmp	DWORD PTR -1012[rbp], 0
	jne	.L11
	mov	edi, 10
	call	putchar@PLT
.L2:
	lea	rax, -1008[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	mygetline
	mov	DWORD PTR -1016[rbp], eax
	cmp	DWORD PTR -1016[rbp], 0
	jne	.L12
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	mygetline
	.type	mygetline, @function
mygetline:
.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 -8[rbp], 0
	jmp	.L16
.L20:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 2
	cmp	DWORD PTR -8[rbp], eax
	jge	.L17
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L18
.L17:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 2
	cmp	DWORD PTR -8[rbp], eax
	jne	.L18
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 10
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L18:
	add	DWORD PTR -8[rbp], 1
.L16:
	call	getchar@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 10
	je	.L19
	cmp	DWORD PTR -4[rbp], -1
	jne	.L20
.L19:
	cmp	DWORD PTR -8[rbp], 0
	jne	.L21
	cmp	DWORD PTR -4[rbp], -1
	jne	.L21
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L22
.L21:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -8[rbp], eax
	jge	.L22
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 10
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L22:
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	mygetline, .-mygetline
	.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	"636951.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter some lines:\000"
	.align	2
.LC1:
	.ascii	"Empty line%s\012\000"
	.align	2
.LC2:
	.ascii	"\\n\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1024
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L15+4
	bl	puts
	b	.L2
.L12:
	mov	r3, #1
	str	r3, [fp, #-1028]
	ldr	r3, [fp, #-1016]
	sub	r3, r3, #2
	str	r3, [fp, #-1024]
	b	.L3
.L6:
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1024]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L4
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1024]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	beq	.L4
	ldr	r3, [fp, #-1024]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #10
	strb	r2, [r3, #-1004]
	ldr	r3, [fp, #-1024]
	add	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-1004]
	mov	r3, #0
	str	r3, [fp, #-1028]
	b	.L5
.L4:
	ldr	r3, [fp, #-1024]
	sub	r3, r3, #1
	str	r3, [fp, #-1024]
.L3:
	ldr	r3, [fp, #-1024]
	cmp	r3, #0
	bge	.L6
.L5:
	ldr	r3, [fp, #-1028]
	cmp	r3, #0
	beq	.L7
	mov	r3, #0
	strb	r3, [fp, #-1008]
	sub	r3, fp, #1008
	mov	r1, r3
	ldr	r0, .L15+8
	bl	printf
	b	.L2
.L7:
	mov	r3, #0
	str	r3, [fp, #-1020]
	b	.L8
.L11:
	ldr	r3, [fp, #-1012]
	cmp	r3, #10
	bne	.L9
	ldr	r0, .L15+12
	bl	printf
	b	.L10
.L9:
	ldr	r0, [fp, #-1012]
	bl	putchar
.L10:
	ldr	r3, [fp, #-1020]
	add	r3, r3, #1
	str	r3, [fp, #-1020]
.L8:
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1020]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-1012]
	ldr	r3, [fp, #-1012]
	cmp	r3, #0
	bne	.L11
	mov	r0, #10
	bl	putchar
.L2:
	sub	r3, fp, #1008
	mov	r1, #1000
	mov	r0, r3
	bl	mygetline
	str	r0, [fp, #-1016]
	ldr	r3, [fp, #-1016]
	cmp	r3, #0
	bne	.L12
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.align	2
	.global	mygetline
	.syntax unified
	.arm
	.fpu softvfp
	.type	mygetline, %function
mygetline:
	@ 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]
	b	.L18
.L22:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #2
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L19
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L20
.L19:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #2
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L20
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	mov	r2, #10
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L20:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L18:
	bl	getchar
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	beq	.L21
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L22
.L21:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L23
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L24
.L23:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L24
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	mov	r2, #10
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L24:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mygetline, .-mygetline
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
