	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function insert_range
_insert_range:                          ## @insert_range
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	(%rax), %rcx
	cmpq	%rbx, %rcx
	jne	LBB0_6
## %bb.4:
	cmpq	%r14, 8(%rax)
	jge	LBB0_6
LBB0_5:
	movq	%r14, 8(%rax)
	movq	%r15, 48(%rax)
	jmp	LBB0_18
LBB0_6:
	cmpq	%rbx, %rcx
	jge	LBB0_19
## %bb.7:
	movq	8(%rax), %rdx
	cmpq	%r14, %rdx
	jge	LBB0_19
## %bb.8:
	movq	24(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.9:
	cmpq	(%rcx), %rdx
	jl	LBB0_11
## %bb.10:
	cmpq	%r14, 8(%rcx)
	jge	LBB0_2
LBB0_11:
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.12:
	cmpq	%rbx, 8(%rcx)
	jle	LBB0_14
## %bb.13:
	movq	%rbx, (%rax)
	jmp	LBB0_5
LBB0_1:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_alloc_range_index_node
	movq	%rax, (%r12)
	jmp	LBB0_2
LBB0_19:
	cmpq	%rbx, %rcx
	jle	LBB0_2
## %bb.20:
	xorl	%edi, %edi
	cmpq	$0, 40(%rax)
	sete	%dil
	callq	_assert
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_alloc_range_index_node
	movq	$0, 16(%rax)
	movq	$0, 40(%rax)
	movq	(%r12), %rcx
	movq	%rcx, 24(%rax)
	movq	%rcx, 32(%rax)
	movq	%rax, 16(%rcx)
	jmp	LBB0_17
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_alloc_range_index_node
	movq	(%r12), %rcx
	movq	24(%rcx), %rdx
	movq	%rdx, 24(%rax)
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.15:
	movq	%rax, 16(%rdx)
LBB0_16:
	movq	%rax, 24(%rcx)
	movq	%rcx, 16(%rax)
	movq	32(%rcx), %rdx
	movq	%rdx, 32(%rax)
	movq	$0, 32(%rcx)
	movq	%rcx, 40(%rax)
LBB0_17:
	movq	%rax, (%r12)
LBB0_18:
	movq	%r12, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clean_tree                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_insert_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function insert_range
_insert_range:                          ; @insert_range
	.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, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x8, [x3]
	cbz	x8, LBB0_12
; %bb.1:
	ldr	x9, [x8]
	cmp	x9, x22
	b.ne	LBB0_4
; %bb.2:
	ldr	x10, [x8, #8]
	cmp	x10, x20
	b.ge	LBB0_4
LBB0_3:
	str	x20, [x8, #8]
	str	x21, [x8, #48]
	b	LBB0_20
LBB0_4:
	cmp	x9, x22
	b.ge	LBB0_13
; %bb.5:
	ldr	x10, [x8, #8]
	cmp	x10, x20
	b.ge	LBB0_13
; %bb.6:
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_9
; %bb.7:
	ldr	x11, [x9]
	cmp	x10, x11
	b.lt	LBB0_9
; %bb.8:
	ldr	x9, [x9, #8]
	cmp	x9, x20
	b.ge	LBB0_15
LBB0_9:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_16
; %bb.10:
	ldr	x9, [x9, #8]
	cmp	x9, x22
	b.le	LBB0_16
; %bb.11:
	str	x22, [x8]
	b	LBB0_3
LBB0_12:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_alloc_range_index_node
	str	x0, [x19]
	b	LBB0_15
LBB0_13:
	cmp	x9, x22
	b.le	LBB0_15
; %bb.14:
	ldr	x8, [x8, #40]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_alloc_range_index_node
	ldr	x8, [x19]
	stp	xzr, x8, [x0, #16]
	stp	x8, xzr, [x0, #32]
	str	x0, [x8, #16]
	b	LBB0_19
LBB0_15:
	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
LBB0_16:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_alloc_range_index_node
	ldr	x8, [x19]
	ldr	x9, [x8, #24]
	str	x9, [x0, #24]
	cbz	x9, LBB0_18
; %bb.17:
	str	x0, [x9, #16]
LBB0_18:
	str	x8, [x0, #16]
	ldr	x9, [x8, #32]
	str	x9, [x0, #32]
	stp	x0, xzr, [x8, #24]
	str	x8, [x0, #40]
LBB0_19:
	str	x0, [x19]
LBB0_20:
	mov	x0, x19
	mov	x1, x20
	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	_clean_tree
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_insert_range
.subsections_via_symbols
