	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function heap_xlog_clean
_heap_xlog_clean:                       ## @heap_xlog_clean
	.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	%rdi, %rbx
	movl	(%rdi), %r14d
	callq	_XLogRecGetData
	movq	%rax, %r15
	leaq	-48(%rbp), %rdx
	leaq	-64(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_XLogRecGetBlockTag
	movq	_InHotStandby@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movl	8(%r15), %edi
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	8(%r15), %edi
	movl	-48(%rbp), %esi
	callq	_ResolveRecoveryConflictWithSnapshot
LBB0_3:
	movq	_RBM_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %ecx
	callq	_XLogReadBufferForRedoExtended
	movq	_BLK_NEEDS_REDO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	-44(%rbp), %edi
	callq	_BufferGetPage
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leaq	-60(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_XLogRecGetBlockData
	movq	%rax, %rbx
	movslq	(%r15), %r13
	movslq	4(%r15), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movslq	-60(%rbp), %r15
	addq	%rbx, %r15
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	leaq	(%rbx,%r13,8), %r14
	leaq	(%r14,%rax,4), %r12
	subq	%r12, %r15
	shrq	$2, %r15
	movl	%r15d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_Assert
	movl	-44(%rbp), %edi
	movl	%r15d, (%rsp)
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movq	%r14, %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movq	%r12, %r9
	callq	_heap_page_prune_execute
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_PageSetLSN
	movl	-44(%rbp), %edi
	callq	_MarkBufferDirty
LBB0_5:
	movl	-44(%rbp), %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	-44(%rbp), %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_PageGetHeapFreeSpace
	movl	%eax, %ebx
	movl	-44(%rbp), %edi
	callq	_UnlockReleaseBuffer
	movl	-48(%rbp), %edi
	movl	-64(%rbp), %esi
	movl	%ebx, %edx
	callq	_XLogRecordPageWithFreeSpace
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InHotStandby,8,3               ## @InHotStandby
	.comm	_RBM_NORMAL,4,2                 ## @RBM_NORMAL
	.comm	_BLK_NEEDS_REDO,8,3             ## @BLK_NEEDS_REDO
	.no_dead_strip	_heap_xlog_clean
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function heap_xlog_clean
_heap_xlog_clean:                       ; @heap_xlog_clean
	.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	x20, x0
	ldr	w19, [x0]
	bl	_XLogRecGetData
	mov	x21, x0
	add	x2, sp, #8
	add	x4, sp, #4
	mov	x0, x20
	mov	w1, #0
	mov	x3, #0
	bl	_XLogRecGetBlockTag
Lloh0:
	adrp	x8, _InHotStandby@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InHotStandby@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w0, [x21, #8]
	bl	_TransactionIdIsValid
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x21, #8]
	ldr	w1, [sp, #8]
	bl	_ResolveRecoveryConflictWithSnapshot
LBB0_3:
Lloh3:
	adrp	x8, _RBM_NORMAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RBM_NORMAL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x4, sp, #12
	mov	x0, x20
	mov	w1, #0
	mov	w3, #1
	bl	_XLogReadBufferForRedoExtended
Lloh6:
	adrp	x8, _BLK_NEEDS_REDO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BLK_NEEDS_REDO@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [sp, #12]
	bl	_BufferGetPage
	mov	x22, x0
	mov	x2, sp
	mov	x0, x20
	mov	w1, #0
	bl	_XLogRecGetBlockData
	mov	x20, x0
	ldpsw	x23, x21, [x21]
	ldrsw	x8, [sp]
	add	x24, x0, x23, lsl #3
	add	x25, x24, x21, lsl #2
	add	x8, x0, x8
	sub	x8, x8, x25
	lsr	x26, x8, #2
	mvn	w8, w26
	lsr	w0, w8, #31
	bl	_Assert
	ldr	w0, [sp, #12]
	mov	x1, x20
	mov	x2, x23
	mov	x3, x24
	mov	x4, x21
	mov	x5, x25
	mov	x6, x26
	bl	_heap_page_prune_execute
	mov	x0, x22
	mov	x1, x19
	bl	_PageSetLSN
	ldr	w0, [sp, #12]
	bl	_MarkBufferDirty
LBB0_5:
	ldr	w0, [sp, #12]
	bl	_BufferIsValid
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [sp, #12]
	bl	_BufferGetPage
	bl	_PageGetHeapFreeSpace
	mov	x19, x0
	ldr	w0, [sp, #12]
	bl	_UnlockReleaseBuffer
	ldp	w1, w0, [sp, #4]
	mov	x2, x19
	bl	_XLogRecordPageWithFreeSpace
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_InHotStandby,8,3               ; @InHotStandby
	.comm	_RBM_NORMAL,4,2                 ; @RBM_NORMAL
	.comm	_BLK_NEEDS_REDO,8,3             ; @BLK_NEEDS_REDO
	.no_dead_strip	_heap_xlog_clean
.subsections_via_symbols
