	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cinaudio_decode_frame
_cinaudio_decode_frame:                 ## @cinaudio_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
	movq	%rcx, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	8(%rcx), %r15
	movq	(%rdi), %r13
	movslq	(%rcx), %r14
	movl	(%r13), %eax
	movl	%r14d, %ecx
	subl	%eax, %ecx
	movl	%ecx, (%rsi)
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r14,4), %r14
	movq	8(%r12), %rax
	movq	(%rax), %rbx
	cmpl	$0, (%r13)
	je	LBB0_2
## %bb.3:
	movl	$0, (%r13)
	movq	%r15, %rdi
	callq	_AV_RL16
	movl	%eax, %edi
	movl	$16, %esi
	callq	_sign_extend
	addq	$8, %r15
	movl	%eax, (%rbx)
	addq	$4, %rbx
	cmpq	%r14, %r15
	jb	LBB0_5
	jmp	LBB0_7
LBB0_2:
	movl	4(%r13), %eax
	cmpq	%r14, %r15
	jae	LBB0_7
LBB0_5:
	movq	_cinaudio_delta16_table@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rcx
	movslq	(%r15), %rdx
	addq	$4, %r15
	addl	(%rcx,%rdx,8), %eax
	movl	%eax, %edi
	callq	_av_clip_int16
	movl	%eax, (%rbx)
	addq	$4, %rbx
	cmpq	%r14, %r15
	jb	LBB0_6
LBB0_7:
	movl	%eax, 4(%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cinaudio_delta16_table,8,3     ## @cinaudio_delta16_table
	.no_dead_strip	_cinaudio_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cinaudio_decode_frame
_cinaudio_decode_frame:                 ; @cinaudio_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	x19, x3
	mov	x20, x2
	mov	x22, x1
	ldr	x21, [x3, #8]
	ldr	x23, [x0]
	ldrsw	x24, [x3]
	ldr	w8, [x23]
	sub	w8, w24, w8
	str	w8, [x1]
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_7
; %bb.1:
	add	x24, x21, x24, lsl #2
	ldr	x8, [x22, #8]
	ldr	x22, [x8]
	ldr	w8, [x23]
	cbz	w8, LBB0_3
; %bb.2:
	str	wzr, [x23]
	mov	x0, x21
	bl	_AV_RL16
	mov	w1, #16
	bl	_sign_extend
	add	x21, x21, #8
	str	w0, [x22], #4
	cmp	x21, x24
	b.lo	LBB0_4
	b	LBB0_6
LBB0_3:
	ldr	w0, [x23, #4]
	cmp	x21, x24
	b.hs	LBB0_6
LBB0_4:
Lloh0:
	adrp	x25, _cinaudio_delta16_table@GOTPAGE
Lloh1:
	ldr	x25, [x25, _cinaudio_delta16_table@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldrsw	x9, [x21], #4
	ldr	x8, [x8, x9, lsl #3]
	add	w0, w0, w8
	bl	_av_clip_int16
	str	w0, [x22], #4
	cmp	x21, x24
	b.lo	LBB0_5
LBB0_6:
	str	w0, [x23, #4]
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x19]
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cinaudio_delta16_table,8,3     ; @cinaudio_delta16_table
	.no_dead_strip	_cinaudio_decode_frame
.subsections_via_symbols
