	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_index_as_tree_internal
_write_index_as_tree_internal:          ## @write_index_as_tree_internal
	.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	%r8, %r15
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_WRITE_TREE_IGNORE_CACHE_TREE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_cache_tree_free
	xorl	%r13d, %r13d
LBB0_2:
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	testl	%r13d, %r13d
	jne	LBB0_6
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	callq	_cache_tree
	movq	%rax, (%rbx)
	testl	%r13d, %r13d
	jne	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_cache_tree_update
	testq	%rax, %rax
	js	LBB0_12
LBB0_6:
	movq	(%rbx), %rsi
	testq	%r15, %r15
	je	LBB0_9
## %bb.7:
	movq	%rsi, %rdi
	movq	%r15, %rsi
	callq	_cache_tree_find
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%r14, %rdi
	movq	%rax, %rsi
	jmp	LBB0_10
LBB0_9:
	movq	%r14, %rdi
LBB0_10:
	callq	_oidcpy
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_11:
	movq	_WRITE_TREE_PREFIX_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_WRITE_TREE_UNMERGED_INDEX@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WRITE_TREE_IGNORE_CACHE_TREE,4,2 ## @WRITE_TREE_IGNORE_CACHE_TREE
	.comm	_WRITE_TREE_UNMERGED_INDEX,4,2  ## @WRITE_TREE_UNMERGED_INDEX
	.comm	_WRITE_TREE_PREFIX_ERROR,4,2    ## @WRITE_TREE_PREFIX_ERROR
	.no_dead_strip	_write_index_as_tree_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_index_as_tree_internal
_write_index_as_tree_internal:          ; @write_index_as_tree_internal
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _WRITE_TREE_IGNORE_CACHE_TREE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WRITE_TREE_IGNORE_CACHE_TREE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_cache_tree_free
	mov	w23, #0
LBB0_2:
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.3:
	cbnz	w23, LBB0_6
	b	LBB0_5
LBB0_4:
	bl	_cache_tree
	str	x0, [x21]
	cbnz	w23, LBB0_6
LBB0_5:
	mov	x0, x21
	mov	x1, x22
	bl	_cache_tree_update
	tbnz	x0, #63, LBB0_11
LBB0_6:
	ldr	x1, [x21]
	cbz	x20, LBB0_9
; %bb.7:
	mov	x0, x1
	mov	x1, x20
	bl	_cache_tree_find
	cbz	x0, LBB0_10
; %bb.8:
	mov	x1, x0
LBB0_9:
	mov	x0, x19
	bl	_oidcpy
	mov	w0, #0
	b	LBB0_13
LBB0_10:
Lloh3:
	adrp	x8, _WRITE_TREE_PREFIX_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WRITE_TREE_PREFIX_ERROR@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh5:
	adrp	x8, _WRITE_TREE_UNMERGED_INDEX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WRITE_TREE_UNMERGED_INDEX@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_WRITE_TREE_IGNORE_CACHE_TREE,4,2 ; @WRITE_TREE_IGNORE_CACHE_TREE
	.comm	_WRITE_TREE_UNMERGED_INDEX,4,2  ; @WRITE_TREE_UNMERGED_INDEX
	.comm	_WRITE_TREE_PREFIX_ERROR,4,2    ; @WRITE_TREE_PREFIX_ERROR
	.no_dead_strip	_write_index_as_tree_internal
.subsections_via_symbols
