	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_vsi_array_indexes
_validate_vsi_array_indexes:            ## @validate_vsi_array_indexes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %edx
	movq	_VP9_MAX_FRM_BUF_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	-1(%rcx), %eax
	cmpl	%eax, %edx
	jge	LBB0_1
## %bb.2:
	movl	4(%rsi), %edx
	cmpl	%ecx, %edx
	jge	LBB0_3
## %bb.4:
	movl	8(%rsi), %edx
	xorl	%eax, %eax
	cmpl	%ecx, %edx
	jl	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	callq	_mtk_vcodec_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VP9_MAX_FRM_BUF_NUM,4,2        ## @VP9_MAX_FRM_BUF_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid vsi->sf_frm_idx=%u."

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"Invalid vsi->frm_to_show_idx=%u."

L_.str.2:                               ## @.str.2
	.asciz	"Invalid vsi->new_fb_idx=%u."

	.no_dead_strip	_validate_vsi_array_indexes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_vsi_array_indexes
_validate_vsi_array_indexes:            ; @validate_vsi_array_indexes
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w2, [x1]
Lloh0:
	adrp	x8, _VP9_MAX_FRM_BUF_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VP9_MAX_FRM_BUF_NUM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w9, w8, #1
	cmp	w2, w9
	b.ge	LBB0_4
; %bb.1:
	ldr	w2, [x1, #4]
	cmp	w2, w8
	b.ge	LBB0_5
; %bb.2:
	ldr	w2, [x1, #8]
	cmp	w2, w8
	b.ge	LBB0_6
; %bb.3:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_7:
	bl	_mtk_vcodec_err
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VP9_MAX_FRM_BUF_NUM,4,2        ; @VP9_MAX_FRM_BUF_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid vsi->sf_frm_idx=%u."

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"Invalid vsi->frm_to_show_idx=%u."

l_.str.2:                               ; @.str.2
	.asciz	"Invalid vsi->new_fb_idx=%u."

	.no_dead_strip	_validate_vsi_array_indexes
.subsections_via_symbols
