	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hva_release
_hva_release:                           ## @hva_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
	movl	(%rdi), %edi
	callq	_fh_to_ctx
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ctx_to_hdev
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ctx_to_dev
	movq	%rax, %r14
	movq	24(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edx
	movl	8(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	*(%r12)
	movq	$0, 24(%rbx)
	movq	8(%r15), %rax
	movq	(%rbx), %rcx
	movq	$0, (%rax,%rcx,8)
	decl	(%r15)
LBB0_2:
	movq	%rbx, %rdi
	callq	_hva_dbg_summary
	leaq	12(%rbx), %r15
	movl	12(%rbx), %edi
	callq	_v4l2_m2m_ctx_release
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_v4l2_ctrl_handler_free
	movq	%r15, %rdi
	callq	_v4l2_fh_del
	movq	%r15, %rdi
	callq	_v4l2_fh_exit
	movl	8(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s %s encoder closed\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s encoder instance released\n"

	.no_dead_strip	_hva_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hva_release
_hva_release:                           ; @hva_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
	ldr	w0, [x0]
	bl	_fh_to_ctx
	mov	x19, x0
	bl	_ctx_to_hdev
	mov	x21, x0
	mov	x0, x19
	bl	_ctx_to_dev
	mov	x20, x0
	ldr	x22, [x19, #24]
	cbz	x22, LBB0_2
; %bb.1:
	ldr	w2, [x19, #8]
	ldr	w3, [x22, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	x8, [x22]
	mov	x0, x19
	blr	x8
	str	xzr, [x19, #24]
	ldr	x8, [x21, #8]
	ldr	x9, [x19]
	str	xzr, [x8, x9, lsl #3]
	ldr	w8, [x21]
	sub	w8, w8, #1
	str	w8, [x21]
LBB0_2:
	mov	x0, x19
	bl	_hva_dbg_summary
	mov	x21, x19
	ldr	w0, [x21, #12]!
	bl	_v4l2_m2m_ctx_release
	add	x0, x19, #16
	bl	_v4l2_ctrl_handler_free
	mov	x0, x21
	bl	_v4l2_fh_del
	mov	x0, x21
	bl	_v4l2_fh_exit
	ldr	w2, [x19, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s %s encoder closed\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s encoder instance released\n"

	.no_dead_strip	_hva_release
.subsections_via_symbols
