	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_m2m_poll                  ## -- Begin function v4l2_m2m_poll
	.p2align	4, 0x90
_v4l2_m2m_poll:                         ## @v4l2_m2m_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_video_devdata
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_poll_requested_events
	movq	_EPOLLOUT@GOTPCREL(%rip), %rcx
	movq	_EPOLLWRNORM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_EPOLLIN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_EPOLLRDNORM@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_1
## %bb.2:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_v4l2_m2m_poll_for_data
	movl	%eax, %r15d
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	movq	_V4L2_FL_USES_V4L2_FH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	(%r13), %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_poll_wait
	movq	%rbx, %rdi
	callq	_v4l2_event_pending
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_EPOLLPRI@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_6:
	orl	%ecx, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPOLLOUT,4,2                   ## @EPOLLOUT
	.comm	_EPOLLWRNORM,4,2                ## @EPOLLWRNORM
	.comm	_EPOLLIN,4,2                    ## @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ## @EPOLLRDNORM
	.comm	_V4L2_FL_USES_V4L2_FH,4,2       ## @V4L2_FL_USES_V4L2_FH
	.comm	_EPOLLPRI,4,2                   ## @EPOLLPRI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_m2m_poll                  ; -- Begin function v4l2_m2m_poll
	.p2align	2
_v4l2_m2m_poll:                         ; @v4l2_m2m_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, x2
	mov	x21, x1
	mov	x20, x0
	bl	_video_devdata
	mov	x22, x0
	mov	x0, x19
	bl	_poll_requested_events
Lloh0:
	adrp	x8, _EPOLLOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPOLLOUT@GOTPAGEOFF]
Lloh2:
	adrp	x9, _EPOLLWRNORM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EPOLLWRNORM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _EPOLLIN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EPOLLIN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _EPOLLRDNORM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EPOLLRDNORM@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_v4l2_m2m_poll_for_data
	mov	x21, x0
	b	LBB0_3
LBB0_2:
	mov	w21, #0
LBB0_3:
Lloh12:
	adrp	x8, _V4L2_FL_USES_V4L2_FH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_FL_USES_V4L2_FH@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x22, [x20]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_poll_wait
	mov	x0, x22
	bl	_v4l2_event_pending
Lloh15:
	adrp	x8, _EPOLLPRI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EPOLLPRI@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w21, w8, w21
LBB0_5:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EPOLLOUT,4,2                   ; @EPOLLOUT
	.comm	_EPOLLWRNORM,4,2                ; @EPOLLWRNORM
	.comm	_EPOLLIN,4,2                    ; @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ; @EPOLLRDNORM
	.comm	_V4L2_FL_USES_V4L2_FH,4,2       ; @V4L2_FL_USES_V4L2_FH
	.comm	_EPOLLPRI,4,2                   ; @EPOLLPRI
.subsections_via_symbols
