	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mfsplay_tree_splay_helper
_mfsplay_tree_splay_helper:             ## @mfsplay_tree_splay_helper
	.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	%rcx, %r15
	movq	(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r8, %r14
	movq	%rdx, %r12
	movq	(%rax), %rdx
	cmpq	%rsi, %rdx
	jne	LBB0_3
LBB0_7:
	testq	%r15, %r15
	je	LBB0_22
## %bb.8:
	movq	(%r15), %rcx
	movq	16(%rcx), %rdx
	testq	%r14, %r14
	je	LBB0_9
## %bb.10:
	cmpq	%rdx, %rax
	jne	LBB0_13
## %bb.11:
	movq	(%r14), %rsi
	cmpq	16(%rsi), %rcx
	je	LBB0_12
LBB0_13:
	cmpq	8(%rcx), %rax
	jne	LBB0_17
## %bb.14:
	movq	(%r14), %rsi
	cmpq	8(%rsi), %rcx
	je	LBB0_15
LBB0_17:
	cmpq	%rdx, %rax
	je	LBB0_18
## %bb.19:
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rcx)
	movq	(%r15), %rcx
	movq	%rcx, 16(%rax)
	movq	8(%rax), %rcx
	movq	(%r14), %rdx
	movq	%rcx, 16(%rdx)
	movq	(%r14), %rcx
	jmp	LBB0_20
LBB0_1:
	movq	(%r15), %rax
	jmp	LBB0_22
LBB0_3:
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	cmpq	8(%rdi), %rcx
	jle	LBB0_5
## %bb.4:
	movl	$1, 16(%rbx)
	jmp	LBB0_22
LBB0_5:
	xorl	%edi, %edi
	cmpq	%rsi, %rdx
	setg	%dil
	leaq	(%rax,%rdi,8), %rdx
	addq	$8, %rdx
	incq	%rcx
	movq	%rcx, (%rbx)
	movq	%rbx, %rdi
	movq	%r12, %rcx
	movq	%r15, %r8
	callq	_mfsplay_tree_splay_helper
	decq	(%rbx)
	cmpq	%rax, (%r12)
	jne	LBB0_22
## %bb.6:
	cmpl	$0, 16(%rbx)
	jne	LBB0_22
	jmp	LBB0_7
LBB0_9:
	xorl	%ecx, %ecx
	cmpq	%rdx, %rax
	setne	%cl
	movq	8(%rax,%rcx,8), %rdx
	movq	%rdx, (%r12)
	movq	(%r15), %rdx
	movq	%rdx, 8(%rax,%rcx,8)
	movq	%rax, (%r15)
	jmp	LBB0_22
LBB0_18:
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rcx)
	movq	(%r15), %rcx
	movq	%rcx, 8(%rax)
	movq	16(%rax), %rcx
	movq	(%r14), %rdx
	movq	%rcx, 8(%rdx)
	movq	(%r14), %rcx
	movq	%rcx, 16(%rax)
	jmp	LBB0_21
LBB0_12:
	movq	8(%rcx), %rdx
	movq	%rdx, 16(%rsi)
	movq	(%r14), %rdx
	movq	%rdx, 8(%rcx)
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rcx)
LBB0_20:
	movq	%rcx, 8(%rax)
LBB0_21:
	movq	%rax, (%r14)
LBB0_22:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%rdx, 8(%rsi)
	movq	(%r14), %rdx
	movq	%rdx, 16(%rcx)
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rcx)
	movq	%rcx, 16(%rax)
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mfsplay_tree_splay_helper
.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_helper
_mfsplay_tree_splay_helper:             ; @mfsplay_tree_splay_helper
	.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, x3
	mov	x22, x0
	ldr	x0, [x2]
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x4
	mov	x21, x2
	ldr	x8, [x0]
	cmp	x8, x1
	b.ne	LBB0_11
LBB0_2:
	cbz	x20, LBB0_20
; %bb.3:
	ldr	x8, [x20]
	ldr	x9, [x8, #16]
	cbz	x19, LBB0_15
; %bb.4:
	cmp	x0, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	x10, [x19]
	ldr	x11, [x10, #16]
	cmp	x8, x11
	b.eq	LBB0_17
LBB0_6:
	ldr	x10, [x8, #8]
	cmp	x0, x10
	b.ne	LBB0_8
; %bb.7:
	ldr	x10, [x19]
	ldr	x11, [x10, #8]
	cmp	x8, x11
	b.eq	LBB0_21
LBB0_8:
	cmp	x0, x9
	b.eq	LBB0_16
; %bb.9:
	ldr	x9, [x0, #16]
	str	x9, [x8, #8]
	ldr	x8, [x20]
	str	x8, [x0, #16]
	ldr	x8, [x0, #8]
	ldr	x9, [x19]
	str	x8, [x9, #16]
	ldr	x8, [x19]
	b	LBB0_18
LBB0_10:
	ldr	x0, [x20]
	b	LBB0_20
LBB0_11:
	ldp	x9, x10, [x22]
	cmp	x9, x10
	b.le	LBB0_13
; %bb.12:
	mov	w8, #1
	str	w8, [x22, #16]
	b	LBB0_20
LBB0_13:
	add	x10, x0, #16
	add	x11, x0, #8
	cmp	x8, x1
	csel	x2, x10, x11, gt
	add	x8, x9, #1
	str	x8, [x22]
	mov	x0, x22
	mov	x3, x21
	mov	x4, x20
	bl	_mfsplay_tree_splay_helper
	ldr	x8, [x22]
	sub	x8, x8, #1
	str	x8, [x22]
	ldr	x8, [x21]
	cmp	x8, x0
	b.ne	LBB0_20
; %bb.14:
	ldr	w8, [x22, #16]
	cbnz	w8, LBB0_20
	b	LBB0_2
LBB0_15:
	mov	w8, #16
	mov	w10, #8
	cmp	x0, x9
	csel	x8, x10, x8, eq
	ldr	x9, [x0, x8]
	str	x9, [x21]
	ldr	x9, [x20]
	str	x9, [x0, x8]
	str	x0, [x20]
	b	LBB0_20
LBB0_16:
	ldr	x9, [x0, #8]
	str	x9, [x8, #16]
	ldr	x8, [x20]
	str	x8, [x0, #8]
	ldr	x8, [x0, #16]
	ldr	x9, [x19]
	str	x8, [x9, #8]
	ldr	x8, [x19]
	str	x8, [x0, #16]
	b	LBB0_19
LBB0_17:
	ldr	x9, [x8, #8]
	str	x9, [x10, #16]
	ldr	x9, [x19]
	str	x9, [x8, #8]
	ldr	x9, [x0, #8]
	str	x9, [x8, #16]
LBB0_18:
	str	x8, [x0, #8]
LBB0_19:
	str	x0, [x19]
LBB0_20:
	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_21:
	str	x9, [x10, #8]
	ldr	x9, [x19]
	str	x9, [x8, #16]
	ldr	x9, [x0, #16]
	str	x9, [x8, #8]
	str	x8, [x0, #16]
	b	LBB0_19
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mfsplay_tree_splay_helper
.subsections_via_symbols
