	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_index_entry                ## -- Begin function add_index_entry
	.p2align	4, 0x90
_add_index_entry:                       ## @add_index_entry
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_ADD_CACHE_JUST_APPEND@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %esi
	movl	%esi, %r15d
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_add_index_entry_with_check
	movl	%eax, %r15d
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	decl	%r15d
	movl	(%rbx), %esi
LBB0_4:
	movq	8(%rbx), %rdi
	incl	%esi
	movl	16(%rbx), %edx
	callq	_ALLOC_GROW
	movl	(%rbx), %edx
	leal	1(%rdx), %eax
	movl	%eax, (%rbx)
	subl	%r15d, %edx
	jle	LBB0_6
## %bb.5:
	movq	8(%rbx), %rax
	movslq	%r15d, %rcx
	leaq	(%rax,%rcx), %rsi
	leaq	(%rax,%rcx), %rdi
	incq	%rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_MOVE_ARRAY
LBB0_6:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_set_index_entry
	movq	_CE_ENTRY_ADDED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	xorl	%r15d, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADD_CACHE_JUST_APPEND,4,2      ## @ADD_CACHE_JUST_APPEND
	.comm	_CE_ENTRY_ADDED,4,2             ## @CE_ENTRY_ADDED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_index_entry                ; -- Begin function add_index_entry
	.p2align	2
_add_index_entry:                       ; @add_index_entry
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ADD_CACHE_JUST_APPEND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADD_CACHE_JUST_APPEND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19]
	mov	x21, x8
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_add_index_entry_with_check
	subs	w21, w0, #1
	b.lt	LBB0_7
; %bb.3:
	ldr	w8, [x19]
LBB0_4:
	ldr	x0, [x19, #8]
	add	w1, w8, #1
	ldr	w2, [x19, #16]
	bl	_ALLOC_GROW
	ldr	w8, [x19]
	add	w9, w8, #1
	str	w9, [x19]
	subs	w2, w8, w21
	b.le	LBB0_6
; %bb.5:
	ldr	x8, [x19, #8]
	add	x1, x8, w21, sxtw
	add	x0, x1, #1
	bl	_MOVE_ARRAY
LBB0_6:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_set_index_entry
	mov	w0, #0
Lloh3:
	adrp	x8, _CE_ENTRY_ADDED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CE_ENTRY_ADDED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ADD_CACHE_JUST_APPEND,4,2      ; @ADD_CACHE_JUST_APPEND
	.comm	_CE_ENTRY_ADDED,4,2             ; @CE_ENTRY_ADDED
.subsections_via_symbols
