	.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_coarse_energy
LCPI0_0:
	.long	0x3f599a00                      ## float 0.850006103
LCPI0_1:
	.long	0xbf800000                      ## float -1
LCPI0_3:
	.long	0xc1100000                      ## float -9
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_2:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_celt_decode_coarse_energy:             ## @celt_decode_coarse_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	$0, -72(%rbp)
	movq	_ff_celt_alpha_coef@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movss	(%rax,%rcx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movq	_ff_celt_beta_coef@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movss	(%rax,%rcx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	_ff_celt_coarse_energy_dist@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_opus_rc_tell
	movq	%rbx, %rsi
	addq	$3, %rax
	cmpq	8(%rbx), %rax
	jg	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_ff_opus_rc_dec_log
	movq	%rbx, %rsi
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r14), %rax
	movq	(%rsi), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	8(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorps	%xmm0, %xmm0
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
LBB0_3:
	movq	_CELT_MAX_BANDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_20
## %bb.4:
	movl	16(%rsi), %eax
	xorl	%ebx, %ebx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_CELT_MAX_BANDS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	%ecx, %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_20
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	testl	%eax, %eax
	jle	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	movq	(%r12,%r13,8), %rcx
	movq	$0, (%rcx,%rbx,8)
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=2
	incq	%r13
	movslq	%eax, %rcx
	cmpq	%rcx, %r13
	jge	LBB0_18
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	32(%rsi), %r12
	movslq	20(%rsi), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movslq	24(%rsi), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	8(%rsi), %r14d
	movq	%r15, %rdi
	callq	_opus_rc_tell
	subl	%eax, %r14d
	cmpl	$15, %r14d
	jl	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	%ebx, %edi
	movl	$20, %esi
	callq	_FFMIN
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %ecx
	movslq	%ecx, %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%rcx,4), %esi
	shll	$7, %esi
	addl	%eax, %eax
	incl	%eax
	cltq
	movl	(%rdx,%rax,4), %edx
	shll	$6, %edx
	movq	%r15, %rdi
	callq	_ff_opus_rc_dec_laplace
	jmp	LBB0_16
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$2, %r14d
	jl	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	_ff_celt_model_energy_small@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ff_opus_rc_dec_cdf
	movl	%eax, %ecx
	sarl	%ecx
	andl	$1, %eax
	negl	%eax
	xorl	%ecx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	jmp	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=2
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	cmpl	$1, %r14d
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	callq	_ff_opus_rc_dec_log
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	xorps	LCPI0_2(%rip), %xmm0
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=2
	movaps	%xmm0, -96(%rbp)                ## 16-byte Spill
	movq	(%r12,%r13,8), %rax
	movsd	(%rax,%rbx,8), %xmm0            ## xmm0 = mem[0],zero
	xorps	%xmm1, %xmm1
	cvtsd2ss	%xmm0, %xmm1
	movss	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_FFMAX
	movss	-72(%rbp,%r13,4), %xmm1         ## xmm1 = mem[0],zero,zero,zero
	mulss	-48(%rbp), %xmm0                ## 4-byte Folded Reload
	addss	%xmm1, %xmm0
	movaps	-96(%rbp), %xmm2                ## 16-byte Reload
	addss	%xmm2, %xmm0
	cvtss2sd	%xmm0, %xmm0
	movq	(%r12,%r13,8), %rax
	movsd	%xmm0, (%rax,%rbx,8)
	mulss	-44(%rbp), %xmm2                ## 4-byte Folded Reload
	addss	%xmm1, %xmm2
	movss	%xmm2, -72(%rbp,%r13,4)
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	16(%rsi), %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_20:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_celt_alpha_coef,8,3         ## @ff_celt_alpha_coef
	.comm	_ff_celt_beta_coef,8,3          ## @ff_celt_beta_coef
	.comm	_ff_celt_coarse_energy_dist,8,3 ## @ff_celt_coarse_energy_dist
	.comm	_CELT_MAX_BANDS,4,2             ## @CELT_MAX_BANDS
	.comm	_ff_celt_model_energy_small,4,2 ## @ff_celt_model_energy_small
	.no_dead_strip	_celt_decode_coarse_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_coarse_energy
_celt_decode_coarse_energy:             ; @celt_decode_coarse_energy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ff_celt_alpha_coef@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_celt_alpha_coef@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	lsl	x10, x9, #2
	ldr	s9, [x8, x10]
	str	xzr, [sp, #8]
Lloh3:
	adrp	x8, _ff_celt_beta_coef@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ff_celt_beta_coef@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	s10, [x8, x10]
Lloh6:
	adrp	x21, _ff_celt_coarse_energy_dist@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ff_celt_coarse_energy_dist@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x22, [x8]
	mov	x0, x1
	bl	_opus_rc_tell
	add	x8, x0, #3
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.gt	LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #3
	bl	_ff_opus_rc_dec_log
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x21]
	ldr	x9, [x20]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x22, [x8, #8]
	movi	d9, #0000000000000000
	mov	w8, #39424
	movk	w8, #16217, lsl #16
	fmov	s10, w8
LBB0_3:
Lloh8:
	adrp	x8, _CELT_MAX_BANDS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CELT_MAX_BANDS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_20
; %bb.4:
	mov	x21, #0
	ldr	w8, [x20, #16]
	add	x24, sp, #8
Lloh11:
	adrp	x25, _ff_celt_model_energy_small@GOTPAGE
Lloh12:
	ldr	x25, [x25, _ff_celt_model_energy_small@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh13:
	adrp	x9, _CELT_MAX_BANDS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CELT_MAX_BANDS@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	cmp	x21, w9, sxtw
	b.ge	LBB0_20
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x26, #0
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=2
	ldr	x9, [x27, x26, lsl #3]
	str	xzr, [x9, x21, lsl #3]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x26, x26, #1
	cmp	x26, w8, sxtw
	b.ge	LBB0_5
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x27, [x20, #32]
	ldrsw	x9, [x20, #20]
	cmp	x21, x9
	b.lt	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldrsw	x9, [x20, #24]
	cmp	x21, x9
	b.ge	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	w28, [x20, #8]
	mov	x0, x19
	bl	_opus_rc_tell
	sub	w8, w28, w0
	cmp	w8, #15
	b.lt	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x21
	mov	w1, #20
	bl	_FFMIN
	lsl	w8, w0, #1
	add	x8, x22, w8, sxtw #2
	ldp	w9, w8, [x8]
	lsl	w1, w9, #7
	lsl	w2, w8, #6
	mov	x0, x19
	bl	_ff_opus_rc_dec_laplace
	fmov	s8, s0
	b	LBB0_19
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=2
	cmp	w8, #2
	b.lt	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	w1, [x25]
	mov	x0, x19
	bl	_ff_opus_rc_dec_cdf
	and	w8, w0, #0x1
	neg	w8, w8
	eor	w8, w8, w0, asr #1
	scvtf	s8, w8
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=2
	fmov	s8, #-1.00000000
	cmp	w8, #1
	b.ne	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x19
	mov	w1, #1
	bl	_ff_opus_rc_dec_log
	scvtf	s0, x0
	fneg	s8, s0
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=2
	lsl	x28, x26, #3
	ldr	x8, [x27, x28]
	lsl	x23, x21, #3
	ldr	d0, [x8, x23]
	fcvt	s1, d0
	fmov	s0, #-9.00000000
	bl	_FFMAX
	lsl	x8, x26, #2
	ldr	s1, [x24, x8]
	fmadd	s0, s0, s9, s1
	fadd	s0, s8, s0
	fcvt	d0, s0
	ldr	x9, [x27, x28]
	str	d0, [x9, x23]
	fmadd	s0, s10, s8, s1
	str	s0, [x24, x8]
	ldr	w8, [x20, #16]
	b	LBB0_10
LBB0_20:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_celt_alpha_coef,8,3         ; @ff_celt_alpha_coef
	.comm	_ff_celt_beta_coef,8,3          ; @ff_celt_beta_coef
	.comm	_ff_celt_coarse_energy_dist,8,3 ; @ff_celt_coarse_energy_dist
	.comm	_CELT_MAX_BANDS,4,2             ; @CELT_MAX_BANDS
	.comm	_ff_celt_model_energy_small,4,2 ; @ff_celt_model_energy_small
	.no_dead_strip	_celt_decode_coarse_energy
.subsections_via_symbols
