	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpeg_poll
_mpeg_poll:                             ## @mpeg_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_poll_requested_events
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r12), %r14
	movq	8(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%r14), %rbx
	movq	%rbx, %rdi
	callq	_v4l2_event_pending
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EPOLLPRI@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_3
LBB0_2:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_poll_wait
	xorl	%r13d, %r13d
LBB0_3:
	movq	_EPOLLIN@GOTPCREL(%rip), %rax
	movq	_EPOLLRDNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_5
## %bb.4:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_videobuf_poll_stream
	orl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_5:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPOLLPRI,4,2                   ## @EPOLLPRI
	.comm	_EPOLLIN,4,2                    ## @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ## @EPOLLRDNORM
	.no_dead_strip	_mpeg_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpeg_poll
_mpeg_poll:                             ; @mpeg_poll
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_poll_requested_events
	mov	x24, x0
	ldr	x22, [x21]
	ldr	x20, [x22, #8]
	add	x23, x22, #4
	mov	x0, x23
	bl	_v4l2_event_pending
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EPOLLPRI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPOLLPRI@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x19
	bl	_poll_wait
	mov	w23, #0
LBB0_3:
Lloh3:
	adrp	x8, _EPOLLIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPOLLIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _EPOLLRDNORM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EPOLLRDNORM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w24
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	bl	_videobuf_poll_stream
	orr	w23, w0, w23
	mov	x0, x20
	bl	_mutex_unlock
LBB0_5:
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EPOLLPRI,4,2                   ; @EPOLLPRI
	.comm	_EPOLLIN,4,2                    ; @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ; @EPOLLRDNORM
	.no_dead_strip	_mpeg_poll
.subsections_via_symbols
