	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_network_wait_fd             ## -- Begin function ff_network_wait_fd
	.p2align	4, 0x90
_ff_network_wait_fd:                    ## @ff_network_wait_fd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_POLLIN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_POLLOUT@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	movl	%edi, -24(%rbp)
	movl	%ebx, -20(%rbp)
	movl	$0, -16(%rbp)
	movq	_POLLING_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rdi
	movl	$1, %esi
	callq	_poll
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_POLLERR@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_POLLHUP@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	xorl	%eax, %eax
	testl	%ebx, -16(%rbp)
	jne	LBB0_7
## %bb.6:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_7
LBB0_4:
	xorl	%eax, %eax
	callq	_ff_neterrno
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLING_TIME,4,2               ## @POLLING_TIME
	.comm	_POLLERR,4,2                    ## @POLLERR
	.comm	_POLLHUP,4,2                    ## @POLLHUP
	.comm	_EAGAIN,4,2                     ## @EAGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_network_wait_fd             ; -- Begin function ff_network_wait_fd
	.p2align	2
_ff_network_wait_fd:                    ; @ff_network_wait_fd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh2:
	adrp	x9, _POLLIN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _POLLIN@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x9, x8, eq
	ldr	w19, [x8]
	stp	w0, w19, [sp]
	str	wzr, [sp, #8]
Lloh4:
	adrp	x8, _POLLING_TIME@GOTPAGE
Lloh5:
	ldr	x8, [x8, _POLLING_TIME@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, sp
	mov	w1, #1
	bl	_poll
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w8, [sp, #8]
Lloh7:
	adrp	x9, _POLLERR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _POLLERR@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w9, w9, w19
Lloh10:
	adrp	x10, _POLLHUP@GOTPAGE
Lloh11:
	ldr	x10, [x10, _POLLHUP@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	bl	_ff_neterrno
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLING_TIME,4,2               ; @POLLING_TIME
	.comm	_POLLERR,4,2                    ; @POLLERR
	.comm	_POLLHUP,4,2                    ; @POLLHUP
	.comm	_EAGAIN,4,2                     ; @EAGAIN
.subsections_via_symbols
