	.file	"98574595.c"
	.intel_syntax noprefix
	.text
	.globl	buffer_list_new
	.type	buffer_list_new, @function
buffer_list_new:
.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
	mov	edi, 65552
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 65536[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 65544[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	buffer_list_new, .-buffer_list_new
	.globl	fill_buffer_node
	.type	fill_buffer_node, @function
fill_buffer_node:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 65536
	mov	QWORD PTR -8[rbp], 0
	jmp	.L5
.L7:
	mov	rcx, QWORD PTR stdin[rip]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	sub	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	add	QWORD PTR -24[rbp], rax
.L5:
	cmp	QWORD PTR -16[rbp], 0
	je	.L6
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L7
.L6:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 65536[rax], rdx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fill_buffer_node, .-fill_buffer_node
	.globl	exhaust_stdin
	.type	exhaust_stdin, @function
exhaust_stdin:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L9
.L10:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fill_buffer_node
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L9
	mov	eax, 0
	call	buffer_list_new
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 65544[rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 65544[rax]
	mov	QWORD PTR -8[rbp], rax
.L9:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L10
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	exhaust_stdin, .-exhaust_stdin
	.globl	dump_buffer_node_to_stdout
	.type	dump_buffer_node_to_stdout, @function
dump_buffer_node_to_stdout:
.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	rcx, QWORD PTR stdout[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 65536[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 65536[rax]
	cmp	QWORD PTR -8[rbp], rax
	je	.L13
	mov	edi, 1
	call	exit@PLT
.L13:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	dump_buffer_node_to_stdout, .-dump_buffer_node_to_stdout
	.globl	dump_buffers_to_stdout
	.type	dump_buffers_to_stdout, @function
dump_buffers_to_stdout:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	dump_buffer_node_to_stdout
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 65544[rax]
	mov	QWORD PTR -8[rbp], rax
.L15:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L16
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	dump_buffers_to_stdout, .-dump_buffers_to_stdout
	.globl	main
	.type	main, @function
main:
.LFB11:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, 0
	call	buffer_list_new
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	exhaust_stdin
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	dump_buffers_to_stdout
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	test	eax, eax
	je	.L18
	mov	eax, 1
	jmp	.L19
.L18:
	mov	eax, 0
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"98574595.c"
	.text
	.align	2
	.global	buffer_list_new
	.syntax unified
	.arm
	.fpu softvfp
	.type	buffer_list_new, %function
buffer_list_new:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-8]
	add	r3, r3, #65536
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #65536
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #4]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	65544
	.size	buffer_list_new, .-buffer_list_new
	.align	2
	.global	fill_buffer_node
	.syntax unified
	.arm
	.fpu softvfp
	.type	fill_buffer_node, %function
fill_buffer_node:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	mov	r3, #65536
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L7
.L9:
	ldr	r3, .L10
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	fread
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-16]
.L7:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L10
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
.L8:
	ldr	r3, [fp, #-24]
	add	r3, r3, #65536
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	stdin
	.size	fill_buffer_node, .-fill_buffer_node
	.align	2
	.global	exhaust_stdin
	.syntax unified
	.arm
	.fpu softvfp
	.type	exhaust_stdin, %function
exhaust_stdin:
	@ 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, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L13
.L14:
	ldr	r0, [fp, #-8]
	bl	fill_buffer_node
	ldr	r3, .L15
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	bl	buffer_list_new
	mov	r2, r0
	ldr	r3, [fp, #-8]
	add	r3, r3, #65536
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	add	r3, r3, #65536
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L13:
	ldr	r3, .L15
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	stdin
	.size	exhaust_stdin, .-exhaust_stdin
	.align	2
	.global	dump_buffer_node_to_stdout
	.syntax unified
	.arm
	.fpu softvfp
	.type	dump_buffer_node_to_stdout, %function
dump_buffer_node_to_stdout:
	@ 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	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r3, r3, #65536
	ldr	r2, [r3]
	ldr	r3, .L20
	ldr	r3, [r3]
	mov	r1, #1
	bl	fwrite
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #65536
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L19
	mov	r0, #1
	bl	exit
.L19:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	stdout
	.size	dump_buffer_node_to_stdout, .-dump_buffer_node_to_stdout
	.align	2
	.global	dump_buffers_to_stdout
	.syntax unified
	.arm
	.fpu softvfp
	.type	dump_buffers_to_stdout, %function
dump_buffers_to_stdout:
	@ 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, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L23
.L24:
	ldr	r0, [fp, #-8]
	bl	dump_buffer_node_to_stdout
	ldr	r3, [fp, #-8]
	add	r3, r3, #65536
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L23:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L24
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	dump_buffers_to_stdout, .-dump_buffers_to_stdout
	.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
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	bl	buffer_list_new
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	exhaust_stdin
	ldr	r0, [fp, #-8]
	bl	dump_buffers_to_stdout
	ldr	r3, .L28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	mov	r3, #1
	b	.L27
.L26:
	mov	r3, #0
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	stdout
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
