	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avlInsertNode
_avlInsertNode:                         ## @avlInsertNode
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	%edx, -28(%rbp)
	movq	(%rsi), %rbx
	cmpq	8(%rdi), %rbx
	je	LBB0_1
## %bb.2:
	leaq	16(%rbx), %rsi
	leaq	-28(%rbp), %rdi
	callq	_pivotFieldCompare
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	setg	%al
	movzbl	%al, %esi
	shlq	$3, %rsi
	addq	8(%rbx), %rsi
	movl	-28(%rbp), %edx
	movq	%r15, %rdi
	callq	_avlInsertNode
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_avlAdjustBalance
	jmp	LBB0_4
LBB0_1:
	movl	$24, %edi
	callq	_pg_malloc
	movl	$1, (%rax)
	movl	-28(%rbp), %ecx
	movl	%ecx, 16(%rax)
	movq	8(%r15), %rcx
	movq	8(%rax), %rdx
	movq	%rcx, 8(%rdx)
	movq	8(%rax), %rdx
	movq	%rcx, (%rdx)
	incl	(%r15)
	movq	%rax, (%r14)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_avlInsertNode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avlInsertNode
_avlInsertNode:                         ; @avlInsertNode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	str	w2, [sp, #12]
	ldr	x21, [x1]
	ldr	x8, [x0, #8]
	cmp	x21, x8
	b.eq	LBB0_3
; %bb.1:
	add	x1, x21, #16
	add	x0, sp, #12
	bl	_pivotFieldCompare
	cbz	w0, LBB0_4
; %bb.2:
	cmp	w0, #0
	cset	w8, gt
	ldr	x9, [x21, #8]
	add	x1, x9, w8, uxtw #3
	ldr	w2, [sp, #12]
	mov	x0, x20
	bl	_avlInsertNode
	mov	x0, x20
	mov	x1, x19
	bl	_avlAdjustBalance
	b	LBB0_4
LBB0_3:
	mov	w0, #24
	bl	_pg_malloc
	mov	w8, #1
	str	w8, [x0]
	ldr	w8, [sp, #12]
	str	w8, [x0, #16]
	ldr	x8, [x20, #8]
	ldr	x9, [x0, #8]
	str	x8, [x9, #8]
	ldr	x9, [x0, #8]
	str	x8, [x9]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	str	x0, [x19]
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_avlInsertNode
.subsections_via_symbols
