	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scanGetItem
_scanGetItem:                           ## @scanGetItem
	.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	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movslq	4(%rdi), %r15
	leaq	20(%r15), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ItemPointerSetMin
	cmpq	$0, (%r15)
	jle	LBB0_23
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rbx
	leaq	(%r12,%rbx), %r13
	movl	16(%r15), %esi
	movl	-44(%rbp), %ecx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r8d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_keyGetItem
	cmpq	$0, 16(%r12,%rbx)
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	leaq	8(%r13), %r14
	cmpl	$0, 12(%r13)
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
	callq	_ItemPointerIsLossyPage
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	leaq	-44(%rbp), %rdi
	callq	_GinItemPointerGetBlockNumber
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_GinItemPointerGetBlockNumber
	cmpq	%rax, %rbx
	jge	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
	callq	_GinItemPointerGetBlockNumber
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-44(%rbp), %rdi
	movq	%rax, %rsi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
	callq	_GinItemPointerGetOffsetNumber
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_Assert
	movq	%r14, %rdi
	callq	_GinItemPointerGetBlockNumber
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_GinItemPointerGetOffsetNumber
	movq	%rax, %rdi
	callq	_OffsetNumberPrev
	leaq	-44(%rbp), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=2
	callq	_ItemPointerSet
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=2
	testq	%r12, %r12
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
	callq	_ItemPointerIsLossyPage
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ItemPointerIsLossyPage
	testq	%rax, %rax
	je	LBB0_17
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
	callq	_GinItemPointerGetBlockNumber
	movq	%rax, %r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_GinItemPointerGetBlockNumber
	xorl	%edi, %edi
	cmpq	%rax, %r13
	setge	%dil
	callq	_Assert
	movq	%r14, %rdi
	callq	_GinItemPointerGetBlockNumber
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_GinItemPointerGetBlockNumber
	cmpq	%rax, %r14
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=2
	sete	%al
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	(%r14), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movb	$1, %al
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=2
	incq	%r12
	cmpq	(%r15), %r12
	jge	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=2
	testb	%al, %al
	jne	LBB0_3
	jmp	LBB0_21
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ginCompareItemPointers
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_Assert
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ginCompareItemPointers
	testq	%rax, %rax
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)
	xorl	%eax, %eax
	testl	%eax, %eax
	je	LBB0_1
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_1 Depth=1
	movzbl	%al, %eax
	testl	%eax, %eax
	je	LBB0_1
LBB0_23:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ItemPointerIsMin
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$0, (%rsi)
	movq	(%r15), %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jle	LBB0_28
## %bb.24:
	movq	8(%r15), %rdx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx)
	jne	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_26 Depth=1
	incq	%rdx
	decq	%rcx
	jne	LBB0_26
	jmp	LBB0_28
LBB0_4:
	xorl	%eax, %eax
LBB0_28:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movl	$1, (%rsi)
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidOffsetNumber,4,2        ## @InvalidOffsetNumber
	.no_dead_strip	_scanGetItem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scanGetItem
_scanGetItem:                           ; @scanGetItem
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	str	w1, [sp, #12]
	ldrsw	x25, [x0, #4]
	add	x22, x25, #20
Lloh0:
	adrp	x26, _InvalidOffsetNumber@GOTPAGE
Lloh1:
	ldr	x26, [x26, _InvalidOffsetNumber@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	x0, x20
	bl	_ItemPointerSetMin
	ldr	x8, [x25]
	cmp	x8, #1
	b.lt	LBB0_21
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x27, #0
LBB0_3:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25, #8]
	add	x23, x27, x8
	ldr	w1, [x25, #16]
	ldr	w3, [sp, #12]
	ldr	w4, [x21]
	mov	x0, x22
	mov	x2, x23
	bl	_keyGetItem
	ldr	x8, [x23, #16]
	cbnz	x8, LBB0_26
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	w8, [x23, #12]
	add	x23, x23, #8
	cbz	w8, LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	x0, x23
	bl	_ItemPointerIsLossyPage
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=2
	add	x0, sp, #12
	bl	_GinItemPointerGetBlockNumber
	mov	x24, x0
	mov	x0, x23
	bl	_GinItemPointerGetBlockNumber
	cmp	x24, x0
	b.ge	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	x0, x23
	bl	_GinItemPointerGetBlockNumber
	mov	x1, x0
	ldr	w2, [x26]
	add	x0, sp, #12
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=2
	mov	x0, x23
	bl	_GinItemPointerGetOffsetNumber
	cmp	x0, #0
	cset	w0, gt
	bl	_Assert
	mov	x0, x23
	bl	_GinItemPointerGetBlockNumber
	mov	x24, x0
	mov	x0, x23
	bl	_GinItemPointerGetOffsetNumber
	bl	_OffsetNumberPrev
	mov	x2, x0
	add	x0, sp, #12
	mov	x1, x24
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=2
	bl	_ItemPointerSet
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=2
	cbz	x27, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=2
	mov	x0, x23
	bl	_ItemPointerIsLossyPage
	cbnz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=2
	mov	x0, x20
	bl	_ItemPointerIsLossyPage
	cbz	x0, LBB0_18
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	x0, x23
	bl	_GinItemPointerGetBlockNumber
	mov	x24, x0
	mov	x0, x20
	bl	_GinItemPointerGetBlockNumber
	cmp	x24, x0
	cset	w0, ge
	bl	_Assert
	mov	x0, x23
	bl	_GinItemPointerGetBlockNumber
	mov	x23, x0
	mov	x0, x20
	bl	_GinItemPointerGetBlockNumber
	cmp	x23, x0
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=2
	cset	w8, eq
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	w8, [x23]
	str	w8, [x20]
	mov	w8, #1
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=2
	add	x27, x27, #1
	ldr	x9, [x25]
	cmp	x27, x9
	b.ge	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=2
	tbnz	w8, #0, LBB0_3
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	x0, x23
	mov	x1, x20
	bl	_ginCompareItemPointers
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_Assert
	mov	x0, x23
	mov	x1, x20
	bl	_ginCompareItemPointers
	cmp	x0, #0
	b	LBB0_14
LBB0_19:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x23]
	str	w9, [sp, #12]
LBB0_20:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w8, LBB0_1
LBB0_21:
	mov	x0, x20
	bl	_ItemPointerIsMin
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	str	wzr, [x19]
	ldr	x8, [x25]
	cmp	x8, #1
	b.lt	LBB0_25
; %bb.22:
	ldr	x9, [x25, #8]
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cbnz	x10, LBB0_28
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	add	x9, x9, #1
	subs	x8, x8, #1
	b.ne	LBB0_23
LBB0_25:
	mov	w0, #1
	b	LBB0_27
LBB0_26:
	mov	w0, #0
LBB0_27:
	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
LBB0_28:
	mov	w0, #1
	str	w0, [x19]
	b	LBB0_27
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidOffsetNumber,4,2        ; @InvalidOffsetNumber
	.no_dead_strip	_scanGetItem
.subsections_via_symbols
