	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fops_open
_fops_open:                             ## @fops_open
	.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	%rdi, %r13
	callq	_video_devdata
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_video_drvdata
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_video_device_node_name
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_DEB_EE
	movl	8(%r14), %edi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_DEB_D
	cmpq	$0, (%r15)
	je	LBB0_7
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_v4l2_fh_init
	movq	%r12, (%r13)
	movq	%r15, 8(%r12)
	movq	(%r14), %rax
	movq	_VFL_TYPE_VBI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.5:
	leaq	L_.str.4(%rip), %rdi
	callq	_DEB_S
	movq	8(%r15), %rax
	movq	_V4L2_CAP_VBI_CAPTURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.6:
	movq	_saa7146_vbi_uops@GOTPCREL(%rip), %rax
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	*(%rax)
	movl	%eax, %ebx
	movq	8(%r15), %rax
	jmp	LBB0_12
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	callq	_DEB_S
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	callq	_DEB_S
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_10:
	leaq	L_.str.5(%rip), %rdi
	callq	_DEB_S
	movq	_saa7146_video_uops@GOTPCREL(%rip), %rax
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	*(%rax)
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.13:
	movq	%r13, %rdi
	callq	*%rcx
LBB0_14:
	testl	%ebx, %ebx
	je	LBB0_16
LBB0_15:
	movq	%r12, %rdi
	callq	_kfree
	movq	$0, (%r13)
	jmp	LBB0_19
LBB0_16:
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_try_module_get
	testq	%rax, %rax
	je	LBB0_21
## %bb.17:
	movq	%r12, %rdi
	callq	_v4l2_fh_add
LBB0_18:
	xorl	%ebx, %ebx
LBB0_19:
	movl	8(%r14), %edi
	callq	_mutex_unlock
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.22:
	negl	%ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file:%p, dev:%s\n"

	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
L_.str.1:                               ## @.str.1
	.asciz	"using: %p\n"

L_.str.2:                               ## @.str.2
	.asciz	"no extension registered for this device\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.3:                               ## @.str.3
	.asciz	"cannot allocate memory for per open data\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_VFL_TYPE_VBI,8,3               ## @VFL_TYPE_VBI
L_.str.4:                               ## @.str.4
	.asciz	"initializing vbi...\n"

	.comm	_V4L2_CAP_VBI_CAPTURE,4,2       ## @V4L2_CAP_VBI_CAPTURE
	.comm	_saa7146_vbi_uops,8,3           ## @saa7146_vbi_uops
L_.str.5:                               ## @.str.5
	.asciz	"initializing video...\n"

	.comm	_saa7146_video_uops,8,3         ## @saa7146_video_uops
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_fops_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fops_open
_fops_open:                             ; @fops_open
	.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	x20, x0
	bl	_video_devdata
	mov	x19, x0
	mov	x0, x20
	bl	_video_drvdata
	mov	x21, x0
	mov	x0, x19
	bl	_video_device_node_name
	mov	x2, x0
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_interruptible
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_19
LBB0_2:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_DEB_D
	ldr	x8, [x21]
	cbz	x8, LBB0_7
; %bb.3:
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.4:
	mov	x22, x0
	mov	x1, x19
	bl	_v4l2_fh_init
	str	x22, [x20]
	str	x21, [x22, #8]
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _VFL_TYPE_VBI@GOTPAGE
Lloh11:
	ldr	x9, [x9, _VFL_TYPE_VBI@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.5:
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DEB_S
	ldr	x8, [x21, #8]
	ldr	w9, [x8]
Lloh15:
	adrp	x10, _V4L2_CAP_VBI_CAPTURE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _V4L2_CAP_VBI_CAPTURE@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.6:
Lloh18:
	adrp	x8, _saa7146_vbi_uops@GOTPAGE
Lloh19:
	ldr	x8, [x8, _saa7146_vbi_uops@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	mov	x0, x21
	mov	x1, x20
	blr	x8
	mov	x23, x0
	ldr	x8, [x21, #8]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_12
	b	LBB0_13
LBB0_7:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DEB_S
Lloh23:
	adrp	x8, _ENODEV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DEB_S
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_18
LBB0_10:
Lloh29:
	adrp	x0, l_.str.5@PAGE
Lloh30:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DEB_S
Lloh31:
	adrp	x8, _saa7146_video_uops@GOTPAGE
Lloh32:
	ldr	x8, [x8, _saa7146_video_uops@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	mov	x0, x21
	mov	x1, x20
	blr	x8
	mov	x23, x0
	b	LBB0_13
LBB0_11:
	mov	w23, #0
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_13
LBB0_12:
	mov	x0, x20
	blr	x8
LBB0_13:
	cbz	w23, LBB0_15
LBB0_14:
	mov	x0, x22
	bl	_kfree
	str	xzr, [x20]
	b	LBB0_18
LBB0_15:
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_try_module_get
	cbz	x0, LBB0_20
; %bb.16:
	mov	x0, x22
	bl	_v4l2_fh_add
LBB0_17:
	mov	w23, #0
LBB0_18:
	ldr	w0, [x19, #8]
	bl	_mutex_unlock
LBB0_19:
	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_20:
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cbz	w8, LBB0_17
; %bb.21:
	neg	w23, w8
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file:%p, dev:%s\n"

	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
l_.str.1:                               ; @.str.1
	.asciz	"using: %p\n"

l_.str.2:                               ; @.str.2
	.asciz	"no extension registered for this device\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.3:                               ; @.str.3
	.asciz	"cannot allocate memory for per open data\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_VFL_TYPE_VBI,8,3               ; @VFL_TYPE_VBI
l_.str.4:                               ; @.str.4
	.asciz	"initializing vbi...\n"

	.comm	_V4L2_CAP_VBI_CAPTURE,4,2       ; @V4L2_CAP_VBI_CAPTURE
	.comm	_saa7146_vbi_uops,8,3           ; @saa7146_vbi_uops
l_.str.5:                               ; @.str.5
	.asciz	"initializing video...\n"

	.comm	_saa7146_video_uops,8,3         ; @saa7146_video_uops
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_fops_open
.subsections_via_symbols
