	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scale_magnitudes
_scale_magnitudes:                      ## @scale_magnitudes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	16(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.1:
	movq	_VERTICAL@GOTPCREL(%rip), %rcx
	movq	(%rdi), %rdx
	movq	24(%rdi), %r11
	xorl	%esi, %esi
	cmpq	(%rcx), %rdx
	setne	%sil
	movl	8(%rdi,%rsi,4), %edx
	movl	%edx, %r14d
	andl	$-8, %r14d
	leaq	-8(%r14), %r8
	movq	%r8, %r10
	shrq	$3, %r10
	incq	%r10
	movaps	%xmm0, %xmm1
	shufps	$0, %xmm0, %xmm1                ## xmm1 = xmm1[0,0],xmm0[0,0]
	movq	%r10, %r9
	andq	$-2, %r9
	xorl	%edi, %edi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	cmpq	%rax, %rdi
	je	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	testl	%edx, %edx
	jle	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r11,%rdi,8), %rcx
	cmpl	$8, %edx
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%r8, %r8
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r9, %rsi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	(%rcx,%rbx,4), %xmm2
	movups	16(%rcx,%rbx,4), %xmm3
	movups	32(%rcx,%rbx,4), %xmm4
	movups	48(%rcx,%rbx,4), %xmm5
	mulps	%xmm1, %xmm2
	mulps	%xmm1, %xmm3
	movups	%xmm2, (%rcx,%rbx,4)
	movups	%xmm3, 16(%rcx,%rbx,4)
	mulps	%xmm1, %xmm4
	mulps	%xmm1, %xmm5
	movups	%xmm4, 32(%rcx,%rbx,4)
	movups	%xmm5, 48(%rcx,%rbx,4)
	addq	$16, %rbx
	addq	$-2, %rsi
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r10b
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movups	(%rcx,%rbx,4), %xmm2
	movups	16(%rcx,%rbx,4), %xmm3
	mulps	%xmm1, %xmm2
	mulps	%xmm1, %xmm3
	movups	%xmm2, (%rcx,%rbx,4)
	movups	%xmm3, 16(%rcx,%rbx,4)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rsi
	cmpq	%rdx, %r14
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	(%rcx,%rsi,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	%xmm2, (%rcx,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_12
	jmp	LBB0_13
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	testb	$1, %r10b
	jne	LBB0_10
	jmp	LBB0_11
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VERTICAL,8,3                   ## @VERTICAL
	.no_dead_strip	_scale_magnitudes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scale_magnitudes
_scale_magnitudes:                      ; @scale_magnitudes
	.cfi_startproc
; %bb.0:
                                        ; kill: def $s0 killed $s0 def $q0
	ldr	w8, [x0, #16]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x9, #0
Lloh0:
	adrp	x10, _VERTICAL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _VERTICAL@GOTPAGEOFF]
	ldr	x11, [x0]
Lloh2:
	ldr	x10, [x10]
	mov	w12, #12
	mov	w13, #8
	cmp	x11, x10
	csel	x10, x13, x12, eq
	ldr	w10, [x0, x10]
	ldr	x11, [x0, #24]
	and	x12, x10, #0xfffffff0
	dup.4s	v1, v0[0]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w10, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x11, x9, lsl #3]
	cmp	w10, #16
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x14, #0
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x14, x13, #32
	mov	x15, x12
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q2, q3, [x14, #-32]
	ldp	q4, q5, [x14]
	fmul.4s	v2, v2, v1
	fmul.4s	v3, v3, v1
	fmul.4s	v4, v4, v1
	fmul.4s	v5, v5, v0[0]
	stp	q2, q3, [x14, #-32]
	stp	q4, q5, [x14], #64
	subs	x15, x15, #16
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x14, x12
	cmp	x12, x10
	b.eq	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x13, x13, x14, lsl #2
	sub	x14, x10, x14
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	s2, [x13]
	fmul	s2, s2, s0
	str	s2, [x13], #4
	subs	x14, x14, #1
	b.ne	LBB0_10
	b	LBB0_2
LBB0_11:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VERTICAL,8,3                   ; @VERTICAL
	.no_dead_strip	_scale_magnitudes
.subsections_via_symbols
