	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function listree_replace_large
_listree_replace_large:                 ## @listree_replace_large
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	movq	(%r13), %rdi
	callq	_SMALL_NODE
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_tree_ext_lookup
	movq	%rax, %rbx
	movq	_NIL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_1
## %bb.5:
	movq	%rbx, %rdi
	callq	_NODE_TYPE
	movq	_TF_MINUS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_assert
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LARGE_NODE                     ## TAILCALL
LBB0_1:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_find_rpos_direct
	movl	%eax, %r14d
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:
	movq	(%r12), %rsi
	movl	%r14d, %eax
	subq	%rax, %rsi
	movq	%r12, %rdi
	callq	_get_data_direct
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_object_id_equal
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	jmp	LBB0_4
LBB0_2:
	xorl	%edi, %edi
LBB0_4:
	callq	_assert
	xorl	%eax, %eax
	callq	_lrand48
	movl	%eax, %ebx
	movq	_TF_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_MAKE_RPOS
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_new_tree_subnode_large
	movq	%rax, %rbx
	movq	(%r13), %rdi
	callq	_SMALL_NODE
	movl	%eax, %r14d
	movl	(%rbx), %r15d
	movl	4(%rbx), %r12d
	movq	%rbx, %rdi
	callq	_SMALL_NODE
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_tree_ext_insert
	movq	%rax, %rdi
	callq	_LARGE_NODE
	movq	%rax, (%r13)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,8,3                        ## @NIL
	.comm	_TF_ZERO,4,2                    ## @TF_ZERO
	.comm	_TF_MINUS,8,3                   ## @TF_MINUS
	.no_dead_strip	_listree_replace_large
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function listree_replace_large
_listree_replace_large:                 ; @listree_replace_large
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	ldr	x23, [x0, #8]
	ldr	x0, [x23]
	bl	_SMALL_NODE
	mov	x1, x19
	bl	_tree_ext_lookup
Lloh0:
	adrp	x8, _NIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x0
	bl	_NODE_TYPE
Lloh3:
	adrp	x8, _TF_MINUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TF_MINUS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ne
	bl	_assert
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_LARGE_NODE
LBB0_2:
	mov	x0, x21
	mov	x1, x19
	bl	_find_rpos_direct
	mov	x20, x0
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.3:
	ldr	x8, [x21]
	sub	x1, x8, w20, uxtw
	mov	x0, x21
	bl	_get_data_direct
	mov	x1, x19
	bl	_object_id_equal
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	bl	_assert
	bl	_lrand48
	mov	x21, x0
Lloh6:
	adrp	x8, _TF_ZERO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TF_ZERO@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_MAKE_RPOS
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_new_tree_subnode_large
	mov	x19, x0
	ldr	x0, [x23]
	bl	_SMALL_NODE
	mov	x20, x0
	ldp	w22, w21, [x19]
	mov	x0, x19
	bl	_SMALL_NODE
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_tree_ext_insert
	bl	_LARGE_NODE
	str	x0, [x23]
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
	.comm	_TF_ZERO,4,2                    ; @TF_ZERO
	.comm	_TF_MINUS,8,3                   ; @TF_MINUS
	.no_dead_strip	_listree_replace_large
.subsections_via_symbols
