	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_log_newpage_range              ## -- Begin function log_newpage_range
	.p2align	4, 0x90
_log_newpage_range:                     ## @log_newpage_range
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_XLR_MAX_BLOCK_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	decl	%edi
	xorl	%esi, %esi
	callq	_XLogEnsureRecordSpace
	cmpq	%r14, %r12
	jge	LBB0_17
## %bb.1:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_RM_XLOG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XLOG_FPI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XLogInsert
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	cmpq	%r14, %r12
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	jge	LBB0_17
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
	movq	%rsp, %rbx
	movq	_XLR_MAX_BLOCK_ID@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	cmpl	$0, (%r13)
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movl	%ebx, %edi
	callq	_UnlockReleaseBuffer
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%r12
	movq	_XLR_MAX_BLOCK_ID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jge	LBB0_10
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r14, %r12
	jge	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_ReadBuffer
	movl	%eax, %ebx
	movq	_BUFFER_LOCK_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_LockBuffer
	movl	%ebx, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_PageIsNew
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movslq	%r13d, %rax
	incl	%r13d
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, (%rcx,%rax,4)
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	testl	%r13d, %r13d
	jle	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %r15
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14,%rbx,4), %r13d
	movl	(%r15), %edx
	movq	_REGBUF_FORCE_IMAGE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_XLogRegisterBuffer
	movl	%r13d, %edi
	callq	_MarkBufferDirty
	incq	%rbx
	cmpq	%rbx, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_RM_XLOG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XLOG_FPI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XLogInsert
	movl	%eax, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14,%r15,4), %ebx
	movl	%ebx, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	_PageSetLSN
	movl	%ebx, %edi
	callq	_UnlockReleaseBuffer
	incq	%r15
	cmpq	%r15, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_15
	jmp	LBB0_16
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_XLR_MAX_BLOCK_ID,4,2           ## @XLR_MAX_BLOCK_ID
	.comm	_BUFFER_LOCK_EXCLUSIVE,4,2      ## @BUFFER_LOCK_EXCLUSIVE
	.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_range              ; -- Begin function log_newpage_range
	.p2align	2
_log_newpage_range:                     ; @log_newpage_range
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x24, _XLR_MAX_BLOCK_ID@GOTPAGE
Lloh4:
	ldr	x24, [x24, _XLR_MAX_BLOCK_ID@GOTPAGEOFF]
	ldr	w8, [x24]
	sub	w0, w8, #1
	mov	w1, #0
	bl	_XLogEnsureRecordSpace
	cmp	x20, x19
	b.ge	LBB0_14
; %bb.1:
Lloh5:
	adrp	x25, _REGBUF_FORCE_IMAGE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _REGBUF_FORCE_IMAGE@GOTPAGEOFF]
Lloh7:
	adrp	x26, _REGBUF_STANDARD@GOTPAGE
Lloh8:
	ldr	x26, [x26, _REGBUF_STANDARD@GOTPAGEOFF]
Lloh9:
	adrp	x27, _BUFFER_LOCK_EXCLUSIVE@GOTPAGE
Lloh10:
	ldr	x27, [x27, _BUFFER_LOCK_EXCLUSIVE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh11:
	adrp	x8, _RM_XLOG_ID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RM_XLOG_ID@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _XLOG_FPI@GOTPAGE
Lloh15:
	ldr	x8, [x8, _XLOG_FPI@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_XLogInsert
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_END_CRIT_SECTION
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	mov	sp, x8
	cmp	x20, x19
Lloh17:
	adrp	x27, _BUFFER_LOCK_EXCLUSIVE@GOTPAGE
Lloh18:
	ldr	x27, [x27, _BUFFER_LOCK_EXCLUSIVE@GOTPAGEOFF]
	b.ge	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
	mov	x22, sp
	ldr	w8, [x24]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh19:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh20:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x28, x9, x8
	mov	sp, x28
	bl	_CHECK_FOR_INTERRUPTS
	ldr	w8, [x24]
	cmp	w8, #1
	ccmp	x20, x19, #0, ge
	stur	x22, [x29, #-96]                ; 8-byte Folded Spill
	mov	w23, #0
	b.lt	LBB0_12
LBB0_5:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_XLogBeginInsert
	bl	_START_CRIT_SECTION
	cmp	w23, #0
	b.le	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, #0
	mov	w27, w23
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w23, [x28, x22, lsl #2]
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w2, w9, w8
	mov	x0, x22
	mov	x1, x23
	bl	_XLogRegisterBuffer
	mov	x0, x23
	bl	_MarkBufferDirty
	add	x22, x22, #1
	cmp	x27, x22
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh21:
	adrp	x8, _RM_XLOG_ID@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RM_XLOG_ID@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _XLOG_FPI@GOTPAGE
Lloh25:
	ldr	x8, [x8, _XLOG_FPI@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_XLogInsert
	mov	x22, x0
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w23, [x28], #4
	mov	x0, x23
	bl	_BufferGetPage
	mov	x1, x22
	bl	_PageSetLSN
	mov	x0, x23
	bl	_UnlockReleaseBuffer
	subs	x27, x27, #1
	b.ne	LBB0_9
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x22
	bl	_UnlockReleaseBuffer
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x20, x20, #1
	ldr	w8, [x24]
	cmp	w23, w8
	ccmp	x20, x19, #0, lt
	b.ge	LBB0_5
LBB0_12:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	x1, x20
	bl	_ReadBuffer
	mov	x22, x0
	ldr	w1, [x27]
	bl	_LockBuffer
	mov	x0, x22
	bl	_BufferGetPage
	bl	_PageIsNew
	cbnz	w0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	str	w22, [x28, w23, sxtw #2]
	add	w23, w23, #1
	b	LBB0_11
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_XLR_MAX_BLOCK_ID,4,2           ; @XLR_MAX_BLOCK_ID
	.comm	_BUFFER_LOCK_EXCLUSIVE,4,2      ; @BUFFER_LOCK_EXCLUSIVE
	.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
