	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	8(%r15), %rbx
	movq	32(%rbx), %rax
	movq	%rax, 16(%rbx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_jiffies_to_msecs
	movq	%rax, 32(%rbx)
	subq	16(%rbx), %rax
	movq	%rax, 16(%rbx)
	leaq	24(%rbx), %rdi
	movq	%rax, %rsi
	callq	_saa7164_histogram_update
	movl	12(%rbx), %edi
	callq	_video_is_registered
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_atomic_cmpxchg
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	leaq	8(%rbx), %rdi
	callq	_atomic_inc_return
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_saa7164_vbi_initialize
	testq	%rax, %rax
	js	LBB0_1
## %bb.5:
	movq	%rbx, %rdi
	callq	_saa7164_vbi_start_streaming
	movl	$200, %edi
	callq	_msleep
LBB0_6:
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_7
LBB0_8:
	movq	%rbx, %rdi
	callq	_list_empty
	movl	%eax, %ecx
	movq	_EPOLLIN@GOTPCREL(%rip), %rax
	movq	_EPOLLRDNORM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	cmovel	%edx, %eax
	jmp	LBB0_9
LBB0_7:
	movl	4(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_saa7164_vbi_next_buf
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_wait_event_interruptible
	testq	%rax, %rax
	je	LBB0_8
LBB0_1:
	movq	_EPOLLERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_EPOLLERR,4,2                   ## @EPOLLERR
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_EPOLLIN,4,2                    ## @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ## @EPOLLRDNORM
	.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	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	x20, x0
	ldr	x21, [x0, #8]
	ldr	x19, [x21, #8]
	ldr	x8, [x19, #32]
	str	x8, [x19, #16]
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_jiffies_to_msecs
	str	x0, [x19, #32]
	ldr	x8, [x19, #16]
	sub	x1, x0, x8
	str	x1, [x19, #16]
	add	x0, x19, #24
	bl	_saa7164_histogram_update
	ldr	w0, [x19, #12]
	bl	_video_is_registered
	cbz	w0, LBB0_8
; %bb.1:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #1
	bl	_atomic_cmpxchg
	cbnz	x0, LBB0_5
; %bb.2:
	add	x0, x19, #8
	bl	_atomic_inc_return
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_saa7164_vbi_initialize
	tbnz	x0, #63, LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_saa7164_vbi_start_streaming
	mov	w0, #200
	bl	_msleep
LBB0_5:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_list_empty
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
	cmp	w0, #0
	csel	w0, w8, wzr, eq
	b	LBB0_9
LBB0_7:
	ldr	w20, [x19, #4]
	mov	x0, x19
	bl	_saa7164_vbi_next_buf
	mov	x1, x0
	mov	x0, x20
	bl	_wait_event_interruptible
	cbz	x0, LBB0_6
LBB0_8:
Lloh12:
	adrp	x8, _EPOLLERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPOLLERR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_EPOLLERR,4,2                   ; @EPOLLERR
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_EPOLLIN,4,2                    ; @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ; @EPOLLRDNORM
	.no_dead_strip	_fops_poll
.subsections_via_symbols
