	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_lite_release
_fimc_lite_release:                     ## @fimc_lite_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, %r15
	callq	_video_drvdata
	movq	%rax, %rbx
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_v4l2_fh_is_singular_file
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	leaq	40(%rbx), %rdi
	callq	_atomic_read
	movq	_FIMC_IO_DMA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	leaq	24(%rbx), %r12
	cmpl	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_media_pipeline_stop
	movl	$0, (%rbx)
LBB0_4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_fimc_lite_stop_capture
	movq	_close@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_fimc_pipeline_call
	movq	_ST_FLITE_IN_USE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_clear_bit
	movq	24(%rbx), %rdi
	callq	_mutex_lock
	decl	32(%rbx)
	movq	24(%rbx), %rdi
	callq	_mutex_unlock
LBB0_5:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	__vb2_fop_release
	movq	16(%rbx), %rdi
	callq	_pm_runtime_put
	movq	_ST_FLITE_SUSPENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rbx
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIMC_IO_DMA,8,3                ## @FIMC_IO_DMA
	.comm	_close,4,2                      ## @close
	.comm	_ST_FLITE_IN_USE,4,2            ## @ST_FLITE_IN_USE
	.comm	_ST_FLITE_SUSPENDED,4,2         ## @ST_FLITE_SUSPENDED
	.no_dead_strip	_fimc_lite_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_lite_release
_fimc_lite_release:                     ; @fimc_lite_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	x21, x0
	bl	_video_drvdata
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x21
	bl	_v4l2_fh_is_singular_file
	cbz	x0, LBB0_5
; %bb.1:
	add	x0, x20, #40
	bl	_atomic_read
Lloh0:
	adrp	x8, _FIMC_IO_DMA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FIMC_IO_DMA@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	add	x22, x20, #24
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_media_pipeline_stop
	str	wzr, [x20]
LBB0_4:
	mov	x0, x20
	mov	w1, #0
	bl	_fimc_lite_stop_capture
Lloh3:
	adrp	x8, _close@GOTPAGE
Lloh4:
	ldr	x8, [x8, _close@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_fimc_pipeline_call
Lloh6:
	adrp	x8, _ST_FLITE_IN_USE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ST_FLITE_IN_USE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_clear_bit
	ldr	x0, [x20, #24]
	bl	_mutex_lock
	ldr	w8, [x20, #32]
	sub	w8, w8, #1
	str	w8, [x20, #32]
	ldr	x0, [x20, #24]
	bl	_mutex_unlock
LBB0_5:
	mov	x0, x21
	mov	x1, #0
	bl	__vb2_fop_release
	ldr	x0, [x20, #16]
	bl	_pm_runtime_put
Lloh9:
	adrp	x8, _ST_FLITE_SUSPENDED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ST_FLITE_SUSPENDED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_clear_bit
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FIMC_IO_DMA,8,3                ; @FIMC_IO_DMA
	.comm	_close,4,2                      ; @close
	.comm	_ST_FLITE_IN_USE,4,2            ; @ST_FLITE_IN_USE
	.comm	_ST_FLITE_SUSPENDED,4,2         ; @ST_FLITE_SUSPENDED
	.no_dead_strip	_fimc_lite_release
.subsections_via_symbols
