	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function truespeech_decode_frame
_truespeech_decode_frame:               ## @truespeech_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rcx), %ebx
	leal	31(%rbx), %eax
	testl	%ebx, %ebx
	movl	%ebx, %r15d
	cmovsl	%eax, %r15d
	cmpl	$62, %eax
	ja	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %ecx
	callq	_av_log
	movl	$-1, %eax
	jmp	LBB0_7
LBB0_2:
	movq	%rsi, %r13
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %r12
	movq	(%rdi), %rbx
	sarl	$5, %r15d
	imull	$240, %r15d, %r14d
	movl	%r14d, (%rsi)
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	8(%r13), %rax
	movq	(%rax), %r13
	shll	$2, %r14d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_memset
	cmpl	$32, -48(%rbp)                  ## 4-byte Folded Reload
	jl	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_truespeech_read_frame
	movq	%rbx, %rdi
	callq	_truespeech_correlate_filter
	movq	%rbx, %rdi
	callq	_truespeech_filters_merge
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_truespeech_apply_twopoint_filter
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_truespeech_place_pulses
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_truespeech_update_filters
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_truespeech_synth
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_truespeech_apply_twopoint_filter
	leaq	240(%r13), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_truespeech_place_pulses
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_truespeech_update_filters
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_truespeech_synth
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_truespeech_apply_twopoint_filter
	leaq	480(%r13), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$2, %edx
	callq	_truespeech_place_pulses
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$2, %edx
	callq	_truespeech_update_filters
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$2, %edx
	callq	_truespeech_synth
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_truespeech_apply_twopoint_filter
	leaq	720(%r13), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$3, %edx
	callq	_truespeech_place_pulses
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$3, %edx
	callq	_truespeech_update_filters
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$3, %edx
	callq	_truespeech_synth
	subq	$-128, %r12
	movq	%rbx, %rdi
	callq	_truespeech_save_prevvec
	addq	$960, %r13                      ## imm = 0x3C0
	decl	%r15d
	jne	LBB0_5
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_3:
                                        ## kill: def $eax killed $eax def $rax
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	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	"Too small input buffer (%d bytes), need at least 32 bytes\n"

	.no_dead_strip	_truespeech_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function truespeech_decode_frame
_truespeech_decode_frame:               ; @truespeech_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
	ldr	w19, [x3]
	add	w9, w19, #31
	cmp	w19, #0
	csel	w8, w9, w19, lt
	cmp	w9, #62
	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	x3, x19
	bl	_av_log
	mov	w19, #-1
	b	LBB0_7
LBB0_2:
	mov	x20, x2
	mov	x23, x1
	ldr	x21, [x3, #8]
	ldr	x22, [x0]
	asr	w25, w8, #5
	mov	w8, #240
	mul	w24, w25, w8
	str	w24, [x1]
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	x8, [x23, #8]
	ldr	x23, [x8]
	lsl	w2, w24, #2
	mov	x0, x23
	mov	w1, #0
	bl	_memset
	cmp	w19, #32
	b.lt	LBB0_5
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_truespeech_read_frame
	mov	x0, x22
	bl	_truespeech_correlate_filter
	mov	x0, x22
	bl	_truespeech_filters_merge
	mov	x0, x22
	mov	w1, #0
	bl	_truespeech_apply_twopoint_filter
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	bl	_truespeech_place_pulses
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	bl	_truespeech_update_filters
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	bl	_truespeech_synth
	mov	x0, x22
	mov	w1, #1
	bl	_truespeech_apply_twopoint_filter
	add	x24, x23, #240
	mov	x0, x22
	mov	x1, x24
	mov	w2, #1
	bl	_truespeech_place_pulses
	mov	x0, x22
	mov	x1, x24
	mov	w2, #1
	bl	_truespeech_update_filters
	mov	x0, x22
	mov	x1, x24
	mov	w2, #1
	bl	_truespeech_synth
	mov	x0, x22
	mov	w1, #2
	bl	_truespeech_apply_twopoint_filter
	add	x24, x23, #480
	mov	x0, x22
	mov	x1, x24
	mov	w2, #2
	bl	_truespeech_place_pulses
	mov	x0, x22
	mov	x1, x24
	mov	w2, #2
	bl	_truespeech_update_filters
	mov	x0, x22
	mov	x1, x24
	mov	w2, #2
	bl	_truespeech_synth
	mov	x0, x22
	mov	w1, #3
	bl	_truespeech_apply_twopoint_filter
	add	x24, x23, #720
	mov	x0, x22
	mov	x1, x24
	mov	w2, #3
	bl	_truespeech_place_pulses
	mov	x0, x22
	mov	x1, x24
	mov	w2, #3
	bl	_truespeech_update_filters
	mov	x0, x22
	mov	x1, x24
	mov	w2, #3
	bl	_truespeech_synth
	add	x21, x21, #128
	mov	x0, x22
	bl	_truespeech_save_prevvec
	add	x23, x23, #960
	subs	w25, w25, #1
	b.ne	LBB0_4
LBB0_5:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_7
LBB0_6:
	mov	x19, x0
LBB0_7:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too small input buffer (%d bytes), need at least 32 bytes\n"

	.no_dead_strip	_truespeech_decode_frame
.subsections_via_symbols
