	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_splay_tree_insert              ## -- Begin function splay_tree_insert
	.p2align	4, 0x90
_splay_tree_insert:                     ## @splay_tree_insert
	.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	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_splay_tree_splay
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movl	24(%rax), %edi
	movl	%r15d, %esi
	callq	*(%rbx)
	movl	%eax, %r12d
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	testl	%r12d, %r12d
	jne	LBB0_2
## %bb.6:
	movq	32(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:
	movq	16(%rax), %rdi
	callq	*%rcx
	movq	8(%rbx), %rax
LBB0_8:
	movq	%r14, 16(%rax)
	jmp	LBB0_13
LBB0_1:
	xorl	%r12d, %r12d
LBB0_2:
	movl	16(%rbx), %esi
	movl	$4, %edi
	callq	*24(%rbx)
	movl	%r15d, 24(%rax)
	movq	%r14, 16(%rax)
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.9:
	testl	%r12d, %r12d
	js	LBB0_10
## %bb.11:
	movq	%rcx, 8(%rax)
	movq	(%rcx), %rdx
	movq	%rdx, (%rax)
	movq	$0, (%rcx)
	jmp	LBB0_12
LBB0_3:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	jmp	LBB0_12
LBB0_10:
	movq	%rcx, (%rax)
	movq	8(%rcx), %rdx
	movq	%rdx, 8(%rax)
	movq	$0, 8(%rcx)
LBB0_12:
	movq	%rax, 8(%rbx)
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_splay_tree_insert              ; -- Begin function splay_tree_insert
	.p2align	2
_splay_tree_insert:                     ; @splay_tree_insert
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_splay_tree_splay
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x9, [x19]
	ldr	w0, [x8, #24]
	mov	x1, x21
	blr	x9
	mov	x22, x0
	ldr	x0, [x19, #8]
	cmp	x0, #0
	ccmp	w22, #0, #0, ne
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x0, [x0, #16]
	blr	x8
	ldr	x0, [x19, #8]
LBB0_4:
	str	x20, [x0, #16]
	b	LBB0_12
LBB0_5:
	mov	w22, #0
LBB0_6:
	ldr	x8, [x19, #24]
	ldr	w1, [x19, #16]
	mov	w0, #4
	blr	x8
	str	w21, [x0, #24]
	str	x20, [x0, #16]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.7:
	tbnz	w22, #31, LBB0_10
; %bb.8:
	ldr	x9, [x8]
	stp	x9, x8, [x0]
	str	xzr, [x8]
	b	LBB0_11
LBB0_9:
	stp	xzr, xzr, [x0]
	b	LBB0_11
LBB0_10:
	ldr	x9, [x8, #8]
	stp	x8, x9, [x0]
	str	xzr, [x8, #8]
LBB0_11:
	str	x0, [x19, #8]
LBB0_12:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
