	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rbt_insert_fixup
_rbt_insert_fixup:                      ## @rbt_insert_fixup
	.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), %rcx
	cmpq	%rsi, %rcx
	je	LBB0_17
## %bb.1:
	movq	8(%r15), %rbx
	movq	(%rbx), %rax
	movq	_RBTRED@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_18
## %bb.2:
	movq	%rdi, %r14
	movq	_RBTBLACK@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rsi
	movq	16(%rsi), %rcx
	cmpq	%rcx, %rbx
	je	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rax, (%rcx)
	je	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	16(%rbx), %r15
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rax
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%rsi), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rax
	movq	%rax, (%rbx)
	movq	%rax, (%rcx)
	movq	(%r12), %rax
	movq	%rax, (%rsi)
	movq	%rsi, %r15
	jmp	LBB0_16
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	24(%rbx), %r15
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rax
	jmp	LBB0_10
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rbt_rotate_right
	movq	8(%rbx), %rax
	movq	8(%rax), %rsi
	movq	%rbx, %r15
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rcx
	movq	%rcx, (%rax)
	movq	(%r12), %rax
	movq	%rax, (%rsi)
	movq	%r14, %rdi
	callq	_rbt_rotate_left
	jmp	LBB0_16
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rbt_rotate_left
	movq	8(%rbx), %rax
	movq	8(%rax), %rsi
	movq	%rbx, %r15
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rcx
	movq	%rcx, (%rax)
	movq	(%r12), %rax
	movq	%rax, (%rsi)
	movq	%r14, %rdi
	callq	_rbt_rotate_right
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rcx
	cmpq	%rcx, %r15
	je	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rbx
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	je	LBB0_4
	jmp	LBB0_18
LBB0_17:
	movq	%r15, %rcx
LBB0_18:
	movq	_RBTBLACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RBTRED,8,3                     ## @RBTRED
	.comm	_RBTBLACK,8,3                   ## @RBTBLACK
	.no_dead_strip	_rbt_insert_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rbt_insert_fixup
_rbt_insert_fixup:                      ; @rbt_insert_fixup
	.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	x20, x1
	ldr	x9, [x0]
Lloh0:
	adrp	x22, _RBTBLACK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RBTBLACK@GOTPAGEOFF]
	cmp	x9, x1
	b.eq	LBB0_17
; %bb.1:
	ldr	x21, [x20, #8]
	ldr	x8, [x21]
Lloh2:
	adrp	x23, _RBTRED@GOTPAGE
Lloh3:
	ldr	x23, [x23, _RBTRED@GOTPAGEOFF]
	ldr	x10, [x23]
	cmp	x8, x10
	b.ne	LBB0_18
; %bb.2:
	mov	x19, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x21, #8]
	ldr	x9, [x1, #16]
	cmp	x21, x9
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x9]
	cmp	x10, x8
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #16]
	cmp	x20, x8
	b.eq	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x21
	b	LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x1, #24]
	ldr	x10, [x9]
	cmp	x10, x8
	b.ne	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	str	x8, [x21]
	str	x8, [x9]
	ldr	x8, [x23]
	str	x8, [x1]
	mov	x20, x1
	b	LBB0_15
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #24]
	cmp	x20, x8
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x21
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_rbt_rotate_right
	ldr	x8, [x21, #8]
	ldr	x1, [x8, #8]
	mov	x20, x21
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x22]
	str	x9, [x8]
	ldr	x8, [x23]
	str	x8, [x1]
	mov	x0, x19
	bl	_rbt_rotate_left
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_rbt_rotate_left
	ldr	x8, [x21, #8]
	ldr	x1, [x8, #8]
	mov	x20, x21
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x22]
	str	x9, [x8]
	ldr	x8, [x23]
	str	x8, [x1]
	mov	x0, x19
	bl	_rbt_rotate_right
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19]
	cmp	x20, x9
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x21, [x20, #8]
	ldr	x8, [x21]
	ldr	x10, [x23]
	cmp	x8, x10
	b.eq	LBB0_3
	b	LBB0_18
LBB0_17:
	mov	x9, x20
LBB0_18:
	ldr	x8, [x22]
	str	x8, [x9]
	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 AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_RBTRED,8,3                     ; @RBTRED
	.comm	_RBTBLACK,8,3                   ; @RBTBLACK
	.no_dead_strip	_rbt_insert_fixup
.subsections_via_symbols
