	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_pagedel                    ## -- Begin function _bt_pagedel
	.p2align	4, 0x90
__bt_pagedel:                           ## @_bt_pagedel
	.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
	movl	%esi, %r15d
	movl	%edi, %r14d
	movl	%esi, %edi
	callq	_BufferGetPage
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_P_ISLEAF
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
	movq	%r12, %rdi
	callq	_P_RIGHTMOST
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_P_ISROOT
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_P_ISDELETED
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_P_FIRSTDATAKEY
	movl	%r14d, %r13d
	movq	%rax, %r14
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_PageGetMaxOffsetNumber
	cmpq	%rax, %r14
	movl	%r13d, %r14d
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_P_INCOMPLETE_SPLIT
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_P_ISHALFDEAD
	testq	%rax, %rax
	jne	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	__bt_mark_page_halfdead
	testl	%eax, %eax
	je	LBB0_3
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, -52(%rbp)
	movq	%r12, %rdi
	callq	_P_ISHALFDEAD
	testq	%rax, %rax
	je	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	-52(%rbp), %r13
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %edi
	movl	%r15d, %esi
	movq	%r13, %rdx
	callq	__bt_unlink_halfdead_page
	testl	%eax, %eax
	je	LBB0_28
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	incl	%ebx
	movq	%r12, %rdi
	callq	_P_ISHALFDEAD
	testq	%rax, %rax
	jne	LBB0_21
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r12), %r12
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	__bt_relbuf
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	cmpl	$0, -52(%rbp)
	je	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_BT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	__bt_getbuf
	movl	%eax, %r15d
	movl	%eax, %edi
LBB0_25:                                ##   in Loop: Header=BB0_5 Depth=1
	callq	_BufferGetPage
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_P_ISLEAF
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_1
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_P_HIKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_PageGetItemId
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_PageGetItem
	movl	%eax, %edi
	callq	_CopyIndexTuple
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_LockBuffer
	movq	%r12, %rdi
	callq	_P_LEFTMOST
	testl	%eax, %eax
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_BT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	__bt_getbuf
	movl	%eax, -48(%rbp)
	movl	%eax, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, %r12
	movq	8(%rax), %r14
	movl	%r15d, %edi
	callq	_BufferGetBlockNumber
	cmpq	%rax, %r14
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_P_INCOMPLETE_SPLIT
	testq	%rax, %rax
	jne	LBB0_26
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-48(%rbp), %esi
	movl	%r13d, %r14d
	movl	%r13d, %edi
	callq	__bt_relbuf
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %edi
	callq	__bt_mkscankey
	movl	$1, (%rax)
	movq	_BT_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r14d, %edi
	movq	%rax, %rsi
	leaq	-48(%rbp), %rdx
	xorl	%r8d, %r8d
	callq	__bt_search
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %esi
	movl	%r14d, %edi
	callq	__bt_relbuf
	movq	_BT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_LockBuffer
	movl	%r15d, %edi
	jmp	LBB0_25
LBB0_1:
	movq	%r12, %rdi
	callq	_P_ISHALFDEAD
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_INDEX_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	%r14d, %edi
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	callq	_errhint
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_3
LBB0_10:
	movq	%r12, %rdi
	callq	_P_ISHALFDEAD
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_Assert
LBB0_3:
	movl	%r14d, %edi
	movl	%r15d, %esi
LBB0_27:
	callq	__bt_relbuf
LBB0_28:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movl	%r15d, %edi
	callq	_ReleaseBuffer
	movl	-48(%rbp), %esi
	movl	%r13d, %edi
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG,4,2                        ## @LOG
	.comm	_ERRCODE_INDEX_CORRUPTED,4,2    ## @ERRCODE_INDEX_CORRUPTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"index \"%s\" contains a half-dead internal page"

L_.str.1:                               ## @.str.1
	.asciz	"This can be caused by an interrupted VACUUM in version 9.3 or older, before upgrade. Please REINDEX it."

	.comm	_P_HIKEY,4,2                    ## @P_HIKEY
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ## @BUFFER_LOCK_UNLOCK
	.comm	_BT_READ,4,2                    ## @BT_READ
	.comm	_BT_WRITE,4,2                   ## @BT_WRITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_pagedel                    ; -- Begin function _bt_pagedel
	.p2align	2
__bt_pagedel:                           ; @_bt_pagedel
	.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	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_BufferGetPage
	mov	x24, x0
	bl	_PageGetSpecialPointer
	mov	x22, x0
	bl	_P_ISLEAF
	mov	w19, #0
	cbz	w0, LBB0_22
; %bb.1:
	mov	x23, #0
Lloh0:
	adrp	x28, _BT_READ@GOTPAGE
