	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_range_count                ## -- Begin function get_range_count
	.p2align	4, 0x90
_get_range_count:                       ## @get_range_count
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%edi, %edi
	je	LBB0_3
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.2:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movq	%rbx, %r14
	movq	%rcx, %rbx
	callq	_key_cmp
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	movq	%rbx, %rcx
	movq	%r14, %rbx
	jg	LBB0_13
LBB0_3:
	xorl	%r13d, %r13d
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.5:
	testl	%r12d, %r12d
	je	LBB0_7
LBB0_6:
	movq	_index_entries@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_8
LBB0_4:
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movq	%rbx, %r14
	movq	%rcx, %rbx
	callq	_get_index_pos
	movq	%rbx, %rcx
	movq	%r14, %rbx
	movl	%eax, %r13d
	testl	%r12d, %r12d
	jne	LBB0_6
LBB0_7:
	xorl	%edi, %edi
	movq	%rcx, %rsi
	movq	%rbx, %r14
	movq	%rcx, %rbx
	callq	_get_index_pos
	movq	%rbx, %rcx
	movq	%r14, %rbx
	movl	%eax, %r14d
LBB0_8:
	movl	$-2, %eax
	cmpl	$-2, %r13d
	je	LBB0_13
## %bb.9:
	cmpl	$-2, %r14d
	je	LBB0_13
## %bb.10:
	movl	%r13d, -64(%rbp)                ## 4-byte Spill
	leaq	-60(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	movq	%rcx, %r13
	callq	_memset
	movq	_item_tree@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %r8
	leaq	-60(%rbp), %r9
	callq	_tree_count
	movl	-56(%rbp), %eax
	orl	-52(%rbp), %eax
	je	LBB0_12
## %bb.11:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_index_load_unsure
	movl	$-2, %eax
	jmp	LBB0_13
LBB0_12:
	movl	-60(%rbp), %eax
	addl	%r14d, %eax
	xorl	%edi, %edi
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %eax
	setge	%dil
	callq	_assert
	subl	%ebx, %r14d
	addl	-60(%rbp), %r14d
	movl	%r14d, %eax
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_index_entries,4,2              ## @index_entries
	.comm	_item_tree,4,2                  ## @item_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_range_count                ; -- Begin function get_range_count
	.p2align	2
_get_range_count:                       ; @get_range_count
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cbz	w0, LBB0_4
; %bb.1:
	cbz	w20, LBB0_4
; %bb.2:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_key_cmp
	cmp	x0, #0
	b.le	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_14
LBB0_4:
	cbz	w22, LBB0_7
; %bb.5:
	mov	w23, #0
	cbz	w20, LBB0_8
LBB0_6:
Lloh3:
	adrp	x8, _index_entries@GOTPAGE
Lloh4:
	ldr	x8, [x8, _index_entries@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	b	LBB0_9
LBB0_7:
	mov	w0, #0
	mov	x1, x21
	bl	_get_index_pos
	mov	x23, x0
	cbnz	w20, LBB0_6
LBB0_8:
	mov	w0, #0
	mov	x1, x19
	bl	_get_index_pos
	mov	x24, x0
LBB0_9:
	mov	w0, #-2
	cmn	w23, #2
	b.eq	LBB0_14
; %bb.10:
	cmn	w24, #2
	b.eq	LBB0_14
; %bb.11:
	add	x0, sp, #12
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh6:
	adrp	x8, _item_tree@GOTPAGE
Lloh7:
	ldr	x8, [x8, _item_tree@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x5, sp, #12
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_tree_count
	ldp	w8, w9, [sp, #16]
	orr	w8, w8, w9
	cbz	w8, LBB0_13
; %bb.12:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_index_load_unsure
	mov	w0, #-2
	b	LBB0_14
LBB0_13:
	ldr	w8, [sp, #12]
	add	w8, w8, w24
	cmp	w8, w23
	cset	w0, ge
	bl	_assert
	ldr	w8, [sp, #12]
	sub	w9, w24, w23
	add	w0, w9, w8
LBB0_14:
	ldr	x8, [sp, #24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_index_entries,4,2              ; @index_entries
	.comm	_item_tree,4,2                  ; @item_tree
.subsections_via_symbols
