	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PageIndexTupleOverwrite        ## -- Begin function PageIndexTupleOverwrite
	.p2align	4, 0x90
_PageIndexTupleOverwrite:               ## @PageIndexTupleOverwrite
	.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, %r13
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_SizeOfPageHeaderData@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_5
## %bb.1:
	movq	8(%r14), %rcx
	cmpq	%rcx, %rax
	jg	LBB0_5
## %bb.2:
	movl	16(%r14), %r15d
	cmpq	%r15, %rcx
	jg	LBB0_5
## %bb.3:
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	ja	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_MAXALIGN
	cmpl	%eax, %r15d
	je	LBB0_6
LBB0_5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_DATA_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	(%r14), %esi
	movl	8(%r14), %edx
	movl	16(%r14), %ecx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	movq	%r14, %rdi
	callq	_PageGetMaxOffsetNumber
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.7:
	cmpl	%ebx, -44(%rbp)                 ## 4-byte Folded Reload
	jge	LBB0_9
LBB0_8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_elog
LBB0_9:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_PageGetItemId
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ItemIdHasStorage
	movq	%rax, %rdi
	callq	_Assert
	movq	%rbx, %rdi
	callq	_ItemIdGetLength
	movl	%eax, %r15d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ItemIdGetOffset
	movl	%eax, %ebx
	cmpq	%rbx, 8(%r14)
	jg	LBB0_12
## %bb.10:
	leal	(%rbx,%r15), %eax
	cmpl	16(%r14), %eax
	ja	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_MAXALIGN
	cmpl	%eax, %ebx
	je	LBB0_13
LBB0_12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_DATA_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_13:
	movslq	%r15d, %rdi
	callq	_MAXALIGN
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_MAXALIGN
	movl	%eax, %edx
	movslq	%r15d, %rsi
	movq	8(%r14), %r8
	addq	%r8, %rsi
	subq	(%r14), %rsi
	xorl	%ecx, %ecx
	cmpq	%rdx, %rsi
	jl	LBB0_22
## %bb.14:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	subl	%eax, %r15d
	je	LBB0_21
## %bb.15:
	leaq	(%r14,%r8), %rsi
	movslq	%r15d, %r12
	leaq	(%rsi,%r12), %rdi
	movl	%ebx, %edx
	subl	%r8d, %edx
	callq	_memmove
	addq	%r12, 8(%r14)
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	cmpl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	jle	LBB0_16
LBB0_21:
	addl	%ebx, %r15d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_ItemIdSetNormal
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_PageGetItem
	movl	%eax, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r15, %rdx
	callq	_memcpy
	movl	$1, %ecx
LBB0_22:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	incl	%r13d
	cmpl	%r13d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_21
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_PageGetItemId
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_ItemIdHasStorage
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r12, %rdi
	callq	_ItemIdGetOffset
	cmpl	%ebx, %eax
	ja	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	addl	%r15d, (%r12)
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_SizeOfPageHeaderData,8,3       ## @SizeOfPageHeaderData
	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_DATA_CORRUPTED,4,2     ## @ERRCODE_DATA_CORRUPTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"corrupted page pointers: lower = %u, upper = %u, special = %u"

L_.str.1:                               ## @.str.1
	.asciz	"invalid index offnum: %u"

L_.str.2:                               ## @.str.2
	.asciz	"corrupted line pointer: offset = %u, size = %u"

	.comm	_FirstOffsetNumber,4,2          ## @FirstOffsetNumber
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PageIndexTupleOverwrite        ; -- Begin function PageIndexTupleOverwrite
	.p2align	2
_PageIndexTupleOverwrite:               ; @PageIndexTupleOverwrite
	.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	x22, x1
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SizeOfPageHeaderData@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SizeOfPageHeaderData@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x26, _ERROR@GOTPAGE
Lloh4:
	ldr	x26, [x26, _ERROR@GOTPAGEOFF]
Lloh5:
	adrp	x27, _ERRCODE_DATA_CORRUPTED@GOTPAGE
Lloh6:
	ldr	x27, [x27, _ERRCODE_DATA_CORRUPTED@GOTPAGEOFF]
	cmp	x8, x9
	b.lt	LBB0_4
