	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uu_avl_nearest_next            ## -- Begin function uu_avl_nearest_next
	.p2align	4, 0x90
_uu_avl_nearest_next:                   ## @uu_avl_nearest_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_INDEX_VALID
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_INDEX_CHECK
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_uu_panic
LBB0_3:
	movq	%r14, %rdi
	callq	_INDEX_DECODE
	movq	_AVL_AFTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_avl_nearest                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uu_avl_nearest_next(%p, %p): %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"outdated index"

L_.str.2:                               ## @.str.2
	.asciz	"invalid index"

	.comm	_AVL_AFTER,4,2                  ## @AVL_AFTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uu_avl_nearest_next            ; -- Begin function uu_avl_nearest_next
	.p2align	2
_uu_avl_nearest_next:                   ; @uu_avl_nearest_next
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_INDEX_VALID
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_INDEX_CHECK
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x3, x9, x8, eq
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_uu_panic
LBB0_3:
	mov	x0, x20
	bl	_INDEX_DECODE
	mov	x1, x0
Lloh6:
	adrp	x8, _AVL_AFTER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVL_AFTER@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_avl_nearest
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uu_avl_nearest_next(%p, %p): %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"outdated index"

l_.str.2:                               ; @.str.2
	.asciz	"invalid index"

	.comm	_AVL_AFTER,4,2                  ; @AVL_AFTER
.subsections_via_symbols
