	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XLogSaveBufferForHint          ## -- Begin function XLogSaveBufferForHint
	.p2align	4, 0x90
_XLogSaveBufferForHint:                 ## @XLogSaveBufferForHint
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movl	%edi, %r14d
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_MyPgXact@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_Assert
	xorl	%eax, %eax
	callq	_GetRedoRecPtr
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_BufferGetLSNAtomic
	cmpq	%rbx, %rax
	jg	LBB0_7
## %bb.1:
	movl	%r14d, %edi
	callq	_BufferGetBlock
	movq	%rax, %rbx
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.2:
	movl	%r14d, %edi
	callq	_BufferGetPage
	movl	(%rax), %edx
	movslq	4(%rax), %r12
	movq	%rbx, %rsi
	callq	_memcpy
	addq	%r12, %rbx
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subl	%r12d, %edx
	jmp	LBB0_4
LBB0_3:
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_4:
	movq	%rbx, %rsi
	callq	_memcpy
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	movq	_REGBUF_FORCE_IMAGE@GOTPCREL(%rip), %rax
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_6:
	orl	(%rax), %r15d
	leaq	-44(%rbp), %rbx
	leaq	-40(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_BufferGetTag
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %ecx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movl	%r15d, %r9d
	callq	_XLogRegisterBlock
	movq	_RM_XLOG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XLOG_FPI_FOR_HINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XLogInsert
	movq	%rax, %r12
LBB0_7:
	movq	%r12, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidXLogRecPtr,8,3          ## @InvalidXLogRecPtr
	.comm	_MyPgXact,8,3                   ## @MyPgXact
	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
	.comm	_REGBUF_FORCE_IMAGE,4,2         ## @REGBUF_FORCE_IMAGE
	.comm	_REGBUF_STANDARD,4,2            ## @REGBUF_STANDARD
	.comm	_RM_XLOG_ID,4,2                 ## @RM_XLOG_ID
	.comm	_XLOG_FPI_FOR_HINT,4,2          ## @XLOG_FPI_FOR_HINT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XLogSaveBufferForHint          ; -- Begin function XLogSaveBufferForHint
	.p2align	2
_XLogSaveBufferForHint:                 ; @XLogSaveBufferForHint
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _InvalidXLogRecPtr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _MyPgXact@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MyPgXact@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_Assert
	bl	_GetRedoRecPtr
	mov	x22, x0
	mov	x0, x19
	bl	_BufferGetLSNAtomic
	cmp	x0, x22
	b.gt	LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_BufferGetBlock
	mov	x21, x0
	cbz	w20, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_BufferGetPage
	ldp	w2, w22, [x0]
                                        ; kill: def $w22 killed $w22 def $x22
	sxtw	x22, w22
	mov	x1, x21
	bl	_memcpy
	add	x1, x21, x22
Lloh6:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	sub	w2, w8, w22
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x1, x21
LBB0_4:
	bl	_memcpy
	bl	_XLogBeginInsert
Lloh12:
	adrp	x8, _REGBUF_FORCE_IMAGE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REGBUF_FORCE_IMAGE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _REGBUF_STANDARD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _REGBUF_STANDARD@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w20, #0
	csel	w9, wzr, w9, eq
	orr	w20, w9, w8
	add	x1, sp, #12
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x19
	bl	_BufferGetTag
	ldp	w3, w2, [sp, #4]
	add	x1, sp, #12
	mov	w0, #0
	mov	x5, x20
	bl	_XLogRegisterBlock
Lloh18:
	adrp	x8, _RM_XLOG_ID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RM_XLOG_ID@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _XLOG_FPI_FOR_HINT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _XLOG_FPI_FOR_HINT@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_XLogInsert
	mov	x21, x0
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidXLogRecPtr,8,3          ; @InvalidXLogRecPtr
	.comm	_MyPgXact,8,3                   ; @MyPgXact
	.comm	_BLCKSZ,4,2                     ; @BLCKSZ
	.comm	_REGBUF_FORCE_IMAGE,4,2         ; @REGBUF_FORCE_IMAGE
	.comm	_REGBUF_STANDARD,4,2            ; @REGBUF_STANDARD
	.comm	_RM_XLOG_ID,4,2                 ; @RM_XLOG_ID
	.comm	_XLOG_FPI_FOR_HINT,4,2          ; @XLOG_FPI_FOR_HINT
.subsections_via_symbols
