	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_to_write_split_index   ## -- Begin function prepare_to_write_split_index
	.p2align	4, 0x90
_prepare_to_write_split_index:          ## @prepare_to_write_split_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	%rdi, %r13
	callq	_init_split_index
	movq	%rax, %r14
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_ewah_new
	movq	%rax, 32(%r14)
	xorl	%eax, %eax
	callq	_ewah_new
	movq	%rax, 24(%r14)
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpl	$0, (%r13)
	jle	LBB0_13
## %bb.3:
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, (%rbx)
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jge	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%r15,8), %rbx
	movl	(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_27
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r14), %rax
	movl	(%rax), %edx
	cmpl	%edx, %esi
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_BUG
	movq	16(%r14), %rax
	movl	(%rbx), %esi
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%rbx), %ecx
	movq	_CE_MATCHED@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 4(%rbx)
	movq	8(%rax), %rax
	movslq	%esi, %rdx
	movq	-8(%rax,%rdx,8), %r12
	cmpq	%r12, %rbx
	je	LBB0_8
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rax
	cmpq	8(%r12), %rax
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	20(%rbx), %edi
	movl	20(%r12), %esi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_CE_UPDATE_IN_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	jne	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_ce_uptodate
	testl	%eax, %eax
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_is_racy_timestamp
	testq	%rax, %rax
	jne	LBB0_25
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_compare_ce_content
	testq	%rax, %rax
	je	LBB0_26
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_CE_UPDATE_IN_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_discard_cache_entry
	movq	16(%r14), %rax
	movq	8(%rax), %rax
	movslq	(%rbx), %rcx
	movq	%rbx, -8(%rax,%rcx,8)
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_CE_UPDATE_IN_BASE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_27
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_ce_uptodate
	testl	%eax, %eax
	jne	LBB0_27
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_is_racy_timestamp
	testq	%rax, %rax
	je	LBB0_27
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_CE_UPDATE_IN_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	jmp	LBB0_27
LBB0_12:
	movq	16(%r14), %rax
LBB0_13:
	cmpl	$0, (%rax)
	jle	LBB0_33
## %bb.14:
	xorl	%ebx, %ebx
	movq	_CE_REMOVE@GOTPCREL(%rip), %r15
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%rbx
	movq	16(%r14), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_33
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movq	(%rax,%rbx,8), %r12
	movl	4(%r12), %eax
	testl	%eax, (%r15)
	je	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	32(%r14), %rdi
	movl	%ebx, %esi
	callq	_ewah_set
LBB0_30:                                ##   in Loop: Header=BB0_15 Depth=1
	addq	$16, %r12
	movq	%r12, %rdi
	callq	_is_null_oid
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	$1, 4(%r13)
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	_CE_MATCHED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.28:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_CE_UPDATE_IN_BASE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	24(%r14), %rdi
	movl	%ebx, %esi
	callq	_ewah_set
	movq	_CE_STRIP_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r12)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	incl	%esi
	xorl	%edi, %edi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	callq	_ALLOC_GROW
	jmp	LBB0_30
LBB0_1:
	xorl	%eax, %eax
LBB0_33:
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_41
## %bb.34:
	movl	$1, %ebx
	movq	_CE_REMOVE@GOTPCREL(%rip), %r12
	movq	_CE_MATCHED@GOTPCREL(%rip), %rdi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdx
	movq	-8(%rdx,%rbx,8), %r15
	testq	%rax, %rax
	je	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	cmpl	$0, (%r15)
	jne	LBB0_39
LBB0_37:                                ##   in Loop: Header=BB0_35 Depth=1
	movl	4(%r15), %eax
	testl	%eax, (%r12)
	jne	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_35 Depth=1
	movq	%r14, %r13
	movq	%rdi, %r14
	xorl	%edi, %edi
	movq	_CE_STRIP_NAME@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	sete	%dil
	callq	_assert
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	incl	%esi
	xorl	%edi, %edi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	callq	_ALLOC_GROW
	movq	%r14, %rdi
	movq	%r13, %r14
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %ecx
LBB0_39:                                ##   in Loop: Header=BB0_35 Depth=1
	movl	(%rdi), %eax
	notl	%eax
	andl	%eax, 4(%r15)
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_35 Depth=1
	movq	16(%r14), %rax
	incq	%rbx
	jmp	LBB0_35
LBB0_41:
	movq	8(%r13), %rax
	movq	%rax, 8(%r14)
	movl	%ecx, (%r14)
	movq	$0, 8(%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%r13)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ce refers to a shared ce at %d, which is beyond the shared index size %d"

	.comm	_CE_MATCHED,4,2                 ## @CE_MATCHED
	.comm	_CE_UPDATE_IN_BASE,4,2          ## @CE_UPDATE_IN_BASE
	.comm	_CE_REMOVE,4,2                  ## @CE_REMOVE
	.comm	_CE_STRIP_NAME,4,2              ## @CE_STRIP_NAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_to_write_split_index   ; -- Begin function prepare_to_write_split_index
	.p2align	2
