	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function media_request_poll
_media_request_poll:                    ## @media_request_poll
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	%rsi, %rdi
	callq	_poll_requested_events
	movq	_EPOLLPRI@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_1
## %bb.2:
	leaq	12(%r15), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_poll_wait
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%r15), %rax
	movq	_MEDIA_REQUEST_STATE_COMPLETE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	(%r12), %ebx
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_4:
	movq	_MEDIA_REQUEST_STATE_QUEUED@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_EPOLLERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPOLLPRI,4,2                   ## @EPOLLPRI
	.comm	_MEDIA_REQUEST_STATE_COMPLETE,8,3 ## @MEDIA_REQUEST_STATE_COMPLETE
	.comm	_MEDIA_REQUEST_STATE_QUEUED,8,3 ## @MEDIA_REQUEST_STATE_QUEUED
	.comm	_EPOLLERR,4,2                   ## @EPOLLERR
	.no_dead_strip	_media_request_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function media_request_poll
_media_request_poll:                    ; @media_request_poll
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0]
	mov	x0, x1
	bl	_poll_requested_events
Lloh0:
	adrp	x21, _EPOLLPRI@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EPOLLPRI@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
	add	x1, x22, #12
	mov	x0, x20
	mov	x2, x19
	bl	_poll_wait
	add	x19, x22, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _MEDIA_REQUEST_STATE_COMPLETE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MEDIA_REQUEST_STATE_COMPLETE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w20, [x21]
	b	LBB0_5
LBB0_3:
	mov	w20, #0
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x9, _MEDIA_REQUEST_STATE_QUEUED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MEDIA_REQUEST_STATE_QUEUED@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _EPOLLERR@GOTPAGE
Lloh9:
	ldr	x10, [x10, _EPOLLERR@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w20, wzr, w10, eq
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EPOLLPRI,4,2                   ; @EPOLLPRI
	.comm	_MEDIA_REQUEST_STATE_COMPLETE,8,3 ; @MEDIA_REQUEST_STATE_COMPLETE
	.comm	_MEDIA_REQUEST_STATE_QUEUED,8,3 ; @MEDIA_REQUEST_STATE_QUEUED
	.comm	_EPOLLERR,4,2                   ; @EPOLLERR
	.no_dead_strip	_media_request_poll
.subsections_via_symbols
