	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fops_release
_fops_release:                          ## @fops_release
	.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, %rbx
	callq	_video_devdata
	movq	%rax, %r14
	movq	(%rbx), %r15
	movq	8(%r15), %r12
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_DEB_EE
	movl	8(%r14), %edi
	callq	_mutex_lock
	movq	(%r14), %rax
	movq	_VFL_TYPE_VBI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	8(%r12), %rax
	movq	_V4L2_CAP_VBI_CAPTURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_saa7146_vbi_uops@GOTPCREL(%rip), %rax
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	*(%rax)
	movq	8(%r12), %rax
LBB0_3:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	*%rax
	jmp	LBB0_6
LBB0_5:
	movq	_saa7146_video_uops@GOTPCREL(%rip), %rax
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	*(%rax)
LBB0_6:
	movq	%r15, %rdi
	callq	_v4l2_fh_del
	movq	%r15, %rdi
	callq	_v4l2_fh_exit
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_module_put
	movq	$0, (%rbx)
	movq	%r15, %rdi
	callq	_kfree
	movl	8(%r14), %edi
	callq	_mutex_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file:%p\n"

	.comm	_VFL_TYPE_VBI,8,3               ## @VFL_TYPE_VBI
	.comm	_V4L2_CAP_VBI_CAPTURE,4,2       ## @V4L2_CAP_VBI_CAPTURE
	.comm	_saa7146_vbi_uops,8,3           ## @saa7146_vbi_uops
	.comm	_saa7146_video_uops,8,3         ## @saa7146_video_uops
	.no_dead_strip	_fops_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fops_release
_fops_release:                          ; @fops_release
	.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
	bl	_video_devdata
	mov	x19, x0
	ldr	x21, [x20]
	ldr	x22, [x21, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DEB_EE
	ldr	w0, [x19, #8]
	bl	_mutex_lock
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _VFL_TYPE_VBI@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VFL_TYPE_VBI@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x22, #8]
	ldr	w9, [x8]
Lloh5:
	adrp	x10, _V4L2_CAP_VBI_CAPTURE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _V4L2_CAP_VBI_CAPTURE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _saa7146_vbi_uops@GOTPAGE
Lloh9:
	ldr	x8, [x8, _saa7146_vbi_uops@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	mov	x0, x22
	mov	x1, x20
	blr	x8
	ldr	x8, [x22, #8]
LBB0_3:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x20
	blr	x8
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _saa7146_video_uops@GOTPAGE
Lloh12:
	ldr	x8, [x8, _saa7146_video_uops@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	mov	x0, x22
	mov	x1, x20
	blr	x8
LBB0_6:
	mov	x0, x21
	bl	_v4l2_fh_del
	mov	x0, x21
	bl	_v4l2_fh_exit
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_module_put
	str	xzr, [x20]
	mov	x0, x21
	bl	_kfree
	ldr	w0, [x19, #8]
	bl	_mutex_unlock
	mov	w0, #0
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file:%p\n"

	.comm	_VFL_TYPE_VBI,8,3               ; @VFL_TYPE_VBI
	.comm	_V4L2_CAP_VBI_CAPTURE,4,2       ; @V4L2_CAP_VBI_CAPTURE
	.comm	_saa7146_vbi_uops,8,3           ; @saa7146_vbi_uops
	.comm	_saa7146_video_uops,8,3         ; @saa7146_video_uops
	.no_dead_strip	_fops_release
.subsections_via_symbols
