	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CL_DemoFrameDurationSDev
_CL_DemoFrameDurationSDev:              ## @CL_DemoFrameDurationSDev
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_clc@GOTPCREL(%rip), %r8
	movl	(%r8), %edx
	decl	%edx
	movq	_MAX_TIMEDEMO_DURATIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	cmovgel	%eax, %edx
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movq	8(%r8), %rcx
	movl	%edx, %r10d
	leaq	-1(%r10), %r9
	movl	%r10d, %edi
	andl	$7, %edi
	cmpq	$7, %r9
	jae	LBB0_4
## %bb.3:
	xorps	%xmm1, %xmm1
	xorl	%esi, %esi
	jmp	LBB0_6
LBB0_1:
	cvtsi2ss	%edx, %xmm2
	xorps	%xmm0, %xmm0
	jmp	LBB0_16
LBB0_4:
	movl	%r10d, %eax
	andl	$-8, %eax
	xorps	%xmm1, %xmm1
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addss	(%rcx,%rsi,4), %xmm1
	addss	4(%rcx,%rsi,4), %xmm1
	addss	8(%rcx,%rsi,4), %xmm1
	addss	12(%rcx,%rsi,4), %xmm1
	addss	16(%rcx,%rsi,4), %xmm1
	addss	20(%rcx,%rsi,4), %xmm1
	addss	24(%rcx,%rsi,4), %xmm1
	addss	28(%rcx,%rsi,4), %xmm1
	addq	$8, %rsi
	cmpq	%rsi, %rax
	jne	LBB0_5
LBB0_6:
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:
	leaq	(%rcx,%rsi,4), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	addss	(%rax,%rcx,4), %xmm1
	incq	%rcx
	cmpq	%rcx, %rdi
	jne	LBB0_8
LBB0_9:
	cvtsi2ss	%edx, %xmm2
	divss	%xmm2, %xmm1
	movq	8(%r8), %rdx
	movl	%r10d, %ecx
	andl	$3, %ecx
	cmpq	$3, %r9
	jae	LBB0_11
## %bb.10:
	xorps	%xmm0, %xmm0
	xorl	%esi, %esi
	jmp	LBB0_13
LBB0_11:
	andl	$-4, %r10d
	xorps	%xmm0, %xmm0
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movss	(%rdx,%rsi,4), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	movss	4(%rdx,%rsi,4), %xmm4           ## xmm4 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm3
	mulss	%xmm3, %xmm3
	addss	%xmm0, %xmm3
	subss	%xmm1, %xmm4
	mulss	%xmm4, %xmm4
	addss	%xmm3, %xmm4
	movss	8(%rdx,%rsi,4), %xmm3           ## xmm3 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm3
	mulss	%xmm3, %xmm3
	addss	%xmm4, %xmm3
	movss	12(%rdx,%rsi,4), %xmm0          ## xmm0 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm0
	mulss	%xmm0, %xmm0
	addss	%xmm3, %xmm0
	addq	$4, %rsi
	cmpq	%rsi, %r10
	jne	LBB0_12
LBB0_13:
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.14:
	leaq	(%rdx,%rsi,4), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movss	(%rax,%rdx,4), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm3
	mulss	%xmm3, %xmm3
	addss	%xmm3, %xmm0
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_15
LBB0_16:
	divss	%xmm2, %xmm0
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jb	LBB0_18
## %bb.17:
	sqrtss	%xmm0, %xmm0
	popq	%rbp
	retq
LBB0_18:
	popq	%rbp
	jmp	_sqrt                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_clc,16,3                       ## @clc
	.comm	_MAX_TIMEDEMO_DURATIONS,4,2     ## @MAX_TIMEDEMO_DURATIONS
	.no_dead_strip	_CL_DemoFrameDurationSDev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CL_DemoFrameDurationSDev
_CL_DemoFrameDurationSDev:              ; @CL_DemoFrameDurationSDev
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _clc@GOTPAGE
Lloh1:
	ldr	x9, [x9, _clc@GOTPAGEOFF]
	ldr	w8, [x9]
	sub	w8, w8, #1
Lloh2:
	adrp	x10, _MAX_TIMEDEMO_DURATIONS@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MAX_TIMEDEMO_DURATIONS@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	cmp	w8, w10
	csel	w8, w8, w10, lt
	cmp	w8, #0
	b.le	LBB0_3
; %bb.1:
	ldr	x10, [x9, #8]
	cmp	w8, #4
	b.hs	LBB0_4
; %bb.2:
	mov	x11, #0
	movi	d1, #0000000000000000
	b	LBB0_7
LBB0_3:
	scvtf	s0, w8
	movi	d2, #0000000000000000
	b	LBB0_16
LBB0_4:
	and	x11, x8, #0xfffffffc
	add	x12, x10, #8
	movi	d1, #0000000000000000
	mov	x13, x11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	s0, s2, [x12, #-8]
	ldp	s3, s4, [x12], #16
	fadd	s0, s1, s0
	fadd	s0, s0, s2
	fadd	s0, s0, s3
	fadd	s1, s0, s4
	subs	x13, x13, #4
	b.ne	LBB0_5
; %bb.6:
	cmp	x11, x8
	b.eq	LBB0_9
LBB0_7:
	add	x10, x10, x11, lsl #2
	sub	x11, x8, x11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s0, [x10], #4
	fadd	s1, s1, s0
	subs	x11, x11, #1
	b.ne	LBB0_8
LBB0_9:
	scvtf	s0, w8
	fdiv	s1, s1, s0
	ldr	x9, [x9, #8]
	cmp	w8, #4
	b.hs	LBB0_11
; %bb.10:
	mov	x10, #0
	movi	d2, #0000000000000000
	b	LBB0_14
LBB0_11:
	and	x10, x8, #0xfffffffc
	dup.2s	v3, v1[0]
	movi	d2, #0000000000000000
	mov	x11, x10
	mov	x12, x9
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	s4, [x12]
	ldr	s5, [x12, #12]
	fsub	s4, s4, s1
	fsub	s5, s5, s1
	fmul	s4, s4, s4
	ldur	d6, [x12, #4]
	fsub.2s	v6, v6, v3
	fmul.2s	v6, v6, v6
	fmul	s5, s5, s5
	fadd	s2, s2, s4
	fadd	s2, s2, s6
	mov	s4, v6[1]
	fadd	s2, s2, s4
	fadd	s2, s2, s5
	add	x12, x12, #16
	subs	x11, x11, #4
	b.ne	LBB0_12
; %bb.13:
	cmp	x10, x8
	b.eq	LBB0_16
LBB0_14:
	add	x9, x9, x10, lsl #2
	sub	x8, x8, x10
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	s3, [x9], #4
	fsub	s3, s3, s1
	fmadd	s2, s3, s3, s2
	subs	x8, x8, #1
	b.ne	LBB0_15
LBB0_16:
	fdiv	s0, s2, s0
	fsqrt	s1, s0
	fcmp	s1, s1
	b.vs	LBB0_18
; %bb.17:
	fmov	s0, s1
	ret
LBB0_18:
	b	_sqrt
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_clc,16,3                       ; @clc
	.comm	_MAX_TIMEDEMO_DURATIONS,4,2     ; @MAX_TIMEDEMO_DURATIONS
	.no_dead_strip	_CL_DemoFrameDurationSDev
.subsections_via_symbols
