	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libspeex_decode_frame
_libspeex_decode_frame:                 ## @libspeex_decode_frame
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rcx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %r14d
	movq	16(%rdi), %r12
	movq	_AV_SAMPLE_FMT_S16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	movl	12(%r12), %eax
	movl	%eax, 8(%rsi)
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	leaq	16(%r12), %r13
	movq	%r13, %rdi
	callq	_speex_bits_remaining
	cmpl	$5, %eax
	jl	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	movl	$5, %esi
	callq	_speex_bits_peek_unsigned
	xorl	%r12d, %r12d
	cmpl	$15, %eax
	jne	LBB0_8
LBB0_4:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.7:
	movl	(%rbx), %eax
	cmpl	$62, %r14d
	movl	%r14d, %edx
	cmovel	%eax, %edx
	testl	%eax, %eax
	cmovel	%r14d, %edx
	movq	%r13, %rdi
	callq	_speex_bits_read_from
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r12d
LBB0_8:
	movl	4(%rbx), %edi
	movq	%r13, %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_speex_decode_int
	cmpl	$-2, %eax
	jg	LBB0_10
## %bb.9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_15
LBB0_1:
	movl	%eax, %r14d
	jmp	LBB0_15
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	jmp	LBB0_15
LBB0_10:
	cmpl	$2, (%r15)
	jne	LBB0_12
## %bb.11:
	movl	12(%rbx), %esi
	leaq	8(%rbx), %rdx
	movq	%r14, %rdi
	callq	_speex_decode_stereo_int
LBB0_12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	cmpl	$0, 4(%r15)
	jne	LBB0_14
## %bb.13:
	addq	$4, %r15
	movl	4(%rbx), %edi
	movq	_SPEEX_GET_BITRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_speex_decoder_ctl
LBB0_14:
	movl	%r12d, %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_SAMPLE_FMT_S16,4,2          ## @AV_SAMPLE_FMT_S16
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error decoding Speex frame.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_SPEEX_GET_BITRATE,4,2          ## @SPEEX_GET_BITRATE
	.no_dead_strip	_libspeex_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libspeex_decode_frame
_libspeex_decode_frame:                 ; @libspeex_decode_frame
	.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	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x24, [x3, #8]
	ldr	w19, [x3]
	ldr	x26, [x0, #16]
Lloh0:
	adrp	x8, _AV_SAMPLE_FMT_S16@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_SAMPLE_FMT_S16@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	ldr	w8, [x26, #12]
	str	w8, [x1, #8]
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	x8, [x22]
	ldr	x22, [x8]
	add	x25, x26, #16
	mov	x0, x25
	bl	_speex_bits_remaining
	cmp	w0, #5
	b.lt	LBB0_3
; %bb.2:
	mov	x0, x25
	mov	w1, #5
	bl	_speex_bits_peek_unsigned
	cmp	w0, #15
	b.ne	LBB0_8
LBB0_3:
	cbz	x24, LBB0_7
; %bb.4:
	cbz	w19, LBB0_7
; %bb.5:
	ldr	w8, [x26]
	cmp	w19, #62
	ccmp	w8, #0, #4, eq
	csel	w2, w8, w19, ne
	mov	x0, x25
	mov	x1, x24
	bl	_speex_bits_read_from
	ldr	w19, [x23]
	b	LBB0_9
LBB0_6:
	mov	x19, x0
	b	LBB0_15
LBB0_7:
	str	wzr, [x21]
	b	LBB0_15
LBB0_8:
	mov	w19, #0
LBB0_9:
	ldr	w0, [x26, #4]
	mov	x1, x25
	mov	x2, x22
	bl	_speex_decode_int
	cmn	w0, #2
	b.gt	LBB0_11
; %bb.10:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	b	LBB0_15
LBB0_11:
	ldr	w8, [x20]
	cmp	w8, #2
	b.ne	LBB0_13
; %bb.12:
	ldr	w1, [x26, #12]
	add	x2, x26, #8
	mov	x0, x22
	bl	_speex_decode_stereo_int
LBB0_13:
	mov	w8, #1
	str	w8, [x21]
	ldr	w8, [x20, #4]!
	cbnz	w8, LBB0_15
; %bb.14:
	ldr	w0, [x26, #4]
Lloh11:
	adrp	x8, _SPEEX_GET_BITRATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SPEEX_GET_BITRATE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_speex_decoder_ctl
LBB0_15:
	mov	x0, x19
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_SAMPLE_FMT_S16,4,2          ; @AV_SAMPLE_FMT_S16
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error decoding Speex frame.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_SPEEX_GET_BITRATE,4,2          ; @SPEEX_GET_BITRATE
	.no_dead_strip	_libspeex_decode_frame
.subsections_via_symbols
