	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdec_vp9_deinit
_vdec_vp9_deinit:                       ## @vdec_vp9_deinit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	addq	$24, %rdi
	callq	_vpu_dec_deinit
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mtk_vcodec_err
LBB0_2:
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	leaq	16(%rbx), %rsi
	movl	(%rbx), %edi
	callq	_mtk_vcodec_mem_free
LBB0_4:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.5:
	leaq	8(%rbx), %rsi
	movl	(%rbx), %edi
	callq	_mtk_vcodec_mem_free
LBB0_6:
	movq	%rbx, %rdi
	callq	_vp9_free_all_sf_ref_fb
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_vp9_free_inst                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpu_dec_deinit failed"

	.no_dead_strip	_vdec_vp9_deinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdec_vp9_deinit
_vdec_vp9_deinit:                       ; @vdec_vp9_deinit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #24
	bl	_vpu_dec_deinit
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mtk_vcodec_err
LBB0_2:
	mov	x1, x19
	ldr	x8, [x1, #16]!
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x19]
	bl	_mtk_vcodec_mem_free
LBB0_4:
	mov	x1, x19
	ldr	x8, [x1, #8]!
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w0, [x19]
	bl	_mtk_vcodec_mem_free
LBB0_6:
	mov	x0, x19
	bl	_vp9_free_all_sf_ref_fb
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vp9_free_inst
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpu_dec_deinit failed"

	.no_dead_strip	_vdec_vp9_deinit
.subsections_via_symbols
