	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function IsCheckpointOnSchedule
LCPI0_0:
	.quad	0x412e848000000000              ## double 1.0E+6
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_IsCheckpointOnSchedule:                ## @IsCheckpointOnSchedule
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movsd	%xmm0, -16(%rbp)                ## 8-byte Spill
	movq	_ckpt_active@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Assert
	movsd	-16(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movq	_CheckPointCompletionTarget@GOTPCREL(%rip), %rax
	mulsd	(%rax), %xmm1
	movq	_ckpt_cached_elapsed@GOTPCREL(%rip), %rbx
	movsd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	xorl	%eax, %eax
	ucomisd	%xmm1, %xmm0
	ja	LBB0_7
## %bb.1:
	movsd	%xmm1, -16(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	callq	_RecoveryInProgress
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	callq	_GetXLogReplayRecPtr
	jmp	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	callq	_GetInsertRecPtr
LBB0_4:
	movq	_ckpt_start_recptr@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	movq	_wal_segment_size@GOTPCREL(%rip), %rax
	divsd	(%rax), %xmm0
	movq	_CheckPointSegments@GOTPCREL(%rip), %rax
	divsd	(%rax), %xmm0
	movsd	-16(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	ja	LBB0_6
## %bb.5:
	leaq	-32(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	movq	-24(%rbp), %rax
	movq	_ckpt_start_time@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rax, %xmm1
	movsd	-32(%rbp), %xmm0                ## xmm0 = mem[0],zero
	divsd	LCPI0_0(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movq	_CheckPointTimeout@GOTPCREL(%rip), %rax
	divsd	(%rax), %xmm0
	movl	$1, %eax
	ucomisd	-16(%rbp), %xmm0                ## 8-byte Folded Reload
	jbe	LBB0_7
LBB0_6:
	movsd	%xmm0, (%rbx)
	xorl	%eax, %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ckpt_active,4,2                ## @ckpt_active
	.comm	_CheckPointCompletionTarget,8,3 ## @CheckPointCompletionTarget
	.comm	_ckpt_cached_elapsed,8,3        ## @ckpt_cached_elapsed
	.comm	_ckpt_start_recptr,8,3          ## @ckpt_start_recptr
	.comm	_wal_segment_size,8,3           ## @wal_segment_size
	.comm	_CheckPointSegments,8,3         ## @CheckPointSegments
	.comm	_ckpt_start_time,8,3            ## @ckpt_start_time
	.comm	_CheckPointTimeout,8,3          ## @CheckPointTimeout
	.no_dead_strip	_IsCheckpointOnSchedule
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IsCheckpointOnSchedule
_IsCheckpointOnSchedule:                ; @IsCheckpointOnSchedule
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	fmov	d8, d0
Lloh0:
	adrp	x8, _ckpt_active@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ckpt_active@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_Assert
Lloh3:
	adrp	x8, _CheckPointCompletionTarget@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CheckPointCompletionTarget@GOTPAGEOFF]
Lloh5:
	ldr	d0, [x8]
	fmul	d8, d0, d8
Lloh6:
	adrp	x19, _ckpt_cached_elapsed@GOTPAGE
Lloh7:
	ldr	x19, [x19, _ckpt_cached_elapsed@GOTPAGEOFF]
	ldr	d0, [x19]
	fcmp	d8, d0
	b.pl	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_9
LBB0_2:
	bl	_RecoveryInProgress
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, #0
	bl	_GetXLogReplayRecPtr
	b	LBB0_5
LBB0_4:
	bl	_GetInsertRecPtr
LBB0_5:
Lloh8:
	adrp	x8, _ckpt_start_recptr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ckpt_start_recptr@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	sub	x8, x0, x8
	scvtf	d0, x8
Lloh11:
	adrp	x8, _wal_segment_size@GOTPAGE
Lloh12:
	ldr	x8, [x8, _wal_segment_size@GOTPAGEOFF]
Lloh13:
	ldr	d1, [x8]
	fdiv	d0, d0, d1
Lloh14:
	adrp	x8, _CheckPointSegments@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CheckPointSegments@GOTPAGEOFF]
Lloh16:
	ldr	d1, [x8]
	fdiv	d0, d0, d1
	fcmp	d8, d0
	b.mi	LBB0_7
; %bb.6:
	mov	x0, sp
	mov	x1, #0
	bl	_gettimeofday
	ldr	x8, [sp, #8]
Lloh17:
	adrp	x9, _ckpt_start_time@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ckpt_start_time@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	sub	x8, x8, x9
	scvtf	d0, x8
	ldr	d1, [sp]
	mov	x8, #145685290680320
	movk	x8, #16686, lsl #48
	fmov	d2, x8
	fdiv	d1, d1, d2
	fadd	d0, d1, d0
Lloh20:
	adrp	x8, _CheckPointTimeout@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CheckPointTimeout@GOTPAGEOFF]
Lloh22:
	ldr	d1, [x8]
	fdiv	d0, d0, d1
	fcmp	d8, d0
	b.pl	LBB0_8
LBB0_7:
	mov	w0, #0
	str	d0, [x19]
	b	LBB0_9
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ckpt_active,4,2                ; @ckpt_active
	.comm	_CheckPointCompletionTarget,8,3 ; @CheckPointCompletionTarget
	.comm	_ckpt_cached_elapsed,8,3        ; @ckpt_cached_elapsed
	.comm	_ckpt_start_recptr,8,3          ; @ckpt_start_recptr
	.comm	_wal_segment_size,8,3           ; @wal_segment_size
	.comm	_CheckPointSegments,8,3         ; @CheckPointSegments
	.comm	_ckpt_start_time,8,3            ; @ckpt_start_time
	.comm	_CheckPointTimeout,8,3          ; @CheckPointTimeout
	.no_dead_strip	_IsCheckpointOnSchedule
.subsections_via_symbols
