	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extent_rtree_leaf_elms_lookup
_extent_rtree_leaf_elms_lookup:         ## @extent_rtree_leaf_elms_lookup
	.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
	movq	%r9, %r14
	movl	%r8d, %r12d
	movl	%ecx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_extent_base_get
	movq	_extents_rtree@GOTPCREL(%rip), %rsi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdx
	movq	%rax, %rcx
	movl	%ebx, %r8d
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %r9d
	callq	_rtree_leaf_elm_lookup
	movq	%rax, (%r14)
	movl	$1, %r12d
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	movq	16(%rbp), %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_extent_last_get
	movq	_extents_rtree@GOTPCREL(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, %rcx
	movl	%ebx, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_rtree_leaf_elm_lookup
	movq	%rax, (%r14)
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.3:
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	xorl	%r12d, %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_extents_rtree,4,2              ## @extents_rtree
	.no_dead_strip	_extent_rtree_leaf_elms_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extent_rtree_leaf_elms_lookup
_extent_rtree_leaf_elms_lookup:         ; @extent_rtree_leaf_elms_lookup
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x6
	mov	x25, x5
	mov	x21, x4
	mov	x20, x3
	mov	x24, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, x2
	bl	_extent_base_get
	mov	x3, x0
Lloh0:
	adrp	x1, _extents_rtree@GOTPAGE
Lloh1:
	ldr	x1, [x1, _extents_rtree@GOTPAGEOFF]
	mov	x0, x23
	mov	x2, x22
	mov	x4, x20
	mov	x5, x21
	bl	_rtree_leaf_elm_lookup
	str	x0, [x25]
	cbnz	w20, LBB0_2
; %bb.1:
	cbz	x0, LBB0_4
LBB0_2:
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x24
	bl	_extent_last_get
	mov	x3, x0
Lloh2:
	adrp	x1, _extents_rtree@GOTPAGE
Lloh3:
	ldr	x1, [x1, _extents_rtree@GOTPAGEOFF]
	mov	x0, x23
	mov	x2, x22
	mov	x4, x20
	mov	x5, x21
	bl	_rtree_leaf_elm_lookup
	str	x0, [x19]
	cbnz	w20, LBB0_5
; %bb.3:
	cbnz	x0, LBB0_5
LBB0_4:
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_extents_rtree,4,2              ; @extents_rtree
	.no_dead_strip	_extent_rtree_leaf_elms_lookup
.subsections_via_symbols
