	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcam_v4l_release
_mcam_v4l_release:                      ## @mcam_v4l_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, %r15
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_v4l2_fh_is_singular_file
	movl	%eax, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	__vb2_fop_release
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	callq	_mcam_disable_mipi
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_power@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_sensor_call
	movq	%r15, %rdi
	callq	_mcam_clk_disable
	movq	(%r15), %rax
	movq	_B_vmalloc@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	_alloc_bufs_at_read@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_mcam_free_dma_bufs
LBB0_4:
	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	_core,4,2                       ## @core
	.comm	_s_power,4,2                    ## @s_power
	.comm	_B_vmalloc,8,3                  ## @B_vmalloc
	.comm	_alloc_bufs_at_read,8,3         ## @alloc_bufs_at_read
	.no_dead_strip	_mcam_v4l_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcam_v4l_release
_mcam_v4l_release:                      ; @mcam_v4l_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, #8
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x21
	bl	_v4l2_fh_is_singular_file
	mov	x22, x0
	mov	x0, x21
	mov	x1, #0
	bl	__vb2_fop_release
	cbz	w22, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_mcam_disable_mipi
Lloh0:
	adrp	x8, _core@GOTPAGE
Lloh1:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _s_power@GOTPAGE
Lloh4:
	ldr	x8, [x8, _s_power@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_sensor_call
	mov	x0, x20
	bl	_mcam_clk_disable
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _B_vmalloc@GOTPAGE
Lloh7:
	ldr	x9, [x9, _B_vmalloc@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _alloc_bufs_at_read@GOTPAGE
Lloh10:
	ldr	x10, [x10, _alloc_bufs_at_read@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x10, #0, #4, eq
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_mcam_free_dma_bufs
LBB0_3:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_core,4,2                       ; @core
	.comm	_s_power,4,2                    ; @s_power
	.comm	_B_vmalloc,8,3                  ; @B_vmalloc
	.comm	_alloc_bufs_at_read,8,3         ; @alloc_bufs_at_read
	.no_dead_strip	_mcam_v4l_release
.subsections_via_symbols
