	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udp_read
_udp_read:                              ## @udp_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	8(%rdi), %r14
	movl	$4, -44(%rbp)
	movq	_AVIO_FLAG_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	jne	LBB0_2
## %bb.1:
	movl	8(%r14), %edi
	xorl	%esi, %esi
	callq	_ff_network_wait_fd
	testl	%eax, %eax
	js	LBB0_6
LBB0_2:
	movl	8(%r14), %edi
	leaq	-40(%rbp), %r8
	leaq	-44(%rbp), %r9
	movq	%r12, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_recvfrom
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	addq	$4, %r14
	leaq	-40(%rbp), %rdi
	movq	%r14, %rsi
	callq	_ff_ip_check_source_lists
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_EINTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_AVERROR
	jmp	LBB0_6
LBB0_3:
	xorl	%eax, %eax
	callq	_ff_neterrno
LBB0_6:
	movl	%eax, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVIO_FLAG_NONBLOCK,4,2         ## @AVIO_FLAG_NONBLOCK
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_ETIMEDOUT,8,3                  ## @ETIMEDOUT
	.comm	_errno,8,3                      ## @errno
	.no_dead_strip	_udp_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udp_read
_udp_read:                              ; @udp_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	ldr	x22, [x0, #8]
	mov	w8, #4
	str	w8, [sp, #4]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _AVIO_FLAG_NONBLOCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVIO_FLAG_NONBLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x22, #8]
	mov	w1, #0
	bl	_ff_network_wait_fd
	tbnz	w0, #31, LBB0_6
LBB0_2:
	ldr	w0, [x22, #8]
	add	x4, sp, #8
	add	x5, sp, #4
	mov	x1, x20
	mov	x2, x19
	mov	w3, #0
	bl	_recvfrom
	tbnz	w0, #31, LBB0_5
; %bb.3:
	mov	x21, x0
	add	x1, x22, #4
	add	x0, sp, #8
	bl	_ff_ip_check_source_lists
	cbz	x0, LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _EINTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	bl	_AVERROR
	b	LBB0_6
LBB0_5:
	bl	_ff_neterrno
LBB0_6:
	mov	x21, x0
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVIO_FLAG_NONBLOCK,4,2         ; @AVIO_FLAG_NONBLOCK
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_ETIMEDOUT,8,3                  ; @ETIMEDOUT
	.comm	_errno,8,3                      ; @errno
	.no_dead_strip	_udp_read
.subsections_via_symbols
