	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rbtree_insert                  ## -- Begin function rbtree_insert
	.p2align	4, 0x90
_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	movq	8(%r14), %rbx
	movq	_RBTREE_NULL@GOTPCREL(%rip), %r12
	movq	(%r12), %r13
	callq	_fptr_whitelist_rbtree_cmp
	movl	%eax, %edi
	callq	_fptr_ok
	cmpq	(%r12), %rbx
	je	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r13
	movl	32(%r15), %edi
	movl	32(%rbx), %esi
	callq	*(%r14)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
	shrl	$31, %ecx
	movq	(%r13,%rcx,8), %rbx
	cmpq	(%r12), %rbx
	jne	LBB0_2
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
LBB0_5:
	movq	%r13, 24(%r15)
	movq	%rbx, (%r15)
	movq	%rbx, 8(%r15)
	movq	_RED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r15)
	incl	16(%r14)
	cmpq	(%r12), %r13
	je	LBB0_6
## %bb.7:
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:
	addq	$8, %r13
	jmp	LBB0_9
LBB0_3:
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_6:
	leaq	8(%r14), %r13
LBB0_9:
	movq	%r15, (%r13)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_rbtree_insert_fixup
LBB0_10:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RBTREE_NULL,8,3                ## @RBTREE_NULL
	.comm	_RED,4,2                        ## @RED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rbtree_insert                  ; -- Begin function rbtree_insert
	.p2align	2
_rbtree_insert:                         ; @rbtree_insert
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	mov	x21, x0
	ldr	x24, [x21, #8]!
Lloh0:
	adrp	x23, _RBTREE_NULL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RBTREE_NULL@GOTPAGEOFF]
	ldr	x22, [x23]
	ldr	x0, [x0]
	bl	_fptr_whitelist_rbtree_cmp
	bl	_fptr_ok
	ldr	x8, [x23]
	cmp	x24, x8
	b.eq	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x24
	ldr	x8, [x20]
	ldr	w0, [x19, #32]
	ldr	w1, [x24, #32]
	blr	x8
	cbz	w0, LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	lsr	w8, w0, #31
	ldr	x24, [x22, w8, uxtw #3]
	ldr	x8, [x23]
	cmp	x24, x8
	b.ne	LBB0_1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	str	x22, [x19, #24]
	stp	x24, x24, [x19]
Lloh2:
	adrp	x8, _RED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	ldr	x8, [x23]
	cmp	x22, x8
	b.eq	LBB0_9
; %bb.5:
	tbnz	w0, #31, LBB0_8
; %bb.6:
	mov	x21, x22
	b	LBB0_9
LBB0_7:
	mov	x19, #0
	b	LBB0_10
LBB0_8:
	add	x21, x22, #8
LBB0_9:
	str	x19, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_rbtree_insert_fixup
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RBTREE_NULL,8,3                ; @RBTREE_NULL
	.comm	_RED,4,2                        ; @RED
.subsections_via_symbols
