	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_update_meta_cleanup_info   ## -- Begin function _bt_update_meta_cleanup_info
	.p2align	4, 0x90
__bt_update_meta_cleanup_info:          ## @_bt_update_meta_cleanup_info
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	_BTREE_METAPAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	__bt_getbuf
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_BufferGetPage
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_BTPageGetMeta
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	_BTREE_NOVAC_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_3
## %bb.1:
	cmpq	%r15, 8(%r12)
	jne	LBB0_3
## %bb.2:
	cmpq	%r13, 16(%r12)
	jne	LBB0_3
## %bb.8:
	movl	%r14d, %edi
	movl	%ebx, %esi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__bt_relbuf                     ## TAILCALL
LBB0_3:
	movq	_BUFFER_LOCK_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_LockBuffer
	movq	_BT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_LockBuffer
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movq	(%r12), %rax
	movq	_BTREE_NOVAC_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_5
## %bb.4:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	__bt_upgrademetapage
LBB0_5:
	movq	%r15, 8(%r12)
	movq	%r13, 16(%r12)
	movl	%ebx, %edi
	callq	_MarkBufferDirty
	movl	%r14d, %edi
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	movq	_REGBUF_WILL_INIT@GOTPCREL(%rip), %rax
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_XLogRegisterBuffer
	movq	(%r12), %rax
	xorl	%edi, %edi
	movq	_BTREE_NOVAC_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setge	%dil
	callq	_Assert
	movq	(%r12), %rax
	movq	%rax, -88(%rbp)
	movups	24(%r12), %xmm0
	movups	%xmm0, -64(%rbp)
	movq	%r15, -72(%rbp)
	movq	%r13, -80(%rbp)
	leaq	-88(%rbp), %rsi
	xorl	%edi, %edi
	movl	$40, %edx
	callq	_XLogRegisterBufData
	movq	_RM_BTREE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XLOG_BTREE_META_CLEANUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XLogInsert
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_PageSetLSN
LBB0_7:
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	__bt_relbuf
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTREE_METAPAGE,4,2             ## @BTREE_METAPAGE
	.comm	_BT_READ,4,2                    ## @BT_READ
	.comm	_BTREE_NOVAC_VERSION,8,3        ## @BTREE_NOVAC_VERSION
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ## @BUFFER_LOCK_UNLOCK
	.comm	_BT_WRITE,4,2                   ## @BT_WRITE
	.comm	_REGBUF_WILL_INIT,4,2           ## @REGBUF_WILL_INIT
	.comm	_REGBUF_STANDARD,4,2            ## @REGBUF_STANDARD
	.comm	_RM_BTREE_ID,4,2                ## @RM_BTREE_ID
	.comm	_XLOG_BTREE_META_CLEANUP,4,2    ## @XLOG_BTREE_META_CLEANUP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_update_meta_cleanup_info   ; -- Begin function _bt_update_meta_cleanup_info
	.p2align	2
__bt_update_meta_cleanup_info:          ; @_bt_update_meta_cleanup_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _BTREE_METAPAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTREE_METAPAGE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _BT_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BT_READ@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	__bt_getbuf
	mov	x20, x0
	bl	_BufferGetPage
	mov	x21, x0
	bl	_BTPageGetMeta
	mov	x24, x0
	ldr	x8, [x0]
Lloh6:
	adrp	x25, _BTREE_NOVAC_VERSION@GOTPAGE
Lloh7:
	ldr	x25, [x25, _BTREE_NOVAC_VERSION@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.lt	LBB0_4
; %bb.1:
	ldr	x8, [x24, #8]
	cmp	x8, x23
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x24, #16]
	cmp	x8, x22
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	__bt_relbuf
LBB0_4:
Lloh8:
	adrp	x8, _BUFFER_LOCK_UNLOCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BUFFER_LOCK_UNLOCK@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_LockBuffer
Lloh11:
	adrp	x8, _BT_WRITE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BT_WRITE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_LockBuffer
	bl	_START_CRIT_SECTION
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.5:
	mov	x0, x21
	bl	__bt_upgrademetapage
LBB0_6:
	stp	x23, x22, [x24, #8]
	mov	x0, x20
	bl	_MarkBufferDirty
	mov	x0, x19
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_8
; %bb.7:
	bl	_XLogBeginInsert
Lloh14:
	adrp	x8, _REGBUF_WILL_INIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REGBUF_WILL_INIT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _REGBUF_STANDARD@GOTPAGE
Lloh18:
	ldr	x9, [x9, _REGBUF_STANDARD@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #0
	mov	x1, x20
	bl	_XLogRegisterBuffer
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x9
	cset	w0, ge
	bl	_Assert
	ldr	x8, [x24]
	ldur	q0, [x24, #24]
	stur	q0, [sp, #32]
	stp	x22, x23, [sp, #16]
	str	x8, [sp, #8]
	add	x1, sp, #8
	mov	w0, #0
	mov	w2, #40
	bl	_XLogRegisterBufData
Lloh20:
	adrp	x8, _RM_BTREE_ID@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RM_BTREE_ID@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _XLOG_BTREE_META_CLEANUP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _XLOG_BTREE_META_CLEANUP@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_XLogInsert
	mov	x1, x0
	mov	x0, x21
	bl	_PageSetLSN
LBB0_8:
	bl	_END_CRIT_SECTION
	mov	x0, x19
	mov	x1, x20
	bl	__bt_relbuf
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_BTREE_METAPAGE,4,2             ; @BTREE_METAPAGE
	.comm	_BT_READ,4,2                    ; @BT_READ
	.comm	_BTREE_NOVAC_VERSION,8,3        ; @BTREE_NOVAC_VERSION
	.comm	_BUFFER_LOCK_UNLOCK,4,2         ; @BUFFER_LOCK_UNLOCK
	.comm	_BT_WRITE,4,2                   ; @BT_WRITE
	.comm	_REGBUF_WILL_INIT,4,2           ; @REGBUF_WILL_INIT
	.comm	_REGBUF_STANDARD,4,2            ; @REGBUF_STANDARD
	.comm	_RM_BTREE_ID,4,2                ; @RM_BTREE_ID
	.comm	_XLOG_BTREE_META_CLEANUP,4,2    ; @XLOG_BTREE_META_CLEANUP
.subsections_via_symbols
