	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vbi_stop
_vbi_stop:                              ## @vbi_stop
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	8(%rbx), %r14
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_DEB_VBI
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_MC1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_MASK_29@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_saa7146_write
	movq	_MASK_28@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_SAA7146_IER_DISABLE
	movl	(%r12), %esi
	movq	_MASK_20@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_saa7146_write
	leaq	8(%r14), %r12
	cmpq	$0, 16(%r14)
	je	LBB0_2
## %bb.1:
	movq	_VIDEOBUF_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_saa7146_buffer_finish
LBB0_2:
	movq	%r15, %rdi
	callq	_videobuf_queue_cancel
	movq	$0, 24(%r14)
	movq	%r12, %rdi
	callq	_del_timer
	movq	%r14, %rdi
	callq	_del_timer
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dev:%p, fh:%p\n"

	.comm	_MC1,4,2                        ## @MC1
	.comm	_MASK_29,4,2                    ## @MASK_29
	.comm	_MASK_28,4,2                    ## @MASK_28
	.comm	_MASK_20,4,2                    ## @MASK_20
	.comm	_VIDEOBUF_DONE,4,2              ## @VIDEOBUF_DONE
	.no_dead_strip	_vbi_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vbi_stop
_vbi_stop:                              ; @vbi_stop
	.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	x21, x0
	ldr	x19, [x0, #8]
	ldr	x20, [x19, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_DEB_VBI
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x22, _MC1@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MC1@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh4:
	adrp	x8, _MASK_29@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MASK_29@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_saa7146_write
Lloh7:
	adrp	x8, _MASK_28@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MASK_28@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SAA7146_IER_DISABLE
	ldr	w1, [x22]
Lloh10:
	adrp	x8, _MASK_20@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MASK_20@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_saa7146_write
	add	x22, x20, #8
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_2
; %bb.1:
Lloh13:
	adrp	x8, _VIDEOBUF_DONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VIDEOBUF_DONE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_saa7146_buffer_finish
LBB0_2:
	mov	x0, x21
	bl	_videobuf_queue_cancel
	str	xzr, [x20, #24]
	mov	x0, x22
	bl	_del_timer
	mov	x0, x20
	bl	_del_timer
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dev:%p, fh:%p\n"

	.comm	_MC1,4,2                        ; @MC1
	.comm	_MASK_29,4,2                    ; @MASK_29
	.comm	_MASK_28,4,2                    ; @MASK_28
	.comm	_MASK_20,4,2                    ; @MASK_20
	.comm	_VIDEOBUF_DONE,4,2              ; @VIDEOBUF_DONE
	.no_dead_strip	_vbi_stop
.subsections_via_symbols
