	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function new_tree_entry
_new_tree_entry:                        ## @new_tree_entry
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_avail_tree_entry@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	_tree_entry_alloc@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	(,%rbx,4), %eax
	movq	_tree_entry_allocd@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
	movl	%ebx, %esi
	callq	_ALLOC_ARRAY
                                        ## implicit-def: $rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	decl	%ebx
	movq	%rax, -4(%rax)
	addq	$4, %rax
	cmpl	$1, %ebx
	ja	LBB0_2
## %bb.3:
	movq	$0, -4(%rax)
	movq	(%r14), %rax
LBB0_4:
	movq	(%rax), %rcx
	movq	%rcx, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_avail_tree_entry,8,3           ## @avail_tree_entry
	.comm	_tree_entry_alloc,4,2           ## @tree_entry_alloc
	.comm	_tree_entry_allocd,4,2          ## @tree_entry_allocd
	.no_dead_strip	_new_tree_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function new_tree_entry
_new_tree_entry:                        ; @new_tree_entry
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _avail_tree_entry@GOTPAGE
Lloh1:
	ldr	x20, [x20, _avail_tree_entry@GOTPAGEOFF]
	ldr	x0, [x20]
	cbnz	x0, LBB0_7
; %bb.1:
Lloh2:
	adrp	x8, _tree_entry_alloc@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tree_entry_alloc@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
Lloh5:
	adrp	x8, _tree_entry_allocd@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tree_entry_allocd@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w19, lsl #2
	str	w9, [x8]
	mov	x1, x19
	bl	_ALLOC_ARRAY
	subs	w8, w19, #1
	cset	w9, ne
	sub	w8, w8, w9
	cmp	w8, #3
	b.lo	LBB0_4
; %bb.2:
	add	x8, x8, #1
	and	x8, x8, #0x1fffffffc
	sub	w19, w19, w8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	subs	x8, x8, #4
	b.ne	LBB0_3
LBB0_4:
                                        ; implicit-def: $x8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w19, w19, #1
	stur	x8, [x8, #-4]
	add	x8, x8, #4
	cmp	w19, #1
	b.hi	LBB0_5
; %bb.6:
	stur	xzr, [x8, #-4]
	ldr	x0, [x20]
LBB0_7:
	ldr	x8, [x0]
	str	x8, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_avail_tree_entry,8,3           ; @avail_tree_entry
	.comm	_tree_entry_alloc,4,2           ; @tree_entry_alloc
	.comm	_tree_entry_allocd,4,2          ; @tree_entry_allocd
	.no_dead_strip	_new_tree_entry
.subsections_via_symbols
