	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_replace_index_entry_in_base    ## -- Begin function replace_index_entry_in_base
	.p2align	4, 0x90
_replace_index_entry_in_base:           ## @replace_index_entry_in_base
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.2:
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.3:
	cmpq	(%rcx), %rax
	jg	LBB0_7
## %bb.4:
	movq	%rdx, %r14
	movq	%rax, (%rdx)
	movq	8(%rcx), %rcx
	movq	-8(%rcx,%rax,8), %rdi
	cmpq	%rsi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_discard_cache_entry
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rcx
	movq	(%r14), %rax
LBB0_6:
	decq	%rax
	movq	%r14, (%rcx,%rax,8)
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_replace_index_entry_in_base    ; -- Begin function replace_index_entry_in_base
	.p2align	2
_replace_index_entry_in_base:           ; @replace_index_entry_in_base
	.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
	ldr	x8, [x1]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	x9, [x0]
	cbz	x9, LBB0_7
; %bb.2:
	ldr	x9, [x9]
	cbz	x9, LBB0_7
; %bb.3:
	ldr	x10, [x9]
	cmp	x8, x10
	b.gt	LBB0_7
; %bb.4:
	mov	x19, x2
	str	x8, [x2]
	ldr	x9, [x9, #8]
	sub	x8, x8, #1
	ldr	x0, [x9, x8, lsl #3]
	cmp	x0, x1
	b.eq	LBB0_6
; %bb.5:
	bl	_discard_cache_entry
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	ldr	x8, [x19]
	sub	x8, x8, #1
LBB0_6:
	str	x19, [x9, x8, lsl #3]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
