	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isp_video_release
_isp_video_release:                     ## @isp_video_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_drvdata
	movq	%rax, %r12
	leaq	16(%rax), %r15
	movq	24(%rax), %r14
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_v4l2_fh_is_singular_file
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	$0, 32(%r12)
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_media_pipeline_stop
	movq	$0, 32(%r12)
LBB0_3:
	movq	%rbx, %rdi
	callq	_vb2_fop_release
	movq	%rbx, %rdi
	callq	_v4l2_fh_is_singular_file
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_close@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_fimc_pipeline_call
	movq	%r14, %rdi
	callq	_mutex_lock
	decl	(%r15)
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_5:
	movq	8(%r12), %rdi
	callq	_pm_runtime_put
	movq	%r12, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_close,4,2                      ## @close
	.no_dead_strip	_isp_video_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isp_video_release
_isp_video_release:                     ; @isp_video_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	x22, x0
	bl	_video_drvdata
	mov	x19, x0
	add	x21, x0, #16
	ldr	x20, [x0, #24]
	bl	_mutex_lock
	mov	x0, x22
	bl	_v4l2_fh_is_singular_file
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_media_pipeline_stop
	str	xzr, [x19, #32]
LBB0_3:
	mov	x0, x22
	bl	_vb2_fop_release
	mov	x0, x22
	bl	_v4l2_fh_is_singular_file
	cbz	x0, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _close@GOTPAGE
Lloh1:
	ldr	x8, [x8, _close@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_fimc_pipeline_call
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x21]
	sub	w8, w8, #1
	str	w8, [x21]
	mov	x0, x20
	bl	_mutex_unlock
LBB0_5:
	ldr	x0, [x19, #8]
	bl	_pm_runtime_put
	mov	x0, x19
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_close,4,2                      ; @close
	.no_dead_strip	_isp_video_release
.subsections_via_symbols
