	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_splay_tree_remove              ## -- Begin function splay_tree_remove
	.p2align	4, 0x90
_splay_tree_remove:                     ## @splay_tree_remove
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_splay_tree_splay
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movl	24(%rax), %edi
	movl	%r14d, %esi
	callq	*(%r15)
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	leaq	8(%r15), %r12
	movq	8(%r15), %rdi
	movq	32(%r15), %rcx
	movq	(%rdi), %r14
	movq	16(%rdi), %rbx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	movl	8(%rdi), %edi
	callq	*%rcx
	movq	(%r12), %rdi
LBB0_4:
	movl	16(%r15), %esi
	callq	*24(%r15)
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.5:
	movq	%rbx, (%r12)
	testq	%r14, %r14
	je	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r12
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_6
LBB0_7:
	movq	%r14, (%r12)
LBB0_8:
	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_remove              ; -- Begin function splay_tree_remove
	.p2align	2
_splay_tree_remove:                     ; @splay_tree_remove
	.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, x1
	mov	x19, x0
	bl	_splay_tree_splay
	mov	x21, x19
	ldr	x8, [x21, #8]!
	cbz	x8, LBB0_8
; %bb.1:
	ldr	x9, [x19]
	ldr	w0, [x8, #24]
	mov	x1, x20
	blr	x9
	cbnz	x0, LBB0_8
; %bb.2:
	ldr	x0, [x19, #8]
	ldr	x22, [x0, #16]
	ldr	x20, [x0]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x0, #8]
	blr	x8
	ldr	x0, [x21]
LBB0_4:
	ldr	x8, [x19, #24]
	ldr	w1, [x19, #16]
	blr	x8
	cbz	x22, LBB0_7
; %bb.5:
	str	x22, [x21]
	cbz	x20, LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x22
	ldr	x22, [x22]
	cbnz	x22, LBB0_6
LBB0_7:
	str	x20, [x21]
LBB0_8:
	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
