	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gistformdownlink
_gistformdownlink:                      ## @gistformdownlink
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %edi
	callq	_BufferGetPage
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_PageGetMaxOffsetNumber
	movq	%rax, %r15
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	cmpq	%r15, %r12
	jg	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	movq	%rax, %rdx
	movq	%r13, %rcx
	callq	_gistgetadjusted
	testq	%rax, %rax
	cmovneq	%rax, %rbx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_OffsetNumberNext
	movq	%rax, %r12
	cmpq	%r15, %rax
	jg	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_PageGetItemId
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rdi
	callq	_CopyIndexTuple
	movq	%rax, %rbx
	jmp	LBB0_5
LBB0_6:
	testq	%rbx, %rbx
	jne	LBB0_8
LBB0_7:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	_GIST_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	callq	_gistFindCorrectParent
	movq	(%r14), %rsi
	movq	8(%r14), %rax
	movl	4(%rax), %edi
	callq	_PageGetItemId
	movq	8(%r14), %rcx
	movl	4(%rcx), %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %rdi
	callq	_CopyIndexTuple
	movq	%rax, %rbx
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	_GIST_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LockBuffer
LBB0_8:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_BufferGetBlockNumber
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ItemPointerSetBlockNumber
	movq	%rbx, %rdi
	callq	_GistTupleSetValid
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.comm	_GIST_EXCLUSIVE,4,2             ## @GIST_EXCLUSIVE
	.comm	_GIST_UNLOCK,4,2                ## @GIST_UNLOCK
	.no_dead_strip	_gistformdownlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gistformdownlink
_gistformdownlink:                      ; @gistformdownlink
	.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, x3
	mov	x23, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_BufferGetPage
	mov	x24, x0
	bl	_PageGetMaxOffsetNumber
Lloh0:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
	cmp	x26, x0
	b.gt	LBB0_7
; %bb.1:
	mov	x25, x0
	mov	x22, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x3, x23
	bl	_gistgetadjusted
	cmp	x0, #0
	csel	x22, x22, x0, eq
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	bl	_OffsetNumberNext
	mov	x26, x0
	cmp	x0, x25
	b.gt	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	x1, x26
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x24
	bl	_PageGetItem
	mov	x2, x0
	cbnz	x22, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x2
	bl	_CopyIndexTuple
	mov	x22, x0
	b	LBB0_3
LBB0_6:
	cbnz	x22, LBB0_8
LBB0_7:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _GIST_EXCLUSIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GIST_EXCLUSIVE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_LockBuffer
	mov	x0, x21
	mov	x1, x20
	bl	_gistFindCorrectParent
	ldp	x1, x8, [x20]
	ldr	w0, [x8, #4]
	bl	_PageGetItemId
	mov	x1, x0
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #4]
	bl	_PageGetItem
	bl	_CopyIndexTuple
	mov	x22, x0
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _GIST_UNLOCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GIST_UNLOCK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_LockBuffer
LBB0_8:
	mov	x0, x19
	bl	_BufferGetBlockNumber
	mov	x1, x0
	mov	x0, x22
	bl	_ItemPointerSetBlockNumber
	mov	x0, x22
	bl	_GistTupleSetValid
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.comm	_GIST_EXCLUSIVE,4,2             ; @GIST_EXCLUSIVE
	.comm	_GIST_UNLOCK,4,2                ; @GIST_UNLOCK
	.no_dead_strip	_gistformdownlink
.subsections_via_symbols
