	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rbt_delete_fixup
_rbt_delete_fixup:                      ## @rbt_delete_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, %rcx
	cmpq	%rsi, (%rdi)
	je	LBB0_21
## %bb.1:
	movq	%rdi, %r12
	movq	_RBTBLACK@GOTPCREL(%rip), %r14
	movq	_RBTRED@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rcx
	movq	%rcx, (%rax)
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rcx
	cmpq	(%r12), %rcx
	je	LBB0_21
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rdx
	cmpq	(%r14), %rdx
	jne	LBB0_21
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	8(%rcx), %r13
	movq	8(%rcx), %rsi
	movq	16(%rsi), %rax
	cmpq	%rax, %rcx
	je	LBB0_4
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %rcx
	cmpq	(%r15), %rcx
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, (%rax)
	movq	(%r15), %rax
	movq	%rax, (%rsi)
	movq	%r12, %rdi
	callq	_rbt_rotate_right
	movq	(%r13), %rsi
	movq	16(%rsi), %rax
	movq	(%r14), %rdx
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rax), %rcx
	movq	24(%rax), %rdi
	movq	(%rcx), %rbx
	cmpq	%rdx, (%rdi)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdx, %rbx
	je	LBB0_8
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdx, %rbx
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, (%rdi)
	movq	(%r15), %rcx
	movq	%rcx, (%rax)
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_rbt_rotate_left
	movq	(%r13), %rsi
	movq	16(%rsi), %rax
	movq	16(%rax), %rcx
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rsi), %rdx
	movq	%rdx, (%rax)
	movq	(%r14), %rax
	movq	%rax, (%rsi)
	movq	(%r14), %rax
	movq	%rax, (%rcx)
	movq	%r12, %rdi
	callq	_rbt_rotate_right
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rsi), %rax
	movq	(%rax), %rcx
	cmpq	(%r15), %rcx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, (%rax)
	movq	(%r15), %rax
	movq	%rax, (%rsi)
	movq	%r12, %rdi
	callq	_rbt_rotate_left
	movq	(%r13), %rsi
	movq	24(%rsi), %rax
	movq	(%r14), %rdx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rax), %rdi
	movq	24(%rax), %r8
	movq	(%r8), %rcx
	cmpq	%rdx, (%rdi)
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdx, %rcx
	je	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdx, %rcx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, (%rdi)
	movq	(%r15), %rcx
	movq	%rcx, (%rax)
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_rbt_rotate_right
	movq	(%r13), %rsi
	movq	24(%rsi), %rax
	movq	24(%rax), %r8
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rsi), %rcx
	movq	%rcx, (%rax)
	movq	(%r14), %rax
	movq	%rax, (%rsi)
	movq	(%r14), %rax
	movq	%rax, (%r8)
	movq	%r12, %rdi
	callq	_rbt_rotate_left
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %r13
	jmp	LBB0_20
LBB0_21:
	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	_RBTBLACK,8,3                   ## @RBTBLACK
	.comm	_RBTRED,8,3                     ## @RBTRED
	.no_dead_strip	_rbt_delete_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rbt_delete_fixup
_rbt_delete_fixup:                      ; @rbt_delete_fixup
	.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	x9, x1
	ldr	x8, [x0]
Lloh0:
	adrp	x20, _RBTBLACK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RBTBLACK@GOTPAGEOFF]
	cmp	x8, x1
	b.eq	LBB0_19
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x21, _RBTRED@GOTPAGE
Lloh3:
	ldr	x21, [x21, _RBTRED@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21]
	str	x9, [x8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x22]
	ldr	x8, [x19]
	cmp	x9, x8
	b.eq	LBB0_19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	ldr	x8, [x20]
	cmp	x10, x8
	b.ne	LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x9
	ldr	x1, [x22, #8]!
	ldr	x8, [x1, #16]
	cmp	x9, x8
	b.eq	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x8]
	ldr	x11, [x21]
	cmp	x9, x11
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x10, [x8]
	ldr	x8, [x21]
	str	x8, [x1]
	mov	x0, x19
	bl	_rbt_rotate_right
	ldr	x1, [x22]
	ldr	x8, [x1, #16]
	ldr	x10, [x20]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	x9, x11, [x8, #16]
	ldr	x13, [x11]
	ldr	x12, [x9]
	cmp	x13, x10
	ccmp	x12, x10, #0, eq
	b.eq	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x12, x10
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	str	x10, [x11]
	ldr	x9, [x21]
	str	x9, [x8]
	mov	x0, x19
	mov	x1, x8
	bl	_rbt_rotate_left
	ldr	x1, [x22]
	ldr	x8, [x1, #16]
	ldr	x9, [x8, #16]
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x1]
	str	x10, [x8]
	ldr	x8, [x20]
	str	x8, [x1]
	ldr	x8, [x20]
	str	x8, [x9]
	mov	x0, x19
	bl	_rbt_rotate_right
	b	LBB0_18
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x1, #24]
	ldr	x9, [x8]
	ldr	x11, [x21]
	cmp	x9, x11
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	str	x10, [x8]
	ldr	x8, [x21]
	str	x8, [x1]
	mov	x0, x19
	bl	_rbt_rotate_left
	ldr	x1, [x22]
	ldr	x8, [x1, #24]
	ldr	x10, [x20]
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x11, x9, [x8, #16]
	ldr	x13, [x11]
	ldr	x12, [x9]
	cmp	x13, x10
	ccmp	x12, x10, #0, eq
	b.eq	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x12, x10
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	str	x10, [x11]
	ldr	x9, [x21]
	str	x9, [x8]
	mov	x0, x19
	mov	x1, x8
	bl	_rbt_rotate_right
	ldr	x1, [x22]
	ldr	x8, [x1, #24]
	ldr	x9, [x8, #24]
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x1]
	str	x10, [x8]
	ldr	x8, [x20]
	str	x8, [x1]
	ldr	x8, [x20]
	str	x8, [x9]
	mov	x0, x19
	bl	_rbt_rotate_left
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x19
	b	LBB0_3
LBB0_19:
	ldr	x8, [x20]
	str	x8, [x9]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_RBTBLACK,8,3                   ; @RBTBLACK
	.comm	_RBTRED,8,3                     ; @RBTRED
	.no_dead_strip	_rbt_delete_fixup
.subsections_via_symbols
