	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rbtree_insert
_rbtree_insert:                         ## @rbtree_insert
	.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	$584, %rsp                      ## imm = 0x248
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	addl	%esi, %r15d
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.1:
	movq	%rdi, %rsi
	movl	%r15d, %edi
	orl	$1, %edi
	xorl	%r14d, %r14d
	movq	%rsi, %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rbx
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rbx
	incq	%r14
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -608(%rbp,%r14,8)
	movl	(%rbx), %eax
	cmpl	%r15d, %eax
	jl	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%edi, %eax
	jle	LBB0_27
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$8, %rbx
	jmp	LBB0_3
LBB0_7:
	movq	%rsi, -616(%rbp)                ## 8-byte Spill
	movl	%edx, %esi
	movq	%rcx, %rdx
	callq	_new_node
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%r13), %rax
	movq	%rax, 16(%rbx)
	movq	%rbx, 8(%r13)
	movq	%r12, %rdi
	callq	_BLACKEN
	movq	%r13, %rbx
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rax
	testl	%r14d, %r14d
	jle	LBB0_27
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, -624(%rbp)                ## 8-byte Spill
	leal	-1(%r14), %ebx
	movq	-608(%rbp,%rbx,8), %r13
	movl	(%r13), %r12d
	movq	%r13, %rdi
	callq	_IS_BLACK
	cmpl	%r12d, %r15d
	jge	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	testq	%rax, %rax
	movq	-624(%rbp), %r12                ## 8-byte Reload
	jne	LBB0_23
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	testl	%ebx, %ebx
	je	LBB0_22
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	addl	$-2, %r14d
	movq	-608(%rbp,%r14,8), %rbx
	cmpl	(%rbx), %r15d
	jge	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%r13), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, 16(%r13)
	movq	%r12, %rdi
	callq	_BLACKEN
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	testq	%rax, %rax
	movq	-624(%rbp), %r12                ## 8-byte Reload
	jne	LBB0_25
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	testl	%ebx, %ebx
	je	LBB0_24
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	addl	$-2, %r14d
	movq	-608(%rbp,%r14,8), %rbx
	cmpl	(%rbx), %r15d
	jge	LBB0_8
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%r12), %rax
	movq	%rax, 8(%r13)
	movq	%r13, %rdi
	callq	_BLACKEN
	movq	%r13, 16(%r12)
	movq	8(%r12), %rax
	movq	%rax, 16(%rbx)
	movq	%rbx, 8(%r12)
	movq	%r12, %rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%r12), %rax
	movq	%rax, 16(%r13)
	movq	%r13, %rdi
	callq	_BLACKEN
	movq	%r13, 8(%r12)
	movq	16(%r12), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, 16(%r12)
	movq	%r12, %rbx
	jmp	LBB0_9
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.21:
	movl	%r15d, %edi
	movl	%edx, %esi
	movq	%rcx, %rdx
	addq	$584, %rsp                      ## imm = 0x248
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_new_node                       ## TAILCALL
LBB0_22:
	movq	%r13, %rdi
	callq	_BLACKEN
LBB0_23:
	movq	%r12, 8(%r13)
	jmp	LBB0_26
LBB0_24:
	movq	%r13, %rdi
	callq	_BLACKEN
LBB0_25:
	movq	%r12, 16(%r13)
LBB0_26:
	movq	-616(%rbp), %rbx                ## 8-byte Reload
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.28:
	movq	%rbx, %rax
	addq	$584, %rsp                      ## imm = 0x248
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rbtree_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rbtree_insert
_rbtree_insert:                         ; @rbtree_insert
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #576
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	lsl	w20, w1, #1
	cbz	x0, LBB0_20
; %bb.1:
	mov	x19, x0
	mov	x24, #0
	orr	w0, w20, #0x1
	add	x8, sp, #8
	mov	x22, x19
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x22, #16
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [x9]
	add	x24, x24, #1
	cbz	x22, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	x22, [x8, x24, lsl #3]
	ldr	w9, [x22]
	cmp	w9, w20
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, w0
	b.le	LBB0_27
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x22, #8
	b	LBB0_3
LBB0_7:
	mov	x1, x2
	mov	x2, x3
	bl	_new_node
	mov	x21, x0
	add	x25, sp, #8
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x23, #8]
	str	x8, [x22, #16]
	str	x22, [x23, #8]
	mov	x0, x21
	bl	_BLACKEN
	mov	x22, x23
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x21, x22
	cmp	w24, #0
	b.le	LBB0_27
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	w22, w24, #1
	ldr	x23, [x25, w22, uxtw #3]
	ldr	w26, [x23]
	mov	x0, x23
	bl	_IS_BLACK
	cmp	w20, w26
	b.ge	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cbnz	x0, LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	cbz	w22, LBB0_22
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	sub	w24, w24, #2
	ldr	x22, [x25, w24, uxtw #3]
	ldr	w8, [x22]
	cmp	w20, w8
	b.ge	LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x23, #16]
	str	x8, [x22, #8]
	str	x22, [x23, #16]
	mov	x0, x21
	bl	_BLACKEN
	b	LBB0_9
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	cbnz	x0, LBB0_25
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	cbz	w22, LBB0_24
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	sub	w24, w24, #2
	ldr	x22, [x25, w24, uxtw #3]
	ldr	w8, [x22]
	cmp	w20, w8
	b.ge	LBB0_8
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x21, #16]
	str	x8, [x23, #8]
	mov	x0, x23
	bl	_BLACKEN
	str	x23, [x21, #16]
	ldr	x8, [x21, #8]
	str	x8, [x22, #16]
	str	x22, [x21, #8]
	mov	x22, x21
	b	LBB0_9
LBB0_19:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x21, #8]
	str	x8, [x23, #16]
	mov	x0, x23
	bl	_BLACKEN
	str	x23, [x21, #8]
	ldr	x8, [x21, #16]
	str	x8, [x22, #8]
	str	x22, [x21, #16]
	mov	x22, x21
	b	LBB0_9
LBB0_20:
	ldur	x8, [x29, #-88]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.21:
	mov	x0, x20
	mov	x1, x2
	mov	x2, x3
	add	sp, sp, #576
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_new_node
LBB0_22:
	mov	x0, x23
	bl	_BLACKEN
LBB0_23:
	str	x21, [x23, #8]
	b	LBB0_26
LBB0_24:
	mov	x0, x23
	bl	_BLACKEN
LBB0_25:
	str	x21, [x23, #16]
LBB0_26:
	mov	x22, x19
LBB0_27:
	ldur	x8, [x29, #-88]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.28:
	mov	x0, x22
	add	sp, sp, #576
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rbtree_insert
.subsections_via_symbols
