	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function listree_get_pos_large
_listree_get_pos_large:                 ## @listree_get_pos_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	8(%rdi), %rax
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %r13d
	leal	-1(%r13), %r14d
	movq	(%rax), %rbx
	movq	_NILL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %rbx
	decl	%r13d
	movl	%r13d, %r14d
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	(%rbx), %rbx
	movq	_NILL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_NODE_RPOS
                                        ## kill: def $r13d killed $r13d killed $r13
	subl	%eax, %r13d
	movl	24(%rbx), %esi
	movl	%r15d, %edi
	callq	_object_id_compare
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_NODE_TYPE
	xorl	%ecx, %ecx
	movq	_TF_PLUS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setne	%cl
	addl	%ecx, %r13d
	movq	16(%rbx), %rax
	movq	_rpos_to_delta@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r14d
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	addl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_NODE_TYPE
	addl	(%r12,%rax,4), %r15d
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %r15d
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	addq	$8, %rbx
	movl	%r13d, %r12d
	jmp	LBB0_10
LBB0_1:
	xorl	%r12d, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_11:
	testl	%r12d, %r12d
	setns	%al
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leal	(%r14,%rbx), %ecx
	cmpl	%ecx, %r12d
	setle	%cl
	cmpl	%r13d, %r14d
	setl	%dl
	andb	%al, %dl
	andb	%cl, %dl
	movzbl	%dl, %edi
	callq	_assert
	incl	%r14d
	decl	%r12d
	movl	%r14d, %eax
	subl	%r12d, %eax
	cmpl	$2, %eax
	jge	LBB0_12
LBB0_17:
	movl	%ebx, %edi
	callq	_assert
	addl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r12d, %r13d
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%r13d, %r14d
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%r14d, %eax
	subl	%r12d, %eax
	cmpl	$1, %eax
	jle	LBB0_17
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r14,%r12), %r13d
	sarl	%r13d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edi
	movl	%r13d, %esi
	callq	_OARR_ENTRY
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_object_id_compare
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%r13d, %r12d
	jmp	LBB0_16
LBB0_6:
	movl	$1, %edi
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_NODE_TYPE
	movq	_TF_MINUS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
LBB0_8:
	callq	_assert
	addl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	movq	16(%rbx), %rax
	addl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_NODE_TYPE
	movq	_TF_MINUS@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	subl	%edx, %r13d
	jmp	LBB0_22
LBB0_18:
	addl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	js	LBB0_19
## %bb.20:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addl	(%rax), %ecx
	xorl	%edi, %edi
	cmpl	%ecx, %r13d
	setl	%dil
	jmp	LBB0_21
LBB0_19:
	xorl	%edi, %edi
LBB0_21:
	callq	_assert
LBB0_22:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NILL,8,3                       ## @NILL
	.comm	_TF_MINUS,8,3                   ## @TF_MINUS
	.comm	_TF_PLUS,8,3                    ## @TF_PLUS
	.comm	_rpos_to_delta,8,3              ## @rpos_to_delta
	.no_dead_strip	_listree_get_pos_large
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function listree_get_pos_large
_listree_get_pos_large:                 ; @listree_get_pos_large
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w2, [sp, #12]                   ; 4-byte Folded Spill
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	w24, [x0]
	sub	w25, w24, #1
	ldr	x22, [x8]
Lloh0:
	adrp	x27, _NILL@GOTPAGE
Lloh1:
	ldr	x27, [x27, _NILL@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x22, x8
	b.eq	LBB0_7
; %bb.1:
	mov	w23, #0
	mov	w26, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x22, #16
	sub	w25, w28, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [x8]
	ldr	x8, [x27]
	cmp	x22, x8
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_NODE_RPOS
	sub	w28, w24, w0
	ldr	w1, [x22, #24]
	mov	x0, x21
	bl	_object_id_compare
	tbnz	w0, #31, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w0, LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_NODE_TYPE
Lloh2:
	adrp	x8, _TF_PLUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TF_PLUS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	cinc	w26, w28, ne
	ldr	x8, [x22, #16]
	ldr	w28, [x8]
Lloh5:
	adrp	x8, _rpos_to_delta@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rpos_to_delta@GOTPAGEOFF]
Lloh7:
	ldr	x19, [x8]
	mov	x0, x22
	bl	_NODE_TYPE
	ldr	w8, [x19, x0, lsl #2]
	add	w9, w28, w23
	add	w23, w9, w8
	add	x8, x22, #8
	b	LBB0_3
LBB0_7:
	mov	w26, #0
	mov	w23, #0
LBB0_8:
	cmp	w26, #0
	ldr	w27, [sp, #12]                  ; 4-byte Folded Reload
	add	w8, w25, w27
	ccmp	w26, w8, #0, ge
	ccmp	w25, w24, #0, le
	cset	w0, lt
	bl	_assert
	add	w25, w25, #1
	sub	w19, w26, #1
	sub	w8, w25, w19
	cmp	w8, #2
	b.ge	LBB0_12
LBB0_9:
	mov	x0, x27
	bl	_assert
	add	w19, w19, w23
	b	LBB0_22
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x25, x22
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	sub	w8, w25, w19
	cmp	w8, #1
	b.le	LBB0_9
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	w8, w25, w19
	asr	w22, w8, #1
	ldr	w0, [x20, #16]
	mov	x1, x22
	bl	_OARR_ENTRY
	mov	x1, x0
	mov	x0, x21
	bl	_object_id_compare
	tbnz	w0, #31, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x19, x22
	cbnz	w0, LBB0_11
; %bb.14:
	adds	w19, w22, w23
	b.mi	LBB0_20
; %bb.15:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	add	w8, w8, w24
	cmp	w19, w8
	cset	w0, lt
	b	LBB0_21
LBB0_16:
Lloh8:
	adrp	x19, _TF_MINUS@GOTPAGE
Lloh9:
	ldr	x19, [x19, _TF_MINUS@GOTPAGEOFF]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_18
; %bb.17:
	mov	w0, #1
	b	LBB0_19
LBB0_18:
	mov	x0, x22
	bl	_NODE_TYPE
	ldr	x8, [x19]
	cmp	x0, x8
	cset	w0, ne
LBB0_19:
	bl	_assert
	ldr	x8, [x22, #16]
	ldr	w8, [x8]
	add	w9, w28, w23
	add	w20, w9, w8
	mov	x0, x22
	bl	_NODE_TYPE
	ldr	x8, [x19]
	cmp	x0, x8
	cset	w8, eq
	sub	w19, w20, w8
	b	LBB0_22
LBB0_20:
	mov	w0, #0
LBB0_21:
	bl	_assert
LBB0_22:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NILL,8,3                       ; @NILL
	.comm	_TF_MINUS,8,3                   ; @TF_MINUS
	.comm	_TF_PLUS,8,3                    ; @TF_PLUS
	.comm	_rpos_to_delta,8,3              ; @rpos_to_delta
	.no_dead_strip	_listree_get_pos_large
.subsections_via_symbols
