	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx231xx_v4l2_poll
_cx231xx_v4l2_poll:                     ## @cx231xx_v4l2_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	%rsi, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_poll_requested_events
	movl	%eax, %r13d
	movq	(%r12), %rbx
	movq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_check_dev
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_res_get
	shrl	$31, %eax
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EPOLLERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	leaq	12(%rbx), %r13
	movq	%r13, %rdi
	callq	_v4l2_event_pending
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EPOLLPRI@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_6
LBB0_5:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_poll_wait
	xorl	%r13d, %r13d
LBB0_6:
	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_11
## %bb.7:
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	movq	(%rbx), %rax
	cmpq	%rax, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	_V4L2_BUF_TYPE_VBI_CAPTURE@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_9
## %bb.10:
	movq	_EPOLLERR@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	jmp	LBB0_11
LBB0_9:
	movq	%r15, %rdi
	callq	_mutex_lock
	addq	$8, %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_videobuf_poll_stream
	orl	%eax, %r13d
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EPOLLERR,4,2                   ## @EPOLLERR
	.comm	_EPOLLPRI,4,2                   ## @EPOLLPRI
	.comm	_EPOLLIN,4,2                    ## @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ## @EPOLLRDNORM
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_TYPE_VBI_CAPTURE,8,3  ## @V4L2_BUF_TYPE_VBI_CAPTURE
	.no_dead_strip	_cx231xx_v4l2_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx231xx_v4l2_poll
_cx231xx_v4l2_poll:                     ; @cx231xx_v4l2_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, #16]
	mov	x0, x20
	bl	_check_dev
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_res_get
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EPOLLERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPOLLERR@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
LBB0_3:
	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
LBB0_4:
	add	x23, x22, #12
	mov	x0, x23
	bl	_v4l2_event_pending
	cbz	x0, LBB0_6
; %bb.5:
Lloh3:
	adrp	x8, _EPOLLPRI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPOLLPRI@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	b	LBB0_7
LBB0_6:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x19
	bl	_poll_wait
	mov	w23, #0
LBB0_7:
Lloh6:
	adrp	x8, _EPOLLIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPOLLIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _EPOLLRDNORM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EPOLLRDNORM@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w24
	b.eq	LBB0_3
; %bb.8:
Lloh12:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x9, [x22]
Lloh15:
	adrp	x10, _V4L2_BUF_TYPE_VBI_CAPTURE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _V4L2_BUF_TYPE_VBI_CAPTURE@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x10, x9, #4, ne
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_mutex_lock
	add	x1, x22, #8
	mov	x0, x21
	mov	x2, x19
	bl	_videobuf_poll_stream
	orr	w23, w0, w23
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_3
LBB0_10:
Lloh18:
	adrp	x8, _EPOLLERR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EPOLLERR@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w23, w8, w23
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EPOLLERR,4,2                   ; @EPOLLERR
	.comm	_EPOLLPRI,4,2                   ; @EPOLLPRI
	.comm	_EPOLLIN,4,2                    ; @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ; @EPOLLRDNORM
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_TYPE_VBI_CAPTURE,8,3  ; @V4L2_BUF_TYPE_VBI_CAPTURE
	.no_dead_strip	_cx231xx_v4l2_poll
.subsections_via_symbols
