	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __mm_add_rebalance
___mm_add_rebalance:                    ## @__mm_add_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.1:
	movq	_IBV_RED@GOTPCREL(%rip), %r15
	movq	_IBV_BLACK@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	movq	%rax, (%rcx)
	movq	(%r15), %rax
	movq	%rax, (%r14)
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rbx
	movq	%r14, %rdi
	testq	%rbx, %rbx
	je	LBB0_19
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_19
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %r14
	movq	16(%r14), %rcx
	cmpq	%rcx, %rbx
	je	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rax, (%rcx)
	je	LBB0_6
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	16(%rbx), %rdi
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rax
	movq	%rdi, %rbx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rax, (%rcx)
	je	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	24(%rbx), %rdi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rax
	movq	%rdi, %rbx
	jmp	LBB0_10
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	___mm_rotate_right
	movq	8(%rbx), %rax
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rcx
	movq	%rcx, (%rax)
	movq	(%r15), %rax
	movq	%rax, (%r14)
	movq	%r14, %rdi
	callq	___mm_rotate_left
	jmp	LBB0_17
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	___mm_rotate_left
	movq	8(%rbx), %rax
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rcx
	movq	%rcx, (%rax)
	movq	(%r15), %rax
	movq	%rax, (%r14)
	movq	%r14, %rdi
	callq	___mm_rotate_right
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r14
	jmp	LBB0_18
LBB0_19:
	movq	_IBV_BLACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_mm_root@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IBV_RED,8,3                    ## @IBV_RED
	.comm	_IBV_BLACK,8,3                  ## @IBV_BLACK
	.comm	_mm_root,8,3                    ## @mm_root
	.no_dead_strip	___mm_add_rebalance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __mm_add_rebalance
___mm_add_rebalance:                    ; @__mm_add_rebalance
	.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
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x21, _IBV_BLACK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IBV_BLACK@GOTPAGEOFF]
	cbz	x19, LBB0_19
; %bb.1:
Lloh2:
	adrp	x22, _IBV_RED@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IBV_RED@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	str	x8, [x19]
	str	x8, [x9]
	ldr	x8, [x22]
	str	x8, [x20]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x19, [x20, #8]
	mov	x0, x20
	cbz	x19, LBB0_19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x20, [x19, #8]
	ldr	x9, [x20, #16]
	cmp	x19, x9
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x9, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x9]
	cmp	x10, x8
	b.eq	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #16]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x19
	mov	x19, x0
	b	LBB0_15
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x20, #24]
	cbz	x9, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x9]
	cmp	x10, x8
	b.eq	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #24]
	cmp	x0, x8
	b.eq	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x19
	mov	x19, x0
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	___mm_rotate_right
	ldr	x8, [x19, #8]
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21]
	str	x9, [x8]
	ldr	x8, [x22]
	str	x8, [x20]
	mov	x0, x20
	bl	___mm_rotate_left
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	___mm_rotate_left
	ldr	x8, [x19, #8]
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21]
	str	x9, [x8]
	ldr	x8, [x22]
	str	x8, [x20]
	mov	x0, x20
	bl	___mm_rotate_right
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x19
	b	LBB0_3
LBB0_19:
	ldr	x8, [x21]
Lloh4:
	adrp	x9, _mm_root@GOTPAGE
Lloh5:
	ldr	x9, [x9, _mm_root@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	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
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IBV_RED,8,3                    ; @IBV_RED
	.comm	_IBV_BLACK,8,3                  ; @IBV_BLACK
	.comm	_mm_root,8,3                    ; @mm_root
	.no_dead_strip	___mm_add_rebalance
.subsections_via_symbols
