	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___archive_rb_tree_remove_node  ## -- Begin function __archive_rb_tree_remove_node
	.p2align	4, 0x90
___archive_rb_tree_remove_node:         ## @__archive_rb_tree_remove_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_RB_CHILDLESS_P
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	callq	_RB_BLACK_P
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_RB_ROOT_P
	xorl	%edx, %edx
	testl	%eax, %eax
	sete	%dl
	jmp	LBB0_4
LBB0_5:
	callq	_RB_TWOCHILDREN_P
	movq	%rbx, %rdi
	testl	%eax, %eax
	je	LBB0_6
## %bb.10:
	callq	_RB_POSITION
	movq	_RB_DIR_OTHER@GOTPCREL(%rip), %rcx
	xorl	(%rcx), %eax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	___archive_rb_tree_iterate
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___archive_rb_tree_swap_prune_and_rebalance ## TAILCALL
LBB0_2:
	xorl	%edx, %edx
LBB0_4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___archive_rb_tree_prune_node   ## TAILCALL
LBB0_6:
	callq	_RB_LEFT_SENTINEL_P
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:
	movq	_RB_DIR_LEFT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_RB_DIR_RIGHT@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___archive_rb_tree_prune_blackred_branch ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RB_DIR_RIGHT,4,2               ## @RB_DIR_RIGHT
	.comm	_RB_DIR_LEFT,4,2                ## @RB_DIR_LEFT
	.comm	_RB_DIR_OTHER,4,2               ## @RB_DIR_OTHER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___archive_rb_tree_remove_node  ; -- Begin function __archive_rb_tree_remove_node
	.p2align	2
___archive_rb_tree_remove_node:         ; @__archive_rb_tree_remove_node
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_RB_CHILDLESS_P
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_RB_BLACK_P
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_RB_ROOT_P
	cmp	w0, #0
	cset	w2, eq
	b	LBB0_6
LBB0_3:
	mov	x0, x19
	bl	_RB_TWOCHILDREN_P
	cbz	w0, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_RB_POSITION
Lloh0:
	adrp	x8, _RB_DIR_OTHER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RB_DIR_OTHER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	eor	w2, w8, w0
	mov	x0, x20
	mov	x1, x19
	bl	___archive_rb_tree_iterate
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___archive_rb_tree_swap_prune_and_rebalance
LBB0_5:
	mov	w2, #0
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___archive_rb_tree_prune_node
LBB0_7:
	mov	x0, x19
	bl	_RB_LEFT_SENTINEL_P
Lloh3:
	adrp	x8, _RB_DIR_RIGHT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RB_DIR_RIGHT@GOTPAGEOFF]
Lloh5:
	adrp	x9, _RB_DIR_LEFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RB_DIR_LEFT@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___archive_rb_tree_prune_blackred_branch
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RB_DIR_RIGHT,4,2               ; @RB_DIR_RIGHT
	.comm	_RB_DIR_LEFT,4,2                ; @RB_DIR_LEFT
	.comm	_RB_DIR_OTHER,4,2               ; @RB_DIR_OTHER
.subsections_via_symbols
