	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scale_coefs
_scale_coefs:                           ## @scale_coefs
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	%edx, %ebx
	andl	$31, %ebx
	orl	$32, %ebx
	movl	%edx, %edi
	movl	$9, %esi
	callq	_sign_extend
	movl	%eax, %r10d
	sarl	$5, %r10d
	cmpl	$127, %eax
	jg	LBB0_4
## %bb.1:
	movb	$3, %cl
	subb	%r10b, %cl
	movl	$1, %r9d
	shll	%cl, %r9d
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.2:
	movl	$4, %ecx
	subl	%r10d, %ecx
	movl	%r15d, %r8d
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rsi,4), %edi
	imull	%ebx, %edi
	movl	4(%r14,%rsi,4), %edx
	imull	%ebx, %edx
	addl	%r9d, %edi
	movl	8(%r14,%rsi,4), %eax
	imull	%ebx, %eax
	sarl	%cl, %edi
	addl	%r9d, %edx
	movl	%edi, (%r12,%rsi,4)
	movl	12(%r14,%rsi,4), %edi
	imull	%ebx, %edi
	addl	%r9d, %eax
	sarl	%cl, %edx
	movl	%edx, 4(%r12,%rsi,4)
	movl	16(%r14,%rsi,4), %edx
	imull	%ebx, %edx
	addl	%r9d, %edi
	sarl	%cl, %eax
	movl	%eax, 8(%r12,%rsi,4)
	movl	20(%r14,%rsi,4), %eax
	sarl	%cl, %edi
	imull	%ebx, %eax
	addl	%r9d, %edx
	movl	%edi, 12(%r12,%rsi,4)
	movl	24(%r14,%rsi,4), %edi
	imull	%ebx, %edi
	sarl	%cl, %edx
	movl	%edx, 16(%r12,%rsi,4)
	addl	%r9d, %eax
	movl	28(%r14,%rsi,4), %edx
	imull	%ebx, %edx
	addl	%r9d, %edi
	sarl	%cl, %eax
	movl	%eax, 20(%r12,%rsi,4)
	sarl	%cl, %edi
	addl	%r9d, %edx
	sarl	%cl, %edx
	movl	%edi, 24(%r12,%rsi,4)
	movl	%edx, 28(%r12,%rsi,4)
	addq	$8, %rsi
	cmpq	%r8, %rsi
	jb	LBB0_3
	jmp	LBB0_7
LBB0_4:
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.5:
	addl	$-4, %r10d
	movl	%r15d, %r8d
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rsi,4), %edi
	imull	%ebx, %edi
	movl	4(%r14,%rsi,4), %eax
	imull	%ebx, %eax
	movl	8(%r14,%rsi,4), %edx
	imull	%ebx, %edx
	movl	%r10d, %ecx
	shll	%cl, %edi
	movl	%edi, (%r12,%rsi,4)
	movl	12(%r14,%rsi,4), %edi
	shll	%cl, %eax
	imull	%ebx, %edi
	movl	%eax, 4(%r12,%rsi,4)
	movl	16(%r14,%rsi,4), %eax
	imull	%ebx, %eax
	shll	%cl, %edx
	movl	%edx, 8(%r12,%rsi,4)
	movl	20(%r14,%rsi,4), %edx
	shll	%cl, %edi
	imull	%ebx, %edx
	movl	%edi, 12(%r12,%rsi,4)
	movl	24(%r14,%rsi,4), %edi
	imull	%ebx, %edi
	shll	%cl, %eax
	movl	%eax, 16(%r12,%rsi,4)
	movl	28(%r14,%rsi,4), %eax
	shll	%cl, %edx
	imull	%ebx, %eax
	shll	%cl, %edi
	movl	%edx, 20(%r12,%rsi,4)
	shll	%cl, %eax
	movl	%edi, 24(%r12,%rsi,4)
	movl	%eax, 28(%r12,%rsi,4)
	addq	$8, %rsi
	cmpq	%r8, %rsi
	jb	LBB0_6
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_scale_coefs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scale_coefs
_scale_coefs:                           ; @scale_coefs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x3
	mov	x21, x1
	mov	x19, x0
	mov	w22, #32
	bfxil	w22, w2, #0, #5
	mov	x0, x2
	mov	w1, #9
	bl	_sign_extend
	asr	w10, w0, #5
	cmp	w0, #127
	b.gt	LBB0_4
; %bb.1:
	cmp	w20, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x8, #0
	mov	w9, #4
	sub	w9, w9, w10
	mov	w11, #3
	sub	w10, w11, w10
	mov	w11, #1
	lsl	w10, w11, w10
	mov	w11, w20
	add	x12, x21, #16
	add	x13, x19, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w14, w15, [x12, #-16]
	madd	w14, w14, w22, w10
	ldur	w16, [x12, #-8]
	madd	w15, w15, w22, w10
	asr	w14, w14, w9
	stur	w14, [x13, #-16]
	ldur	w14, [x12, #-4]
	madd	w16, w16, w22, w10
	asr	w15, w15, w9
	stur	w15, [x13, #-12]
	ldr	w15, [x12]
	madd	w14, w14, w22, w10
	asr	w16, w16, w9
	stur	w16, [x13, #-8]
	ldr	w16, [x12, #4]
	madd	w15, w15, w22, w10
	asr	w14, w14, w9
	stur	w14, [x13, #-4]
	ldr	w14, [x12, #8]
	asr	w15, w15, w9
	str	w15, [x13]
	madd	w15, w16, w22, w10
	ldr	w16, [x12, #12]
	madd	w14, w14, w22, w10
	asr	w15, w15, w9
	madd	w16, w16, w22, w10
	asr	w14, w14, w9
	stp	w15, w14, [x13, #4]
	asr	w14, w16, w9
	str	w14, [x13, #12]
	add	x8, x8, #8
	add	x12, x12, #32
	add	x13, x13, #32
	cmp	x8, x11
	b.lo	LBB0_3
	b	LBB0_7
LBB0_4:
	cmp	w20, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x8, #0
	sub	w9, w10, #4
	add	x10, x21, #16
	add	x11, x19, #16
	mov	w12, w20
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w13, w14, [x10, #-16]
	mul	w13, w13, w22
	mul	w14, w14, w22
	ldur	w15, [x10, #-8]
	mul	w15, w15, w22
	lsl	w13, w13, w9
	stur	w13, [x11, #-16]
	ldur	w13, [x10, #-4]
	mul	w13, w13, w22
	lsl	w14, w14, w9
	stur	w14, [x11, #-12]
	ldr	w14, [x10]
	mul	w14, w14, w22
	lsl	w15, w15, w9
	stur	w15, [x11, #-8]
	ldr	w15, [x10, #4]
	mul	w15, w15, w22
	lsl	w13, w13, w9
	stur	w13, [x11, #-4]
	ldr	w13, [x10, #8]
	mul	w13, w13, w22
	lsl	w14, w14, w9
	str	w14, [x11]
	ldr	w14, [x10, #12]
	mul	w14, w14, w22
	lsl	w15, w15, w9
	lsl	w13, w13, w9
	stp	w15, w13, [x11, #4]
	lsl	w13, w14, w9
	str	w13, [x11, #12]
	add	x8, x8, #8
	add	x10, x10, #32
	add	x11, x11, #32
	cmp	x8, x12
	b.lo	LBB0_6
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_scale_coefs
.subsections_via_symbols
