	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdec_vp9_decode
_vdec_vp9_decode:                       ## @vdec_vp9_decode
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	32(%rdi), %r14
	movl	$0, (%rcx)
	testq	%rsi, %rsi
	jne	LBB0_3
## %bb.1:
	testq	%rbx, %rbx
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_mtk_vcodec_debug
	movq	%r13, %rdi
	callq	_vp9_reset
	jmp	LBB0_42
LBB0_3:
	testq	%r12, %r12
	je	LBB0_4
## %bb.5:
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_mtk_vcodec_debug
	leaq	112(%r14), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	16(%r13), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	24(%r14), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_35 Depth 2
	movq	8(%r12), %rax
	movl	(%rax), %ecx
	movl	%ecx, -60(%rbp)
	movl	4(%rax), %ecx
	movl	%ecx, -56(%rbp)
	movl	8(%rax), %eax
	movl	%eax, -52(%rbp)
	movups	(%r12), %xmm0
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movups	%xmm0, (%rax)
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rbx), %eax
	movl	%eax, 108(%r14)
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, 104(%r14)
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	12(%r14), %eax
	cmpl	%ecx, %eax
	jae	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r12), %rdi
	movq	88(%r14), %rcx
	movq	96(%r14), %rdx
	movq	(%rdx,%rax,8), %rsi
	addq	%rdi, %rsi
	movl	(%rcx,%rax,4), %edx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r12), %esi
	movq	_VP9_SUPER_FRAME_BS_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	%edi, %esi
	movl	%edi, %edx
	cmovbl	%esi, %edx
	addq	8(%r12), %rsi
	subl	%edx, %edi
	subq	%rdx, %rsi
	addq	(%r14), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	callq	_memcpy
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	20(%r13), %edx
	movl	24(%r13), %edi
	xorl	%esi, %esi
	callq	_memset
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	leaq	-60(%rbp), %rsi
	movl	$3, %edx
	callq	_vpu_dec_start
	testl	%eax, %eax
	jne	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_validate_vsi_array_indexes
	testl	%eax, %eax
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 40(%r14)
	je	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_vp9_alloc_work_buf
	testl	%eax, %eax
	je	LBB0_21
LBB0_24:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%r14), %eax
	movq	%rbx, %rsi
	testl	%eax, %eax
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rsi
	cmpl	%eax, 12(%r14)
	jae	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r14), %rsi
	shlq	$2, %rsi
	addq	80(%r14), %rsi
LBB0_27:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rsi, 8(%r13)
	movq	24(%r14), %rax
	movq	48(%r14), %rcx
	movq	%rsi, (%rcx,%rax,8)
	movq	%r13, %rdi
	callq	_vp9_is_sf_ref_fb
	testl	%eax, %eax
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r13), %rsi
	movq	%r13, %rdi
	callq	_vp9_add_to_fb_use_list
LBB0_29:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	72(%r14), %edx
	movq	%r13, %rdi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_mtk_vcodec_debug
	cmpq	$0, 64(%r14)
	je	LBB0_33
