	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libopus_decode
_libopus_decode:                        ## @libopus_decode
	.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
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	_AV_SAMPLE_FMT_S16@GOTPCREL(%rip), %r8
	movl	16(%r14), %edi
	movl	(%r15), %edx
	movl	4(%r15), %esi
	movq	8(%r13), %rcx
	movq	(%rcx), %rcx
	cmpq	(%r8), %rax
	jne	LBB0_3
## %bb.2:
	movl	(%r13), %r8d
	xorl	%r9d, %r9d
	callq	_opus_multistream_decode
	jmp	LBB0_4
LBB0_3:
	movl	(%r13), %r8d
	xorl	%r9d, %r9d
	callq	_opus_multistream_decode_float
LBB0_4:
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_14
## %bb.5:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %r15d
	imull	%r12d, %r15d
	movq	(%rbx), %rax
	movq	_AV_SAMPLE_FMT_FLT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.6:
	testl	%r15d, %r15d
	jle	LBB0_12
## %bb.7:
	movq	8(%r13), %rax
	movq	(%rax), %rbx
	incl	%r15d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movss	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	mulss	(%r14), %xmm0
	movl	$-1, %edi
	movl	$1, %esi
	callq	_av_clipf
	movss	%xmm0, (%rbx)
	addq	$4, %rbx
	decl	%r15d
	cmpl	$1, %r15d
	ja	LBB0_8
	jmp	LBB0_12
LBB0_14:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r12d, %edi
	callq	_opus_strerror
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	callq	_av_log
	movl	%r12d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_opus_error_to_averror       ## TAILCALL
LBB0_9:
	testl	%r15d, %r15d
	jle	LBB0_12
## %bb.10:
	movq	8(%r13), %rax
	movq	(%rax), %rbx
	incl	%r15d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	imull	8(%r14), %edi
	sarl	$16, %edi
	callq	_av_clip_int16
	movl	%eax, (%rbx)
	addq	$4, %rbx
	decl	%r15d
	cmpl	$1, %r15d
	ja	LBB0_11
LBB0_12:
	movl	%r12d, (%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_FRAME_SIZE,4,2             ## @MAX_FRAME_SIZE
	.comm	_AV_SAMPLE_FMT_S16,8,3          ## @AV_SAMPLE_FMT_S16
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Decoding error: %s\n"

	.comm	_AV_SAMPLE_FMT_FLT,8,3          ## @AV_SAMPLE_FMT_FLT
	.no_dead_strip	_libopus_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libopus_decode
_libopus_decode:                        ; @libopus_decode
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	ldr	x24, [x0, #16]
Lloh0:
	adrp	x8, _MAX_FRAME_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1]
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_13
; %bb.1:
	ldr	x8, [x23]
Lloh3:
	adrp	x9, _AV_SAMPLE_FMT_S16@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_SAMPLE_FMT_S16@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w0, [x24, #16]
	ldp	w2, w1, [x19]
	ldr	x10, [x21, #8]
	ldr	x3, [x10]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	ldr	w4, [x21]
	mov	w5, #0
	bl	_opus_multistream_decode
	mov	x22, x0
	tbnz	w0, #31, LBB0_8
LBB0_3:
	ldr	w8, [x23, #8]
	mul	w8, w8, w22
	ldr	x9, [x23]
Lloh6:
	adrp	x10, _AV_SAMPLE_FMT_FLT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AV_SAMPLE_FMT_FLT@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.4:
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.5:
	ldr	x9, [x21, #8]
	ldr	x23, [x9]
	add	w25, w8, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s0, [x23]
	ldr	s1, [x24]
	fmul	s0, s0, s1
	mov	w0, #-1
	mov	w1, #1
	bl	_av_clipf
	str	s0, [x23], #4
	sub	w25, w25, #1
	cmp	w25, #1
	b.hi	LBB0_6
	b	LBB0_12
LBB0_7:
	ldr	w4, [x21]
	mov	w5, #0
	bl	_opus_multistream_decode_float
	mov	x22, x0
	tbz	w0, #31, LBB0_3
LBB0_8:
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
	mov	x0, x22
	bl	_opus_strerror
	mov	x3, x0
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	mov	x1, x19
	bl	_av_log
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ff_opus_error_to_averror
LBB0_9:
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	ldr	x9, [x21, #8]
	ldr	x23, [x9]
	add	w25, w8, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24, #8]
	ldr	w9, [x23]
	mul	w8, w9, w8
	asr	w0, w8, #16
	bl	_av_clip_int16
	str	w0, [x23], #4
	sub	w25, w25, #1
	cmp	w25, #1
	b.hi	LBB0_11
LBB0_12:
	str	w22, [x21]
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x19]
LBB0_13:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_FRAME_SIZE,4,2             ; @MAX_FRAME_SIZE
	.comm	_AV_SAMPLE_FMT_S16,8,3          ; @AV_SAMPLE_FMT_S16
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Decoding error: %s\n"

	.comm	_AV_SAMPLE_FMT_FLT,8,3          ; @AV_SAMPLE_FMT_FLT
	.no_dead_strip	_libopus_decode
.subsections_via_symbols
