	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XLogRecordPageWithFreeSpace    ## -- Begin function XLogRecordPageWithFreeSpace
	.p2align	4, 0x90
_XLogRecordPageWithFreeSpace:           ## @XLogRecordPageWithFreeSpace
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, %r15d
	movl	%edx, %edi
	callq	_fsm_space_avail_to_cat
	movl	%eax, %r14d
	leaq	-28(%rbp), %rsi
	movl	%ebx, %edi
	callq	_fsm_get_location
	movl	%eax, %edi
	callq	_fsm_logical_to_physical
	movq	_FSM_FORKNUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_RBM_ZERO_ON_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_XLogReadBufferExtended
	movl	%eax, %r15d
	movq	_BUFFER_LOCK_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_LockBuffer
	movl	%r15d, %edi
	callq	_BufferGetPage
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_PageIsNew
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_PageInit
LBB0_2:
	movl	-28(%rbp), %esi
	movl	%ebx, %edi
	movl	%r14d, %edx
	callq	_fsm_set_avail
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_MarkBufferDirtyHint
LBB0_4:
	movl	%r15d, %edi
	callq	_UnlockReleaseBuffer
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FSM_FORKNUM,4,2                ## @FSM_FORKNUM
	.comm	_RBM_ZERO_ON_ERROR,4,2          ## @RBM_ZERO_ON_ERROR
	.comm	_BUFFER_LOCK_EXCLUSIVE,4,2      ## @BUFFER_LOCK_EXCLUSIVE
	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XLogRecordPageWithFreeSpace    ; -- Begin function XLogRecordPageWithFreeSpace
	.p2align	2
_XLogRecordPageWithFreeSpace:           ; @XLogRecordPageWithFreeSpace
	.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	x21, x0
	mov	x0, x2
	bl	_fsm_space_avail_to_cat
	mov	x19, x0
	add	x1, sp, #12
	mov	x0, x20
	bl	_fsm_get_location
	bl	_fsm_logical_to_physical
	mov	x2, x0
Lloh0:
	adrp	x8, _FSM_FORKNUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FSM_FORKNUM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _RBM_ZERO_ON_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RBM_ZERO_ON_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_XLogReadBufferExtended
	mov	x20, x0
Lloh6:
	adrp	x8, _BUFFER_LOCK_EXCLUSIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BUFFER_LOCK_EXCLUSIVE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_LockBuffer
	mov	x0, x20
	bl	_BufferGetPage
	mov	x21, x0
	bl	_PageIsNew
	cbz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_PageInit
LBB0_2:
	ldr	w1, [sp, #12]
	mov	x0, x21
	mov	x2, x19
	bl	_fsm_set_avail
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	w1, #0
	bl	_MarkBufferDirtyHint
LBB0_4:
	mov	x0, x20
	bl	_UnlockReleaseBuffer
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FSM_FORKNUM,4,2                ; @FSM_FORKNUM
	.comm	_RBM_ZERO_ON_ERROR,4,2          ; @RBM_ZERO_ON_ERROR
	.comm	_BUFFER_LOCK_EXCLUSIVE,4,2      ; @BUFFER_LOCK_EXCLUSIVE
	.comm	_BLCKSZ,4,2                     ; @BLCKSZ
.subsections_via_symbols
