	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tree_subiterator_next
_tree_subiterator_next:                 ## @tree_subiterator_next
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	setg	%dil
	callq	_assert
	movq	(%r14), %r15
	movq	16(%r14), %rax
	movq	-8(%rax,%r15,8), %rdi
	decq	%r15
	callq	_TS_NODE
	movq	16(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_TS_NODE
	movq	16(%r14), %rcx
	movq	%rbx, (%rcx,%r15,8)
	incq	%r15
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_1
LBB0_3:
	movq	_MAX_DEPTH@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r15
	setle	%dil
	callq	_assert
	movq	%r15, (%r14)
	testq	%r15, %r15
	je	LBB0_4
## %bb.5:
	movq	16(%r14), %rax
	movq	-8(%rax,%r15,8), %rdi
	callq	_TS_NODE
	movl	4(%rax), %ecx
	movl	%ecx, 12(%r14)
	jmp	LBB0_6
LBB0_4:
	movq	_INFTY@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WordSpace,4,2                  ## @WordSpace
	.comm	_MAX_DEPTH,8,3                  ## @MAX_DEPTH
	.comm	_INFTY,4,2                      ## @INFTY
	.no_dead_strip	_tree_subiterator_next
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tree_subiterator_next
_tree_subiterator_next:                 ; @tree_subiterator_next
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
	ldr	x8, [x19]
	ldr	x9, [x19, #16]
	sub	x21, x8, #1
	ldr	x0, [x9, x21, lsl #3]
	bl	_TS_NODE
	ldr	x20, [x0, #16]
	cbz	x20, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_TS_NODE
	ldr	x8, [x19, #16]
	add	x22, x21, #1
	str	x20, [x8, x21, lsl #3]
	ldr	x20, [x0, #8]
	mov	x21, x22
	cbnz	x20, LBB0_1
	b	LBB0_3
LBB0_2:
	mov	x22, x21
LBB0_3:
Lloh0:
	adrp	x8, _MAX_DEPTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_DEPTH@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x22, x8
	cset	w0, le
	bl	_assert
	str	x22, [x19]
	cbz	x22, LBB0_5
; %bb.4:
	ldr	x8, [x19, #16]
	add	x8, x8, x22, lsl #3
	ldur	x0, [x8, #-8]
	bl	_TS_NODE
	ldr	w8, [x0, #4]
	str	w8, [x19, #12]
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x0, _INFTY@GOTPAGE
Lloh4:
	ldr	x0, [x0, _INFTY@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x0]
	str	w0, [x19, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WordSpace,4,2                  ; @WordSpace
	.comm	_MAX_DEPTH,8,3                  ; @MAX_DEPTH
	.comm	_INFTY,4,2                      ; @INFTY
	.no_dead_strip	_tree_subiterator_next
.subsections_via_symbols
