	.file	"extr_libsrt.c_libsrt_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	libsrt_read, @function
libsrt_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR 16[rdi]
	mov	eax, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR [rbx]
	test	DWORD PTR AVIO_FLAG_NONBLOCK[rip], eax
	jne	.L2
	mov	esi, DWORD PTR 4[rbx]
	mov	r8d, DWORD PTR 8[rbp]
	xor	ecx, ecx
	mov	edx, edi
	lea	r9, 4[rbp]
	mov	rdi, rbp
	call	libsrt_network_wait_fd_timeout@PLT
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR [rbx]
.L2:
	mov	edx, r13d
	mov	rsi, r12
	call	srt_recvmsg@PLT
	test	eax, eax
	js	.L6
.L1:
	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
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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	libsrt_neterrno@PLT
	.cfi_endproc
.LFE0:
	.size	libsrt_read, .-libsrt_read
	.comm	AVIO_FLAG_NONBLOCK,4,4
	.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_libsrt.c_libsrt_read.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	libsrt_read, %function
libsrt_read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	ip, .L7
	ldr	r3, [r0]
	ldr	ip, [ip]
	ldr	r7, [r0, #12]
	ands	r3, r3, ip
	mov	r4, r0
	mov	r5, r1
	mov	r6, r2
	ldr	ip, [r7]
	sub	sp, sp, #8
	bne	.L2
	ldr	r8, [r0, #8]
	add	lr, r0, #4
	ldr	r1, [r7, #4]
	mov	r2, ip
	stm	sp, {r8, lr}
	bl	libsrt_network_wait_fd_timeout
	cmp	r0, #0
	bne	.L1
	ldr	ip, [r7]
.L2:
	mov	r2, r6
	mov	r1, r5
	mov	r0, ip
	bl	srt_recvmsg
	cmp	r0, #0
	blt	.L6
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	libsrt_neterrno
.L8:
	.align	2
.L7:
	.word	AVIO_FLAG_NONBLOCK
	.size	libsrt_read, .-libsrt_read
	.comm	AVIO_FLAG_NONBLOCK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
