	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fops_poll
_fops_poll:                             ## @fops_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, %rbx
	movq	%rsi, %rdi
	callq	_poll_requested_events
	movl	%eax, %r12d
	movq	(%rbx), %r15
	movq	8(%r15), %r13
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_v4l2_ctrl_poll
	movl	%eax, %r14d
	movq	24(%r13), %rax
	movq	%rax, 8(%r13)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_jiffies_to_msecs
	movq	%rax, 24(%r13)
	subq	8(%r13), %rax
	movq	%rax, 8(%r13)
	leaq	16(%r13), %rdi
	movq	%rax, %rsi
	callq	_saa7164_histogram_update
	movq	_EPOLLIN@GOTPCREL(%rip), %rcx
	movq	_EPOLLRDNORM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	orl	(%rcx), %eax
	testl	%r12d, %eax
	je	LBB0_7
## %bb.1:
	movq	%rdx, %r12
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_atomic_cmpxchg
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	leaq	4(%r13), %rdi
	callq	_atomic_inc_return
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.3:
	movq	%r13, %rdi
	callq	_saa7164_encoder_initialize
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movq	%r13, %rdi
	callq	_saa7164_encoder_start_streaming
	movl	$200, %edi
	callq	_msleep
LBB0_6:
	movq	%r13, %rdi
	callq	_list_empty
	movl	(%r12), %ecx
	movq	_EPOLLIN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %eax
	cmovel	%ecx, %ebx
	orl	%ebx, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_EPOLLERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_EPOLLIN,4,2                    ## @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ## @EPOLLRDNORM
	.comm	_EPOLLERR,4,2                   ## @EPOLLERR
	.no_dead_strip	_fops_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fops_poll
_fops_poll:                             ; @fops_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	x22, x0
	mov	x0, x1
	bl	_poll_requested_events
	mov	x23, x0
	ldr	x21, [x22]
	ldr	x20, [x21, #8]
	mov	x0, x22
	mov	x1, x19
	bl	_v4l2_ctrl_poll
	mov	x19, x0
	ldr	x8, [x20, #24]
	str	x8, [x20, #8]
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_jiffies_to_msecs
	str	x0, [x20, #24]
	ldr	x8, [x20, #8]
	sub	x1, x0, x8
	str	x1, [x20, #8]
	add	x0, x20, #16
	bl	_saa7164_histogram_update
Lloh3:
	adrp	x22, _EPOLLIN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _EPOLLIN@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh5:
	adrp	x24, _EPOLLRDNORM@GOTPAGE
Lloh6:
	ldr	x24, [x24, _EPOLLRDNORM@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
	tst	w8, w23
	b.eq	LBB0_7
; %bb.1:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #1
	bl	_atomic_cmpxchg
	cbnz	x0, LBB0_5
; %bb.2:
	add	x0, x20, #4
	bl	_atomic_inc_return
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_saa7164_encoder_initialize
	tbnz	x0, #63, LBB0_8
; %bb.4:
	mov	x0, x20
	bl	_saa7164_encoder_start_streaming
	mov	w0, #200
	bl	_msleep
LBB0_5:
	mov	x0, x20
	bl	_list_empty
	ldr	w8, [x22]
	ldr	w9, [x24]
	orr	w8, w9, w8
	cmp	w0, #0
	csel	w8, w8, wzr, eq
LBB0_6:
	orr	w19, w8, w19
LBB0_7:
	mov	x0, x19
	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_8:
Lloh7:
	adrp	x8, _EPOLLERR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EPOLLERR@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_EPOLLIN,4,2                    ; @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ; @EPOLLRDNORM
	.comm	_EPOLLERR,4,2                   ; @EPOLLERR
	.no_dead_strip	_fops_poll
.subsections_via_symbols
