	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MarkBufferDirtyHint            ## -- Begin function MarkBufferDirtyHint
	.p2align	4, 0x90
_MarkBufferDirtyHint:                   ## @MarkBufferDirtyHint
	.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, %r15d
	movq	%rdi, %rbx
	callq	_BufferGetPage
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_BufferIsValid
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_elog
LBB0_2:
	movq	%rbx, %rdi
	callq	_BufferIsLocal
	testq	%rax, %rax
	je	LBB0_3
## %bb.17:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_MarkLocalBufferDirty           ## TAILCALL
LBB0_3:
	leaq	-1(%rbx), %rdi
	callq	_GetBufferDescriptor
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_GetPrivateRefCount
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_Assert
	movq	%r12, %rdi
	callq	_BufferDescriptorGetContentLock
	movl	%eax, %edi
	callq	_LWLockHeldByMe
	movl	%eax, %edi
	callq	_Assert
	movq	%r12, %rdi
	callq	_pg_atomic_read_u32
	movq	_BM_DIRTY@GOTPCREL(%rip), %r13
	movq	_BM_JUST_DIRTIED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%r13), %ecx
	notl	%eax
	testl	%eax, %ecx
	je	LBB0_16
## %bb.4:
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_XLogHintBitIsNeeded
	movb	$1, %cl
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%r12, %rdi
	callq	_pg_atomic_read_u32
	movq	_BM_PERMANENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	callq	_RecoveryInProgress
	testq	%rax, %rax
	jne	LBB0_16
## %bb.7:
	movq	_MyPgXact@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%rax)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_XLogSaveBufferForHint
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_8:
	movq	%r12, %rdi
	callq	_LockBufHdr
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_BUF_STATE_GET_REFCOUNT
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_Assert
	movl	(%r13), %r15d
	testl	%ebx, %r15d
	jne	LBB0_11
## %bb.9:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_XLogRecPtrIsInvalid
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movl	%r14d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_PageSetLSN
LBB0_11:
	movl	(%r13), %esi
	orl	%ebx, %esi
	movq	_BM_JUST_DIRTIED@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r12, %rdi
	callq	_UnlockBufHdr
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_13
## %bb.12:
	movq	_MyPgXact@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%rax)
LBB0_13:
	testl	%ebx, %r15d
	jne	LBB0_16
## %bb.14:
	movq	_VacuumPageDirty@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_pgBufferUsage@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_VacuumCostActive@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.15:
	movq	_VacuumCostPageDirty@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_VacuumCostBalance@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad buffer ID: %d"

	.comm	_BM_DIRTY,4,2                   ## @BM_DIRTY
	.comm	_BM_JUST_DIRTIED,4,2            ## @BM_JUST_DIRTIED
	.comm	_InvalidXLogRecPtr,4,2          ## @InvalidXLogRecPtr
	.comm	_BM_PERMANENT,4,2               ## @BM_PERMANENT
	.comm	_MyPgXact,8,3                   ## @MyPgXact
	.comm	_VacuumPageDirty,4,2            ## @VacuumPageDirty
	.comm	_pgBufferUsage,4,2              ## @pgBufferUsage
	.comm	_VacuumCostActive,8,3           ## @VacuumCostActive
	.comm	_VacuumCostPageDirty,8,3        ## @VacuumCostPageDirty
	.comm	_VacuumCostBalance,4,2          ## @VacuumCostBalance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MarkBufferDirtyHint            ; -- Begin function MarkBufferDirtyHint
	.p2align	2
_MarkBufferDirtyHint:                   ; @MarkBufferDirtyHint
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x22, x0
	bl	_BufferGetPage
	mov	x19, x0
	mov	x0, x22
	bl	_BufferIsValid
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_elog
LBB0_2:
	mov	x0, x22
	bl	_BufferIsLocal
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_MarkLocalBufferDirty
LBB0_4:
	sub	x0, x22, #1
	bl	_GetBufferDescriptor
	mov	x20, x0
	mov	x0, x22
	bl	_GetPrivateRefCount
	cmp	x0, #0
	cset	w0, gt
	bl	_Assert
	mov	x0, x20
	bl	_BufferDescriptorGetContentLock
	bl	_LWLockHeldByMe
	bl	_Assert
	mov	x0, x20
	bl	_pg_atomic_read_u32
