	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adts_decode_extradata
_adts_decode_extradata:                 ## @adts_decode_extradata
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	leal	(,%r12,8), %edx
	leaq	-36(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_init_get_bits
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movl	$1, %ecx
	movq	%r14, %r8
	callq	_avpriv_mpeg4audio_get_config2
	testl	%eax, %eax
	js	LBB0_16
## %bb.1:
	leaq	-36(%rbp), %rdi
	movl	%eax, %esi
	callq	_skip_bits_long
	movl	-48(%rbp), %ecx
	leal	-1(%rcx), %edx
	movl	%edx, (%r15)
	movl	-44(%rbp), %eax
	movl	%eax, 4(%r15)
	movl	-40(%rbp), %esi
	movl	%esi, 20(%r15)
	cmpl	$4, %edx
	jb	LBB0_3
## %bb.2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_6
LBB0_3:
	cmpl	$15, %eax
	jne	LBB0_7
## %bb.4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_5
LBB0_7:
	leaq	-36(%rbp), %rdi
	movl	$1, %esi
	callq	_get_bits
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_5
LBB0_9:
	leaq	-36(%rbp), %rdi
	movl	$1, %esi
	callq	_get_bits
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_5
LBB0_11:
	leaq	-36(%rbp), %rdi
	movl	$1, %esi
	callq	_get_bits
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
LBB0_5:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_6:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	cmpl	$0, 20(%r15)
	jne	LBB0_15
## %bb.14:
	movl	16(%r15), %esi
	movq	_MAX_PCE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-52(%rbp), %r14
	movq	%r14, %rdi
	callq	_init_put_bits
	movq	%r14, %rdi
	movl	$3, %esi
	movl	$5, %edx
	callq	_put_bits
	leaq	-36(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ff_copy_pce_data
                                        ## kill: def $eax killed $eax def $rax
	leal	3(%rax), %ecx
	addl	$10, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	movl	%eax, 8(%r15)
	movq	%r14, %rdi
	callq	_flush_put_bits
LBB0_15:
	movl	$1, 12(%r15)
	xorl	%eax, %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MPEG-4 AOT %d is not allowed in ADTS\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Escape sample rate index illegal in ADTS\n"

L_.str.2:                               ## @.str.2
	.asciz	"960/120 MDCT window is not allowed in ADTS\n"

L_.str.3:                               ## @.str.3
	.asciz	"Scalable configurations are not allowed in ADTS\n"

L_.str.4:                               ## @.str.4
	.asciz	"Extension flag is not allowed in ADTS\n"

	.comm	_MAX_PCE_SIZE,4,2               ## @MAX_PCE_SIZE
	.no_dead_strip	_adts_decode_extradata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adts_decode_extradata
_adts_decode_extradata:                 ; @adts_decode_extradata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	lsl	w2, w3, #3
	add	x0, sp, #28
	mov	x1, x22
	bl	_init_get_bits
	add	x0, sp, #8
	mov	x1, x22
	mov	x2, x21
	mov	w3, #1
	mov	x4, x20
	bl	_avpriv_mpeg4audio_get_config2
	mov	x1, x0
	tbnz	w0, #31, LBB0_12
; %bb.1:
	add	x0, sp, #28
	bl	_skip_bits_long
	ldp	w8, w9, [sp, #8]
	sub	w10, w8, #1
	stp	w10, w9, [x19]
	ldr	w11, [sp, #16]
	str	w11, [x19, #20]
	cmp	w10, #4
	b.lo	LBB0_3
; %bb.2:
Lloh0:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_11
LBB0_3:
	cmp	w9, #15
	b.ne	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_5:
	add	x0, sp, #28
	mov	w1, #1
	bl	_get_bits
	cbz	x0, LBB0_7
; %bb.6:
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_7:
	add	x0, sp, #28
	mov	w1, #1
	bl	_get_bits
	cbz	x0, LBB0_9
; %bb.8:
Lloh15:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str.3@PAGE
Lloh19:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_9:
	add	x0, sp, #28
	mov	w1, #1
	bl	_get_bits
	cbz	x0, LBB0_13
; %bb.10:
Lloh20:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str.4@PAGE
Lloh24:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_11:
	mov	x0, x20
	bl	_av_log
Lloh25:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
LBB0_12:
	mov	x0, x1
	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
	add	sp, sp, #80
	ret
LBB0_13:
	ldr	w8, [x19, #20]
	cbnz	w8, LBB0_15
; %bb.14:
	ldr	w1, [x19, #16]
Lloh28:
	adrp	x8, _MAX_PCE_SIZE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MAX_PCE_SIZE@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	add	x0, sp, #24
	bl	_init_put_bits
	add	x0, sp, #24
	mov	w1, #3
	mov	w2, #5
	bl	_put_bits
	add	x0, sp, #24
	add	x1, sp, #28
	bl	_ff_copy_pce_data
	add	w8, w0, #3
	add	w9, w0, #10
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	str	w8, [x19, #8]
	add	x0, sp, #24
	bl	_flush_put_bits
LBB0_15:
	mov	w1, #0
	mov	w8, #1
	str	w8, [x19, #12]
	b	LBB0_12
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MPEG-4 AOT %d is not allowed in ADTS\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Escape sample rate index illegal in ADTS\n"

l_.str.2:                               ; @.str.2
	.asciz	"960/120 MDCT window is not allowed in ADTS\n"

l_.str.3:                               ; @.str.3
	.asciz	"Scalable configurations are not allowed in ADTS\n"

l_.str.4:                               ; @.str.4
	.asciz	"Extension flag is not allowed in ADTS\n"

	.comm	_MAX_PCE_SIZE,4,2               ; @MAX_PCE_SIZE
	.no_dead_strip	_adts_decode_extradata
.subsections_via_symbols