## %bb.30:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%r14), %rdx
	movq	32(%r14), %rcx
	movq	%r13, %rdi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_mtk_vcodec_debug
	cmpq	$0, 64(%r14)
	je	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	32(%r14), %rcx
	movq	_VP9_MAX_FRM_BUF_NUM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jge	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%r14), %rdx
	movq	%r13, %rdi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_mtk_vcodec_debug
	movq	32(%r14), %rdx
	movq	%r13, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_vp9_ref_cnt_fb
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	56(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$8, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_35:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	56(%r14), %rdi
	movl	-8(%rdi,%rbx), %eax
	shlq	$3, %rax
	addq	48(%r14), %rax
	movq	%rax, (%rdi,%rbx)
	incq	%r15
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r15
	jl	LBB0_35
LBB0_36:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 40(%r14)
	jne	LBB0_37
## %bb.38:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_vp9_decode_end_proc
	cmpl	$1, %eax
	jne	LBB0_39
## %bb.40:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_vp9_is_last_sub_frm
	testq	%rax, %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_6
## %bb.41:
	incl	(%r13)
	xorl	%r15d, %r15d
	jmp	LBB0_42
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_mtk_vcodec_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_42
LBB0_15:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_16
LBB0_18:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
LBB0_16:
	movq	%r13, %rdi
	callq	_mtk_vcodec_err
	testl	%r15d, %r15d
	jns	LBB0_42
	jmp	LBB0_23
LBB0_37:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	leaq	L_.str.8(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_mtk_vcodec_debug
	jmp	LBB0_42
LBB0_39:
	leaq	L_.str.9(%rip), %rsi
	movq	%r13, %rdi
	callq	_mtk_vcodec_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	testl	%r15d, %r15d
	jns	LBB0_42
LBB0_23:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_vp9_add_to_fb_free_list
LBB0_42:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_44
## %bb.43:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	testl	%r15d, %r15d
	jns	LBB0_42
	jmp	LBB0_23
LBB0_44:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[EOS]"

L_.str.1:                               ## @.str.1
	.asciz	"bs == NULL"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Input BS Size = %zu"

	.comm	_VP9_SUPER_FRAME_BS_SZ,4,2      ## @VP9_SUPER_FRAME_BS_SZ
L_.str.3:                               ## @.str.3
	.asciz	"vpu_dec_start failed"

L_.str.4:                               ## @.str.4
	.asciz	"Invalid values from VPU."

	.comm	_EIO,4,2                        ## @EIO
L_.str.5:                               ## @.str.5
	.asciz	"[#pic %d]"

L_.str.6:                               ## @.str.6
	.asciz	"drv->new_fb_idx=%d, drv->frm_to_show_idx=%d"

	.comm	_VP9_MAX_FRM_BUF_NUM,8,3        ## @VP9_MAX_FRM_BUF_NUM
L_.str.7:                               ## @.str.7
	.asciz	"Skip Decode drv->new_fb_idx=%d, drv->frm_to_show_idx=%d"

L_.str.8:                               ## @.str.8
	.asciz	"VDEC_ST_RESOLUTION_CHANGED"

L_.str.9:                               ## @.str.9
	.asciz	"vp9_decode_end_proc"

	.no_dead_strip	_vdec_vp9_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdec_vp9_decode
_vdec_vp9_decode:                       ; @vdec_vp9_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x23, [x0, #32]
	str	wzr, [x3]
	cbnz	x1, LBB0_3
; %bb.1:
	cbnz	x20, LBB0_3
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mtk_vcodec_debug
	mov	x0, x19
	bl	_vp9_reset
	mov	w28, #0
	b	LBB0_42
LBB0_3:
	cbz	x22, LBB0_33
; %bb.4:
	ldr	w8, [x22]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mtk_vcodec_debug
	add	x25, x23, #112
	add	x24, x19, #16
	add	x8, x23, #24
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
Lloh7:
	adrp	x26, l_.str.5@PAGE
Lloh8:
	add	x26, x26, l_.str.5@PAGEOFF
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_28 Depth 2
	ldr	x8, [x22, #8]
	ldr	w9, [x8]
	str	w9, [sp, #28]
	ldr	w9, [x8, #4]
	str	w9, [sp, #32]
	ldr	w8, [x8, #8]
	str	w8, [sp, #36]
	ldr	q0, [x22]
	str	q0, [x25]
	cbz	x20, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20]
	str	w8, [x23, #108]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x23, #104]
	cbz	w8, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x23, #8]
	cbz	w9, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x23, #12]
	cmp	w8, w9
	b.hs	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x22, #8]
	ldp	x10, x9, [x23, #88]
	ldr	x9, [x9, x8, lsl #3]
	add	x1, x9, x0
	ldr	w2, [x10, x8, lsl #2]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x22]
Lloh9:
	adrp	x9, _VP9_SUPER_FRAME_BS_SZ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VP9_SUPER_FRAME_BS_SZ@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w2, w8, w9, lo
	ldr	x10, [x22, #8]
	add	x8, x10, x8
	sub	x1, x8, x2
	ldr	x8, [x23]
	sub	w9, w9, w2
	add	x0, x8, x9
                                        ; kill: def $w2 killed $w2 killed $x2
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_memcpy
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	w2, w0, [x19, #20]
	mov	w1, #0
	bl	_memset
	add	x1, sp, #28
	mov	x0, x24
	mov	w2, #3
	bl	_vpu_dec_start
	cbnz	w0, LBB0_34
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_validate_vsi_array_indexes
	cbnz	w0, LBB0_35
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23, #40]
	cbz	x8, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_vp9_alloc_work_buf
	cbz	w0, LBB0_39
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x23, #8]
	mov	x1, x20
	cbz	w8, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x23, #12]
	mov	x1, x20
	cmp	w9, w8
	b.hs	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23, #16]
	ldr	x9, [x23, #80]
	add	x1, x9, x8, lsl #2
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x1, [x19, #8]
	ldr	x8, [x23, #48]
	ldr	x9, [x23, #24]
	str	x1, [x8, x9, lsl #3]
	mov	x0, x19
	bl	_vp9_is_sf_ref_fb
	cbnz	w0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x19, #8]
	mov	x0, x19
	bl	_vp9_add_to_fb_use_list
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x23, #72]
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x26
	bl	_mtk_vcodec_debug
	ldr	x8, [x23, #64]
	cbz	x8, LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
	ldp	x8, x9, [x23, #24]
	stp	x8, x9, [sp]
	mov	x0, x19
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_mtk_vcodec_debug
	ldr	x8, [x23, #64]
	cbz	x8, LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23, #32]
Lloh14:
	adrp	x9, _VP9_MAX_FRM_BUF_NUM@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VP9_MAX_FRM_BUF_NUM@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x23, #24]
	stp	x9, x8, [sp]
	mov	x0, x19
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_mtk_vcodec_debug
	ldr	x2, [x23, #32]
	mov	x0, x19
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	bl	_vp9_ref_cnt_fb
LBB0_26:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x23, #56]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_29
; %bb.27:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x28, #0
	mov	x27, #0
LBB0_28:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x8, x0, [x23, #48]
	add	x9, x0, x28
	ldr	w10, [x9]
	add	x8, x8, x10, lsl #3
	str	x8, [x9, #8]
	add	x27, x27, #1
	bl	_ARRAY_SIZE
	add	x28, x28, #16
	cmp	x27, w0, sxtw
	b.lt	LBB0_28
LBB0_29:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23, #40]
	cbnz	x8, LBB0_37
; %bb.30:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_vp9_decode_end_proc
	cmp	w0, #1
	b.ne	LBB0_38
; %bb.31:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_vp9_is_last_sub_frm
	cbz	x0, LBB0_5
; %bb.32:
	mov	w28, #0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_42
LBB0_33:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mtk_vcodec_err
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w28, w8
	b	LBB0_42
LBB0_34:
	mov	x28, x0
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_36
LBB0_35:
	mov	x28, x0
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_36:
	mov	x0, x19
	bl	_mtk_vcodec_err
	tbz	w28, #31, LBB0_42
	b	LBB0_41
LBB0_37:
	mov	w8, #1
	str	w8, [x21]
Lloh28:
	adrp	x1, l_.str.8@PAGE
Lloh29:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_mtk_vcodec_debug
	mov	w28, #0
	b	LBB0_42
LBB0_38:
Lloh30:
	adrp	x1, l_.str.9@PAGE
Lloh31:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_mtk_vcodec_err
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_40
LBB0_39:
Lloh34:
	adrp	x8, _EIO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_40:
	ldr	w8, [x8]
	neg	w28, w8
	tbz	w28, #31, LBB0_42
LBB0_41:
	mov	x0, x19
	mov	x1, x20
	bl	_vp9_add_to_fb_free_list
LBB0_42:
	ldr	x8, [sp, #40]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_44
; %bb.43:
	mov	x0, x28
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_44:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[EOS]"

l_.str.1:                               ; @.str.1
	.asciz	"bs == NULL"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Input BS Size = %zu"

	.comm	_VP9_SUPER_FRAME_BS_SZ,4,2      ; @VP9_SUPER_FRAME_BS_SZ
l_.str.3:                               ; @.str.3
	.asciz	"vpu_dec_start failed"

l_.str.4:                               ; @.str.4
	.asciz	"Invalid values from VPU."

	.comm	_EIO,4,2                        ; @EIO
l_.str.5:                               ; @.str.5
	.asciz	"[#pic %d]"

l_.str.6:                               ; @.str.6
	.asciz	"drv->new_fb_idx=%d, drv->frm_to_show_idx=%d"

	.comm	_VP9_MAX_FRM_BUF_NUM,8,3        ; @VP9_MAX_FRM_BUF_NUM
l_.str.7:                               ; @.str.7
	.asciz	"Skip Decode drv->new_fb_idx=%d, drv->frm_to_show_idx=%d"

l_.str.8:                               ; @.str.8
	.asciz	"VDEC_ST_RESOLUTION_CHANGED"

l_.str.9:                               ; @.str.9
	.asciz	"vp9_decode_end_proc"

	.no_dead_strip	_vdec_vp9_decode
.subsections_via_symbols
