	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function dec_gain
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x34000000                      ## float 1.1920929E-7
LCPI0_2:
	.long	0x39000000                      ## float 1.22070313E-4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dec_gain:                              ## @dec_gain
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	16(%rdi), %r8
	movq	(%rdi), %r9
	movq	8(%rdi), %r10
	shlq	$4, %r9
	movq	_TWINVQ_GAIN_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$-1, %r11d
	shll	%cl, %r11d
	movq	_TWINVQ_AMP_MAX@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	notl	%r11d
	movl	%edi, %eax
	cltd
	idivl	%r11d
	cvtsi2ss	%eax, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	leaq	(%r8,%r9), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$-1, %r11d
	movq	_TWINVQ_SUB_AMP_MAX@GOTPCREL(%rip), %rdx
	movq	_TWINVQ_SUB_GAIN_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r11d
	movl	(%rdx), %eax
	notl	%r11d
	cltd
	idivl	%r11d
	movq	_TWINVQ_FT_LONG@GOTPCREL(%rip), %rdx
	movl	(%r10), %ecx
	cmpl	%esi, (%rdx)
	jne	LBB0_1
## %bb.8:
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.9:
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	cvtss2sd	%xmm0, %xmm0
	movl	$1, %r14d
	mulsd	LCPI0_0(%rip), %xmm0
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movq	_TWINVQ_MULAW_MU@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movss	-4(%rax,%r14,4), %xmm0          ## xmm0 = mem[0],zero,zero,zero
	mulss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	cvtss2sd	%xmm0, %xmm0
	addsd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	cvtsd2ss	%xmm0, %xmm0
	movl	(%r15), %esi
	callq	_twinvq_mulawinv
	mulss	LCPI0_2(%rip), %xmm0
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movss	%xmm0, -4(%rax,%r14,4)
	movq	8(%r12), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r14
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r13), %edi
	incq	%r14
	jmp	LBB0_10
