	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function coda_release
_coda_release:                          ## @coda_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_video_drvdata
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_fh_to_ctx
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	movq	%rax, %rsi
	movq	%rax, %rcx
	callq	_coda_dbg
	movq	(%rbx), %rax
	movq	_CODA_INST_DECODER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 64(%rbx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_coda_bit_stream_end_flag
LBB0_3:
	movl	28(%rbx), %edi
	callq	_v4l2_m2m_ctx_release
	movq	56(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_vdoa_context_destroy
LBB0_5:
	movq	16(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_7
## %bb.6:
	movl	16(%r14), %edi
	leaq	48(%rbx), %r15
	movq	%r15, %rsi
	callq	_queue_work
	movq	%r15, %rdi
	callq	_flush_work
LBB0_7:
	leaq	28(%rbx), %r15
	movq	40(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_CODA_DX6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	leaq	36(%rbx), %rsi
	movq	%r14, %rdi
	callq	_coda_free_aux_buf
LBB0_9:
	movq	%rbx, %rdi
	addq	$32, %rdi
	callq	_v4l2_ctrl_handler_free
	movl	12(%r14), %edi
	callq	_clk_disable_unprepare
	movl	8(%r14), %edi
	callq	_clk_disable_unprepare
	movl	4(%r14), %edi
	callq	_pm_runtime_put_sync
	movq	%r15, %rdi
	callq	_v4l2_fh_del
	movq	%r15, %rdi
	callq	_v4l2_fh_exit
	movl	24(%rbx), %esi
	movq	%r14, %rdi
	callq	_ida_free
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_11:
	movl	8(%rbx), %edi
	callq	_debugfs_remove_recursive
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"release instance (%p)\n"

	.comm	_CODA_INST_DECODER,8,3          ## @CODA_INST_DECODER
	.comm	_CODA_DX6,8,3                   ## @CODA_DX6
	.no_dead_strip	_coda_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function coda_release
_coda_release:                          ; @coda_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	x19, x0
	bl	_video_drvdata
	mov	x20, x0
	ldr	w0, [x19]
	bl	_fh_to_ctx
	mov	x19, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	mov	x1, x19
	mov	x3, x19
	bl	_coda_dbg
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _CODA_INST_DECODER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CODA_INST_DECODER@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_coda_bit_stream_end_flag
LBB0_3:
	mov	x21, x19
	ldr	w0, [x21, #28]!
	bl	_v4l2_m2m_ctx_release
	ldur	x0, [x21, #28]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_vdoa_context_destroy
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x20, #16]
	add	x22, x19, #48
	mov	x1, x22
	bl	_queue_work
	mov	x0, x22
	bl	_flush_work
LBB0_7:
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _CODA_DX6@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CODA_DX6@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	add	x1, x19, #36
	mov	x0, x20
	bl	_coda_free_aux_buf
LBB0_9:
	add	x0, x19, #32
	bl	_v4l2_ctrl_handler_free
	ldr	w0, [x20, #12]
	bl	_clk_disable_unprepare
	ldr	w0, [x20, #8]
	bl	_clk_disable_unprepare
	ldr	w0, [x20, #4]
	bl	_pm_runtime_put_sync
	mov	x0, x21
	bl	_v4l2_fh_del
	mov	x0, x21
	bl	_v4l2_fh_exit
	ldr	w1, [x19, #24]
	mov	x0, x20
	bl	_ida_free
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	blr	x8
LBB0_11:
	ldr	w0, [x19, #8]
	bl	_debugfs_remove_recursive
	mov	x0, x19
	bl	_kfree
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"release instance (%p)\n"

	.comm	_CODA_INST_DECODER,8,3          ; @CODA_INST_DECODER
	.comm	_CODA_DX6,8,3                   ; @CODA_DX6
	.no_dead_strip	_coda_release
.subsections_via_symbols
