	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_name_tree_next_root            ## -- Begin function name_tree_next_root
	.p2align	4, 0x90
_name_tree_next_root:                   ## @name_tree_next_root
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	leaq	-88(%rbp), %rsi
	movq	%rsi, -56(%rbp)
	leaq	l_.str(%rip), %rcx
	movq	%rcx, -72(%rbp)
	movl	$1, -80(%rbp)
	movq	$0, -64(%rbp)
	movq	%rax, -88(%rbp)
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_rbtree_find_less_equal
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.7:
	movq	-48(%rbp), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.8:
	movq	_RBTREE_NULL@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rdi
	je	LBB0_12
## %bb.9:
	callq	_rbtree_next
	movq	%rax, -48(%rbp)
	cmpq	(%r13), %rax
	je	LBB0_12
## %bb.10:
	movq	%rax, %r12
	movq	16(%rax), %rdi
	callq	_dname_is_root
	movq	(%r12), %rcx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.11:
	incq	%rcx
	movq	%rcx, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_name_tree_next_root
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_1:
	movq	%r14, %rdi
	callq	_rbtree_first
	movq	%rax, %rbx
	movq	_RBTREE_NULL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_2
## %bb.3:
	movq	16(%rbx), %rdi
	callq	_dname_is_root
	movq	(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	%rcx, (%r15)
	movl	$1, %ebx
	jmp	LBB0_12
LBB0_2:
	xorl	%ebx, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	incq	%rcx
	movq	%rcx, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_name_tree_next_root            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RBTREE_NULL,8,3                ## @RBTREE_NULL
	.section	__TEXT,__const
l_.str:                                 ## @.str
	.space	2

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_name_tree_next_root            ; -- Begin function name_tree_next_root
	.p2align	2
_name_tree_next_root:                   ; @name_tree_next_root
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
	cbz	x8, LBB0_7
; %bb.1:
	add	x9, sp, #8
	stp	xzr, x9, [sp, #32]
	mov	w21, #1
	str	w21, [sp, #16]
Lloh0:
	adrp	x9, l_.str@PAGE
Lloh1:
	add	x9, x9, l_.str@PAGEOFF
	str	x9, [sp, #24]
	stp	xzr, x8, [sp]
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x20
	bl	_rbtree_find_less_equal
	cbnz	x0, LBB0_11
; %bb.2:
	mov	w21, #0
	ldr	x0, [sp]
	cbz	x0, LBB0_11
; %bb.3:
Lloh2:
	adrp	x22, _RBTREE_NULL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _RBTREE_NULL@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.4:
	bl	_rbtree_next
	str	x0, [sp]
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.5:
	mov	x21, x0
	ldr	x0, [x0, #16]
	bl	_dname_is_root
	ldr	x8, [x21]
	cbnz	x0, LBB0_9
; %bb.6:
	add	x8, x8, #1
	str	x8, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_name_tree_next_root
	mov	x21, x0
	b	LBB0_11
LBB0_7:
	mov	x0, x20
	bl	_rbtree_first
Lloh4:
	adrp	x8, _RBTREE_NULL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RBTREE_NULL@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.8:
	mov	x21, x0
	ldr	x0, [x0, #16]
	bl	_dname_is_root
	ldr	x8, [x21]
	cbz	x0, LBB0_12
LBB0_9:
	str	x8, [x19]
	mov	w21, #1
	b	LBB0_11
LBB0_10:
	mov	w21, #0
LBB0_11:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
LBB0_12:
	add	x8, x8, #1
	str	x8, [x19]
	mov	x0, x20
	mov	x1, x19
	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
	add	sp, sp, #96
	b	_name_tree_next_root
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_RBTREE_NULL,8,3                ; @RBTREE_NULL
	.section	__TEXT,__const
l_.str:                                 ; @.str
	.space	2

.subsections_via_symbols
