	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mfsplay_tree_splay
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mfsplay_tree_splay:                    ## @mfsplay_tree_splay
	.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
	cmpq	$0, (%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpl	$0, 8(%rdi)
	je	LBB0_3
## %bb.2:
	cmpq	%r14, 16(%rbx)
	je	LBB0_6
LBB0_3:
	movl	$2500, 24(%rbx)                 ## imm = 0x9C4
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_mfsplay_tree_splay_helper
	cmpq	$0, 32(%rbx)
	je	LBB0_5
## %bb.4:
	leaq	32(%rbx), %r15
	movq	%rbx, %rdi
	callq	_mfsplay_tree_rebalance
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_mfsplay_tree_splay_helper
	cmpq	$0, 32(%rbx)
	jne	LBB0_7
LBB0_5:
	movq	%r14, 16(%rbx)
	movl	$1, 8(%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mfsplay_tree_splay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mfsplay_tree_splay
_mfsplay_tree_splay:                    ; @mfsplay_tree_splay
	.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	x8, [x0]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	x8, [x19, #16]
	cmp	x8, x20
	b.eq	LBB0_6
LBB0_3:
	mov	w8, #2500
	str	w8, [x19, #24]
	mov	x21, x19
	str	xzr, [x21, #32]!
	str	xzr, [x19, #40]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x19
	mov	x3, #0
	mov	x4, #0
	bl	_mfsplay_tree_splay_helper
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_mfsplay_tree_rebalance
	stp	xzr, xzr, [x21]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x19
	mov	x3, #0
	mov	x4, #0
	bl	_mfsplay_tree_splay_helper
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_7
LBB0_5:
	str	x20, [x19, #16]
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_6:
	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
LBB0_7:
	bl	_abort
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mfsplay_tree_splay
.subsections_via_symbols
