	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ihe_advance0
_ihe_advance0:                          ## @ihe_advance0
	.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, %rbx
	movslq	(%rdi), %r14
	testq	%r14, %r14
	setns	%al
	cmpl	$0, 16(%rdi)
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	24(%rbx), %rcx
	movq	(%rcx,%r14,8), %r15
	cmpq	$0, 8(%r15)
	je	LBB0_1
## %bb.4:
	movq	_MAX_TREE_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	xorl	%edi, %edi
	cmpl	%eax, %r14d
	setl	%dil
	callq	_assert
	movq	8(%r15), %rax
	movq	24(%rbx), %rcx
	leal	1(%r14), %edx
	movq	%rax, 8(%rcx,%r14,8)
	movq	8(%rbx), %rax
	movl	(%rax,%r14,4), %ecx
	movl	%ecx, 4(%rax,%r14,4)
	movl	%edx, (%rbx)
	movq	%rbx, %rdi
	callq	_ihe_dive
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movslq	(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	(%rcx,%rax,8), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rbx)
	testq	%rax, %rax
	jns	LBB0_3
	jmp	LBB0_6
LBB0_1:
	movq	8(%rbx), %rax
	movl	(%rax,%r14,4), %eax
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movq	(%rcx,%rax,8), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rbx)
LBB0_3:
	movl	%eax, (%rbx)
	jmp	LBB0_7
LBB0_6:
	movl	$-1, (%rbx)
	movl	$0, 16(%rbx)
LBB0_7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ihe_load                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TREE_DEPTH,4,2             ## @MAX_TREE_DEPTH
	.no_dead_strip	_ihe_advance0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ihe_advance0
_ihe_advance0:                          ; @ihe_advance0
	.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
	ldrsw	x20, [x0]
	ldr	w8, [x0, #16]
	cmp	w8, #0
	ccmp	x20, #0, #8, ne
	cset	w0, ge
	bl	_assert
	ldr	x8, [x19, #24]
	ldr	x21, [x8, x20, lsl #3]
	ldr	x9, [x21, #8]
	cbz	x9, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MAX_TREE_DEPTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_TREE_DEPTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #1
	cmp	w20, w8
	cset	w0, lt
	bl	_assert
	ldr	x8, [x21, #8]
	ldr	x9, [x19, #24]
	add	w10, w20, #1
	str	x8, [x9, w10, sxtw #3]
	ldr	x8, [x19, #8]
	ldr	w9, [x8, x20, lsl #2]
	str	w9, [x8, w10, sxtw #2]
	str	w10, [x19]
	mov	x0, x19
	bl	_ihe_dive
	cbnz	x0, LBB0_6
; %bb.2:
	ldrsw	x8, [x19]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x8, lsl #3]
	ldr	w9, [x9]
	str	w9, [x19, #16]
	tbz	w8, #31, LBB0_5
	b	LBB0_6
LBB0_3:
	ldr	x9, [x19, #8]
	ldr	w9, [x9, x20, lsl #2]
	tbnz	w9, #31, LBB0_6
; %bb.4:
	ldr	x8, [x8, x9, lsl #3]
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	x8, x9
LBB0_5:
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
	mov	w8, #-1
	str	w8, [x19]
	str	wzr, [x19, #16]
LBB0_7:
	mov	x0, x19
	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
	b	_ihe_load
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TREE_DEPTH,4,2             ; @MAX_TREE_DEPTH
	.no_dead_strip	_ihe_advance0
.subsections_via_symbols
