	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function PreallocXlogFiles
LCPI0_0:
	.quad	0x3fe8000000000000              ## double 0.75
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_PreallocXlogFiles:                     ## @PreallocXlogFiles
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_wal_segment_size@GOTPCREL(%rip), %r14
	movsd	(%r14), %xmm0                   ## xmm0 = mem[0],zero
	callq	_XLByteToPrevSeg
	decq	%rbx
	movsd	(%r14), %xmm0                   ## xmm0 = mem[0],zero
	movq	%rbx, %rdi
	callq	_XLogSegmentOffset
	movsd	(%r14), %xmm0                   ## xmm0 = mem[0],zero
	mulsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %rcx
	cmpq	%rcx, %rax
	jl	LBB0_3
## %bb.1:
	movl	$1, -20(%rbp)
	leaq	-20(%rbp), %rsi
	movl	$1, %edx
	callq	_XLogFileInit
	movl	%eax, %edi
	callq	_close
	cmpl	$0, -20(%rbp)
	jne	LBB0_3
## %bb.2:
	movq	_CheckpointStats@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wal_segment_size,8,3           ## @wal_segment_size
	.comm	_CheckpointStats,4,2            ## @CheckpointStats
	.no_dead_strip	_PreallocXlogFiles
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PreallocXlogFiles
_PreallocXlogFiles:                     ; @PreallocXlogFiles
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _wal_segment_size@GOTPAGE
Lloh1:
	ldr	x20, [x20, _wal_segment_size@GOTPAGEOFF]
	ldr	d0, [x20]
	bl	_XLByteToPrevSeg
	sub	x0, x19, #1
	ldr	d0, [x20]
	bl	_XLogSegmentOffset
	ldr	d0, [x20]
	fmov	d1, #0.75000000
	fmul	d0, d0, d1
	fcvtzs	x8, d0
	cmp	x0, x8
	b.lt	LBB0_3
; %bb.1:
	mov	w8, #1
	str	w8, [sp, #12]
	add	x1, sp, #12
	mov	w2, #1
	bl	_XLogFileInit
	bl	_close
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _CheckpointStats@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CheckpointStats@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_wal_segment_size,8,3           ; @wal_segment_size
	.comm	_CheckpointStats,4,2            ; @CheckpointStats
	.no_dead_strip	_PreallocXlogFiles
.subsections_via_symbols
