	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function LogCheckpointEnd
LCPI0_0:
	.quad	0x4059000000000000              ## double 100
LCPI0_1:
	.quad	0x3f50000000000000              ## double 9.765625E-4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_LogCheckpointEnd:                      ## @LogCheckpointEnd
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r13d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_GetCurrentTimestamp
	movq	_CheckpointStats@GOTPCREL(%rip), %rbx
	movl	%eax, 32(%rbx)
	movl	44(%rbx), %esi
	movl	48(%rbx), %edi
	leaq	-72(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_TimestampDifference
	movl	40(%rbx), %esi
	movl	44(%rbx), %edi
	leaq	-64(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_TimestampDifference
	imulq	$1000, -72(%rbp), %rax          ## imm = 0x3E8
	movslq	-48(%rbp), %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$32, %rcx
	sarl	$6, %ecx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	movq	_BgWriterStats@GOTPCREL(%rip), %rdx
	addq	(%rdx), %rax
	addq	%rcx, %rax
	movq	%rax, (%rdx)
	imulq	$1000, -64(%rbp), %rax          ## imm = 0x3E8
	movslq	-44(%rbp), %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rsi
	shrq	$63, %rsi
	shrq	$32, %rcx
	sarl	$6, %ecx
	addl	%esi, %ecx
	movslq	%ecx, %rcx
	addq	8(%rdx), %rax
	addq	%rcx, %rax
	movq	%rax, 8(%rdx)
	movq	_log_checkpoints@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movl	32(%rbx), %esi
	movl	36(%rbx), %edi
	leaq	-104(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	callq	_TimestampDifference
	movslq	(%rbx), %rax
	imulq	$1125899907, %rax, %rcx         ## imm = 0x431BDE83
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$50, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	imull	$-1000000, %ecx, %r12d          ## imm = 0xFFF0BDC0
	addl	%eax, %r12d
	movl	4(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.2:
	movl	8(%rbx), %eax
	cltd
	idivl	%ecx
	movl	%eax, %r15d
LBB0_3:
	movslq	%r15d, %r10
	imulq	$1125899907, %r10, %rax         ## imm = 0x431BDE83
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	sarl	$18, %eax
	addl	%ecx, %eax
	movslq	%eax, %r15
	imull	$-1000000, %r15d, %eax          ## imm = 0xFFF0BDC0
	addl	%eax, %r10d
	movq	_LOG@GOTPCREL(%rip), %rax
	testl	%r13d, %r13d
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rcx, %rdx
	movq	24(%rbx), %rcx
	cvtsi2sd	%rcx, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	movl	(%rax), %edi
	movq	_NBuffers@GOTPCREL(%rip), %rax
	divsd	(%rax), %xmm0
	movl	20(%rbx), %r8d
	movl	12(%rbx), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %r9d
	movslq	-48(%rbp), %rax
	imulq	$274877907, %rax, %r13          ## imm = 0x10624DD3
	movq	%r13, %rax
	shrq	$63, %rax
	shrq	$32, %r13
	sarl	$6, %r13d
	addl	%eax, %r13d
	movslq	-44(%rbp), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rbx
	shrq	$63, %rbx
	shrq	$32, %rax
	sarl	$6, %eax
	addl	%ebx, %eax
	movslq	-52(%rbp), %rbx
	imulq	$274877907, %rbx, %rbx          ## imm = 0x10624DD3
	movq	%rbx, %rsi
	shrq	$63, %rsi
	shrq	$32, %rbx
	sarl	$6, %ebx
	addl	%esi, %ebx
	movslq	%r12d, %rsi
	imulq	$274877907, %rsi, %r12          ## imm = 0x10624DD3
	movq	%r12, %rsi
	shrq	$63, %rsi
	shrq	$32, %r12
	sarl	$6, %r12d
	addl	%esi, %r12d
	movslq	%r10d, %rsi
	imulq	$274877907, %rsi, %r10          ## imm = 0x10624DD3
	movq	%r10, %rsi
	shrq	$63, %rsi
	shrq	$32, %r10
	sarl	$6, %r10d
	addl	%esi, %r10d
	movq	_PrevCheckPointDistance@GOTPCREL(%rip), %rsi
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	movsd	(%rsi), %xmm2                   ## xmm2 = mem[0],zero
	mulsd	%xmm1, %xmm2
	movq	_CheckPointDistanceEstimate@GOTPCREL(%rip), %rsi
	mulsd	(%rsi), %xmm1
	cvttsd2si	%xmm2, %r14d
	cvttsd2si	%xmm1, %r11d
	leaq	L_.str(%rip), %rsi
	pushq	%r11
	pushq	%r14
	pushq	%r10
	pushq	%r15
	pushq	%r12
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	%rbx
	pushq	-104(%rbp)
	pushq	%rax
	pushq	-64(%rbp)
	pushq	%r13
	pushq	-72(%rbp)
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	callq	_elog
	addq	$112, %rsp
LBB0_4:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CheckpointStats,56,3           ## @CheckpointStats
	.comm	_BgWriterStats,16,3             ## @BgWriterStats
	.comm	_log_checkpoints,4,2            ## @log_checkpoints
	.comm	_LOG,4,2                        ## @LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s complete: wrote %d buffers (%.1f%%); %d WAL file(s) added, %d removed, %d recycled; write=%ld.%03d s, sync=%ld.%03d s, total=%ld.%03d s; sync files=%d, longest=%ld.%03d s, average=%ld.%03d s; distance=%d kB, estimate=%d kB"

L_.str.1:                               ## @.str.1
	.asciz	"restartpoint"

L_.str.2:                               ## @.str.2
	.asciz	"checkpoint"

	.comm	_NBuffers,8,3                   ## @NBuffers
	.comm	_PrevCheckPointDistance,8,3     ## @PrevCheckPointDistance
	.comm	_CheckPointDistanceEstimate,8,3 ## @CheckPointDistanceEstimate
	.no_dead_strip	_LogCheckpointEnd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LogCheckpointEnd
_LogCheckpointEnd:                      ; @LogCheckpointEnd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x0
	bl	_GetCurrentTimestamp
Lloh0:
	adrp	x20, _CheckpointStats@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CheckpointStats@GOTPAGEOFF]
	str	w0, [x20, #32]
	ldp	w1, w0, [x20, #44]
	sub	x2, x29, #40
	sub	x3, x29, #60
	bl	_TimestampDifference
	ldp	w1, w0, [x20, #40]
	sub	x2, x29, #48
	sub	x3, x29, #64
	bl	_TimestampDifference
	ldur	x8, [x29, #-40]
	mov	w9, #1000
	ldursw	x10, [x29, #-60]
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	mul	x10, x10, x11
	lsr	x12, x10, #32
	lsr	x10, x10, #63
Lloh2:
	adrp	x13, _BgWriterStats@GOTPAGE
Lloh3:
	ldr	x13, [x13, _BgWriterStats@GOTPAGEOFF]
	add	w10, w10, w12, asr #6
	ldp	x12, x14, [x13]
	madd	x8, x8, x9, x12
	add	x8, x8, w10, sxtw
	ldursw	x10, [x29, #-64]
	mul	x10, x10, x11
	lsr	x11, x10, #32
	lsr	x10, x10, #63
	add	w10, w10, w11, asr #6
	ldur	x11, [x29, #-48]
	madd	x9, x11, x9, x14
	add	x9, x9, w10, sxtw
	stp	x8, x9, [x13]
Lloh4:
	adrp	x8, _log_checkpoints@GOTPAGE
Lloh5:
	ldr	x8, [x8, _log_checkpoints@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.1:
	mov	w21, #48576
	movk	w21, #65520, lsl #16
	mov	w22, #16960
	movk	w22, #15, lsl #16
	ldp	w1, w0, [x20, #32]
	sub	x2, x29, #56
	sub	x3, x29, #68
	bl	_TimestampDifference
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	ldp	w10, w8, [x20]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	mul	x9, x10, x9
	lsr	x11, x9, #32
	lsr	x9, x9, #63
	add	w11, w9, w11, asr #18
	sxtw	x9, w11
	madd	w11, w11, w21, w10
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.2:
	ldr	w10, [x20, #8]
	sdiv	w12, w10, w8
	b	LBB0_4
LBB0_3:
	mov	w12, #0
LBB0_4:
	sdiv	w13, w12, w22
	sxtw	x10, w13
	madd	w12, w13, w21, w12
Lloh7:
	adrp	x13, _LOG@GOTPAGE
Lloh8:
	ldr	x13, [x13, _LOG@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x13]
Lloh10:
	adrp	x13, l_.str.1@PAGE
Lloh11:
	add	x13, x13, l_.str.1@PAGEOFF
Lloh12:
	adrp	x14, l_.str.2@PAGE
Lloh13:
	add	x14, x14, l_.str.2@PAGEOFF
	cmp	w19, #0
	csel	x2, x14, x13, eq
	ldr	x3, [x20, #24]
	scvtf	d0, x3
	mov	x13, #4636737291354636288
	fmov	d1, x13
	fmul	d0, d0, d1
Lloh14:
	adrp	x13, _NBuffers@GOTPAGE
Lloh15:
	ldr	x13, [x13, _NBuffers@GOTPAGEOFF]
Lloh16:
	ldr	d1, [x13]
	fdiv	d0, d0, d1
	ldp	w5, w4, [x20, #16]
	ldr	w6, [x20, #12]
	ldpsw	x16, x13, [x29, #-64]
	mov	w14, #19923
	movk	w14, #4194, lsl #16
	mul	x13, x13, x14
	lsr	x15, x13, #32
	lsr	x13, x13, #63
	add	w13, w13, w15, asr #6
	ldp	x15, x7, [x29, #-48]
	mul	x16, x16, x14
	lsr	x17, x16, #32
	lsr	x16, x16, #63
	add	w16, w16, w17, asr #6
	ldur	x17, [x29, #-56]
	ldursw	x1, [x29, #-68]
	mul	x1, x1, x14
	lsr	x19, x1, #32
	lsr	x1, x1, #63
	add	w19, w1, w19, asr #6
	smull	x11, w11, w14
	lsr	x1, x11, #32
	lsr	x11, x11, #63
	add	w11, w11, w1, asr #6
	smull	x12, w12, w14
	lsr	x14, x12, #32
	lsr	x12, x12, #63
	add	w12, w12, w14, asr #6
Lloh17:
	adrp	x14, _PrevCheckPointDistance@GOTPAGE
Lloh18:
	ldr	x14, [x14, _PrevCheckPointDistance@GOTPAGEOFF]
Lloh19:
	ldr	d1, [x14]
	mov	x14, #4562146422526312448
	fmov	d2, x14
	fmul	d1, d1, d2
	fcvtzs	w14, d1
Lloh20:
	adrp	x1, _CheckPointDistanceEstimate@GOTPAGE
Lloh21:
	ldr	x1, [x1, _CheckPointDistanceEstimate@GOTPAGEOFF]
Lloh22:
	ldr	d1, [x1]
	fmul	d1, d1, d2
	fcvtzs	w1, d1
	stp	w14, w1, [sp, #68]
	str	x10, [sp, #56]
	str	x9, [sp, #40]
	str	x17, [sp, #24]
	str	x15, [sp, #8]
	str	w11, [sp, #48]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	stp	w19, w8, [sp, #32]
	str	w16, [sp, #16]
	str	w13, [sp]
	str	w12, [sp, #64]
	bl	_elog
LBB0_5:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CheckpointStats,56,3           ; @CheckpointStats
	.comm	_BgWriterStats,16,3             ; @BgWriterStats
	.comm	_log_checkpoints,4,2            ; @log_checkpoints
	.comm	_LOG,4,2                        ; @LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s complete: wrote %d buffers (%.1f%%); %d WAL file(s) added, %d removed, %d recycled; write=%ld.%03d s, sync=%ld.%03d s, total=%ld.%03d s; sync files=%d, longest=%ld.%03d s, average=%ld.%03d s; distance=%d kB, estimate=%d kB"

l_.str.1:                               ; @.str.1
	.asciz	"restartpoint"

l_.str.2:                               ; @.str.2
	.asciz	"checkpoint"

	.comm	_NBuffers,8,3                   ; @NBuffers
	.comm	_PrevCheckPointDistance,8,3     ; @PrevCheckPointDistance
	.comm	_CheckPointDistanceEstimate,8,3 ; @CheckPointDistanceEstimate
	.no_dead_strip	_LogCheckpointEnd
.subsections_via_symbols
