	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scanGetCandidate
_scanGetCandidate:                      ## @scanGetCandidate
	.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
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	16(%rsi), %r14
	movq	%r14, %rdi
	callq	_ItemPointerSetInvalid
	movl	20(%r15), %edi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	callq	_BufferGetPage
	movl	%eax, %ebx
	movl	(%r12), %esi
	movl	4(%r12), %edi
	movl	%eax, %edx
	callq	_TestForOldSnapshot
	movl	%ebx, %edi
	callq	_PageGetMaxOffsetNumber
	movq	(%r15), %rsi
	cmpq	%rax, %rsi
	jle	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	callq	_GinPageGetOpaque
	movq	(%rax), %rsi
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	callq	_ReadBuffer
	movl	%eax, %ebx
	movq	_GIN_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_LockBuffer
	movl	20(%r15), %edi
	callq	_UnlockReleaseBuffer
	movl	%ebx, 20(%r15)
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movl	%ebx, %edi
	jmp	LBB0_1
LBB0_5:
	movq	%rax, %r13
	movl	%ebx, %edi
	callq	_PageGetItemId
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	%ebx, %edi
	callq	_GinPageHasFullRow
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%r15, %rcx
	addq	$8, %r15
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rax
	leaq	1(%rax), %rsi
	movq	%rsi, (%r15)
	cmpq	%r13, %rax
	jge	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %edi
	callq	_PageGetItemId
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ItemPointerEquals
	movq	%r15, %rcx
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_10
LBB0_3:
	movl	20(%r15), %edi
	callq	_UnlockReleaseBuffer
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_9:
	incq	%r13
	movq	%r13, 8(%r15)
	movl	$1, %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.comm	_GIN_SHARE,4,2                  ## @GIN_SHARE
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.no_dead_strip	_scanGetCandidate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scanGetCandidate
_scanGetCandidate:                      ; @scanGetCandidate
	.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	x20, x1
	mov	x22, x0
	add	x19, x1, #16
	mov	x0, x19
	bl	_ItemPointerSetInvalid
	ldr	w0, [x20, #20]
	bl	_BufferGetPage
	mov	x21, x0
	ldp	w1, w0, [x22]
	mov	x2, x21
	bl	_TestForOldSnapshot
	mov	x0, x21
	bl	_PageGetMaxOffsetNumber
	ldr	x1, [x20]
	cmp	x1, x0
	b.le	LBB0_4
; %bb.1:
Lloh0:
	adrp	x24, _InvalidBlockNumber@GOTPAGE
Lloh1:
	ldr	x24, [x24, _InvalidBlockNumber@GOTPAGEOFF]
Lloh2:
	adrp	x25, _GIN_SHARE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _GIN_SHARE@GOTPAGEOFF]
Lloh4:
	adrp	x26, _FirstOffsetNumber@GOTPAGE
Lloh5:
	ldr	x26, [x26, _FirstOffsetNumber@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_GinPageGetOpaque
	ldr	x1, [x0]
	ldr	x8, [x24]
	cmp	x1, x8
	b.eq	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x22]
	bl	_ReadBuffer
	mov	x21, x0
	ldr	w1, [x25]
	bl	_LockBuffer
	ldr	w0, [x20, #20]
	bl	_UnlockReleaseBuffer
	str	w21, [x20, #20]
	ldr	x8, [x26]
	str	x8, [x20]
	mov	x0, x21
	bl	_BufferGetPage
	mov	x21, x0
	ldp	w1, w0, [x22]
	mov	x2, x21
	bl	_TestForOldSnapshot
	mov	x0, x21
	bl	_PageGetMaxOffsetNumber
	ldr	x1, [x20]
	cmp	x1, x0
	b.gt	LBB0_2
LBB0_4:
	mov	x23, x0
	mov	x0, x21
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x21
	bl	_PageGetItem
	ldr	w8, [x0]
	str	w8, [x19]
	mov	x0, x21
	bl	_GinPageHasFullRow
	cbz	x0, LBB0_9
; %bb.5:
	add	x22, x20, #8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x1, x8, #1
	str	x1, [x22]
	cmp	x8, x23
	b.ge	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x21
	bl	_PageGetItem
	mov	x1, x0
	mov	x0, x19
	bl	_ItemPointerEquals
	mov	x20, x22
	cbnz	w0, LBB0_6
	b	LBB0_10
LBB0_8:
	ldr	w0, [x20, #20]
	bl	_UnlockReleaseBuffer
	mov	w0, #0
Lloh6:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh7:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #20]
	b	LBB0_11
LBB0_9:
	add	x8, x23, #1
	str	x8, [x20, #8]
LBB0_10:
	mov	w0, #1
LBB0_11:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.comm	_GIN_SHARE,4,2                  ; @GIN_SHARE
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.no_dead_strip	_scanGetCandidate
.subsections_via_symbols
