	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r12
	leaq	-96(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movl	$-1, -96(%rbp)
	movl	%ebx, -92(%rbp)
	xorl	%eax, %eax
	testl	%ebx, %ebx
	sete	%al
	movl	%eax, -88(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -84(%rbp)
	movq	_oneway_merge@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	(%r13), %eax
	movl	%eax, -56(%rbp)
	movq	_the_index@GOTPCREL(%rip), %rax
	movq	%rax, -64(%rbp)
	movq	%rax, -72(%rbp)
	movq	%r12, %rdi
	callq	_parse_tree
	movl	(%r12), %edx
	movl	4(%r12), %esi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_init_tree_desc
	movl	$1, %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_unpack_trees
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$-2, %eax
	jne	LBB0_3
## %bb.2:
	movl	$1, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_3:
	movl	$128, %eax
LBB0_4:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_oneway_merge,4,2               ## @oneway_merge
	.comm	_the_index,4,2                  ## @the_index
	.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:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	mov	w8, #-1
	stp	w8, w20, [sp, #16]
	cmp	w20, #0
	cset	w8, eq
	str	w8, [sp, #24]
	movi.2s	v0, #1
	stur	d0, [sp, #28]
Lloh0:
	adrp	x8, _oneway_merge@GOTPAGE
Lloh1:
	ldr	x8, [x8, _oneway_merge@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x21]
	stp	w9, w8, [sp, #56]
Lloh3:
	adrp	x8, _the_index@GOTPAGE
Lloh4:
	ldr	x8, [x8, _the_index@GOTPAGEOFF]
	stp	x8, x8, [sp, #40]
	mov	x0, x22
	bl	_parse_tree
	ldp	w2, w1, [x22]
	add	x0, sp, #8
	bl	_init_tree_desc
	add	x1, sp, #8
	add	x2, sp, #16
	mov	w0, #1
	bl	_unpack_trees
	cbz	w0, LBB0_4
; %bb.1:
	cmn	w0, #2
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
	mov	w0, #128
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_oneway_merge,4,2               ; @oneway_merge
	.comm	_the_index,4,2                  ; @the_index
	.no_dead_strip	_reset_tree
.subsections_via_symbols