; %bb.1:
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.gt	LBB0_4
; %bb.2:
	ldr	w23, [x21, #16]
Lloh7:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	x9, x23
	ccmp	w23, w8, #2, le
	b.hi	LBB0_4
; %bb.3:
	mov	x0, x23
	bl	_MAXALIGN
	cmp	w23, w0
	b.eq	LBB0_5
LBB0_4:
	ldr	w23, [x26]
	ldr	w0, [x27]
	bl	_errcode
	ldr	w1, [x21]
	ldr	w2, [x21, #8]
	ldr	w8, [x21, #16]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_5:
	mov	x0, x21
	bl	_PageGetMaxOffsetNumber
	mov	x23, x0
	cmp	w22, #1
	b.lt	LBB0_7
; %bb.6:
	cmp	w23, w22
	b.ge	LBB0_8
LBB0_7:
	ldr	w0, [x26]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_elog
LBB0_8:
	mov	x0, x21
	mov	x1, x22
	bl	_PageGetItemId
	mov	x22, x0
	bl	_ItemIdHasStorage
	bl	_Assert
	mov	x0, x22
	bl	_ItemIdGetLength
	mov	x25, x0
	mov	x0, x22
	bl	_ItemIdGetOffset
	mov	w24, w0
	ldr	x8, [x21, #8]
	cmp	x8, x24
	b.gt	LBB0_11
; %bb.9:
	ldr	w8, [x21, #16]
	add	w9, w24, w25
	cmp	w9, w8
	b.hi	LBB0_11
; %bb.10:
	mov	x0, x24
	bl	_MAXALIGN
	cmp	w24, w0
	b.eq	LBB0_12
LBB0_11:
	ldr	w26, [x26]
	ldr	w0, [x27]
	bl	_errcode
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x24
	mov	x2, x25
	bl	_errmsg
	mov	x1, x0
	mov	x0, x26
	bl	_ereport
LBB0_12:
	sxtw	x0, w25
	bl	_MAXALIGN
	mov	x25, x0
	mov	x0, x19
	bl	_MAXALIGN
	ldp	x9, x8, [x21]
	add	x10, x8, w25, sxtw
	sub	x9, x10, x9
	cmp	x9, w0, uxtw
	b.ge	LBB0_14
; %bb.13:
	mov	w0, #0
	b	LBB0_17
LBB0_14:
	subs	w26, w25, w0
	b.eq	LBB0_16
; %bb.15:
	sxtw	x25, w26
	add	x1, x21, x8
	add	x0, x1, x25
	sub	w2, w24, w8
	bl	_memmove
	ldr	x8, [x21, #8]
	add	x8, x8, x25
	str	x8, [x21, #8]
Lloh16:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh18:
	ldr	w25, [x8]
	cmp	w25, w23
	b.le	LBB0_18
LBB0_16:
	add	w1, w26, w24
	mov	x0, x22
	mov	x2, x19
	bl	_ItemIdSetNormal
	mov	x0, x21
	mov	x1, x22
	bl	_PageGetItem
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	mov	w0, #1
LBB0_17:
	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_18:
	add	w27, w23, #1
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	w25, w25, #1
	cmp	w27, w25
	b.eq	LBB0_16
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x25
	bl	_PageGetItemId
	mov	x23, x0
	bl	_ItemIdHasStorage
	cbz	x0, LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x23
	bl	_ItemIdGetOffset
	cmp	w0, w24
	b.hi	LBB0_19
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [x23]
	add	w8, w8, w26
	str	w8, [x23]
	b	LBB0_19
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SizeOfPageHeaderData,8,3       ; @SizeOfPageHeaderData
	.comm	_BLCKSZ,4,2                     ; @BLCKSZ
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_DATA_CORRUPTED,4,2     ; @ERRCODE_DATA_CORRUPTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"corrupted page pointers: lower = %u, upper = %u, special = %u"

l_.str.1:                               ; @.str.1
	.asciz	"invalid index offnum: %u"

l_.str.2:                               ; @.str.2
	.asciz	"corrupted line pointer: offset = %u, size = %u"

	.comm	_FirstOffsetNumber,4,2          ; @FirstOffsetNumber
.subsections_via_symbols
