	.file	"459788.c"
	.intel_syntax noprefix
	.text
	.globl	top
	.bss
	.align 8
	.type	top, @object
	.size	top, 8
top:
	.zero	8
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	inlistadd
	test	eax, eax
	jne	.L2
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	putstr
.L2:
	mov	eax, 0
	call	getstr
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L3
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC0:
	.string	"String too long\n"
.LC1:
	.string	"Out of memory\n"
	.text
	.globl	getstr
	.type	getstr, @function
getstr:
.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
	lea	rax, buf.0[rip]
	mov	QWORD PTR -16[rbp], rax
	nop
.L7:
	call	getchar@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	je	.L6
	cmp	DWORD PTR -20[rbp], 34
	jne	.L7
.L6:
	cmp	DWORD PTR -20[rbp], -1
	jne	.L8
	mov	eax, 0
	jmp	.L9
.L8:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L10
.L16:
	cmp	DWORD PTR -24[rbp], 0
	je	.L11
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	edx, DWORD PTR -20[rbp]
	mov	BYTE PTR [rax], dl
	mov	DWORD PTR -24[rbp], 0
	jmp	.L12
.L11:
	cmp	DWORD PTR -20[rbp], 34
	je	.L18
	cmp	DWORD PTR -20[rbp], 92
	jne	.L15
	mov	DWORD PTR -24[rbp], 1
.L15:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	edx, DWORD PTR -20[rbp]
	mov	BYTE PTR [rax], dl
.L12:
	lea	rdx, buf.0[rip]
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, rdx
	cmp	rax, 4095
	jbe	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 2
	call	exit@PLT
.L10:
	call	getchar@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L16
	jmp	.L14
.L18:
	nop
.L14:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 0
	lea	rdx, buf.0[rip]
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, rdx
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L17
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, buf.0[rip]
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getstr, .-getstr
	.section	.rodata
.LC2:
	.string	""
.LC3:
	.string	"\"%s\"\n%s\n"
	.text
	.globl	putstr
	.type	putstr, @function
putstr:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, .LC2[rip]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	putstr, .-putstr
	.globl	inlistadd
	.type	inlistadd, @function
inlistadd:
.LFB9:
	.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	rax, QWORD PTR top[rip]
	test	rax, rax
	jne	.L21
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, top[rip]
	mov	eax, 0
	call	newentry
	mov	eax, 0
	jmp	.L22
.L21:
	mov	rax, QWORD PTR top[rip]
	mov	QWORD PTR -8[rbp], rax
.L28:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L23
	mov	eax, 1
	jmp	.L22
.L23:
	cmp	DWORD PTR -12[rbp], 0
	jle	.L24
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L25
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	mov	eax, 0
	call	newentry
	mov	eax, 0
	jmp	.L22
.L25:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L28
.L24:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L27
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	mov	eax, 0
	call	newentry
	mov	eax, 0
	jmp	.L22
.L27:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L28
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	inlistadd, .-inlistadd
	.globl	newentry
	.type	newentry, @function
newentry:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	edi, 24
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L30
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 3
	call	exit@PLT
.L30:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 16[rax], 0
	mov	rdx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rdx]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR 8[rdx], rax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	newentry, .-newentry
	.local	buf.0
	.comm	buf.0,4096,32
	.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	"459788.c"
	.text
	.comm	top,4,4
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	b	.L2
.L3:
	ldr	r0, [fp, #-8]
	bl	inlistadd
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldr	r0, [fp, #-8]
	bl	putstr
.L2:
	bl	getstr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L3
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
.LC0:
	.ascii	"String too long\012\000"
	.align	2
.LC1:
	.ascii	"Out of memory\012\000"
	.text
	.align	2
	.global	getstr
	.syntax unified
	.arm
	.fpu softvfp
	.type	getstr, %function
getstr:
	@ 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, .L19
	str	r3, [fp, #-20]
	nop
.L7:
	bl	getchar
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	beq	.L6
	ldr	r3, [fp, #-12]
	cmp	r3, #34
	bne	.L7
.L6:
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L8
	mov	r3, #0
	b	.L9
.L8:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L10
.L16:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldr	r2, [fp, #-12]
	and	r2, r2, #255
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L12
.L11:
	ldr	r3, [fp, #-12]
	cmp	r3, #34
	beq	.L18
	ldr	r3, [fp, #-12]
	cmp	r3, #92
	bne	.L15
	mov	r3, #1
	str	r3, [fp, #-16]
.L15:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldr	r2, [fp, #-12]
	and	r2, r2, #255
	strb	r2, [r3]
.L12:
	ldr	r3, [fp, #-20]
	ldr	r2, .L19
	sub	r3, r3, r2
	cmp	r3, #4096
	bcc	.L10
	ldr	r3, .L19+4
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L19+8
	bl	fwrite
	mov	r0, #2
	bl	exit
.L10:
	bl	getchar
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L16
	b	.L14
.L18:
	nop
.L14:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, .L19
	sub	r3, r3, r2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L17
	ldr	r3, .L19+4
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L19+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L17:
	ldr	r1, .L19
	ldr	r0, [fp, #-8]
	bl	strcpy
	ldr	r3, [fp, #-8]
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	buf.5314
	.word	stderr
	.word	.LC0
	.word	.LC1
	.size	getstr, .-getstr
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"\"%s\"\012%s\012\000"
	.text
	.align	2
	.global	putstr
	.syntax unified
	.arm
	.fpu softvfp
	.type	putstr, %function
putstr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r2, .L22
	ldr	r1, [fp, #-8]
	ldr	r0, .L22+4
	bl	printf
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC2
	.word	.LC3
	.size	putstr, .-putstr
	.align	2
	.global	inlistadd
	.syntax unified
	.arm
	.fpu softvfp
	.type	inlistadd, %function
inlistadd:
	@ 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]
	ldr	r3, .L33
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L25
	ldr	r1, [fp, #-16]
	ldr	r0, .L33
	bl	newentry
	mov	r3, #0
	b	.L26
.L25:
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-12]
.L32:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	strcmp
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L27
	mov	r3, #1
	b	.L26
.L27:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L28
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L29
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	newentry
	mov	r3, #0
	b	.L26
.L29:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
	b	.L32
.L28:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	newentry
	mov	r3, #0
	b	.L26
.L31:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	b	.L32
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	top
	.size	inlistadd, .-inlistadd
	.align	2
	.global	newentry
	.syntax unified
	.arm
	.fpu softvfp
	.type	newentry, %function
newentry:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L36
	ldr	r3, .L37
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L37+4
	bl	fwrite
	mov	r0, #3
	bl	exit
.L36:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r2, [fp, #-8]
	ldr	r2, [r2]
	ldr	r3, [r3, #8]
	str	r3, [r2, #4]
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	stderr
	.word	.LC1
	.size	newentry, .-newentry
	.local	buf.5314
	.comm	buf.5314,4096,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
