	.file	"408596.c"
	.intel_syntax noprefix
	.text
	.globl	readlines
	.type	readlines, @function
readlines:
.LFB6:
	.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	QWORD PTR -1032[rbp], rdi
	mov	DWORD PTR -1036[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1024[rbp], 0
	jmp	.L2
.L6:
	mov	eax, DWORD PTR -1024[rbp]
	cmp	eax, DWORD PTR -1036[rbp]
	jge	.L3
	mov	eax, DWORD PTR -1020[rbp]
	mov	edi, eax
	call	alloc@PLT
	mov	QWORD PTR -1016[rbp], rax
	cmp	QWORD PTR -1016[rbp], 0
	jne	.L4
.L3:
	mov	eax, -1
	jmp	.L7
.L4:
	mov	eax, DWORD PTR -1020[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR -1008[rbp+rax], 0
	lea	rdx, -1008[rbp]
	mov	rax, QWORD PTR -1016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -1024[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -1024[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1032[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -1016[rbp]
	mov	QWORD PTR [rdx], rax
.L2:
	lea	rax, -1008[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	mygetline@PLT
	mov	DWORD PTR -1020[rbp], eax
	cmp	DWORD PTR -1020[rbp], 0
	jg	.L6
	mov	eax, DWORD PTR -1024[rbp]
.L7:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	readlines, .-readlines
	.globl	writelines
	.type	writelines, @function
writelines:
.LFB7:
	.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 -4[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	puts@PLT
	add	DWORD PTR -4[rbp], 1
.L10:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L11
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	writelines, .-writelines
	.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	"408596.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readlines
	.syntax unified
	.arm
	.fpu softvfp
	.type	readlines, %function
readlines:
	@ args = 0, pretend = 0, frame = 1024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1024
	str	r0, [fp, #-1024]
	str	r1, [fp, #-1028]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1020]
	b	.L2
.L6:
	ldr	r2, [fp, #-1020]
	ldr	r3, [fp, #-1028]
	cmp	r2, r3
	bge	.L3
	ldr	r0, [fp, #-1016]
	bl	alloc
	str	r0, [fp, #-1012]
	ldr	r3, [fp, #-1012]
	cmp	r3, #0
	bne	.L4
.L3:
	mvn	r3, #0
	b	.L7
.L4:
	ldr	r3, [fp, #-1016]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-1004]
	sub	r3, fp, #1008
	mov	r1, r3
	ldr	r0, [fp, #-1012]
	bl	strcpy
	ldr	r3, [fp, #-1020]
	add	r2, r3, #1
	str	r2, [fp, #-1020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1024]
	add	r3, r2, r3
	ldr	r2, [fp, #-1012]
	str	r2, [r3]
.L2:
	sub	r3, fp, #1008
	mov	r1, #1000
	mov	r0, r3
	bl	mygetline
	str	r0, [fp, #-1016]
	ldr	r3, [fp, #-1016]
	cmp	r3, #0
	bgt	.L6
	ldr	r3, [fp, #-1020]
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.size	readlines, .-readlines
	.align	2
	.global	writelines
	.syntax unified
	.arm
	.fpu softvfp
	.type	writelines, %function
writelines:
	@ 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, #-8]
	b	.L12
.L13:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L12:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L13
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	writelines, .-writelines
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
