	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_index
_update_index:                          ## @update_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	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movq	(%rdi), %rbx
	movl	(%rbx), %r15d
	cmpl	%esi, %r15d
	jge	LBB0_11
## %bb.1:
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.3:
	cmpl	%r13d, 4(%rbx)
	jl	LBB0_4
LBB0_6:
	cmpl	%r13d, %r15d
	jl	LBB0_7
	jmp	LBB0_11
LBB0_2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	cmpl	%r13d, 4(%rbx)
	jge	LBB0_6
LBB0_4:
	movq	_ASF_INDEX_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(%rsi,%r13), %eax
	negl	%esi
	andl	%eax, %esi
	movl	%esi, 4(%rbx)
	leaq	40(%rbx), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$32, %edx
	callq	_av_reallocp_array
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	movl	(%rbx), %r15d
	cmpl	%r13d, %r15d
	jge	LBB0_11
LBB0_7:
	movslq	%r15d, %r12
	movq	40(%rbx), %rcx
	shlq	$5, %r12
	movl	%r15d, %r14d
	notl	%r14d
	addl	%r13d, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movups	16(%rbx), %xmm0
	movups	%xmm0, 16(%rcx,%r12)
	movl	$10000000, %edi                 ## imm = 0x989680
	callq	_INT64_C
	imull	%r15d, %eax
	movq	40(%rbx), %rcx
	movl	%eax, (%rcx,%r12)
	movq	8(%rbx), %rax
	movq	%rax, 8(%rcx,%r12)
	subl	$1, %r14d
	jb	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rbx), %r15d
	addq	$32, %r12
	jmp	LBB0_8
LBB0_11:
	movl	32(%rbx), %edi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_FFMAX
	movl	%eax, 32(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%rbx)
	movq	%r14, 16(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movl	%r13d, (%rbx)
	xorl	%eax, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	$0, 4(%rbx)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ASF_INDEX_BLOCK,4,2            ## @ASF_INDEX_BLOCK
	.no_dead_strip	_update_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_index
_update_index:                          ; @update_index
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	ldr	x23, [x0]
	ldr	w24, [x23]
	cmp	w24, w1
	b.ge	LBB0_10
; %bb.1:
	cbnz	w24, LBB0_3
; %bb.2:
	stp	x21, x22, [x23, #16]
	str	x19, [x23, #8]
LBB0_3:
	ldr	w8, [x23, #4]
	cmp	w8, w20
	b.ge	LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _ASF_INDEX_BLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASF_INDEX_BLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w9, w8, w20
	neg	w8, w8
	and	w1, w9, w8
	str	w1, [x23, #4]
	add	x0, x23, #40
	mov	w2, #32
	bl	_av_reallocp_array
	tbnz	w0, #31, LBB0_12
; %bb.5:
	ldr	w24, [x23]
LBB0_6:
	cmp	w24, w20
	b.ge	LBB0_10
; %bb.7:
	ldr	x8, [x23, #40]
	sbfiz	x25, x24, #5, #32
	mvn	w9, w24
	add	w26, w9, w20
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x25
	ldp	x10, x9, [x23, #16]
	stp	x10, x9, [x8, #16]
	mov	w0, #38528
	movk	w0, #152, lsl #16
	bl	_INT64_C
	mul	w9, w0, w24
	ldr	x8, [x23, #40]
	add	x10, x8, x25
	str	w9, [x10]
	ldr	x9, [x23, #8]
	str	x9, [x10, #8]
	cbz	w26, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w24, [x23]
	add	x25, x25, #32
	sub	w26, w26, #1
	b	LBB0_8
LBB0_10:
	ldr	w0, [x23, #32]
	mov	x1, x21
	bl	_FFMAX
	mov	x8, x0
	mov	w0, #0
	str	w8, [x23, #32]
	stp	x21, x22, [x23, #16]
	str	x19, [x23, #8]
	str	w20, [x23]
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	str	wzr, [x23, #4]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ASF_INDEX_BLOCK,4,2            ; @ASF_INDEX_BLOCK
	.no_dead_strip	_update_index
.subsections_via_symbols
