	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_capture_release
_fimc_capture_release:                  ## @fimc_capture_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_video_drvdata
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_v4l2_fh_is_singular_file
	movl	%eax, %r14d
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_task_pid_nr
	movl	16(%r13), %edx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_dbg
	movq	%r13, %rdi
	callq	_mutex_lock
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.1:
	leaq	16(%r13), %r12
	cmpl	$0, 20(%r13)
	je	LBB0_3
## %bb.2:
	leaq	24(%r13), %rdi
	callq	_media_pipeline_stop
	movl	$0, 20(%r13)
LBB0_3:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	__vb2_fop_release
	movl	%eax, %r15d
	movq	_ST_CAPT_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_clear_bit
	movq	%r13, %rbx
	addq	$24, %rbx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_fimc_pipeline_call
	movq	_ST_CAPT_SUSPENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_clear_bit
	movq	%rbx, %rdi
	callq	_fimc_md_graph_lock
	decl	24(%r13)
	movq	%rbx, %rdi
	callq	_fimc_md_graph_unlock
	jmp	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	__vb2_fop_release
	movl	%eax, %r15d
LBB0_4:
	movq	8(%r13), %rdi
	callq	_pm_runtime_put_sync
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pid: %d, state: 0x%lx"

	.comm	_current,4,2                    ## @current
	.comm	_ST_CAPT_BUSY,4,2               ## @ST_CAPT_BUSY
	.comm	_ST_CAPT_SUSPENDED,4,2          ## @ST_CAPT_SUSPENDED
	.no_dead_strip	_fimc_capture_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_capture_release
_fimc_capture_release:                  ; @fimc_capture_release
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x0
	bl	_video_drvdata
	mov	x19, x0
	mov	x0, x22
	bl	_v4l2_fh_is_singular_file
	mov	x20, x0
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_task_pid_nr
	mov	x1, x0
	mov	x21, x19
	ldr	w2, [x21, #16]!
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
	mov	x0, x19
	bl	_mutex_lock
	cbz	w20, LBB0_4
; %bb.1:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_3
; %bb.2:
	add	x0, x19, #24
	bl	_media_pipeline_stop
	str	wzr, [x19, #20]
LBB0_3:
	mov	x0, x22
	mov	x1, #0
	bl	__vb2_fop_release
	mov	x22, x0
Lloh5:
	adrp	x8, _ST_CAPT_BUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ST_CAPT_BUSY@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
	add	x23, x19, #24
	mov	x0, x23
	mov	x1, x20
	bl	_fimc_pipeline_call
Lloh8:
	adrp	x8, _ST_CAPT_SUSPENDED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ST_CAPT_SUSPENDED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
	mov	x0, x23
	bl	_fimc_md_graph_lock
	ldr	w8, [x19, #24]
	sub	w8, w8, #1
	str	w8, [x19, #24]
	mov	x0, x23
	bl	_fimc_md_graph_unlock
	b	LBB0_5
LBB0_4:
	mov	x0, x22
	mov	x1, #0
	bl	__vb2_fop_release
	mov	x22, x0
LBB0_5:
	ldr	x0, [x19, #8]
	bl	_pm_runtime_put_sync
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pid: %d, state: 0x%lx"

	.comm	_current,4,2                    ; @current
	.comm	_ST_CAPT_BUSY,4,2               ; @ST_CAPT_BUSY
	.comm	_ST_CAPT_SUSPENDED,4,2          ; @ST_CAPT_SUSPENDED
	.no_dead_strip	_fimc_capture_release
.subsections_via_symbols
