	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libcelt_dec_decode
_libcelt_dec_decode:                    ## @libcelt_dec_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
	pushq	%rax
	.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, %r13
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	(%rdi), %eax
	movl	%eax, (%rsi)
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rax
	movq	(%rax), %r13
	movl	4(%r14), %edi
	movl	(%r15), %edx
	movl	4(%r15), %esi
	movl	(%rbx), %r8d
	movq	%r13, %rcx
	callq	_celt_decode
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	(%r12), %edx
	subl	%eax, %edx
	movl	%edx, (%r12)
	movl	4(%rbx), %ecx
	imull	%ecx, %eax
	cltq
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	imull	%ecx, %edx
	shll	$2, %edx
	movq	%r13, %rdi
	callq	_memmove
	movl	$0, (%r14)
LBB0_4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	(%r15), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_celt_error_to_averror       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_libcelt_dec_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libcelt_dec_decode
_libcelt_dec_decode:                    ; @libcelt_dec_decode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x24, [x0, #8]
	ldr	w8, [x0]
	str	w8, [x1]
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	x8, [x22, #8]
	ldr	x23, [x8]
	ldr	w0, [x24, #4]
	ldp	w2, w1, [x19]
	ldr	w4, [x21]
	mov	x3, x23
	bl	_celt_decode
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	w8, [x24]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	w9, [x22]
	sub	w9, w9, w8
	str	w9, [x22]
	ldr	w10, [x21, #4]
	mul	w8, w10, w8
	add	x1, x23, w8, sxtw #2
	mul	w8, w9, w10
	lsl	w2, w8, #2
	mov	x0, x23
	bl	_memmove
	str	wzr, [x24]
LBB0_4:
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ff_celt_error_to_averror
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_libcelt_dec_decode
.subsections_via_symbols
