	.file	"extr_rstream.c_recv_xfer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"rrecv"
	.text
	.p2align 4
	.type	recv_xfer, @function
recv_xfer:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR use_async[rip]
	test	rax, rax
	je	.L2
	mov	edx, DWORD PTR rs[rip]
	mov	DWORD PTR 4[rsp], edx
	mov	edx, DWORD PTR POLLIN[rip]
	mov	DWORD PTR [rsp], edx
.L2:
	xor	ebx, ebx
	mov	r13, rsp
	test	ebp, ebp
	jg	.L9
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L4:
	add	ebx, eax
.L8:
	cmp	ebp, ebx
	jle	.L10
	mov	rax, QWORD PTR use_async[rip]
.L9:
	test	rax, rax
	je	.L7
	mov	esi, DWORD PTR poll_timeout[rip]
	mov	rdi, r13
	call	do_poll@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
.L7:
	mov	ecx, DWORD PTR flags[rip]
	mov	edi, DWORD PTR rs[rip]
	mov	edx, ebp
	movsx	rsi, ebx
	sub	edx, ebx
	add	rsi, QWORD PTR buf[rip]
	call	rs_recv@PLT
	mov	r12d, eax
	test	eax, eax
	jg	.L4
	mov	rax, QWORD PTR errno[rip]
	cmp	rax, QWORD PTR EWOULDBLOCK[rip]
	je	.L8
	cmp	rax, QWORD PTR EAGAIN[rip]
	je	.L8
	lea	rdi, .LC0[rip]
	call	perror@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	xor	r12d, r12d
	cmp	QWORD PTR verify[rip], 0
	je	.L1
	mov	rdi, QWORD PTR buf[rip]
	mov	esi, ebp
	call	verify_buf@PLT
	mov	r12d, eax
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	recv_xfer, .-recv_xfer
	.comm	verify,8,8
	.comm	use_async,8,8
	.comm	rs,4,4
	.comm	poll_timeout,4,4
	.comm	flags,4,4
	.comm	errno,8,8
	.comm	buf,8,8
	.comm	POLLIN,4,4
	.comm	EWOULDBLOCK,8,8
	.comm	EAGAIN,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_rstream.c_recv_xfer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rrecv\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	recv_xfer, %function
recv_xfer:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, .L25
	ldr	r2, .L25+4
	ldr	r3, [r6]
	sub	sp, sp, #28
	cmp	r3, #0
	mov	r5, r0
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	beq	.L2
	ldr	r1, .L25+8
	ldr	r2, .L25+12
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r1, [sp, #16]
	str	r2, [sp, #12]
.L2:
	cmp	r5, #0
	ble	.L10
	mov	r4, #0
	ldr	r10, .L25+16
	ldr	r9, .L25+20
	ldr	r8, .L25+24
	ldr	r7, .L25+8
	ldr	fp, .L25+28
	b	.L9
.L8:
	cmp	r5, r4
	ble	.L10
	ldr	r3, [r6]
.L9:
	cmp	r3, #0
	beq	.L7
	ldr	r1, [r10]
	add	r0, sp, #12
	bl	do_poll
	cmp	r0, #0
	bne	.L22
.L7:
	ldr	r1, [r8]
	sub	r2, r5, r4
	add	r1, r4, r1
	ldr	r3, [r9]
	ldr	r0, [r7]
	bl	rs_recv
	cmp	r0, #0
	addgt	r4, r4, r0
	bgt	.L8
	ldr	r3, .L25+32
	ldr	r2, [fp]
	ldr	r3, [r3]
	cmp	r3, r2
	beq	.L8
	ldr	r2, .L25+36
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L8
	str	r0, [sp, #4]
	ldr	r0, .L25+40
	bl	perror
	ldr	r3, [sp, #4]
.L1:
	ldr	r2, .L25+4
	ldr	r1, [r2]
	ldr	r2, [sp, #20]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L24
	mov	r0, r3
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r3, .L25+44
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L1
	ldr	r3, .L25+24
	mov	r1, r5
	ldr	r0, [r3]
	bl	verify_buf
.L22:
	mov	r3, r0
	b	.L1
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	use_async
	.word	.LC1
	.word	rs
	.word	POLLIN
	.word	poll_timeout
	.word	flags
	.word	buf
	.word	EWOULDBLOCK
	.word	errno
	.word	EAGAIN
	.word	.LC0
	.word	verify
	.size	recv_xfer, .-recv_xfer
	.comm	verify,4,4
	.comm	use_async,4,4
	.comm	rs,4,4
	.comm	poll_timeout,4,4
	.comm	flags,4,4
	.comm	errno,4,4
	.comm	buf,4,4
	.comm	POLLIN,4,4
	.comm	EWOULDBLOCK,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
