	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_index_from                ## -- Begin function read_index_from
	.p2align	4, 0x90
_read_index_from:                       ## @read_index_from
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movl	(%r13), %r14d
	jmp	LBB0_11
LBB0_2:
	movq	%rsi, %rbx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	_the_repository@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %r12
	leaq	L_.str.2(%rip), %rcx
	movq	%r12, %rsi
	movq	%rbx, %r8
	callq	_trace2_region_enter_printf
	xorl	%eax, %eax
	callq	_trace_performance_enter
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_do_read_index
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	callq	_trace_performance_leave
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %r8
	callq	_trace2_region_leave_printf
	movq	8(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_is_null_oid
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	%r13, %rdi
	callq	_post_read_index_from
	jmp	LBB0_11
LBB0_5:
	xorl	%eax, %eax
	callq	_trace_performance_enter
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_discard_index
	jmp	LBB0_8
LBB0_7:
	movl	$1, %edi
	movl	$24, %esi
	callq	_xcalloc
	movq	%rax, (%rbx)
LBB0_8:
	movq	%r12, %rdi
	callq	_oid_to_hex
	leaq	L_.str.4(%rip), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdx
	callq	_xstrfmt
	movq	%rax, %r15
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %r8
	callq	_trace2_region_enter_printf
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_do_read_index
	movl	%eax, %r14d
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %r8
	callq	_trace2_region_leave_printf
	movq	(%rbx), %rsi
	addq	$4, %rsi
	movq	%r12, %rdi
	callq	_oideq
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movl	%eax, %r12d
	movq	(%rbx), %rdi
	addq	$4, %rdi
	callq	_oid_to_hex
	movl	%r12d, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%rax, %rcx
	callq	_die
LBB0_10:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_freshen_shared_index
	movq	%r13, %rdi
	callq	_merge_base_index
	movq	%r13, %rdi
	callq	_post_read_index_from
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	callq	_trace_performance_leave
	movq	%r15, %rdi
	callq	_free
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %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	"index"

L_.str.1:                               ## @.str.1
	.asciz	"do_read_index"

	.comm	_the_repository,4,2             ## @the_repository
L_.str.2:                               ## @.str.2
	.asciz	"%s"

L_.str.3:                               ## @.str.3
	.asciz	"read cache %s"

L_.str.4:                               ## @.str.4
	.asciz	"%s/sharedindex.%s"

L_.str.5:                               ## @.str.5
	.asciz	"shared/do_read_index"

L_.str.6:                               ## @.str.6
	.asciz	"broken index, expect %s in %s, got %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_index_from                ; -- Begin function read_index_from
	.p2align	2
_read_index_from:                       ; @read_index_from
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w20, [x19]
	b	LBB0_11
LBB0_2:
	mov	x21, x2
	mov	x22, x1
Lloh0:
	adrp	x27, _the_repository@GOTPAGE
Lloh1:
	ldr	x27, [x27, _the_repository@GOTPAGEOFF]
	ldr	w2, [x27]
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
Lloh4:
	adrp	x24, l_.str.1@PAGE
Lloh5:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh6:
	adrp	x25, l_.str.2@PAGE
Lloh7:
	add	x25, x25, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	x1, x24
	mov	x3, x25
	mov	x4, x22
	bl	_trace2_region_enter_printf
	bl	_trace_performance_enter
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_do_read_index
	mov	x20, x0
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	bl	_trace_performance_leave
	ldr	w2, [x27]
	mov	x0, x23
	mov	x1, x24
	mov	x3, x25
	mov	x4, x22
	bl	_trace2_region_leave_printf
	ldr	x28, [x19, #8]
	cbz	x28, LBB0_4
; %bb.3:
	add	x22, x28, #8
	mov	x0, x22
	bl	_is_null_oid
	cbz	x0, LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_post_read_index_from
	b	LBB0_11
LBB0_5:
	bl	_trace_performance_enter
	ldr	x0, [x28]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_discard_index
	b	LBB0_8
LBB0_7:
	mov	w0, #1
	mov	w1, #24
	bl	_xcalloc
	str	x0, [x28]
LBB0_8:
	mov	x0, x22
	bl	_oid_to_hex
	mov	x23, x0
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x21
	mov	x2, x23
	bl	_xstrfmt
	mov	x21, x0
	ldr	w2, [x27]
Lloh12:
	adrp	x24, l_.str@PAGE
Lloh13:
	add	x24, x24, l_.str@PAGEOFF
Lloh14:
	adrp	x25, l_.str.5@PAGE
Lloh15:
	add	x25, x25, l_.str.5@PAGEOFF
Lloh16:
	adrp	x26, l_.str.2@PAGE
Lloh17:
	add	x26, x26, l_.str.2@PAGEOFF
	mov	x0, x24
	mov	x1, x25
	mov	x3, x26
	mov	x4, x21
	bl	_trace2_region_enter_printf
	ldr	x0, [x28]
	mov	x1, x21
	mov	w2, #1
	bl	_do_read_index
	mov	x20, x0
	ldr	w2, [x27]
	mov	x0, x24
	mov	x1, x25
	mov	x3, x26
	mov	x4, x21
	bl	_trace2_region_leave_printf
	ldr	x8, [x28]
	add	x1, x8, #4
	mov	x0, x22
	bl	_oideq
	cbnz	w0, LBB0_10
; %bb.9:
Lloh18:
	adrp	x0, l_.str.6@PAGE
Lloh19:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	mov	x22, x0
	ldr	x8, [x28]
	add	x0, x8, #4
	bl	_oid_to_hex
	mov	x3, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	bl	_die
LBB0_10:
	mov	x0, x21
	mov	w1, #0
	bl	_freshen_shared_index
	mov	x0, x19
	bl	_merge_base_index
	mov	x0, x19
	bl	_post_read_index_from
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	bl	_trace_performance_leave
	mov	x0, x21
	bl	_free
LBB0_11:
	mov	x0, x20
	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 AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"index"

l_.str.1:                               ; @.str.1
	.asciz	"do_read_index"

	.comm	_the_repository,4,2             ; @the_repository
l_.str.2:                               ; @.str.2
	.asciz	"%s"

l_.str.3:                               ; @.str.3
	.asciz	"read cache %s"

l_.str.4:                               ; @.str.4
	.asciz	"%s/sharedindex.%s"

l_.str.5:                               ; @.str.5
	.asciz	"shared/do_read_index"

l_.str.6:                               ; @.str.6
	.asciz	"broken index, expect %s in %s, got %s"

.subsections_via_symbols
