	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_scalefactors
_apply_scalefactors:                    ## @apply_scalefactors
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	js	LBB0_7
## %bb.1:
	movq	8(%rsi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %r12d
	movq	_at9_q_unit_to_coeff_idx@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_at9_scalefactor_c@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	%rcx, %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpq	-48(%rbp), %rcx                 ## 8-byte Folded Reload
	je	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_12 Depth 3
                                        ##       Child Loop BB0_17 Depth 3
	testl	%r12d, %r12d
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	shlq	$4, %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%rcx), %rax
	movq	8(%rdx,%rcx), %rbx
	movl	(%r15), %r14d
	leaq	48(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=2
	cmpq	%r12, %r13
	je	LBB0_6
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_12 Depth 3
                                        ##       Child Loop BB0_17 Depth 3
	movq	%r13, %rdx
	movl	%r14d, %ecx
	incq	%r13
	movl	4(%r15,%rdx,4), %r14d
	cmpl	%r14d, %ecx
	jge	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movslq	%r14d, %rsi
	movslq	(%rbx,%rdx,4), %rdx
	movss	(%r9,%rdx,4), %xmm0             ## xmm0 = mem[0],zero,zero,zero
	movslq	%ecx, %rcx
	movq	%rsi, %rdi
	subq	%rcx, %rdi
	cmpq	$8, %rdi
	jb	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rdi, %r8
	andq	$-8, %r8
	movaps	%xmm0, %xmm1
	shufps	$0, %xmm0, %xmm1                ## xmm1 = xmm1[0,0],xmm0[0,0]
	leaq	-8(%r8), %rdx
	movq	%rdx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	%r9, %rdx
	andq	$-2, %rdx
	movq	%rbx, %r11
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rcx,4), %r10
	movq	%r11, %rbx
	xorl	%r11d, %r11d
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movups	-48(%r10,%r11,4), %xmm2
	movups	-32(%r10,%r11,4), %xmm3
	movups	-16(%r10,%r11,4), %xmm4
	movups	(%r10,%r11,4), %xmm5
	mulps	%xmm1, %xmm2
	mulps	%xmm1, %xmm3
	movups	%xmm2, -48(%r10,%r11,4)
	movups	%xmm3, -32(%r10,%r11,4)
	mulps	%xmm1, %xmm4
	mulps	%xmm1, %xmm5
	movups	%xmm4, -16(%r10,%r11,4)
	movups	%xmm5, (%r10,%r11,4)
	addq	$16, %r11
	addq	$-2, %rdx
	jne	LBB0_12
	jmp	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	xorl	%r11d, %r11d
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=2
	testb	$1, %r9b
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=2
	addq	%rcx, %r11
	movups	(%rax,%r11,4), %xmm2
	movups	16(%rax,%r11,4), %xmm3
	mulps	%xmm1, %xmm2
	mulps	%xmm1, %xmm3
	movups	%xmm2, (%rax,%r11,4)
	movups	%xmm3, 16(%rax,%r11,4)
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=2
	cmpq	%r8, %rdi
	je	LBB0_5
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=2
	addq	%r8, %rcx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movss	(%rax,%rcx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	movss	%xmm1, (%rax,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %rsi
	jne	LBB0_17
	jmp	LBB0_5
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_at9_q_unit_to_coeff_idx,8,3    ## @at9_q_unit_to_coeff_idx
	.comm	_at9_scalefactor_c,8,3          ## @at9_scalefactor_c
	.no_dead_strip	_apply_scalefactors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_scalefactors
_apply_scalefactors:                    ; @apply_scalefactors
	.cfi_startproc
; %bb.0:
	tbnz	w2, #31, LBB0_13
; %bb.1:
	mov	x8, #0
	ldr	x9, [x1, #8]
Lloh0:
	adrp	x11, _at9_q_unit_to_coeff_idx@GOTPAGE
Lloh1:
	ldr	x11, [x11, _at9_q_unit_to_coeff_idx@GOTPAGEOFF]
	ldr	w10, [x1]
Lloh2:
	ldr	x11, [x11]
Lloh3:
	adrp	x12, _at9_scalefactor_c@GOTPAGE
Lloh4:
	ldr	x12, [x12, _at9_scalefactor_c@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x12]
	add	w13, w2, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	cmp	x8, x13
	b.eq	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;       Child Loop BB0_12 Depth 3
	cmp	w10, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, #0
	lsl	x14, x8, #4
	ldr	x14, [x9, x14]
	add	x15, x9, x8, lsl #4
	ldr	x15, [x15, #8]
	ldr	w3, [x11]
	add	x16, x14, #32
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x3, x0
	mov	x2, x17
	cmp	x17, x10
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;       Child Loop BB0_12 Depth 3
	add	x17, x2, #1
	ldr	w0, [x11, x17, lsl #2]
	cmp	w3, w0
	b.ge	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	sxtw	x1, w0
	ldrsw	x2, [x15, x2, lsl #2]
	ldr	s0, [x12, x2, lsl #2]
	sxtw	x5, w3
	sub	x3, x1, x5
	mov	x2, x5
	cmp	x3, #16
	b.lo	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	and	x4, x3, #0xfffffffffffffff0
	add	x2, x4, x5
	dup.4s	v1, v0[0]
	add	x5, x16, x5, lsl #2
	mov	x6, x4
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldp	q2, q3, [x5, #-32]
	ldp	q4, q5, [x5]
	fmul.4s	v2, v1, v2
	fmul.4s	v3, v1, v3
	fmul.4s	v4, v1, v4
	fmul.4s	v5, v5, v0[0]
	stp	q2, q3, [x5, #-32]
	stp	q4, q5, [x5], #64
	subs	x6, x6, #16
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=2
	cmp	x3, x4
	b.eq	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x3, x14, x2, lsl #2
	sub	x1, x1, x2
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	s1, [x3]
	fmul	s1, s0, s1
	str	s1, [x3], #4
	subs	x1, x1, #1
	b.ne	LBB0_12
	b	LBB0_5
LBB0_13:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_at9_q_unit_to_coeff_idx,8,3    ; @at9_q_unit_to_coeff_idx
	.comm	_at9_scalefactor_c,8,3          ; @at9_scalefactor_c
	.no_dead_strip	_apply_scalefactors
.subsections_via_symbols
