	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __archive_rb_tree_swap_prune_and_rebalance
___archive_rb_tree_swap_prune_and_rebalance: ## @__archive_rb_tree_swap_prune_and_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_RB_POSITION
	movq	%rax, %r15
	movq	_RB_DIR_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	xorl	%r15d, %r13d
	movq	%rbx, %rdi
	callq	_RB_FATHER
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_RB_BLACK_P
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	cmpq	%r14, %r12
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.1:
	movq	%r15, %r14
	movl	%r13d, %r15d
	movq	(%rax,%r15,8), %r13
	movq	%r13, %rdi
	callq	_RB_RED_P
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	callq	_RB_MARK_BLACK
	movq	_F@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_RB_SET_FATHER
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_RB_SET_POSITION
LBB0_3:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movl	%r14d, %ecx
	movq	%r13, (%rax,%rcx,8)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rax
	movq	(%rbx), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	(%rbx), %rax
	movq	(%rax,%r15,8), %rdi
	movq	%rbx, %rsi
	callq	_RB_SET_FATHER
	movl	%r14d, %r13d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_8
LBB0_4:
	movl	%r15d, %ecx
	movq	(%rax,%rcx,8), %r14
	movq	%r14, %rdi
	callq	_RB_RED_P
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_RB_MARK_BLACK
	movq	_F@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_7:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_8:
	movq	(%r12), %rax
	movl	%r13d, %ecx
	movq	(%rax,%rcx,8), %rax
	movq	(%rbx), %rdx
	movq	%rax, (%rdx,%rcx,8)
	movq	(%rbx), %rax
	movq	(%rax,%rcx,8), %rdi
	movq	%rbx, %rsi
	callq	_RB_SET_FATHER
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_RB_COPY_PROPERTIES
	movq	%r12, %rdi
	callq	_RB_FATHER
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_RB_SET_FATHER
	movq	%rbx, %rdi
	callq	_RB_FATHER
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_RB_POSITION
	movq	%rbx, (%r15,%rax,8)
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.9:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___archive_rb_tree_removal_rebalance ## TAILCALL
LBB0_10:
	addq	$40, %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
	.comm	_F,4,2                          ## @F
	.no_dead_strip	___archive_rb_tree_swap_prune_and_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_swap_prune_and_rebalance
___archive_rb_tree_swap_prune_and_rebalance: ; @__archive_rb_tree_swap_prune_and_rebalance
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x2
	bl	_RB_POSITION
	mov	x21, x0
Lloh0:
	adrp	x8, _RB_DIR_OTHER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RB_DIR_OTHER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	eor	w26, w8, w21
	mov	x0, x20
	bl	_RB_FATHER
	mov	x24, x0
	mov	x0, x20
	bl	_RB_BLACK_P
	mov	x23, x0
	ldr	x8, [x20]
	cmp	x24, x22
	b.eq	LBB0_4
; %bb.1:
	ldr	x25, [x8, w26, uxtw #3]
	mov	x0, x25
	bl	_RB_RED_P
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x25
	bl	_RB_MARK_BLACK
Lloh3:
	adrp	x8, _F@GOTPAGE
Lloh4:
	ldr	x8, [x8, _F@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x0, x25
	mov	x1, x24
	bl	_RB_SET_FATHER
	mov	x0, x25
	mov	x1, x21
	bl	_RB_SET_POSITION
LBB0_3:
	ldr	x8, [x24]
	str	x25, [x8, w21, uxtw #3]
	ldr	x8, [x22]
	lsl	x9, x26, #3
	ldr	x8, [x8, x9]
	ldr	x10, [x20]
	str	x8, [x10, x9]
	ldr	x8, [x20]
	ldr	x0, [x8, x9]
	mov	x1, x20
	bl	_RB_SET_FATHER
	mov	x26, x21
	b	LBB0_7
LBB0_4:
	ldr	x24, [x8, w21, uxtw #3]
	mov	x0, x24
	bl	_RB_RED_P
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x24
	bl	_RB_MARK_BLACK
Lloh6:
	adrp	x8, _F@GOTPAGE
Lloh7:
	ldr	x8, [x8, _F@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
LBB0_6:
	mov	x24, x20
LBB0_7:
	ldr	x8, [x22]
	mov	w9, w26
	lsl	x9, x9, #3
	ldr	x8, [x8, x9]
	ldr	x10, [x20]
	str	x8, [x10, x9]
	ldr	x8, [x20]
	ldr	x0, [x8, x9]
	mov	x1, x20
	bl	_RB_SET_FATHER
	mov	x0, x20
	mov	x1, x22
	bl	_RB_COPY_PROPERTIES
	mov	x0, x22
	bl	_RB_FATHER
	mov	x1, x0
	mov	x0, x20
	bl	_RB_SET_FATHER
	mov	x0, x20
	bl	_RB_FATHER
	ldr	x22, [x0]
	mov	x0, x20
	bl	_RB_POSITION
	str	x20, [x22, x0, lsl #3]
	cbz	w23, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	___archive_rb_tree_removal_rebalance
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RB_DIR_OTHER,4,2               ; @RB_DIR_OTHER
	.comm	_F,4,2                          ; @F
	.no_dead_strip	___archive_rb_tree_swap_prune_and_rebalance
.subsections_via_symbols