Lloh5:
	adrp	x24, _BM_DIRTY@GOTPAGE
Lloh6:
	ldr	x24, [x24, _BM_DIRTY@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh7:
	adrp	x25, _BM_JUST_DIRTIED@GOTPAGE
Lloh8:
	ldr	x25, [x25, _BM_JUST_DIRTIED@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w9, w8
	bics	wzr, w8, w0
	b.eq	LBB0_18
; %bb.5:
Lloh9:
	adrp	x8, _InvalidXLogRecPtr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh11:
	ldr	w23, [x8]
	bl	_XLogHintBitIsNeeded
	cbz	x0, LBB0_9
; %bb.6:
	mov	x0, x20
	bl	_pg_atomic_read_u32
Lloh12:
	adrp	x8, _BM_PERMANENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BM_PERMANENT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.7:
	bl	_RecoveryInProgress
	cbnz	x0, LBB0_18
; %bb.8:
Lloh15:
	adrp	x8, _MyPgXact@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MyPgXact@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x8]
	mov	x0, x22
	mov	x1, x21
	bl	_XLogSaveBufferForHint
	mov	x23, x0
	mov	w22, #0
	b	LBB0_10
LBB0_9:
	mov	w22, #1
LBB0_10:
	mov	x0, x20
	bl	_LockBufHdr
	mov	x21, x0
	bl	_BUF_STATE_GET_REFCOUNT
	cmp	x0, #0
	cset	w0, gt
	bl	_Assert
	ldr	w8, [x24]
	ands	w26, w8, w21
	b.ne	LBB0_13
; %bb.11:
	mov	x0, x23
	bl	_XLogRecPtrIsInvalid
	cbnz	w0, LBB0_13
; %bb.12:
	mov	x0, x19
	mov	x1, x23
	bl	_PageSetLSN
LBB0_13:
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w8, w21
	orr	w1, w8, w9
	mov	x0, x20
	bl	_UnlockBufHdr
	tbnz	w22, #0, LBB0_15
; %bb.14:
Lloh18:
	adrp	x8, _MyPgXact@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MyPgXact@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	wzr, [x8]
LBB0_15:
	cbnz	w26, LBB0_18
; %bb.16:
Lloh21:
	adrp	x8, _VacuumPageDirty@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VacuumPageDirty@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh23:
	adrp	x8, _pgBufferUsage@GOTPAGE
Lloh24:
	ldr	x8, [x8, _pgBufferUsage@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh25:
	adrp	x8, _VacuumCostActive@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VacuumCostActive@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.17:
Lloh28:
	adrp	x8, _VacuumCostPageDirty@GOTPAGE
Lloh29:
	ldr	x8, [x8, _VacuumCostPageDirty@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _VacuumCostBalance@GOTPAGE
Lloh32:
	ldr	x9, [x9, _VacuumCostBalance@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w8, w10, w8
	str	w8, [x9]
LBB0_18:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad buffer ID: %d"

	.comm	_BM_DIRTY,4,2                   ; @BM_DIRTY
	.comm	_BM_JUST_DIRTIED,4,2            ; @BM_JUST_DIRTIED
	.comm	_InvalidXLogRecPtr,4,2          ; @InvalidXLogRecPtr
	.comm	_BM_PERMANENT,4,2               ; @BM_PERMANENT
	.comm	_MyPgXact,8,3                   ; @MyPgXact
	.comm	_VacuumPageDirty,4,2            ; @VacuumPageDirty
	.comm	_pgBufferUsage,4,2              ; @pgBufferUsage
	.comm	_VacuumCostActive,8,3           ; @VacuumCostActive
	.comm	_VacuumCostPageDirty,8,3        ; @VacuumCostPageDirty
	.comm	_VacuumCostBalance,4,2          ; @VacuumCostBalance
.subsections_via_symbols
