	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_vi_index
_map_vi_index:                          ## @map_vi_index
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EFX_VI_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, %r13d
	cmpl	%esi, %eax
	ja	LBB0_7
## %bb.1:
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	subl	%eax, %r15d
	callq	_efx_vf_size
	movl	%eax, %ecx
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
	cmpl	(%rbx), %eax
	jae	LBB0_7
## %bb.2:
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	movl	%eax, %eax
	shlq	$2, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	(%rcx), %rax
	movq	%rax, (%r12)
LBB0_4:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	callq	_efx_vf_size
	movl	%eax, %ecx
	xorl	%r13d, %r13d
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, (%r15)
	jmp	LBB0_7
LBB0_5:
	xorl	%r13d, %r13d
LBB0_7:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFX_VI_BASE,4,2                ## @EFX_VI_BASE
	.no_dead_strip	_map_vi_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_vi_index
_map_vi_index:                          ; @map_vi_index
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _EFX_VI_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFX_VI_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.hi	LBB0_6
; %bb.1:
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x23, [x0, #8]
	sub	w24, w1, w8
	bl	_efx_vf_size
	udiv	w8, w24, w0
	ldr	w9, [x21]
	cmp	w8, w9
	b.hs	LBB0_6
; %bb.2:
	cbz	x22, LBB0_4
; %bb.3:
	ldr	x9, [x23]
	add	x8, x9, w8, uxtw #2
	str	x8, [x22]
LBB0_4:
	cbz	x19, LBB0_8
; %bb.5:
	mov	x0, x21
	bl	_efx_vf_size
	mov	x8, x0
	mov	w0, #0
	udiv	w9, w20, w8
	msub	w8, w9, w8, w20
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EFX_VI_BASE,4,2                ; @EFX_VI_BASE
	.no_dead_strip	_map_vi_index
.subsections_via_symbols
