	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function ff_acelp_decode_gain_code
LCPI0_0:
	.quad	0x41a4000000000000              ## double 167772160
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ff_acelp_decode_gain_code
	.p2align	4, 0x90
_ff_acelp_decode_gain_code:             ## @ff_acelp_decode_gain_code
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movl	%esi, %r12d
	movq	%rdi, %r14
	movl	24(%rbp), %edx
	movl	16(%rbp), %r15d
	shll	$10, %ecx
	testl	%edx, %edx
	jle	LBB0_11
## %bb.1:
	movl	%edx, %eax
	cmpl	$8, %edx
	jae	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %edx
	andl	$-8, %edx
	movd	%ecx, %xmm0
	leaq	-8(%rdx), %rcx
	movq	%rcx, %rsi
	shrq	$3, %rsi
	incq	%rsi
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	movq	%rsi, %rdi
	andq	$-2, %rdi
	pxor	%xmm1, %xmm1
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%r8,%rcx,4), %xmm2
	movdqu	16(%r8,%rcx,4), %xmm3
	movdqu	32(%r8,%rcx,4), %xmm4
	movdqu	48(%r8,%rcx,4), %xmm5
	movdqu	(%r9,%rcx,4), %xmm6
	pmulld	%xmm2, %xmm6
	paddd	%xmm0, %xmm6
	movdqu	16(%r9,%rcx,4), %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm1, %xmm2
	movdqu	32(%r9,%rcx,4), %xmm0
	pmulld	%xmm4, %xmm0
	paddd	%xmm6, %xmm0
	movdqu	48(%r9,%rcx,4), %xmm1
	pmulld	%xmm5, %xmm1
	paddd	%xmm2, %xmm1
	addq	$16, %rcx
	addq	$-2, %rdi
	jne	LBB0_6
## %bb.7:
	testb	$1, %sil
	je	LBB0_9
LBB0_8:
	movdqu	(%r8,%rcx,4), %xmm2
	movdqu	16(%r8,%rcx,4), %xmm3
	movdqu	(%r9,%rcx,4), %xmm4
	pmulld	%xmm2, %xmm4
	paddd	%xmm4, %xmm0
	movdqu	16(%r9,%rcx,4), %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm2, %xmm1
LBB0_9:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ecx
	cmpq	%rax, %rdx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rdx,4), %esi
	imull	(%r8,%rdx,4), %esi
	addl	%esi, %ecx
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_10
LBB0_11:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	divsd	LCPI0_0(%rip), %xmm0
	callq	_ff_exp10
	movl	%eax, %ebx
	imull	%r12d, %ebx
	movq	%r13, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	*(%r14)
	movl	%eax, %edi
	callq	_sqrt
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	sarl	$12, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	pxor	%xmm1, %xmm1
	xorl	%ecx, %ecx
	testb	$1, %sil
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_dsp,8,3                        ## @dsp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_acelp_decode_gain_code      ; -- Begin function ff_acelp_decode_gain_code
	.p2align	2
_ff_acelp_decode_gain_code:             ; @ff_acelp_decode_gain_code
	.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	x19, x6
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	lsl	w10, w3, #10
	cmp	w7, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w8, w7
	cmp	w7, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x9, #0
	b	LBB0_6
LBB0_3:
	and	x9, x8, #0xfffffff0
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w10
	movi.2d	v1, #0000000000000000
	add	x10, x5, #32
	add	x11, x4, #32
	mov	x12, x9
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	ldp	q16, q17, [x10, #-32]
	ldp	q18, q19, [x10], #64
	mla.4s	v0, v16, v4
	mla.4s	v1, v17, v5
	mla.4s	v2, v18, v6
	mla.4s	v3, v19, v7
	subs	x12, x12, #16
	b.ne	LBB0_4
; %bb.5:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w10, s0
	cmp	x9, x8
	b.eq	LBB0_8
LBB0_6:
	lsl	x12, x9, #2
	add	x11, x5, x12
	add	x12, x4, x12
	sub	x8, x8, x9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x12], #4
	ldr	w13, [x11], #4
	madd	w10, w13, w9, w10
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	scvtf	d0, w10
	mov	x8, #4729905508645863424
	fmov	d1, x8
	fdiv	d0, d0, d1
	bl	_ff_exp10
	mul	w22, w0, w22
	ldr	x8, [x21]
	mov	x0, x20
	mov	x1, x20
	mov	x2, x19
	blr	x8
	bl	_sqrt
	sdiv	w8, w22, w0
	asr	w0, w8, #12
	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
	.comm	_dsp,8,3                        ; @dsp
.subsections_via_symbols
