	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_cpe
_decode_cpe:                            ## @decode_cpe
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	8(%rax), %rax
	movq	_AOT_ER_AAC_ELD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	(%r14), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_decode_ics_info
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_22
LBB0_5:
	movq	(%r14), %rax
	movq	32(%rax), %rcx
	movl	(%rcx), %ecx
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	%xmm1, 48(%rax)
	movups	%xmm0, 32(%rax)
	movq	(%r14), %rax
	movq	32(%rax), %rdx
	movl	%ecx, 4(%rdx)
	cmpq	$0, 56(%rax)
	je	LBB0_9
## %bb.6:
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movq	_AOT_AAC_MAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_get_bits
	movq	(%r14), %rdi
	movq	%rax, 48(%rdi)
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	40(%rdi), %edx
	addq	$48, %rdi
	movq	%rbx, %rsi
	callq	_decode_ltp
LBB0_9:
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	%rax, %r12
	movl	$1, %r13d
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.11:
	cmpl	$3, %r12d
	jne	LBB0_13
## %bb.12:
	movl	8(%r15), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	jmp	LBB0_4
LBB0_2:
	xorl	%r13d, %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_10:
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_14
LBB0_13:
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_decode_mid_side_stereo
LBB0_14:
	movq	(%r14), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	callq	_decode_ics
	testl	%eax, %eax
	jne	LBB0_22
## %bb.15:
	movq	(%r14), %rsi
	addq	$32, %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	callq	_decode_ics
	testl	%eax, %eax
	jne	LBB0_22
## %bb.16:
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_21
## %bb.17:
	testl	%r12d, %r12d
	je	LBB0_19
## %bb.18:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_apply_mid_side_stereo
LBB0_19:
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movq	_AOT_AAC_MAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.20:
	movq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_apply_prediction
	movq	(%r14), %rsi
	addq	$32, %rsi
	movq	%r15, %rdi
	callq	_apply_prediction
LBB0_21:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_apply_intensity_stereo
	xorl	%eax, %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AOT_ER_AAC_ELD,8,3             ## @AOT_ER_AAC_ELD
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AOT_AAC_MAIN,8,3               ## @AOT_AAC_MAIN
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ms_present = 3 is reserved.\n"

	.no_dead_strip	_decode_cpe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_cpe
_decode_cpe:                            ; @decode_cpe
	.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, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
Lloh0:
	adrp	x9, _AOT_ER_AAC_ELD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AOT_ER_AAC_ELD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_get_bits1
	cbz	x0, LBB0_11
LBB0_2:
	ldr	x1, [x19]
	mov	x0, x20
	mov	x2, x21
	bl	_decode_ics_info
	cbz	x0, LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_22
LBB0_4:
	ldr	x8, [x19]
	ldr	x9, [x8, #32]
	ldr	w9, [x9]
	ldp	q0, q1, [x8]
	stp	q0, q1, [x8, #32]
	ldr	x8, [x19]
	ldr	x10, [x8, #32]
	str	w9, [x10, #4]
	ldr	x8, [x8, #56]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
Lloh6:
	adrp	x9, _AOT_AAC_MAIN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AOT_AAC_MAIN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x21
	mov	w1, #1
	bl	_get_bits
	ldr	x8, [x19]
	str	x0, [x8, #48]
	cbz	x0, LBB0_8
; %bb.7:
	add	x0, x8, #48
	ldr	w2, [x8, #40]
	mov	x1, x21
	bl	_decode_ltp
LBB0_8:
	mov	x0, x21
	mov	w1, #2
	bl	_get_bits
	mov	x22, x0
	cbz	w22, LBB0_13
; %bb.9:
	cmp	w22, #3
	b.ne	LBB0_12
; %bb.10:
	ldr	w0, [x20, #8]
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	b	LBB0_3
LBB0_11:
	mov	w23, #0
	mov	w22, #0
	b	LBB0_14
LBB0_12:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_decode_mid_side_stereo
LBB0_13:
	mov	w23, #1
LBB0_14:
	ldr	x1, [x19]
	mov	x0, x20
	mov	x2, x21
	mov	x3, x23
	mov	w4, #0
	bl	_decode_ics
	cbnz	w0, LBB0_22
; %bb.15:
	ldr	x8, [x19]
	add	x1, x8, #32
	mov	x0, x20
	mov	x2, x21
	mov	x3, x23
	mov	w4, #0
	bl	_decode_ics
	cbnz	w0, LBB0_22
; %bb.16:
	cbz	w23, LBB0_21
; %bb.17:
	cbz	w22, LBB0_19
; %bb.18:
	mov	x0, x20
	mov	x1, x19
	bl	_apply_mid_side_stereo
LBB0_19:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
Lloh14:
	adrp	x9, _AOT_AAC_MAIN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AOT_AAC_MAIN@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.20:
	ldr	x1, [x19]
	mov	x0, x20
	bl	_apply_prediction
	ldr	x8, [x19]
	add	x1, x8, #32
	mov	x0, x20
	bl	_apply_prediction
LBB0_21:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_apply_intensity_stereo
	mov	w0, #0
LBB0_22:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AOT_ER_AAC_ELD,8,3             ; @AOT_ER_AAC_ELD
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AOT_AAC_MAIN,8,3               ; @AOT_AAC_MAIN
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ms_present = 3 is reserved.\n"

	.no_dead_strip	_decode_cpe
.subsections_via_symbols
