	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btree_xlog_newroot
_btree_xlog_newroot:                    ## @btree_xlog_newroot
	.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
	movq	%rdi, %r15
	movl	(%rdi), %r14d
	callq	_XLogRecGetData
	movq	%rax, %r13
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_XLogInitBufferForRedo
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_BufferGetPage
	movq	%rax, %rbx
	movl	%r12d, %edi
	callq	_BufferGetPageSize
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	__bt_pageinit
	movq	%rbx, %rdi
	callq	_PageGetSpecialPointer
	movq	_BTP_ROOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_P_NONE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 24(%rax)
	movl	%edx, 28(%rax)
	movq	(%r13), %rdx
	movq	%rdx, 16(%rax)
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	$0, (%rax)
	jle	LBB0_4
## %bb.3:
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_XLogRecGetBlockData
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	__bt_restore_page
	movq	%r15, %rdi
	movl	$1, %esi
	callq	__bt_clear_incomplete_split
	jmp	LBB0_4
LBB0_1:
	movq	_BTP_LEAF@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 8(%rax)
	movq	$0, (%rax)
LBB0_4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_PageSetLSN
	movl	%r12d, %edi
	callq	_MarkBufferDirty
	movl	%r12d, %edi
	callq	_UnlockReleaseBuffer
	movq	%r15, %rdi
	movl	$2, %esi
	callq	__bt_restore_meta
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTP_ROOT,4,2                   ## @BTP_ROOT
	.comm	_P_NONE,4,2                     ## @P_NONE
	.comm	_BTP_LEAF,4,2                   ## @BTP_LEAF
	.no_dead_strip	_btree_xlog_newroot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btree_xlog_newroot
_btree_xlog_newroot:                    ; @btree_xlog_newroot
	.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	x19, x0
	ldr	w20, [x0]
	bl	_XLogRecGetData
	mov	x23, x0
	mov	x0, x19
	mov	w1, #0
	bl	_XLogInitBufferForRedo
	mov	x21, x0
	bl	_BufferGetPage
	mov	x22, x0
	mov	x0, x21
	bl	_BufferGetPageSize
	mov	x1, x0
	mov	x0, x22
	bl	__bt_pageinit
	mov	x0, x22
	bl	_PageGetSpecialPointer
Lloh0:
	adrp	x8, _BTP_ROOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTP_ROOT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _P_NONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _P_NONE@GOTPAGEOFF]
	str	w8, [x0, #8]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w9, [x0, #24]
	ldr	x9, [x23]
	str	x9, [x0, #16]
	cbz	x9, LBB0_3
; %bb.1:
	str	xzr, [x0]
	cmp	x9, #1
	b.lt	LBB0_4
; %bb.2:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #0
	bl	_XLogRecGetBlockData
	mov	x1, x0
	ldr	w2, [sp, #12]
	mov	x0, x22
	bl	__bt_restore_page
	mov	x0, x19
	mov	w1, #1
	bl	__bt_clear_incomplete_split
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x9, _BTP_LEAF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BTP_LEAF@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0, #8]
	str	xzr, [x0]
LBB0_4:
	mov	x0, x22
	mov	x1, x20
	bl	_PageSetLSN
	mov	x0, x21
	bl	_MarkBufferDirty
	mov	x0, x21
	bl	_UnlockReleaseBuffer
	mov	x0, x19
	mov	w1, #2
	bl	__bt_restore_meta
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BTP_ROOT,4,2                   ; @BTP_ROOT
	.comm	_P_NONE,4,2                     ; @P_NONE
	.comm	_BTP_LEAF,4,2                   ; @BTP_LEAF
	.no_dead_strip	_btree_xlog_newroot
.subsections_via_symbols
