	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avlAdjustBalance
_avlAdjustBalance:                      ## @avlAdjustBalance
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rsi), %r12
	movq	%r12, %rdi
	callq	_avlBalance
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	cmpl	$3, %ecx
	jb	LBB0_4
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %r14d
	shrl	$31, %r14d
	addl	%eax, %r14d
	sarl	%r14d
	movl	$1, %eax
	subl	%r14d, %eax
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	movq	(%r12), %rax
	movslq	%ebx, %r13
	movq	(%rax,%r13,8), %rdi
	callq	_avlBalance
	addl	%r14d, %eax
	jne	LBB0_3
## %bb.2:
	shlq	$3, %r13
	addq	(%r12), %r13
	xorl	%esi, %esi
	cmpl	$3, %r14d
	setb	%sil
	movq	%r13, %rdi
	callq	_avlRotate
LBB0_3:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_avlRotate
	movq	%rax, %r12
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_4:
	cmpq	(%rbx), %r12
	je	LBB0_5
## %bb.6:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_avlUpdateHeight                ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_avlAdjustBalance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avlAdjustBalance
_avlAdjustBalance:                      ; @avlAdjustBalance
	.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, x1
	mov	x19, x0
	ldr	x21, [x1]
	mov	x0, x21
	bl	_avlBalance
	add	w8, w0, #1
	cmp	w8, #3
	b.lo	LBB0_4
; %bb.1:
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w23, w8, #1
	mov	w8, #1
	sub	w8, w8, w23
	mov	w9, #2
	sub	w9, w9, w23
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w9, w8, #1
	ldr	x10, [x21]
	sbfx	x22, x8, #1, #31
	ldr	x0, [x10, w9, sxtw #3]
	bl	_avlBalance
	cmn	w0, w23
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x21]
	add	x0, x8, x22, lsl #3
	cmp	w23, #3
	cset	w1, lo
	bl	_avlRotate
LBB0_3:
	mov	x0, x20
	mov	x1, x22
	bl	_avlRotate
	mov	x21, x0
LBB0_4:
	ldr	x8, [x19]
	cmp	x21, x8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, 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	_avlUpdateHeight
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_avlAdjustBalance
.subsections_via_symbols
