	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reset_tree
_reset_tree:                            ## @reset_tree
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_UNPACK_TREES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_LOCK_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	xorl	%edi, %edi
	callq	_read_cache_preload
	movq	_REFRESH_QUIET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_refresh_cache
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movq	_LOCK_DIE_ON_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdi
	callq	_hold_locked_index
	leaq	-112(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	%r13, %rdi
	callq	_parse_tree_indirect
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_parse_tree
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%r12, %rdi
	callq	_init_tree_desc
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -112(%rbp)
	movq	_the_index@GOTPCREL(%rip), %rax
	movq	%rax, -80(%rbp)
	movq	%rax, -88(%rbp)
	movl	%r15d, -104(%rbp)
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -100(%rbp)
	movq	_oneway_merge@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	leaq	-112(%rbp), %rdx
	movl	$1, %edi
	movq	%r12, %rsi
	callq	_unpack_trees
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	_COMMIT_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_the_index@GOTPCREL(%rip), %rdi
	leaq	-56(%rbp), %rsi
	callq	_write_locked_index
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_error
	movl	%eax, %r14d
	jmp	LBB0_6
LBB0_4:
	xorl	%r14d, %r14d
LBB0_6:
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_UNPACK_TREES,4,2           ## @MAX_UNPACK_TREES
	.comm	_LOCK_INIT,4,2                  ## @LOCK_INIT
	.comm	_REFRESH_QUIET,4,2              ## @REFRESH_QUIET
	.comm	_LOCK_DIE_ON_ERROR,4,2          ## @LOCK_DIE_ON_ERROR
	.comm	_the_index,4,2                  ## @the_index
	.comm	_oneway_merge,4,2               ## @oneway_merge
	.comm	_COMMIT_LOCK,4,2                ## @COMMIT_LOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to write new index file"

	.no_dead_strip	_reset_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reset_tree
_reset_tree:                            ; @reset_tree
	.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
	sub	sp, sp, #64
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	mov	x23, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAX_UNPACK_TREES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_UNPACK_TREES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh8:
	adrp	x8, _LOCK_INIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LOCK_INIT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stur	w8, [x29, #-104]
	mov	x0, #0
	bl	_read_cache_preload
Lloh11:
	adrp	x8, _REFRESH_QUIET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REFRESH_QUIET@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_refresh_cache
	cbnz	x0, LBB0_3
; %bb.1:
Lloh14:
	adrp	x8, _LOCK_DIE_ON_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LOCK_DIE_ON_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	sub	x0, x29, #104
	bl	_hold_locked_index
	sub	x0, x29, #96
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	mov	x0, x22
	bl	_parse_tree_indirect
	mov	x22, x0
	bl	_parse_tree
	cbnz	x0, LBB0_3
; %bb.2:
	ldp	w2, w1, [x22]
	mov	x0, x21
	bl	_init_tree_desc
Lloh17:
	adrp	x8, _the_index@GOTPAGE
Lloh18:
	ldr	x8, [x8, _the_index@GOTPAGEOFF]
	stp	x8, x8, [x29, #-72]
	movi.2s	v0, #1
	stur	d0, [x29, #-96]
	stp	w20, w19, [x29, #-88]
Lloh19:
	adrp	x8, _oneway_merge@GOTPAGE
Lloh20:
	ldr	x8, [x8, _oneway_merge@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	stur	w8, [x29, #-80]
	sub	x2, x29, #96
	mov	w0, #1
	mov	x1, x21
	bl	_unpack_trees
	cbz	x0, LBB0_6
LBB0_3:
	mov	w0, #-1
LBB0_4:
	mov	sp, x23
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.5:
	sub	sp, x29, #48
	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
LBB0_6:
Lloh25:
	adrp	x8, _COMMIT_LOCK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _COMMIT_LOCK@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x0, _the_index@GOTPAGE
Lloh29:
	ldr	x0, [x0, _the_index@GOTPAGEOFF]
	sub	x1, x29, #104
	bl	_write_locked_index
	cbz	x0, LBB0_4
; %bb.7:
Lloh30:
	adrp	x0, l_.str@PAGE
Lloh31:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_error
	b	LBB0_4
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_UNPACK_TREES,4,2           ; @MAX_UNPACK_TREES
	.comm	_LOCK_INIT,4,2                  ; @LOCK_INIT
	.comm	_REFRESH_QUIET,4,2              ; @REFRESH_QUIET
	.comm	_LOCK_DIE_ON_ERROR,4,2          ; @LOCK_DIE_ON_ERROR
	.comm	_the_index,4,2                  ; @the_index
	.comm	_oneway_merge,4,2               ; @oneway_merge
	.comm	_COMMIT_LOCK,4,2                ; @COMMIT_LOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to write new index file"

	.no_dead_strip	_reset_tree
.subsections_via_symbols
