	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function ff_celt_init
LCPI0_0:
	.long	0xb8000000                      ## float -3.05175781E-5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ff_celt_init
	.p2align	4, 0x90
_ff_celt_init:                          ## @ff_celt_init
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r15
	leal	-3(%rbx), %eax
	cmpl	$-3, %eax
	ja	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movl	%ecx, %r13d
	movq	%rsi, %r14
	movl	$40, %edi
	callq	_av_mallocz
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r12
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, 32(%rax)
	movl	%ebx, (%rax)
	movl	%r13d, 4(%rax)
	movq	24(%rax), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_9
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rdi
	addq	%rbx, %rdi
	leal	3(%r14), %edx
	movl	$1, %esi
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_ff_mdct15_init
	testl	%eax, %eax
	js	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	movq	24(%r12), %rdi
	callq	_FF_ARRAY_ELEMS
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r14
	jl	LBB0_8
LBB0_9:
	leaq	16(%r12), %rdi
	xorl	%esi, %esi
	callq	_ff_celt_pvq_init
	testl	%eax, %eax
	js	LBB0_12
## %bb.10:
	movq	_AV_CODEC_FLAG_BITEXACT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r15), %edi
	callq	_avpriv_float_dsp_alloc
	movl	%eax, 12(%r12)
	testl	%eax, %eax
	je	LBB0_11
## %bb.14:
	movq	%r12, %rdi
	addq	$8, %rdi
	callq	_ff_opus_dsp_init
	movq	%r12, %rdi
	callq	_ff_celt_flush
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	xorl	%r13d, %r13d
	jmp	LBB0_13
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_12:
	movl	%eax, %r13d
	leaq	-56(%rbp), %rdi
	callq	_ff_celt_free
LBB0_13:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid number of output channels: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_CODEC_FLAG_BITEXACT,4,2     ## @AV_CODEC_FLAG_BITEXACT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_celt_init                   ; -- Begin function ff_celt_init
	.p2align	2
_ff_celt_init:                          ; @ff_celt_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x2
	mov	x21, x0
	sub	w8, w2, #3
	cmn	w8, #3
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x22
	bl	_av_log
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	mov	x23, x3
	mov	x19, x1
	mov	w0, #40
	bl	_av_mallocz
	str	x0, [sp, #8]
	cbz	x0, LBB0_10
; %bb.3:
	mov	x20, x0
	str	x21, [x0, #32]
	stp	w22, w23, [x0]
	ldr	x0, [x0, #24]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x23, #0
	mov	x24, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	add	x0, x8, x23
	add	w2, w24, #3
	movi.2s	v0, #184, lsl #24
	mov	w1, #1
	bl	_ff_mdct15_init
	tbnz	w0, #31, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldr	x0, [x20, #24]
	bl	_FF_ARRAY_ELEMS
	add	x23, x23, #4
	cmp	x24, w0, sxtw
	b.lt	LBB0_5
LBB0_7:
	add	x0, x20, #16
	mov	w1, #0
	bl	_ff_celt_pvq_init
	tbnz	w0, #31, LBB0_13
; %bb.8:
	ldr	w8, [x21]
Lloh7:
	adrp	x9, _AV_CODEC_FLAG_BITEXACT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AV_CODEC_FLAG_BITEXACT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_avpriv_float_dsp_alloc
	str	w0, [x20, #12]
	cbz	w0, LBB0_12
; %bb.9:
	add	x0, x20, #8
	bl	_ff_opus_dsp_init
	mov	x0, x20
	bl	_ff_celt_flush
	mov	w22, #0
	str	x20, [x19]
	b	LBB0_14
LBB0_10:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_AVERROR
LBB0_12:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_13:
	mov	x22, x0
	add	x0, sp, #8
	bl	_ff_celt_free
LBB0_14:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid number of output channels: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_CODEC_FLAG_BITEXACT,4,2     ; @AV_CODEC_FLAG_BITEXACT
.subsections_via_symbols
