	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function CalculateCheckpointSegments
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CalculateCheckpointSegments:           ## @CalculateCheckpointSegments
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_max_wal_size_mb@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_wal_segment_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ConvertToXSegs
	cvtsi2sd	%rax, %xmm0
	movq	_CheckPointCompletionTarget@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	addsd	LCPI0_0(%rip), %xmm1
	divsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %eax
	cmpl	$2, %eax
	movl	$1, %ecx
	cmovgel	%eax, %ecx
	movq	_CheckPointSegments@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max_wal_size_mb,4,2            ## @max_wal_size_mb
	.comm	_wal_segment_size,4,2           ## @wal_segment_size
	.comm	_CheckPointCompletionTarget,8,3 ## @CheckPointCompletionTarget
	.comm	_CheckPointSegments,4,2         ## @CheckPointSegments
	.no_dead_strip	_CalculateCheckpointSegments
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CalculateCheckpointSegments
_CalculateCheckpointSegments:           ; @CalculateCheckpointSegments
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _max_wal_size_mb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _max_wal_size_mb@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _wal_segment_size@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wal_segment_size@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ConvertToXSegs
	scvtf	d0, x0
Lloh6:
	adrp	x8, _CheckPointCompletionTarget@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CheckPointCompletionTarget@GOTPAGEOFF]
Lloh8:
	ldr	d1, [x8]
	fmov	d2, #1.00000000
	fadd	d1, d1, d2
	fdiv	d0, d0, d1
	fcvtzs	w8, d0
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
Lloh9:
	adrp	x9, _CheckPointSegments@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CheckPointSegments@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_max_wal_size_mb,4,2            ; @max_wal_size_mb
	.comm	_wal_segment_size,4,2           ; @wal_segment_size
	.comm	_CheckPointCompletionTarget,8,3 ; @CheckPointCompletionTarget
	.comm	_CheckPointSegments,4,2         ; @CheckPointSegments
	.no_dead_strip	_CalculateCheckpointSegments
.subsections_via_symbols
