	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_adts_frame_header
_parse_adts_frame_header:               ## @parse_adts_frame_header
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_ELEM_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leaq	-104(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ff_adts_header_parse
	movl	%eax, %r15d
	testl	%eax, %eax
	jle	LBB0_16
## %bb.1:
	cmpl	$0, (%rbx)
	jne	LBB0_4
## %bb.2:
	cmpl	$1, -104(%rbp)
	je	LBB0_4
## %bb.3:
	movl	24(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_avpriv_report_missing_feature
	movl	$1, (%rbx)
LBB0_4:
	movq	%rbx, %rdi
	callq	_push_output_configuration
	movq	-96(%rbp), %rcx
	movq	8(%rbx), %rax
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.5:
	movq	%rcx, 56(%rax)
	movl	24(%rbx), %edi
	leaq	-52(%rbp), %rdx
	movq	%r12, %rsi
	callq	_set_default_channel_config
	testl	%eax, %eax
	js	LBB0_17
## %bb.6:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %r14
	movl	-52(%rbp), %r13d
	movq	8(%rbx), %rax
	movq	48(%rax), %rdi
	movq	_OC_TRIAL_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FFMAX
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	movq	%r14, %r13
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_output_configure
	testl	%eax, %eax
	jns	LBB0_10
	jmp	LBB0_17
LBB0_7:
	movq	$0, 56(%rax)
	cmpq	$0, 16(%rbx)
	je	LBB0_10
## %bb.8:
	movq	(%rax), %rax
	movq	_OC_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movl	$2, -52(%rbp)
	movq	_TYPE_SCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movl	%eax, (%r12)
	movq	_AAC_CHANNEL_FRONT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movl	%eax, 8(%r12)
	movl	$0, 4(%r12)
	movl	$1, 16(%r12)
	movq	_OC_TRIAL_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$2, %edx
	xorl	%r8d, %r8d
	callq	_output_configure
	movl	%eax, %ecx
	movl	$-7, %eax
	testl	%ecx, %ecx
	jne	LBB0_17
LBB0_10:
	movq	-88(%rbp), %rcx
	movq	8(%rbx), %rax
	movq	%rcx, 64(%rax)
	movl	-72(%rbp), %edx
	movl	%edx, 92(%rax)
	movl	-76(%rbp), %edx
	movl	%edx, 88(%rax)
	movq	$0, 80(%rax)
	movq	(%rax), %rdx
	movq	_OC_LOCKED@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_13
## %bb.11:
	movq	8(%rax), %rdx
	cmpq	-96(%rbp), %rdx
	jne	LBB0_13
## %bb.12:
	cmpq	%rcx, 16(%rax)
	je	LBB0_14
LBB0_13:
	movq	$-1, 72(%rax)
LBB0_14:
	cmpl	$0, -80(%rbp)
	jne	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_skip_bits
LBB0_16:
	movl	%r15d, %eax
LBB0_17:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ELEM_ID,4,2                ## @MAX_ELEM_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"More than one AAC RDB per ADTS frame"

	.comm	_OC_TRIAL_FRAME,4,2             ## @OC_TRIAL_FRAME
	.comm	_OC_NONE,8,3                    ## @OC_NONE
	.comm	_TYPE_SCE,4,2                   ## @TYPE_SCE
	.comm	_AAC_CHANNEL_FRONT,4,2          ## @AAC_CHANNEL_FRONT
	.comm	_OC_LOCKED,8,3                  ## @OC_LOCKED
	.no_dead_strip	_parse_adts_frame_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_adts_frame_header
_parse_adts_frame_header:               ; @parse_adts_frame_header
	.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
	sub	sp, sp, #64
	mov	x20, x1
	mov	x21, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAX_ELEM_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_ELEM_ID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w8, #2
	mov	w12, #12
	umull	x9, w8, w12
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	umsubl	x22, w8, w12, x9
	mov	sp, x22
	sub	x1, x29, #96
	mov	x0, x20
	bl	_ff_adts_header_parse
	mov	x19, x0
	cmp	w0, #1
	b.lt	LBB0_18
; %bb.1:
	ldr	w8, [x21]
	cbnz	w8, LBB0_4
; %bb.2:
	ldur	w8, [x29, #-96]
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x21, #24]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_avpriv_report_missing_feature
	mov	w8, #1
	str	w8, [x21]
LBB0_4:
	mov	x0, x21
	bl	_push_output_configuration
	ldur	x3, [x29, #-88]
	ldr	x8, [x21, #8]
	cbz	x3, LBB0_8
; %bb.5:
	str	x3, [x8, #56]
	ldr	w0, [x21, #24]
	sub	x2, x29, #100
	mov	x1, x22
	bl	_set_default_channel_config
	tbnz	w0, #31, LBB0_7
; %bb.6:
	ldur	w23, [x29, #-100]
	ldr	x8, [x21, #8]
	ldr	x0, [x8, #48]
Lloh10:
	adrp	x8, _OC_TRIAL_FRAME@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OC_TRIAL_FRAME@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_FFMAX
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	w4, #0
	bl	_output_configure
	tbz	w0, #31, LBB0_12
LBB0_7:
	mov	x19, x0
	b	LBB0_18
LBB0_8:
	str	xzr, [x8, #56]
	ldr	x9, [x21, #16]
	cbz	x9, LBB0_12
; %bb.9:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _OC_NONE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _OC_NONE@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:
	mov	w8, #2
	stur	w8, [x29, #-100]
Lloh16:
	adrp	x8, _TYPE_SCE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TYPE_SCE@GOTPAGEOFF]
Lloh18:
	adrp	x9, _AAC_CHANNEL_FRONT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AAC_CHANNEL_FRONT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #8]
	stp	w8, wzr, [x22]
	mov	w8, #1
	stp	w8, w9, [x22, #16]
Lloh22:
	adrp	x8, _OC_TRIAL_FRAME@GOTPAGE
Lloh23:
	ldr	x8, [x8, _OC_TRIAL_FRAME@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #2
	mov	w4, #0
	bl	_output_configure
	cbz	w0, LBB0_12
; %bb.11:
	mov	w19, #-7
	b	LBB0_18
LBB0_12:
	ldur	x9, [x29, #-80]
	ldr	x8, [x21, #8]
	str	x9, [x8, #64]
	ldur	d0, [x29, #-68]
	str	d0, [x8, #88]
	str	xzr, [x8, #80]
	ldr	x10, [x8]
Lloh25:
	adrp	x11, _OC_LOCKED@GOTPAGE
Lloh26:
	ldr	x11, [x11, _OC_LOCKED@GOTPAGEOFF]
Lloh27:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_15
; %bb.13:
	ldr	x10, [x8, #8]
	ldur	x11, [x29, #-88]
	cmp	x10, x11
	b.ne	LBB0_15
; %bb.14:
	ldr	x10, [x8, #16]
	cmp	x10, x9
	b.eq	LBB0_16
LBB0_15:
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x8, #72]
LBB0_16:
	ldur	w8, [x29, #-72]
	cbnz	w8, LBB0_18
; %bb.17:
	mov	x0, x20
	mov	w1, #16
	bl	_skip_bits
LBB0_18:
	mov	sp, x24
	ldur	x8, [x29, #-56]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	mov	x0, x19
	sub	sp, x29, #48
	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_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ELEM_ID,4,2                ; @MAX_ELEM_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"More than one AAC RDB per ADTS frame"

	.comm	_OC_TRIAL_FRAME,4,2             ; @OC_TRIAL_FRAME
	.comm	_OC_NONE,8,3                    ; @OC_NONE
	.comm	_TYPE_SCE,4,2                   ; @TYPE_SCE
	.comm	_AAC_CHANNEL_FRONT,4,2          ; @AAC_CHANNEL_FRONT
	.comm	_OC_LOCKED,8,3                  ; @OC_LOCKED
	.no_dead_strip	_parse_adts_frame_header
.subsections_via_symbols
