	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PageIndexTupleDelete           ## -- Begin function PageIndexTupleDelete
	.p2align	4, 0x90
_PageIndexTupleDelete:                  ## @PageIndexTupleDelete
	.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
	movl	%esi, %ebx
	movq	%rdi, %r12
	movl	(%rdi), %eax
	movq	_SizeOfPageHeaderData@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_5
## %bb.1:
	movslq	4(%r12), %rcx
	cmpl	%ecx, %eax
	jg	LBB0_5
## %bb.2:
	movq	8(%r12), %r14
	cmpq	%rcx, %r14
	jl	LBB0_5
## %bb.3:
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jg	LBB0_5
## %bb.4:
	movl	%r14d, %edi
	callq	_MAXALIGN
	movl	%eax, %eax
	cmpq	%rax, %r14
	je	LBB0_6
LBB0_5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_DATA_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	(%r12), %esi
	movl	4(%r12), %edx
	movq	8(%r12), %rcx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	movq	%r12, %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	%r12, %rdi
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	callq	_PageGetItemId
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ItemIdHasStorage
	movl	%eax, %edi
	callq	_Assert
	movq	%rbx, %rdi
	callq	_ItemIdGetLength
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_ItemIdGetOffset
	movl	%eax, %r15d
	cmpl	4(%r12), %eax
	jb	LBB0_12
## %bb.10:
	movl	%r13d, %eax
	addl	%r15d, %eax
	cmpq	%rax, 8(%r12)
	jl	LBB0_12
## %bb.11:
	movl	%r15d, %edi
	callq	_MAXALIGN
	cmpl	%eax, %r15d
	je	LBB0_13
LBB0_12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DATA_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_13:
	movl	%r13d, %edi
	callq	_MAXALIGN
	movl	%eax, %ebx
	movq	16(%r12), %rax
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movslq	%edi, %rcx
	leaq	(%rax,%rcx,4), %rsi
	movl	%r12d, %edx
	subl	%esi, %edx
	addl	(%r12), %edx
	testl	%edx, %edx
	jle	LBB0_15
## %bb.14:
	decl	%edi
	movslq	%edi, %rcx
	leaq	(%rax,%rcx,4), %rdi
	callq	_memmove
LBB0_15:
	movl	4(%r12), %eax
	movl	%r15d, %edx
	subl	%eax, %edx
	jbe	LBB0_17
## %bb.16:
	movslq	%eax, %rsi
	addq	%r12, %rsi
	movl	%ebx, %edi
	addq	%rsi, %rdi
	callq	_memmove
	movl	4(%r12), %eax
LBB0_17:
	movl	%ebx, %r14d
	addl	%ebx, %eax
	movl	%eax, 4(%r12)
	addl	$-4, (%r12)
	movq	%r12, %rdi
	callq	_PageIsEmpty
	testl	%eax, %eax
	jne	LBB0_23
## %bb.18:
	cmpl	$2, -44(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_23
## %bb.19:
	movl	$1, %ebx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	incl	%ebx
	cmpl	%ebx, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_23
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_PageGetItemId
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_ItemIdHasStorage
	movl	%eax, %edi
	callq	_Assert
	movq	%r13, %rdi
	callq	_ItemIdGetOffset
	cmpl	%r15d, %eax
	ja	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	addl	%r14d, (%r13)
	jmp	LBB0_22
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SizeOfPageHeaderData,4,2       ## @SizeOfPageHeaderData
	.comm	_BLCKSZ,8,3                     ## @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"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PageIndexTupleDelete           ; -- Begin function PageIndexTupleDelete
	.p2align	2
_PageIndexTupleDelete:                  ; @PageIndexTupleDelete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x1
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SizeOfPageHeaderData@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SizeOfPageHeaderData@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x23, _ERROR@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ERROR@GOTPAGEOFF]
Lloh5:
	adrp	x24, _ERRCODE_DATA_CORRUPTED@GOTPAGE
Lloh6:
	ldr	x24, [x24, _ERRCODE_DATA_CORRUPTED@GOTPAGEOFF]
	cmp	w8, w9
	b.lt	LBB0_4
; %bb.1:
	ldrsw	x9, [x19, #4]
	cmp	w8, w9
	b.gt	LBB0_4
; %bb.2:
	ldr	x20, [x19, #8]
Lloh7:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x20, x9
	ccmp	x20, x8, #0, ge
	b.gt	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_MAXALIGN
	cmp	x20, w0, uxtw
	b.eq	LBB0_5
LBB0_4:
	ldr	w20, [x23]
	ldr	w0, [x24]
	bl	_errcode
	ldp	w1, w2, [x19]
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_5:
	mov	x0, x19
	bl	_PageGetMaxOffsetNumber
	mov	x20, x0
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.6:
	cmp	w20, w21
	b.ge	LBB0_8
LBB0_7:
	ldr	w0, [x23]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_elog
LBB0_8:
	sxtw	x25, w21
	mov	x0, x19
	mov	x1, x21
	bl	_PageGetItemId
	mov	x21, x0
	bl	_ItemIdHasStorage
	bl	_Assert
	mov	x0, x21
	bl	_ItemIdGetLength
	mov	x22, x0
	mov	x0, x21
	bl	_ItemIdGetOffset
	mov	x21, x0
	ldr	w8, [x19, #4]
	cmp	w0, w8
	b.lo	LBB0_11
; %bb.9:
	ldr	x8, [x19, #8]
	add	w9, w21, w22
	cmp	x8, x9
	b.lt	LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_MAXALIGN
	cmp	w21, w0
	b.eq	LBB0_12
LBB0_11:
	ldr	w23, [x23]
	ldr	w0, [x24]
	bl	_errcode
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_12:
	mov	x0, x22
	bl	_MAXALIGN
	mov	x22, x0
	ldr	w9, [x19]
	ldr	x8, [x19, #16]
	add	x1, x8, x25, lsl #2
	sub	w10, w19, w1
	add	w2, w9, w10
	cmp	w2, #1
	b.lt	LBB0_14
; %bb.13:
	sub	x9, x25, #1
	add	x0, x8, x9, lsl #2
	bl	_memmove
LBB0_14:
	ldr	w8, [x19, #4]
	subs	w2, w21, w8
	b.ls	LBB0_16
; %bb.15:
	sxtw	x8, w8
	add	x1, x19, x8
	add	x0, x1, w22, uxtw
	bl	_memmove
	ldr	w8, [x19, #4]
LBB0_16:
	add	w8, w8, w22
	ldr	w9, [x19]
	sub	w9, w9, #4
	stp	w9, w8, [x19]
	mov	x0, x19
	bl	_PageIsEmpty
	cbnz	w0, LBB0_22
; %bb.17:
	cmp	w20, #2
	b.lt	LBB0_22
; %bb.18:
	mov	w23, #1
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	w23, w23, #1
	cmp	w20, w23
	b.eq	LBB0_22
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_PageGetItemId
	mov	x24, x0
	bl	_ItemIdHasStorage
	bl	_Assert
	mov	x0, x24
	bl	_ItemIdGetOffset
	cmp	w0, w21
	b.hi	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [x24]
	add	w8, w8, w22
	str	w8, [x24]
	b	LBB0_19
LBB0_22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_SizeOfPageHeaderData,4,2       ; @SizeOfPageHeaderData
	.comm	_BLCKSZ,8,3                     ; @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"

.subsections_via_symbols
