	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btree_xlog_unlink_page
_btree_xlog_unlink_page:                ## @btree_xlog_unlink_page
	.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	%rsi, %r13
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rdi
	callq	_XLogRecGetData
	movq	%rax, %r12
	movq	(%rax), %r14
	movq	8(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_XLogReadBufferForRedo
	movq	_BLK_NEEDS_REDO@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.1:
	movl	-44(%rbp), %edi
	callq	_BufferGetPage
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PageGetSpecialPointer
	movq	%r14, 40(%rax)
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_PageSetLSN
	movl	-44(%rbp), %edi
	callq	_MarkBufferDirty
LBB0_2:
	movl	-44(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	-44(%rbp), %edi
	callq	_UnlockReleaseBuffer
LBB0_4:
	movq	_P_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_9
## %bb.5:
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_XLogReadBufferForRedo
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.6:
	movl	-44(%rbp), %edi
	callq	_BufferGetPage
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PageGetSpecialPointer
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 32(%rax)
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_PageSetLSN
	movl	-44(%rbp), %edi
	callq	_MarkBufferDirty
LBB0_7:
	movl	-44(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	-44(%rbp), %edi
	callq	_UnlockReleaseBuffer
LBB0_9:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_XLogInitBufferForRedo
	movl	%eax, -44(%rbp)
	movl	%eax, %edi
	callq	_BufferGetPage
	movq	%rax, %rbx
	movl	-44(%rbp), %edi
	callq	_BufferGetPageSize
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	__bt_pageinit
	movq	%rbx, %rdi
	callq	_PageGetSpecialPointer
	movq	%r14, 40(%rax)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 32(%rax)
	movl	40(%r12), %ecx
	movl	%ecx, 24(%rax)
	movq	_BTP_DELETED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	$0, 8(%rax)
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_PageSetLSN
	movl	-44(%rbp), %edi
	callq	_MarkBufferDirty
	movl	-44(%rbp), %edi
	callq	_UnlockReleaseBuffer
	movq	%r13, %rdi
	movl	$3, %esi
	callq	_XLogRecHasBlockRef
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	%r13, %rdi
	movl	$3, %esi
	callq	_XLogInitBufferForRedo
	movl	%eax, -44(%rbp)
	movl	%eax, %edi
	callq	_BufferGetPage
	movq	%rax, %rbx
	movl	-44(%rbp), %edi
	callq	_BufferGetPageSize
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	__bt_pageinit
	movq	%rbx, %rdi
	callq	_PageGetSpecialPointer
	movq	_BTP_HALF_DEAD@GOTPCREL(%rip), %rcx
	movq	_BTP_LEAF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%edx, (%rax)
	movups	24(%r12), %xmm0
	movups	%xmm0, 32(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_MemSet
	movl	$4, -56(%rbp)
	movl	16(%r12), %esi
	movq	%r14, %rdi
	callq	_BTreeTupleSetTopParent
	movq	_P_HIKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$4, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_PageAddItem
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_12:
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_PageSetLSN
	movl	-44(%rbp), %edi
	callq	_MarkBufferDirty
	movl	-44(%rbp), %edi
	callq	_UnlockReleaseBuffer
LBB0_13:
	movq	_XLOG_BTREE_UNLINK_PAGE_META@GOTPCREL(%rip), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax)
	jne	LBB0_15
## %bb.14:
	movq	%r13, %rdi
	movl	$4, %esi
	callq	__bt_restore_meta
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLK_NEEDS_REDO,8,3             ## @BLK_NEEDS_REDO
	.comm	_P_NONE,8,3                     ## @P_NONE
	.comm	_BTP_DELETED,4,2                ## @BTP_DELETED
	.comm	_BTP_HALF_DEAD,4,2              ## @BTP_HALF_DEAD
	.comm	_BTP_LEAF,4,2                   ## @BTP_LEAF
	.comm	_P_HIKEY,4,2                    ## @P_HIKEY
	.comm	_InvalidOffsetNumber,8,3        ## @InvalidOffsetNumber
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not add dummy high key to half-dead page"

	.comm	_XLOG_BTREE_UNLINK_PAGE_META,8,3 ## @XLOG_BTREE_UNLINK_PAGE_META
	.no_dead_strip	_btree_xlog_unlink_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btree_xlog_unlink_page
_btree_xlog_unlink_page:                ; @btree_xlog_unlink_page
	.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	x19, x1
	mov	x20, x0
	ldr	w21, [x1]
	mov	x0, x1
	bl	_XLogRecGetData
	mov	x22, x0
	ldp	x24, x25, [x0]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #2
	bl	_XLogReadBufferForRedo
Lloh0:
	adrp	x26, _BLK_NEEDS_REDO@GOTPAGE
Lloh1:
	ldr	x26, [x26, _BLK_NEEDS_REDO@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [sp, #12]
	bl	_BufferGetPage
	mov	x23, x0
	bl	_PageGetSpecialPointer
	str	x24, [x0, #40]
	mov	x0, x23
	mov	x1, x21
	bl	_PageSetLSN
	ldr	w0, [sp, #12]
	bl	_MarkBufferDirty
LBB0_2:
	ldr	w0, [sp, #12]
	bl	_BufferIsValid
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [sp, #12]
	bl	_UnlockReleaseBuffer
LBB0_4:
Lloh2:
	adrp	x8, _P_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _P_NONE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x24, x8
	b.eq	LBB0_9
; %bb.5:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #1
	bl	_XLogReadBufferForRedo
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
	ldr	w0, [sp, #12]
	bl	_BufferGetPage
	mov	x23, x0
	bl	_PageGetSpecialPointer
	str	x25, [x0, #32]
	mov	x0, x23
	mov	x1, x21
	bl	_PageSetLSN
	ldr	w0, [sp, #12]
	bl	_MarkBufferDirty
LBB0_7:
	ldr	w0, [sp, #12]
	bl	_BufferIsValid
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w0, [sp, #12]
	bl	_UnlockReleaseBuffer
LBB0_9:
	mov	x0, x19
	mov	w1, #0
	bl	_XLogInitBufferForRedo
	str	w0, [sp, #12]
	bl	_BufferGetPage
	mov	x23, x0
	ldr	w0, [sp, #12]
	bl	_BufferGetPageSize
	mov	x1, x0
	mov	x0, x23
	bl	__bt_pageinit
	mov	x0, x23
	bl	_PageGetSpecialPointer
	stp	x25, x24, [x0, #32]
	ldr	w8, [x22, #40]
	str	w8, [x0, #24]
Lloh5:
	adrp	x8, _BTP_DELETED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BTP_DELETED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0]
	str	xzr, [x0, #8]
	mov	x0, x23
	mov	x1, x21
	bl	_PageSetLSN
	ldr	w0, [sp, #12]
	bl	_MarkBufferDirty
	ldr	w0, [sp, #12]
	bl	_UnlockReleaseBuffer
	mov	x0, x19
	mov	w1, #3
	bl	_XLogRecHasBlockRef
	cbz	x0, LBB0_13
; %bb.10:
	mov	x0, x19
	mov	w1, #3
	bl	_XLogInitBufferForRedo
	str	w0, [sp, #12]
	bl	_BufferGetPage
	mov	x23, x0
	ldr	w0, [sp, #12]
	bl	_BufferGetPageSize
	mov	x1, x0
	mov	x0, x23
	bl	__bt_pageinit
	mov	x0, x23
	bl	_PageGetSpecialPointer
Lloh8:
	adrp	x8, _BTP_HALF_DEAD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BTP_HALF_DEAD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _BTP_LEAF@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BTP_LEAF@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0]
	ldur	q0, [x22, #24]
	str	q0, [x0, #32]
	stp	xzr, xzr, [x0, #8]
	mov	w24, #4
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_MemSet
	str	w24, [sp, #8]
	ldr	w1, [x22, #16]
	add	x0, sp, #8
	bl	_BTreeTupleSetTopParent
Lloh14:
	adrp	x8, _P_HIKEY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _P_HIKEY@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #4
	mov	w4, #0
	mov	w5, #0
	bl	_PageAddItem
Lloh17:
	adrp	x8, _InvalidOffsetNumber@GOTPAGE
Lloh18:
	ldr	x8, [x8, _InvalidOffsetNumber@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.11:
Lloh20:
	adrp	x8, _ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_12:
	mov	x0, x23
	mov	x1, x21
	bl	_PageSetLSN
	ldr	w0, [sp, #12]
	bl	_MarkBufferDirty
	ldr	w0, [sp, #12]
	bl	_UnlockReleaseBuffer
LBB0_13:
Lloh25:
	adrp	x8, _XLOG_BTREE_UNLINK_PAGE_META@GOTPAGE
Lloh26:
	ldr	x8, [x8, _XLOG_BTREE_UNLINK_PAGE_META@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x19
	mov	w1, #4
	bl	__bt_restore_meta
LBB0_15:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_BLK_NEEDS_REDO,8,3             ; @BLK_NEEDS_REDO
	.comm	_P_NONE,8,3                     ; @P_NONE
	.comm	_BTP_DELETED,4,2                ; @BTP_DELETED
	.comm	_BTP_HALF_DEAD,4,2              ; @BTP_HALF_DEAD
	.comm	_BTP_LEAF,4,2                   ; @BTP_LEAF
	.comm	_P_HIKEY,4,2                    ; @P_HIKEY
	.comm	_InvalidOffsetNumber,8,3        ; @InvalidOffsetNumber
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not add dummy high key to half-dead page"

	.comm	_XLOG_BTREE_UNLINK_PAGE_META,8,3 ; @XLOG_BTREE_UNLINK_PAGE_META
	.no_dead_strip	_btree_xlog_unlink_page
.subsections_via_symbols
