	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l_stk_open
_v4l_stk_open:                          ## @v4l_stk_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_video_drvdata
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_is_present
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movq	%r15, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpq	$0, 8(%r15)
	je	LBB0_7
## %bb.8:
	movq	$0, 8(%r15)
	jmp	LBB0_9
LBB0_7:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$36, %edx
	callq	_stk_camera_write_reg
LBB0_9:
	movq	%r14, %rdi
	callq	_v4l2_fh_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movl	4(%r15), %edi
	callq	_usb_autopm_get_interface
LBB0_11:
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.no_dead_strip	_v4l_stk_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l_stk_open
_v4l_stk_open:                          ; @v4l_stk_open
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_video_drvdata
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_is_present
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _ENXIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.8:
	str	xzr, [x19, #8]
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #36
	bl	_stk_camera_write_reg
LBB0_10:
	mov	x0, x20
	bl	_v4l2_fh_open
	mov	x20, x0
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	w0, [x19, #4]
	bl	_usb_autopm_get_interface
LBB0_12:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.no_dead_strip	_v4l_stk_open
.subsections_via_symbols
