	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function CL_DemoCompleted
LCPI0_0:
	.quad	0x408f400000000000              ## double 1000
LCPI0_1:
	.quad	0xbff0000000000000              ## double -1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CL_DemoCompleted
	.p2align	4, 0x90
_CL_DemoCompleted:                      ## @CL_DemoCompleted
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_STRING_CHARS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_cl_timedemo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.2:
	xorl	%eax, %eax
	callq	_Sys_Milliseconds
	movq	_clc@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	jle	LBB0_12
## %bb.3:
	movsd	8(%rcx), %xmm2                  ## xmm2 = mem[0],zero
	movsd	%xmm2, -64(%rbp)                ## 8-byte Spill
	cvtsi2sd	%eax, %xmm0
	movsd	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero
	movapd	%xmm0, %xmm1
	divsd	%xmm3, %xmm1
	cvttsd2si	%xmm1, %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	mulsd	%xmm2, %xmm3
	xorps	%xmm1, %xmm1
	cvtsi2ss	%eax, %xmm1
	divsd	%xmm0, %xmm3
	movsd	%xmm3, -72(%rbp)                ## 8-byte Spill
	movq	_clc@GOTPCREL(%rip), %rax
	movl	28(%rax), %r12d
	xorps	%xmm0, %xmm0
	cvtsd2ss	%xmm2, %xmm0
	divss	%xmm0, %xmm1
	cvttss2si	%xmm1, %r13d
	movq	_clc@GOTPCREL(%rip), %rax
	movl	24(%rax), %r15d
	xorl	%eax, %eax
	callq	_CL_DemoFrameDurationSDev
                                        ## kill: def $eax killed $eax def $rax
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movsd	-64(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movsd	-72(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movl	%r12d, %r8d
	movq	_clc@GOTPCREL(%rip), %r12
	movl	%r13d, %r9d
	pushq	%rax
	pushq	%r15
	callq	_Com_sprintf
	addq	$16, %rsp
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_Com_Printf
	movq	_cl_timedemoLog@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_strlen
	testq	%rax, %rax
	jle	LBB0_12
## %bb.5:
	movsd	8(%r12), %xmm0                  ## xmm0 = mem[0],zero
	addsd	LCPI0_1(%rip), %xmm0
	movq	_MAX_TIMEDEMO_DURATIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	ucomisd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %r12d
	cmoval	%eax, %r12d
	movq	%r15, %rdi
	callq	_FS_FOpenFileWrite
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r13
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	movq	%r14, %rdx
	callq	_FS_Printf
	testl	%r12d, %r12d
	movq	_clc@GOTPCREL(%rip), %r15
	jle	LBB0_10
## %bb.8:
	movl	%r12d, %r12d
	xorl	%ebx, %ebx
	leaq	L_.str.3(%rip), %r14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_FS_Printf
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_9
LBB0_10:
	movq	%r13, %rdi
	callq	_FS_FCloseFile
	leaq	L_.str.4(%rip), %rdi
	movq	_cl_timedemoLog@GOTPCREL(%rip), %rbx
	jmp	LBB0_11
LBB0_6:
	leaq	L_.str.5(%rip), %rdi
LBB0_11:
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	callq	_Com_Printf
LBB0_12:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CL_Disconnect
	xorl	%eax, %eax
	callq	_CL_NextDemo
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_STRING_CHARS,4,2           ## @MAX_STRING_CHARS
	.comm	_cl_timedemo,8,3                ## @cl_timedemo
	.comm	_clc,32,3                       ## @clc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%i frames %3.1f seconds %3.1f fps %d.0/%.1f/%d.0/%.1f ms\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_cl_timedemoLog,8,3             ## @cl_timedemoLog
	.comm	_MAX_TIMEDEMO_DURATIONS,4,2     ## @MAX_TIMEDEMO_DURATIONS
L_.str.2:                               ## @.str.2
	.asciz	"# %s"

L_.str.3:                               ## @.str.3
	.asciz	"%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s written\n"

L_.str.5:                               ## @.str.5
	.asciz	"Couldn't open %s for writing\n"

	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_DemoCompleted               ; -- Begin function CL_DemoCompleted
	.p2align	2
_CL_DemoCompleted:                      ; @CL_DemoCompleted
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -88
	.cfi_offset b9, -96
	sub	sp, sp, #16
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	x8, _MAX_STRING_CHARS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_STRING_CHARS@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
Lloh8:
	adrp	x8, _cl_timedemo@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cl_timedemo@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.2:
	bl	_Sys_Milliseconds
Lloh11:
	adrp	x25, _clc@GOTPAGE
Lloh12:
	ldr	x25, [x25, _clc@GOTPAGEOFF]
	ldr	w8, [x25]
	sub	w8, w0, w8
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.3:
	ldr	d8, [x25, #8]
	scvtf	d0, w8
	mov	x9, #70368744177664
	movk	x9, #16527, lsl #48
	fmov	d1, x9
	fdiv	d2, d0, d1
	fcvtzs	w21, d2
	fmul	d1, d8, d1
	fdiv	d9, d1, d0
	scvtf	s0, w8
	fcvt	s1, d8
	fdiv	s0, s0, s1
	fcvtzs	w22, s0
	ldp	w24, w23, [x25, #24]
	bl	_CL_DemoFrameDurationSDev
	mov	x7, x0
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	fmov	d0, d8
	mov	x3, x21
	fmov	d1, d9
	mov	x4, x23
	mov	x5, x22
	mov	x6, x24
	bl	_Com_sprintf
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_Com_Printf
Lloh17:
	adrp	x21, _cl_timedemoLog@GOTPAGE
Lloh18:
	ldr	x21, [x21, _cl_timedemoLog@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_12
; %bb.4:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_strlen
	cmp	x0, #1
	b.lt	LBB0_12
; %bb.5:
	ldr	d0, [x25, #8]
	fmov	d1, #-1.00000000
	fadd	d0, d0, d1
Lloh19:
	adrp	x8, _MAX_TIMEDEMO_DURATIONS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MAX_TIMEDEMO_DURATIONS@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	scvtf	d1, w8
	fcvtzs	w9, d0
	fcmp	d0, d1
	csel	w23, w8, w9, gt
	mov	x0, x20
	bl	_FS_FOpenFileWrite
	cbz	x0, LBB0_10
; %bb.6:
	mov	x20, x0
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_FS_Printf
	cmp	w23, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x22, #0
	lsl	x23, x23, #3
Lloh24:
	adrp	x19, l_.str.3@PAGE
Lloh25:
	add	x19, x19, l_.str.3@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25, #16]
	ldr	x2, [x8, x22]
	mov	x0, x20
	mov	x1, x19
	bl	_FS_Printf
	add	x22, x22, #8
	cmp	x23, x22
	b.ne	LBB0_8
LBB0_9:
	mov	x0, x20
	bl	_FS_FCloseFile
Lloh26:
	adrp	x0, l_.str.4@PAGE
Lloh27:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh28:
	adrp	x0, l_.str.5@PAGE
Lloh29:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_11:
	ldr	x8, [x21]
	ldr	x1, [x8]
	bl	_Com_Printf
LBB0_12:
Lloh30:
	adrp	x8, _qtrue@GOTPAGE
Lloh31:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_CL_Disconnect
	bl	_CL_NextDemo
	ldur	x8, [x29, #-88]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	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	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_STRING_CHARS,4,2           ; @MAX_STRING_CHARS
	.comm	_cl_timedemo,8,3                ; @cl_timedemo
	.comm	_clc,32,3                       ; @clc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%i frames %3.1f seconds %3.1f fps %d.0/%.1f/%d.0/%.1f ms\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_cl_timedemoLog,8,3             ; @cl_timedemoLog
	.comm	_MAX_TIMEDEMO_DURATIONS,4,2     ; @MAX_TIMEDEMO_DURATIONS
l_.str.2:                               ; @.str.2
	.asciz	"# %s"

l_.str.3:                               ; @.str.3
	.asciz	"%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s written\n"

l_.str.5:                               ; @.str.5
	.asciz	"Couldn't open %s for writing\n"

	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
