	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_qm_factor
_get_qm_factor:                         ## @get_qm_factor
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movl	$0, (%rsi)
	movl	(%rax), %r8d
	movq	8(%rax), %rax
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	leaq	-1(%r8), %rcx
	movl	%r8d, %edx
	andl	$3, %edx
	cmpq	$3, %rcx
	jae	LBB0_4
## %bb.3:
	xorps	%xmm0, %xmm0
	xorl	%edi, %edi
	jmp	LBB0_6
LBB0_1:
	xorps	%xmm0, %xmm0
	jmp	LBB0_9
LBB0_4:
	movl	%r8d, %ecx
	andl	$-4, %ecx
	xorps	%xmm0, %xmm0
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movss	(%rax,%rdi,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm1
	addss	%xmm0, %xmm1
	movss	%xmm1, (%rsi)
	movss	4(%rax,%rdi,4), %xmm0           ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm0
	addss	%xmm1, %xmm0
	movss	%xmm0, (%rsi)
	movss	8(%rax,%rdi,4), %xmm1           ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm1
	addss	%xmm0, %xmm1
	movss	%xmm1, (%rsi)
	movss	12(%rax,%rdi,4), %xmm0          ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm0
	addss	%xmm1, %xmm0
	movss	%xmm0, (%rsi)
	addq	$4, %rdi
	cmpq	%rdi, %rcx
	jne	LBB0_5
LBB0_6:
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.7:
	leaq	(%rax,%rdi,4), %rcx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movss	(%rcx,%rdi,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm1
	addss	%xmm1, %xmm0
	movss	%xmm0, (%rsi)
	incq	%rdi
	cmpq	%rdi, %rdx
	jne	LBB0_8
LBB0_9:
	xorps	%xmm1, %xmm1
	cvtsi2ss	%r8d, %xmm1
	divss	%xmm1, %xmm0
	sqrtss	%xmm0, %xmm0
	movss	%xmm0, (%rsi)
	divss	(%rax), %xmm0
	movss	%xmm0, (%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_get_qm_factor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_qm_factor
_get_qm_factor:                         ; @get_qm_factor
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	str	wzr, [x1]
	ldr	w9, [x8]
	ldr	x8, [x8, #8]
	movi	d0, #0000000000000000
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x10, x9
	mov	x11, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s1, [x11], #4
	fmadd	s0, s1, s1, s0
	str	s0, [x1]
	subs	x10, x10, #1
	b.ne	LBB0_2
LBB0_3:
	scvtf	s1, w9
	fdiv	s0, s0, s1
	fsqrt	s0, s0
	str	s0, [x1]
	ldr	s1, [x8]
	fdiv	s0, s0, s1
	str	s0, [x1]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_get_qm_factor
.subsections_via_symbols
