	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aac_decode_frame
_aac_decode_frame:                      ## @aac_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	$56, %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, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r13
	movq	(%rcx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	8(%rcx), %r15d
	movq	_AV_PKT_DATA_NEW_EXTRADATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	movq	%rcx, %rdi
	callq	_av_packet_get_side_data
	movq	%rax, %r12
	movq	_AV_PKT_DATA_JP_DUALMONO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_av_packet_get_side_data
	movq	%rax, %r14
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movq	_OC_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r13), %rdx
	movl	%eax, 12(%rdx)
	addq	$8, %rdx
	movl	24(%r13), %esi
	movl	-52(%rbp), %r8d
	shll	$3, %r8d
	movq	%r13, %rdi
	movq	%r12, %rcx
	movl	$1, %r9d
	callq	_decode_audio_specific_config
	testl	%eax, %eax
	js	LBB0_12
LBB0_2:
	movq	$0, (%r13)
	testq	%r14, %r14
	je	LBB0_5
## %bb.3:
	cmpl	$0, -48(%rbp)
	jle	LBB0_5
## %bb.4:
	movq	(%r14), %rax
	incq	%rax
	movq	%rax, (%r13)
LBB0_5:
	movq	8(%r13), %rax
	testq	%rax, %rax
	js	LBB0_7
## %bb.6:
	movq	%rax, (%r13)
LBB0_7:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	cmpl	%r15d, %ecx
	jle	LBB0_11
## %bb.8:
	movl	%r15d, %r14d
	leaq	-44(%rbp), %rdi
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_12
## %bb.9:
	movq	16(%r13), %rax
	movl	8(%rax), %eax
	andl	$-4, %eax
	leaq	-44(%rbp), %rcx
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.10:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_aac_decode_er_frame
	testl	%eax, %eax
	jns	LBB0_14
	jmp	LBB0_12
LBB0_11:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_13:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %r8
	callq	_aac_decode_frame_int
	testl	%eax, %eax
	js	LBB0_12
LBB0_14:
	leaq	-44(%rbp), %rdi
	callq	_get_bits_count
	addl	$7, %eax
	sarl	$3, %eax
	cmpl	%r14d, %eax
	jge	LBB0_19
## %bb.15:
	movslq	%r14d, %rcx
	movslq	%eax, %rdx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r15,%rdx,8)
	jne	LBB0_12
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_16
LBB0_19:
	movl	%r14d, %eax
LBB0_12:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PKT_DATA_NEW_EXTRADATA,4,2  ## @AV_PKT_DATA_NEW_EXTRADATA
	.comm	_AV_PKT_DATA_JP_DUALMONO,4,2    ## @AV_PKT_DATA_JP_DUALMONO
	.comm	_OC_NONE,4,2                    ## @OC_NONE
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_aac_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aac_decode_frame
_aac_decode_frame:                      ; @aac_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x25, [x0]
	ldr	x20, [x3]
	ldr	w19, [x3, #8]
Lloh0:
	adrp	x8, _AV_PKT_DATA_NEW_EXTRADATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PKT_DATA_NEW_EXTRADATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x3
	bl	_av_packet_get_side_data
	mov	x27, x0
Lloh3:
	adrp	x8, _AV_PKT_DATA_JP_DUALMONO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_PKT_DATA_JP_DUALMONO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #4
	mov	x0, x24
	bl	_av_packet_get_side_data
	mov	x26, x0
	cbz	x27, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _OC_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OC_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x25, #16]
	add	x2, x9, #8
	str	w8, [x9, #12]
	ldr	w1, [x25, #24]
	ldr	w8, [sp, #8]
	lsl	w4, w8, #3
	mov	x0, x25
	mov	x3, x27
	mov	w5, #1
	bl	_decode_audio_specific_config
	tbnz	w0, #31, LBB0_17
LBB0_2:
	str	xzr, [x25]
	ldr	w8, [sp, #4]
	cmp	x26, #0
	ccmp	w8, #1, #8, ne
	b.lt	LBB0_4
; %bb.3:
	ldr	x8, [x26]
	add	x8, x8, #1
	str	x8, [x25]
LBB0_4:
	ldr	x8, [x25, #8]
	tbnz	x8, #63, LBB0_6
; %bb.5:
	str	x8, [x25]
LBB0_6:
Lloh9:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	cmp	w19, w8, asr #3
	b.ge	LBB0_10
; %bb.7:
	add	x0, sp, #12
	mov	x1, x20
	mov	x2, x19
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_17
; %bb.8:
	ldr	x8, [x25, #16]
	ldr	w8, [x8, #8]
	and	w8, w8, #0xfffffffc
	add	x3, sp, #12
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	cmp	w8, #128
	b.ne	LBB0_11
; %bb.9:
	bl	_aac_decode_er_frame
	tbz	w0, #31, LBB0_12
	b	LBB0_17
LBB0_10:
Lloh12:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_17
LBB0_11:
	mov	x4, x24
	bl	_aac_decode_frame_int
	tbnz	w0, #31, LBB0_17
LBB0_12:
	add	x0, sp, #12
	bl	_get_bits_count
	add	w8, w0, #7
	asr	w0, w8, #3
	cmp	w0, w19
	b.ge	LBB0_16
; %bb.13:
	sxtw	x9, w19
	add	x8, x20, w0, sxtw #3
	sub	x9, x9, w0, sxtw
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8]
	cbnz	x10, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x8, x8, #8
	subs	x9, x9, #1
	b.ne	LBB0_14
LBB0_16:
	mov	x0, x19
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PKT_DATA_NEW_EXTRADATA,4,2  ; @AV_PKT_DATA_NEW_EXTRADATA
	.comm	_AV_PKT_DATA_JP_DUALMONO,4,2    ; @AV_PKT_DATA_JP_DUALMONO
	.comm	_OC_NONE,4,2                    ; @OC_NONE
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_aac_decode_frame
.subsections_via_symbols
