	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bt_lock_branch_parent
__bt_lock_branch_parent:                ## @_bt_lock_branch_parent
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r12
	movl	%edi, %r15d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	__bt_relbuf
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r13), %r13
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	__bt_getstackbuf
	movq	%rax, %rcx
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpq	(%rax), %rcx
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INDEX_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	%r15d, %edi
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_errmsg_internal
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %r14d
	movq	(%r13), %r12
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %r13
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_BufferGetPage
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_PageGetSpecialPointer
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_PageGetMaxOffsetNumber
	cmpq	%rax, %r13
	jl	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_P_FIRSTDATAKEY
	cmpq	%rax, %r13
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_P_RIGHTMOST
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_P_ISROOT
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_P_INCOMPLETE_SPLIT
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	movq	(%r15), %rax
	movq	16(%rbp), %rcx
	movq	%rax, (%rcx)
	movq	8(%r15), %rbx
	movl	%r14d, %r15d
	movl	%r14d, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	__bt_relbuf
	movq	_P_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_BT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	__bt_getbuf
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_PageGetSpecialPointer
	cmpq	%r12, (%rax)
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rdi
	callq	_P_INCOMPLETE_SPLIT
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movl	%r15d, %edi
	movq	%r14, %rsi
	jmp	LBB0_13
LBB0_8:
	movl	%r14d, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_13:
	callq	__bt_relbuf
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_16:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	movl	$1, %eax
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBuffer,8,3              ## @InvalidBuffer
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INDEX_CORRUPTED,4,2    ## @ERRCODE_INDEX_CORRUPTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to re-find parent key in index \"%s\" for deletion target page %u"

	.comm	_P_NONE,8,3                     ## @P_NONE
	.comm	_BT_READ,4,2                    ## @BT_READ
	.no_dead_strip	__bt_lock_branch_parent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bt_lock_branch_parent
__bt_lock_branch_parent:                ; @_bt_lock_branch_parent
	.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, x6
	mov	x23, x5
	stp	x3, x4, [sp]                    ; 16-byte Folded Spill
	mov	x24, x2
	mov	x26, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _InvalidBuffer@GOTPAGE
Lloh1:
	ldr	x22, [x22, _InvalidBuffer@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x27
	bl	__bt_relbuf
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x24, [x24, #16]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x24
	mov	x2, x26
	bl	__bt_getstackbuf
	mov	x27, x0
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w28, [x8]
Lloh5:
	adrp	x8, _ERRCODE_INDEX_CORRUPTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERRCODE_INDEX_CORRUPTED@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x20
	bl	_RelationGetRelationName
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x26
	bl	_errmsg_internal
	mov	x1, x0
	mov	x0, x28
	bl	_ereport
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldp	x26, x25, [x24]
	mov	x0, x27
	bl	_BufferGetPage
	mov	x19, x0
	bl	_PageGetSpecialPointer
	mov	x28, x0
	mov	x0, x19
	bl	_PageGetMaxOffsetNumber
	cmp	x25, x0
	b.lt	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	bl	_P_FIRSTDATAKEY
	cmp	x25, x0
	b.ne	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	bl	_P_RIGHTMOST
	cbnz	x0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	bl	_P_ISROOT
	cbnz	x0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	bl	_P_INCOMPLETE_SPLIT
	cbnz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	str	x26, [x23]
	ldr	x8, [x28]
	str	x8, [x21]
	ldr	x28, [x28, #8]
	mov	x0, x20
	mov	x1, x27
	bl	__bt_relbuf
Lloh10:
	adrp	x8, _P_NONE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _P_NONE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x28, x8
	b.eq	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh13:
	adrp	x8, _BT_READ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BT_READ@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x28
	bl	__bt_getbuf
	mov	x27, x0
	bl	_BufferGetPage
	bl	_PageGetSpecialPointer
	ldr	x8, [x0]
	cmp	x8, x26
	b.ne	LBB0_1
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	bl	_P_INCOMPLETE_SPLIT
	cbz	x0, LBB0_1
LBB0_13:
	mov	x0, x20
	mov	x1, x27
	bl	__bt_relbuf
	mov	w0, #0
	b	LBB0_15
LBB0_14:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	str	x27, [x8]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x25, [x8]
	mov	w0, #1
LBB0_15:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBuffer,8,3              ; @InvalidBuffer
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INDEX_CORRUPTED,4,2    ; @ERRCODE_INDEX_CORRUPTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to re-find parent key in index \"%s\" for deletion target page %u"

	.comm	_P_NONE,8,3                     ; @P_NONE
	.comm	_BT_READ,4,2                    ; @BT_READ
	.no_dead_strip	__bt_lock_branch_parent
.subsections_via_symbols
