	.file	"extr_main.c_echo_read.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Read error %s\n"
	.text
	.p2align 4
	.globl	echo_read
	.type	echo_read, @function
echo_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	rsi, rsi
	jg	.L10
	je	.L3
	cmp	QWORD PTR UV_EOF[rip], rsi
	jne	.L11
	mov	esi, DWORD PTR on_close[rip]
	mov	rdi, r12
	call	uv_close@PLT
.L3:
	mov	edi, DWORD PTR [rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	free@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, 4
	call	malloc@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsi, rbp
	mov	r13, rax
	call	uv_buf_init@PLT
	mov	rdx, r13
	mov	rsi, r12
	mov	rdi, r13
	mov	DWORD PTR 0[r13], eax
	mov	r8d, DWORD PTR echo_write[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	ecx, 1
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	uv_write@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, rsi
	call	uv_err_name@PLT
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdx, rax
	call	fprintf@PLT
	mov	esi, DWORD PTR on_close[rip]
	mov	rdi, r12
	call	uv_close@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	echo_read, .-echo_read
	.comm	stderr,4,4
	.comm	on_close,4,4
	.comm	echo_write,4,4
	.comm	UV_EOF,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_main.c_echo_read.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Read error %s\012\000"
	.text
	.align	2
	.global	echo_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	echo_read, %function
echo_read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r1, #0
	mov	r6, r0
	mov	r5, r2
	sub	sp, sp, #8
	bgt	.L9
	beq	.L4
	ldr	r3, .L11
	ldr	r3, [r3]
	cmp	r3, r4
	bne	.L10
	ldr	r3, .L11+4
	mov	r0, r6
	ldr	r1, [r3]
	bl	uv_close
.L4:
	ldr	r0, [r5]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	free
.L9:
	mov	r0, #4
	bl	malloc
	mov	r1, r4
	mov	r4, r0
	ldr	r0, [r5]
	bl	uv_buf_init
	mov	ip, r0
	ldr	r3, .L11+8
	mov	r1, r6
	ldr	r3, [r3]
	mov	r2, r4
	str	r3, [sp]
	mov	r0, r4
	mov	r3, #1
	str	ip, [r4]
	bl	uv_write
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r3, .L11+12
	mov	r0, r4
	ldr	r4, [r3]
	bl	uv_err_name
	ldr	r1, .L11+16
	mov	r2, r0
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L11+4
	mov	r0, r6
	ldr	r1, [r3]
	bl	uv_close
	b	.L4
.L12:
	.align	2
.L11:
	.word	UV_EOF
	.word	on_close
	.word	echo_write
	.word	stderr
	.word	.LC0
	.size	echo_read, .-echo_read
	.comm	stderr,4,4
	.comm	on_close,4,4
	.comm	echo_write,4,4
	.comm	UV_EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
