	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_log_newpage                    ## -- Begin function log_newpage
	.p2align	4, 0x90
_log_newpage:                           ## @log_newpage
	.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	%r8d, %ebx
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	_REGBUF_FORCE_IMAGE@GOTPCREL(%rip), %rax
	testl	%r8d, %r8d
	je	LBB0_2
## %bb.1:
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_2:
	orl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	xorl	%edi, %edi
	movq	%r13, %rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	callq	_XLogRegisterBlock
	movq	_RM_XLOG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XLOG_FPI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XLogInsert
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_PageIsNew
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_PageSetLSN
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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,4,2                   ## @XLOG_FPI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_log_newpage                    ; -- Begin function log_newpage
	.p2align	2
_log_newpage:                           ; @log_newpage
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _REGBUF_FORCE_IMAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REGBUF_FORCE_IMAGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _REGBUF_STANDARD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REGBUF_STANDARD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w4, #0
	csel	w9, wzr, w9, eq
	orr	w23, w9, w8
	bl	_XLogBeginInsert
	mov	w0, #0
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	mov	x5, x23
	bl	_XLogRegisterBlock
Lloh6:
	adrp	x8, _RM_XLOG_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RM_XLOG_ID@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _XLOG_FPI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XLOG_FPI@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_XLogInsert
	mov	x20, x0
	mov	x0, x19
	bl	_PageIsNew
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_PageSetLSN
LBB0_2:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.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,4,2                   ; @XLOG_FPI
.subsections_via_symbols