Lloh1:
	ldr	x28, [x28, _BT_READ@GOTPAGEOFF]
	mov	w26, #1
Lloh2:
	adrp	x27, _BT_WRITE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _BT_WRITE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	mov	x0, x22
	bl	_P_RIGHTMOST
	cbnz	x0, LBB0_24
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_P_ISROOT
	cbnz	x0, LBB0_24
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_P_ISDELETED
	cbnz	x0, LBB0_24
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_P_FIRSTDATAKEY
	mov	x25, x0
	mov	x0, x24
	bl	_PageGetMaxOffsetNumber
	cmp	x25, x0
	b.le	LBB0_24
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_P_INCOMPLETE_SPLIT
	cbnz	x0, LBB0_24
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_P_ISHALFDEAD
	cbnz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	x23, LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	__bt_mark_page_halfdead
	cbz	w0, LBB0_25
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	str	wzr, [sp, #12]
LBB0_11:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	bl	_P_ISHALFDEAD
	cbz	x0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x21
	bl	__bt_unlink_halfdead_page
	cbz	w0, LBB0_27
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	add	w19, w19, #1
	b	LBB0_11
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x22, [x22, #8]
	mov	x0, x20
	mov	x1, x21
	bl	__bt_relbuf
	bl	_CHECK_FOR_INTERRUPTS
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_27
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x22
	bl	__bt_getbuf
	mov	x21, x0
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_BufferGetPage
	mov	x24, x0
	bl	_PageGetSpecialPointer
	mov	x22, x0
	bl	_P_ISLEAF
	cbnz	w0, LBB0_2
	b	LBB0_22
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh4:
	adrp	x8, _P_HIKEY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _P_HIKEY@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x24
	bl	_PageGetItem
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_CopyIndexTuple
	mov	x23, x0
	ldr	x24, [x22]
Lloh7:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_LockBuffer
	mov	x0, x22
	bl	_P_LEFTMOST
	cbnz	w0, LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x28]
	mov	x0, x20
	mov	x1, x24
	bl	__bt_getbuf
	str	w0, [sp, #8]
	bl	_BufferGetPage
	bl	_PageGetSpecialPointer
	mov	x22, x0
	ldr	x24, [x0, #8]
	mov	x0, x21
	bl	_BufferGetBlockNumber
	cmp	x24, x0
	b.ne	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_P_INCOMPLETE_SPLIT
	cbnz	x0, LBB0_28
LBB0_20:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [sp, #8]
	mov	x0, x20
	bl	__bt_relbuf
LBB0_21:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	__bt_mkscankey
	mov	x1, x0
	str	w26, [x0]
	ldr	w3, [x28]
	add	x2, sp, #8
	mov	x0, x20
	mov	x4, #0
	bl	__bt_search
	mov	x23, x0
	ldr	w1, [sp, #8]
	mov	x0, x20
	bl	__bt_relbuf
	ldr	w1, [x27]
	mov	x0, x21
	bl	_LockBuffer
	mov	x0, x21
	b	LBB0_16
LBB0_22:
	mov	x0, x22
	bl	_P_ISHALFDEAD
	cbz	x0, LBB0_25
; %bb.23:
Lloh10:
	adrp	x8, _LOG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
Lloh13:
	adrp	x8, _ERRCODE_INDEX_CORRUPTED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERRCODE_INDEX_CORRUPTED@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x20
	bl	_RelationGetRelationName
	mov	x1, x0
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
	b	LBB0_25
LBB0_24:
	mov	x0, x22
	bl	_P_ISHALFDEAD
	cmp	x0, #0
	cset	w0, eq
	bl	_Assert
LBB0_25:
	mov	x0, x20
	mov	x1, x21
LBB0_26:
	bl	__bt_relbuf
LBB0_27:
	mov	x0, x19
	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	x0, x21
	bl	_ReleaseBuffer
	ldr	w1, [sp, #8]
	mov	x0, x20
	b	LBB0_26
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG,4,2                        ; @LOG
	.comm	_ERRCODE_INDEX_CORRUPTED,4,2    ; @ERRCODE_INDEX_CORRUPTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"index \"%s\" contains a half-dead internal page"

l_.str.1:                               ; @.str.1
	.asciz	"This can be caused by an interrupted VACUUM in version 9.3 or older, before upgrade. Please REINDEX it."

	.comm	_P_HIKEY,4,2                    ; @P_HIKEY
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ; @BUFFER_LOCK_UNLOCK
	.comm	_BT_READ,4,2                    ; @BT_READ
	.comm	_BT_WRITE,4,2                   ; @BT_WRITE
.subsections_via_symbols