LBB0_1:
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.2:
	movq	%r12, -136(%rbp)                ## 8-byte Spill
	movq	24(%r12), %rcx
	movq	(%rcx), %rcx
	movl	%esi, %edx
	movslq	(%rcx,%rdx,4), %rcx
	movl	%ecx, %edx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	cvtsi2ss	%eax, %xmm1
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	cvtss2sd	%xmm0, %xmm0
	movss	%xmm1, -56(%rbp)                ## 4-byte Spill
	cvtss2sd	%xmm1, %xmm1
	leaq	8(%r8,%r9), %r15
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	leaq	(,%rcx,4), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	mulsd	LCPI0_0(%rip), %xmm0
	movsd	%xmm0, -120(%rbp)               ## 8-byte Spill
	movq	_TWINVQ_MULAW_MU@GOTPCREL(%rip), %rbx
	mulsd	LCPI0_0(%rip), %xmm1
	movsd	%xmm1, -96(%rbp)                ## 8-byte Spill
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	movss	(%rax,%rcx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	mulss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	cvtss2sd	%xmm0, %xmm0
	addsd	-120(%rbp), %xmm0               ## 8-byte Folded Reload
	cvtsd2ss	%xmm0, %xmm0
	movl	(%rbx), %esi
	callq	_twinvq_mulawinv
	movaps	%xmm0, %xmm1
	mulss	LCPI0_1(%rip), %xmm1
	cmpl	$0, -128(%rbp)                  ## 4-byte Folded Reload
	movq	_TWINVQ_SUB_AMP_MAX@GOTPCREL(%rip), %rcx
	movss	-56(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movsd	-96(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movss	%xmm1, -68(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rax
	movss	(%rax,%r12), %xmm0              ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm0
	cvtss2sd	%xmm0, %xmm0
	addsd	%xmm3, %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movl	(%rcx), %edi
	movq	_TWINVQ_MULAW_MU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %r14
	movq	%rcx, %r15
	callq	_twinvq_mulawinv
	movsd	-96(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	movss	-56(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movq	%r15, %rcx
	movq	%r14, %r15
	movss	-68(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	movss	%xmm0, (%rbx,%r12)
	addq	$4, %r12
	decq	%r13
	jne	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_TWINVQ_MULAW_MU@GOTPCREL(%rip), %rbx
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	incq	%rcx
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rcx
	movq	_TWINVQ_AMP_MAX@GOTPCREL(%rip), %rax
	jge	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	-112(%rbp), %rax                ## 8-byte Folded Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_12:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TWINVQ_AMP_MAX,4,2             ## @TWINVQ_AMP_MAX
	.comm	_TWINVQ_GAIN_BITS,4,2           ## @TWINVQ_GAIN_BITS
	.comm	_TWINVQ_SUB_AMP_MAX,4,2         ## @TWINVQ_SUB_AMP_MAX
	.comm	_TWINVQ_SUB_GAIN_BITS,4,2       ## @TWINVQ_SUB_GAIN_BITS
	.comm	_TWINVQ_FT_LONG,4,2             ## @TWINVQ_FT_LONG
	.comm	_TWINVQ_MULAW_MU,4,2            ## @TWINVQ_MULAW_MU
	.no_dead_strip	_dec_gain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dec_gain
_dec_gain:                              ; @dec_gain
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	d15, d14, [sp, #32]             ; 16-byte Folded Spill
	stp	d13, d12, [sp, #48]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #64]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #80]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	.cfi_offset b14, -152
	.cfi_offset b15, -160
	mov	x19, x2
	mov	x20, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x25, _TWINVQ_AMP_MAX@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TWINVQ_AMP_MAX@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh2:
	adrp	x9, _TWINVQ_GAIN_BITS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TWINVQ_GAIN_BITS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	mov	w10, #-1
	lsl	w9, w10, w9
	mvn	w9, w9
	sdiv	w9, w0, w9
	scvtf	s8, w9
	ldp	x9, x11, [x20]
	add	x22, x8, x9, lsl #4
Lloh5:
	adrp	x12, _TWINVQ_FT_LONG@GOTPAGE
Lloh6:
	ldr	x12, [x12, _TWINVQ_FT_LONG@GOTPAGEOFF]
Lloh7:
	ldr	w12, [x12]
	ldr	w11, [x11]
	cmp	w12, w1
	b.ne	LBB0_5
; %bb.1:
	cmp	w11, #1
	b.lt	LBB0_12
; %bb.2:
	mov	x21, #0
	fcvt	d9, s8
	fmov	d10, #0.50000000
Lloh8:
	adrp	x23, _TWINVQ_MULAW_MU@GOTPAGE
Lloh9:
	ldr	x23, [x23, _TWINVQ_MULAW_MU@GOTPAGEOFF]
	movi.2s	v11, #57, lsl #24
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	lsl	x24, x21, #2
	ldr	s0, [x8, x24]
	fmul	s0, s0, s8
	fcvt	d0, s0
	fmadd	d0, d9, d10, d0
	fcvt	s0, d0
	ldr	w1, [x23]
	bl	_twinvq_mulawinv
	fmul	s0, s0, s11
	str	s0, [x19, x24]
	add	x21, x21, #1
	ldr	x8, [x20, #8]
	ldrsw	x8, [x8]
	cmp	x21, x8
	b.ge	LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x25]
	b	LBB0_3
LBB0_5:
	cmp	w11, #1
	b.lt	LBB0_12
; %bb.6:
	mov	x21, #0
	mov	x24, #0
	ldr	x11, [x20, #24]
	ldr	x11, [x11]
	ldrsw	x12, [x11, w1, uxtw #2]
Lloh10:
	adrp	x26, _TWINVQ_SUB_AMP_MAX@GOTPAGE
Lloh11:
	ldr	x26, [x26, _TWINVQ_SUB_AMP_MAX@GOTPAGEOFF]
Lloh12:
	adrp	x11, _TWINVQ_SUB_GAIN_BITS@GOTPAGE
Lloh13:
	ldr	x11, [x11, _TWINVQ_SUB_GAIN_BITS@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	ldr	w11, [x26]
	mvn	w10, w10
	sdiv	w10, w11, w10
	and	x11, x12, #0xffffffff
	scvtf	s9, w10
	fcvt	d10, s8
	fcvt	d11, s9
	add	x8, x8, x9, lsl #4
	add	x28, x8, #8
	str	x12, [sp, #24]                  ; 8-byte Folded Spill
	lsl	x8, x12, #2
	stp	x11, x8, [sp, #8]               ; 16-byte Folded Spill
	fmov	d12, #0.50000000
Lloh15:
	adrp	x27, _TWINVQ_MULAW_MU@GOTPAGE
Lloh16:
	ldr	x27, [x27, _TWINVQ_MULAW_MU@GOTPAGEOFF]
	movi.2s	v13, #52, lsl #24
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x8, [x22]
	ldr	s0, [x8, x24, lsl #2]
	fmul	s0, s0, s8
	fcvt	d0, s0
	fmadd	d0, d10, d12, d0
	fcvt	s0, d0
	ldr	w1, [x27]
	bl	_twinvq_mulawinv
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	fmul	s14, s0, s13
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
	mov	x23, x21
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x28]
	ldr	s0, [x8, x23]
	fmul	s0, s0, s9
	fcvt	d0, s0
	fmadd	d0, d11, d12, d0
	fcvt	s0, d0
	ldr	w0, [x26]
	ldr	w1, [x27]
	bl	_twinvq_mulawinv
	fmul	s0, s14, s0
	str	s0, [x19, x23]
	add	x23, x23, #4
	subs	x25, x25, #1
	b.ne	LBB0_9
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	ldr	x8, [x20, #8]
	ldrsw	x8, [x8]
	cmp	x24, x8
Lloh17:
	adrp	x8, _TWINVQ_AMP_MAX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TWINVQ_AMP_MAX@GOTPAGEOFF]
	b.ge	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x8]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x21, x21, x8
	b	LBB0_7
LBB0_12:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #64]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #48]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_TWINVQ_AMP_MAX,4,2             ; @TWINVQ_AMP_MAX
	.comm	_TWINVQ_GAIN_BITS,4,2           ; @TWINVQ_GAIN_BITS
	.comm	_TWINVQ_SUB_AMP_MAX,4,2         ; @TWINVQ_SUB_AMP_MAX
	.comm	_TWINVQ_SUB_GAIN_BITS,4,2       ; @TWINVQ_SUB_GAIN_BITS
	.comm	_TWINVQ_FT_LONG,4,2             ; @TWINVQ_FT_LONG
	.comm	_TWINVQ_MULAW_MU,4,2            ; @TWINVQ_MULAW_MU
	.no_dead_strip	_dec_gain
.subsections_via_symbols
