	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function splay_range_index
_splay_range_index:                     ## @splay_range_index
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rdx
	testq	%rdx, %rdx
	je	LBB0_27
## %bb.1:
	movq	%rsi, %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, -32(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, %rcx
	cmpq	%rdi, (%rdx)
	jle	LBB0_8
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdx, %rbx
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	16(%rbx), %rdx
	movq	%rbx, 16(%rax)
	movq	(%rdx), %rdx
	movq	%rbx, %rax
	cmpq	%rdi, (%rdx)
	jle	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rdx), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdi, (%rbx)
	jle	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rbx), %rsi
	movq	%rsi, 16(%rdx)
	movq	%rdx, 24(%rbx)
	cmpq	$0, 16(%rbx)
	jne	LBB0_7
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	jge	LBB0_9
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	24(%rdx), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rdi, (%rbx)
	jge	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%rbx), %rsi
	movq	%rsi, 24(%rdx)
	movq	%rdx, 16(%rbx)
	cmpq	$0, 24(%rbx)
	jne	LBB0_20
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rdx, %rbx
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	24(%rbx), %rdx
	movq	%rbx, 24(%rcx)
	movq	(%rdx), %rdx
	movq	%rbx, %rcx
	cmpq	%rdi, (%rdx)
	jle	LBB0_8
	jmp	LBB0_3
LBB0_9:
	movq	%rdx, %rbx
LBB0_10:
	movq	16(%rbx), %rdx
	movq	%rdx, 24(%rcx)
	movq	24(%rbx), %rcx
	movq	%rcx, 16(%rax)
	movq	-24(%rbp), %r8
	movq	%r8, 16(%rbx)
	movq	-32(%rbp), %rax
	movq	%rax, 24(%rbx)
	cmpq	%rdi, (%rbx)
	jle	LBB0_23
## %bb.11:
	testq	%r8, %r8
	je	LBB0_23
## %bb.12:
	movq	24(%r8), %rcx
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.13:
	leaq	24(%r8), %rsi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rdx
	movq	%rsi, %rax
	leaq	24(%rcx), %rsi
	movq	24(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_14
## %bb.15:
	movq	16(%rdx), %rcx
	movq	%rcx, (%rax)
	movq	24(%rdx), %rax
	movq	%rax, 16(%rbx)
	movq	%r8, 16(%rdx)
	movq	%rdx, %r8
	jmp	LBB0_22
LBB0_21:
	movq	$0, 16(%rbx)
LBB0_22:
	movq	%rbx, 24(%r8)
	movq	%r8, %rbx
LBB0_23:
	movl	$1, %eax
	cmpq	%rdi, (%rbx)
	jle	LBB0_26
## %bb.24:
	xorl	%eax, %eax
	cmpq	$0, 16(%rbx)
	jne	LBB0_26
## %bb.25:
	xorl	%eax, %eax
	cmpq	$0, 8(%rbx)
	sete	%al
LBB0_26:
	movl	%eax, %edi
	callq	_assert
	movq	%rbx, (%r14)
LBB0_27:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_splay_range_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function splay_range_index
_splay_range_index:                     ; @splay_range_index
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x10, [x1]
	cbz	x10, LBB0_28
; %bb.1:
	mov	x19, x1
	stp	xzr, xzr, [sp, #16]
	mov	x8, sp
	mov	x9, sp
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x10
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x20, #16
	str	x20, [x8, #16]
	mov	x8, x20
	ldr	x10, [x10]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cmp	x11, x0
	b.le	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x20, [x10, #16]
	cbz	x20, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x20]
	cmp	x11, x0
	b.le	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x20, #24]
	str	x11, [x10, #16]
	str	x10, [x20, #24]
	ldr	x10, [x20, #16]
	cbnz	x10, LBB0_3
	b	LBB0_15
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	b.ge	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x20, [x10, #24]
	cbz	x20, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x20]
	cmp	x11, x0
	b.ge	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x20, #16]
	str	x11, [x10, #24]
	str	x10, [x20, #16]
	ldr	x10, [x20, #24]
	cbnz	x10, LBB0_13
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x10
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x20, #24
	str	x20, [x9, #24]
	mov	x9, x20
	ldr	x10, [x10]
	b	LBB0_4
LBB0_14:
	mov	x20, x10
LBB0_15:
	ldr	x10, [x20, #16]
	str	x10, [x9, #24]
	ldr	x9, [x20, #24]
	str	x9, [x8, #16]
	ldr	x8, [sp, #24]
	str	x8, [x20, #16]
	ldr	x9, [sp, #16]
	str	x9, [x20, #24]
	ldr	x9, [x20]
	cmp	x9, x0
	ccmp	x8, #0, #4, gt
	b.eq	LBB0_22
; %bb.16:
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_20
; %bb.17:
	add	x11, x8, #24
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x10, x9
	mov	x12, x11
	mov	x11, x9
	ldr	x9, [x11, #24]!
	cbnz	x9, LBB0_18
; %bb.19:
	ldr	x9, [x10, #16]
	str	x9, [x12]
	ldr	x9, [x10, #24]
	str	x9, [x20, #16]
	str	x8, [x10, #16]
	mov	x8, x10
	b	LBB0_21
LBB0_20:
	str	xzr, [x20, #16]
LBB0_21:
	str	x20, [x8, #24]
	mov	x20, x8
LBB0_22:
	ldr	x8, [x20]
	cmp	x8, x0
	b.le	LBB0_25
; %bb.23:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_26
; %bb.24:
	mov	w0, #0
	b	LBB0_27
LBB0_25:
	mov	w0, #1
	b	LBB0_27
LBB0_26:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, eq
LBB0_27:
	bl	_assert
	str	x20, [x19]
LBB0_28:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_splay_range_index
.subsections_via_symbols