_prepare_to_write_split_index:          ; @prepare_to_write_split_index
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_init_split_index
	mov	x20, x0
	bl	_ewah_new
	str	x0, [x20, #32]
	bl	_ewah_new
	str	x0, [x20, #24]
	ldr	x8, [x20, #16]
Lloh0:
	adrp	x24, _CE_REMOVE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CE_REMOVE@GOTPAGEOFF]
Lloh2:
	adrp	x25, _CE_STRIP_NAME@GOTPAGE
Lloh3:
	ldr	x25, [x25, _CE_STRIP_NAME@GOTPAGEOFF]
Lloh4:
	adrp	x26, _CE_MATCHED@GOTPAGE
Lloh5:
	ldr	x26, [x26, _CE_MATCHED@GOTPAGEOFF]
	cbz	x8, LBB0_32
; %bb.1:
	ldr	w9, [x19]
Lloh6:
	adrp	x27, _CE_UPDATE_IN_BASE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _CE_UPDATE_IN_BASE@GOTPAGEOFF]
	cmp	w9, #1
	b.lt	LBB0_22
; %bb.2:
	mov	x28, #0
Lloh8:
	adrp	x21, l_.str@PAGE
Lloh9:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [x22]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x28, x28, #1
	ldrsw	x8, [x19]
	cmp	x28, x8
	b.ge	LBB0_21
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x22, [x8, x28, lsl #3]
	ldr	w1, [x22]
	cbz	w1, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #16]
	ldr	w2, [x8]
	cmp	w1, w2
	b.le	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_BUG
	ldr	x8, [x20, #16]
	ldr	w1, [x22]
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x26]
	ldr	w10, [x22, #4]
	orr	w9, w10, w9
	str	w9, [x22, #4]
	ldr	x8, [x8, #8]
	sub	w10, w1, #1
	ldr	x23, [x8, w10, sxtw #3]
	cmp	x22, x23
	b.eq	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22, #8]
	ldr	x9, [x23, #8]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22, #20]
	ldr	w1, [x23, #20]
	bl	_strcmp
	cbnz	x0, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x22, #4]
	ldr	w9, [x27]
	tst	w9, w8
	b.ne	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_ce_uptodate
	cbnz	w0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_is_racy_timestamp
	cbnz	x0, LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_compare_ce_content
	cbz	x0, LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27]
	ldr	w9, [x22, #4]
	orr	w8, w9, w8
	str	w8, [x22, #4]
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_discard_cache_entry
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	ldrsw	x9, [x22]
	add	x8, x8, x9, lsl #3
	stur	x22, [x8, #-8]
	b	LBB0_4
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27]
	tst	w8, w9
	b.ne	LBB0_4
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_ce_uptodate
	cbnz	w0, LBB0_4
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_is_racy_timestamp
	cbz	x0, LBB0_4
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27]
	ldr	w9, [x22, #4]
	orr	w8, w9, w8
	str	w8, [x22, #4]
	b	LBB0_4
LBB0_21:
	ldr	x8, [x20, #16]
LBB0_22:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_32
; %bb.23:
	mov	x22, #0
	mov	w21, #0
	mov	w23, #1
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x22, x22, #1
	ldr	x8, [x20, #16]
	ldrsw	x9, [x8]
	cmp	x22, x9
	b.ge	LBB0_33
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	ldr	x28, [x8, x22, lsl #3]
	ldr	w8, [x28, #4]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_29
LBB0_26:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	x0, [x20, #32]
	mov	x1, x22
	bl	_ewah_set
LBB0_27:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x0, x28, #16
	bl	_is_null_oid
	cbz	x0, LBB0_24
; %bb.28:                               ;   in Loop: Header=BB0_25 Depth=1
	str	w23, [x19, #4]
	b	LBB0_24
LBB0_29:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.30:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.31:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x0, [x20, #24]
	mov	x1, x22
	bl	_ewah_set
	ldr	w8, [x25]
	ldr	w9, [x28, #4]
	orr	w8, w9, w8
	str	w8, [x28, #4]
	add	w21, w21, #1
	mov	x0, #0
	mov	x1, x21
	mov	w2, #0
	bl	_ALLOC_GROW
	b	LBB0_27
LBB0_32:
	mov	w21, #0
LBB0_33:
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_41
; %bb.34:
	mov	x22, #0
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #8]
	ldr	x23, [x10, x22, lsl #3]
	cbz	x8, LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=1
	ldr	w8, [x23]
	cbnz	w8, LBB0_39
LBB0_37:                                ;   in Loop: Header=BB0_35 Depth=1
	ldr	w8, [x23, #4]
	ldr	w10, [x24]
	tst	w10, w8
	b.ne	LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_35 Depth=1
	ldr	w9, [x25]
	tst	w9, w8
	cset	w0, eq
	bl	_assert
	add	w21, w21, #1
	mov	x0, #0
	mov	x1, x21
	mov	w2, #0
	bl	_ALLOC_GROW
	ldr	w9, [x19]
LBB0_39:                                ;   in Loop: Header=BB0_35 Depth=1
	ldr	w8, [x26]
	ldr	w10, [x23, #4]
	bic	w8, w10, w8
	str	w8, [x23, #4]
	add	x22, x22, #1
	cmp	x22, w9, sxtw
	b.ge	LBB0_41
; %bb.40:                               ;   in Loop: Header=BB0_35 Depth=1
	ldr	x8, [x20, #16]
	b	LBB0_35
LBB0_41:
	ldr	x8, [x19, #8]
	str	x8, [x20, #8]
	str	w9, [x20]
	str	xzr, [x19, #8]
	str	w21, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ce refers to a shared ce at %d, which is beyond the shared index size %d"

	.comm	_CE_MATCHED,4,2                 ; @CE_MATCHED
	.comm	_CE_UPDATE_IN_BASE,4,2          ; @CE_UPDATE_IN_BASE
	.comm	_CE_REMOVE,4,2                  ; @CE_REMOVE
	.comm	_CE_STRIP_NAME,4,2              ; @CE_STRIP_NAME
.subsections_via_symbols
