	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isp_video_open
_isp_video_open:                        ## @isp_video_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_video_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	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_13
LBB0_2:
	movq	%r15, %rdi
	callq	_v4l2_fh_open
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	8(%r14), %rdi
	callq	_pm_runtime_get_sync
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:
	movq	%r15, %rdi
	callq	_v4l2_fh_is_singular_file
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%r14, %r12
	addq	$16, %r12
	movq	(%r12), %rdi
	callq	_mutex_lock
	movq	_open@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	_fimc_pipeline_call
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	incl	24(%r14)
LBB0_8:
	movq	(%r12), %rdi
	callq	_mutex_unlock
LBB0_9:
	testl	%ebx, %ebx
	je	LBB0_10
LBB0_11:
	movq	%r15, %rdi
	callq	_v4l2_fh_release
	jmp	LBB0_12
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_10:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_open,4,2                       ## @open
	.no_dead_strip	_isp_video_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isp_video_open
_isp_video_open:                        ; @isp_video_open
	.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_drvdata
	mov	x19, x0
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_2:
	mov	x0, x20
	bl	_v4l2_fh_open
	tbnz	w0, #31, LBB0_10
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_pm_runtime_get_sync
	mov	x21, x0
	tbnz	w0, #31, LBB0_9
; %bb.4:
	mov	x0, x20
	bl	_v4l2_fh_is_singular_file
	cbz	x0, LBB0_8
; %bb.5:
	add	x22, x19, #16
	ldr	x0, [x22]
	bl	_mutex_lock
Lloh3:
	adrp	x8, _open@GOTPAGE
Lloh4:
	ldr	x8, [x8, _open@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x22
	mov	w3, #1
	bl	_fimc_pipeline_call
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
LBB0_7:
	ldr	x0, [x22]
	bl	_mutex_unlock
LBB0_8:
	cbz	w21, LBB0_11
LBB0_9:
	mov	x0, x20
	bl	_v4l2_fh_release
	b	LBB0_11
LBB0_10:
	mov	x21, x0
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_12:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_open,4,2                       ; @open
	.no_dead_strip	_isp_video_open
.subsections_via_symbols
