	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rbt_delete_node
_rbt_delete_node:                       ## @rbt_delete_node
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.1:
	movq	_RBTNIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rsi, %rax
	je	LBB0_14
## %bb.2:
	movq	%rdi, %r14
	movq	24(%rsi), %r15
	movq	%rsi, %rbx
	cmpq	%rax, %r15
	je	LBB0_5
## %bb.3:
	movq	16(%rsi), %rcx
	movq	%rsi, %rbx
	cmpq	%rax, %rcx
	je	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rbx
	movq	24(%rcx), %rcx
	cmpq	%rax, %rcx
	jne	LBB0_4
LBB0_5:
	movq	16(%rbx), %r15
LBB0_6:
	movq	8(%rbx), %rax
	movq	%rax, 8(%r15)
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:
	leaq	8(%rcx), %rax
	cmpq	8(%rcx), %rbx
	cmovneq	%rcx, %rax
	jmp	LBB0_9
LBB0_8:
	leaq	16(%r14), %rax
LBB0_9:
	movq	%r15, (%rax)
	cmpq	%rsi, %rbx
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_rbt_copy_data
LBB0_11:
	movq	(%rbx), %rax
	movq	_RBTBLACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_rbt_delete_fixup
LBB0_13:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RBTNIL,8,3                     ## @RBTNIL
	.comm	_RBTBLACK,8,3                   ## @RBTBLACK
	.no_dead_strip	_rbt_delete_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rbt_delete_node
_rbt_delete_node:                       ; @rbt_delete_node
	.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
	cbz	x1, LBB0_16
; %bb.1:
Lloh0:
	adrp	x8, _RBTNIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RBTNIL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.eq	LBB0_16
; %bb.2:
	mov	x19, x0
	ldr	x21, [x1, #24]
	mov	x20, x1
	cmp	x21, x8
	b.eq	LBB0_5
; %bb.3:
	ldr	x9, [x1, #16]
	cmp	x9, x8
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x9
	ldr	x9, [x9, #24]
	cmp	x9, x8
	b.ne	LBB0_4
LBB0_5:
	ldr	x21, [x20, #16]
	b	LBB0_7
LBB0_6:
	mov	x20, x1
LBB0_7:
	ldr	x8, [x20, #8]
	str	x8, [x21, #8]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x9, x8
	ldr	x10, [x9, #8]!
	cmp	x20, x10
	csel	x8, x9, x8, eq
	b	LBB0_10
LBB0_9:
	add	x8, x19, #16
LBB0_10:
	str	x21, [x8]
	cmp	x20, x1
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x2, x20
	bl	_rbt_copy_data
LBB0_12:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _RBTBLACK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RBTBLACK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x19
	mov	x1, x21
	bl	_rbt_delete_fixup
LBB0_14:
	ldr	x2, [x19, #8]
	cbz	x2, LBB0_16
; %bb.15:
	ldr	w1, [x19]
	mov	x0, 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
	br	x2
LBB0_16:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RBTNIL,8,3                     ; @RBTNIL
	.comm	_RBTBLACK,8,3                   ; @RBTBLACK
	.no_dead_strip	_rbt_delete_node
.subsections_via_symbols
