	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bt_restore_meta
__bt_restore_meta:                      ## @_bt_restore_meta
	.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, %r12d
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	callq	_XLogInitBufferForRedo
	movl	%eax, %r15d
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_XLogRecGetBlockData
	movq	%rax, %r12
	xorl	%edi, %edi
	cmpl	$32, -44(%rbp)
	sete	%dil
	callq	_Assert
	movl	%r15d, %edi
	callq	_BufferGetBlockNumber
	movq	_BTREE_METAPAGE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movl	%r15d, %edi
	callq	_BufferGetPage
	movq	%rax, %r13
	movl	%r15d, %edi
	callq	_BufferGetPageSize
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	__bt_pageinit
	movq	%r13, %rdi
	callq	_BTPageGetMeta
	movq	%rax, %rbx
	movq	_BTREE_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	movups	16(%r12), %xmm0
	movups	%xmm0, 16(%rbx)
	movq	_BTREE_NOVAC_VERSION@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setge	%dil
	callq	_Assert
	movl	12(%r12), %eax
	movl	%eax, 12(%rbx)
	movl	8(%r12), %eax
	movl	%eax, 8(%rbx)
	movq	%r13, %rdi
	callq	_PageGetSpecialPointer
	movq	_BTP_META@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	subl	%r13d, %ebx
	addl	$40, %ebx
	movl	%ebx, (%r13)
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_PageSetLSN
	movl	%r15d, %edi
	callq	_MarkBufferDirty
	movl	%r15d, %edi
	callq	_UnlockReleaseBuffer
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTREE_METAPAGE,8,3             ## @BTREE_METAPAGE
	.comm	_BTREE_MAGIC,4,2                ## @BTREE_MAGIC
	.comm	_BTREE_NOVAC_VERSION,8,3        ## @BTREE_NOVAC_VERSION
	.comm	_BTP_META,4,2                   ## @BTP_META
	.no_dead_strip	__bt_restore_meta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bt_restore_meta
__bt_restore_meta:                      ; @_bt_restore_meta
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x22, x0
	ldr	w20, [x0]
	bl	_XLogInitBufferForRedo
	mov	x19, x0
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	_XLogRecGetBlockData
	mov	x21, x0
	ldr	w8, [sp, #12]
	cmp	w8, #32
	cset	w0, eq
	bl	_Assert
	mov	x0, x19
	bl	_BufferGetBlockNumber
Lloh0:
	adrp	x8, _BTREE_METAPAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTREE_METAPAGE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_Assert
	mov	x0, x19
	bl	_BufferGetPage
	mov	x22, x0
	mov	x0, x19
	bl	_BufferGetPageSize
	mov	x1, x0
	mov	x0, x22
	bl	__bt_pageinit
	mov	x0, x22
	bl	_BTPageGetMeta
	mov	x23, x0
Lloh3:
	adrp	x8, _BTREE_MAGIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BTREE_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	ldr	x8, [x21]
	str	x8, [x0]
	ldr	q0, [x21, #16]
	str	q0, [x0, #16]
Lloh6:
	adrp	x9, _BTREE_NOVAC_VERSION@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BTREE_NOVAC_VERSION@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ge
	bl	_Assert
	ldr	d0, [x21, #8]
	str	d0, [x23, #8]
	mov	x0, x22
	bl	_PageGetSpecialPointer
Lloh9:
	adrp	x8, _BTP_META@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BTP_META@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x0]
	sub	w8, w23, w22
	add	w8, w8, #40
	str	w8, [x22]
	mov	x0, x22
	mov	x1, x20
	bl	_PageSetLSN
	mov	x0, x19
	bl	_MarkBufferDirty
	mov	x0, x19
	bl	_UnlockReleaseBuffer
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BTREE_METAPAGE,8,3             ; @BTREE_METAPAGE
	.comm	_BTREE_MAGIC,4,2                ; @BTREE_MAGIC
	.comm	_BTREE_NOVAC_VERSION,8,3        ; @BTREE_NOVAC_VERSION
	.comm	_BTP_META,4,2                   ; @BTP_META
	.no_dead_strip	__bt_restore_meta
.subsections_via_symbols
