	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function celt_decode_fine_energy
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
LCPI0_1:
	.long	0x38800000                      ## float 6.10351563E-5
LCPI0_2:
	.long	0xbf000000                      ## float -0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_celt_decode_fine_energy:               ## @celt_decode_fine_energy
	.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
	movslq	(%rdi), %r12
	movl	4(%rdi), %ecx
	cmpl	%ecx, %r12d
	jge	LBB0_8
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	%ecx, %rdx
	cmpq	%rdx, %r12
	jge	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	(%rax,%r12,4), %esi
	testl	%esi, %esi
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 16(%r15)
	jle	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%r15), %r13
	movq	%r14, %rdi
	callq	_ff_opus_rc_get_raw
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movq	8(%r15), %rax
	movl	(%rax,%r12,4), %esi
	movb	$14, %cl
	subb	%sil, %cl
	movl	$1, %edx
	shll	%cl, %edx
	xorps	%xmm1, %xmm1
	cvtsi2ss	%edx, %xmm1
	addss	%xmm2, %xmm0
	mulss	%xmm0, %xmm1
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	movss	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm1
	movq	(%r13,%rbx,8), %rcx
	addss	(%rcx,%r12,4), %xmm1
	movss	%xmm1, (%rcx,%r12,4)
	incq	%rbx
	movslq	16(%r15), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15), %ecx
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_celt_decode_fine_energy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function celt_decode_fine_energy
_celt_decode_fine_energy:               ; @celt_decode_fine_energy
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-96]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 b8, -88
	.cfi_offset b9, -96
	ldp	w21, w9, [x0]
                                        ; kill: def $w21 killed $w21 def $x21
	sxtw	x21, w21
	cmp	w21, w9
	b.ge	LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	fmov	s8, #0.50000000
	mov	w22, #14
	mov	w23, #1
	mov	w24, #947912704
	fmov	s9, #-0.50000000
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	cmp	x21, w9, sxtw
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w1, [x8, x21, lsl #2]
	cbz	w1, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x20, #16]
	cmp	w10, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, #0
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x26, [x20, #24]
	mov	x0, x19
	bl	_ff_opus_rc_get_raw
	scvtf	s0, w0
	ldr	x8, [x20, #8]
	lsl	x9, x21, #2
	ldr	w1, [x8, x9]
	fadd	s0, s0, s8
	sub	w10, w22, w1
	lsl	w10, w23, w10
	scvtf	s1, w10
	fmul	s0, s0, s1
	fmov	s1, w24
	fmul	s0, s0, s1
	ldr	x10, [x26, x25, lsl #3]
	ldr	s1, [x10, x9]
	fadd	s0, s0, s9
	fadd	s0, s1, s0
	str	s0, [x10, x9]
	add	x25, x25, #1
	ldrsw	x9, [x20, #16]
	cmp	x25, x9
	b.lt	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x20, #4]
	b	LBB0_2
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_celt_decode_fine_energy
.subsections_via_symbols
