	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __archive_rb_tree_removal_rebalance
___archive_rb_tree_removal_rebalance:   ## @__archive_rb_tree_removal_rebalance
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	(%rsi), %rax
	movl	%edx, %ecx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rcx,8), %rdi
	callq	_RB_BLACK_P
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_RB_DIR_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r14d, %ebx
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %r12
	testq	%r12, %r12
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_RB_BLACK_P
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r12), %rdi
	callq	_RB_BLACK_P
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r12), %rdi
	callq	_RB_BLACK_P
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_RB_RED_P
	testq	%rax, %rax
	jne	LBB0_7
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_RB_MARK_RED
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_RB_ROOT_P
	testq	%rax, %rax
	jne	LBB0_8
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_RB_POSITION
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_RB_FATHER
	movq	%rax, %r15
	movq	(%rax), %rax
	movl	%r14d, %ecx
	jmp	LBB0_1
LBB0_9:
	movl	%ebx, %r13d
LBB0_10:
	movq	%r15, %rdi
	callq	_RB_RED_P
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movq	%r12, %rdi
	callq	_RB_BLACK_P
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	16(%r12), %rdi
	callq	_RB_BLACK_P
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	8(%r12), %rdi
	callq	_RB_BLACK_P
	testq	%rax, %rax
	je	LBB0_14
## %bb.20:
	movq	%r15, %rdi
	callq	_RB_MARK_BLACK
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RB_MARK_RED                    ## TAILCALL
LBB0_14:
	movq	(%r12), %rax
	movq	(%rax,%r13,8), %rdi
	callq	_RB_BLACK_P
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	___archive_rb_tree_reparent_nodes
	movq	(%r15), %rax
	movq	(%rax,%r13,8), %r12
LBB0_16:
	movq	(%r12), %rax
	movq	(%rax,%r13,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.17:
	callq	_RB_MARK_BLACK
	movq	%r15, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___archive_rb_tree_reparent_nodes ## TAILCALL
LBB0_7:
	movl	%ebx, %r13d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	___archive_rb_tree_reparent_nodes
	movq	(%r15), %rax
	movq	(%rax,%r13,8), %r12
	testq	%r12, %r12
	jne	LBB0_10
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RB_DIR_OTHER,4,2               ## @RB_DIR_OTHER
	.no_dead_strip	___archive_rb_tree_removal_rebalance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __archive_rb_tree_removal_rebalance
___archive_rb_tree_removal_rebalance:   ; @__archive_rb_tree_removal_rebalance
	.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, x2
	mov	x19, x1
	mov	x23, x0
	ldr	x8, [x1]
	ldr	x0, [x8, w2, uxtw #3]
	bl	_RB_BLACK_P
	cbz	x0, LBB0_19
; %bb.1:
Lloh0:
	adrp	x24, _RB_DIR_OTHER@GOTPAGE
Lloh1:
	ldr	x24, [x24, _RB_DIR_OTHER@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	eor	w21, w8, w20
	ldr	x8, [x19]
	ldr	x22, [x8, w21, uxtw #3]
	cbz	x22, LBB0_19
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_RB_BLACK_P
	cbz	x0, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x22, #16]
	bl	_RB_BLACK_P
	cbz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x22, #8]
	bl	_RB_BLACK_P
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_RB_RED_P
	cbnz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_RB_MARK_RED
	mov	x0, x23
	mov	x1, x19
	bl	_RB_ROOT_P
	cbnz	x0, LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_RB_POSITION
	mov	x20, x0
	mov	x0, x19
	bl	_RB_FATHER
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x0, [x8, w20, uxtw #3]
	bl	_RB_BLACK_P
	cbnz	x0, LBB0_2
	b	LBB0_19
LBB0_9:
	mov	x0, x19
	mov	x1, x21
	bl	___archive_rb_tree_reparent_nodes
	ldr	x8, [x19]
	ldr	x22, [x8, w21, uxtw #3]
	cbz	x22, LBB0_19
LBB0_10:
	mov	x0, x19
	bl	_RB_RED_P
	cbz	x0, LBB0_15
; %bb.11:
	mov	x0, x22
	bl	_RB_BLACK_P
	cbz	x0, LBB0_15
; %bb.12:
	ldr	x0, [x22, #16]
	bl	_RB_BLACK_P
	cbz	x0, LBB0_15
; %bb.13:
	ldr	x0, [x22, #8]
	bl	_RB_BLACK_P
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_RB_MARK_BLACK
	mov	x0, x22
	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
	b	_RB_MARK_RED
LBB0_15:
	ldr	x8, [x22]
	ldr	x0, [x8, x21, lsl #3]
	bl	_RB_BLACK_P
	cbz	x0, LBB0_17
; %bb.16:
	mov	x0, x22
	mov	x1, x20
	bl	___archive_rb_tree_reparent_nodes
	ldr	x8, [x19]
	ldr	x22, [x8, x21, lsl #3]
LBB0_17:
	ldr	x8, [x22]
	ldr	x0, [x8, x21, lsl #3]
	cbz	x0, LBB0_19
; %bb.18:
	bl	_RB_MARK_BLACK
	mov	x0, x19
	mov	x1, x21
	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
	b	___archive_rb_tree_reparent_nodes
LBB0_19:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_RB_DIR_OTHER,4,2               ; @RB_DIR_OTHER
	.no_dead_strip	___archive_rb_tree_removal_rebalance
.subsections_via_symbols
