	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dolby_e_decode_frame
_dolby_e_decode_frame:                  ## @dolby_e_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
	cmpl	$2, (%rcx)
	jg	LBB0_2
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_25
LBB0_2:
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	16(%rdi), %r15
	movq	8(%rcx), %rdi
	callq	_AV_RB24
	movl	%eax, %ecx
	andl	$16777214, %eax                 ## imm = 0xFFFFFE
	movl	$24, %esi
	cmpl	$493710, %eax                   ## imm = 0x7888E
	je	LBB0_6
## %bb.3:
	movl	%ecx, %eax
	andl	$16777184, %eax                 ## imm = 0xFFFFE0
	movl	$20, %esi
	cmpl	$493792, %eax                   ## imm = 0x788E0
	je	LBB0_6
## %bb.4:
	movl	%ecx, %eax
	andl	$16776704, %eax                 ## imm = 0xFFFE00
	movl	$16, %esi
	cmpl	$495104, %eax                   ## imm = 0x78E00
	jne	LBB0_5
LBB0_6:
	movl	%esi, (%r15)
	leal	7(%rsi), %edi
	shrl	$3, %edi
	movl	%edi, 4(%r15)
	movq	8(%r12), %rax
	addq	%rdi, %rax
	movq	%rax, 48(%r15)
	movl	(%r12), %eax
	cltd
	idivl	%edi
	decl	%eax
	movl	%eax, 8(%r15)
	movb	$24, %al
	subb	%sil, %al
	movzbl	%al, %eax
	xorl	%edx, %edx
	btl	%eax, %ecx
	setb	%dl
	movl	%edx, 12(%r15)
	movq	%r15, %rdi
	callq	_parse_metadata
	testl	%eax, %eax
	js	LBB0_25
## %bb.7:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	16(%r15), %ecx
	cmpl	$2, %ecx
	jl	LBB0_10
## %bb.8:
	cmpl	$0, 20(%r15)
	jne	LBB0_10
## %bb.9:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	40(%r15), %r8d
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, 20(%r15)
LBB0_10:
	movl	24(%r15), %r14d
	cmpl	$4, %r14d
	je	LBB0_11
## %bb.12:
	cmpl	$8, %r14d
	je	LBB0_15
## %bb.13:
	cmpl	$6, %r14d
	jne	LBB0_17
## %bb.14:
	movq	_AV_CH_LAYOUT_5POINT1@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_11:
	movq	_AV_CH_LAYOUT_4POINT0@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_AV_CH_LAYOUT_7POINT1@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
LBB0_17:
	movl	%r14d, (%r13)
	movq	_sample_rate_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	32(%r15), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 8(%r13)
	movq	_AV_SAMPLE_FMT_FLTP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movl	%r14d, %ebx
	shrl	$31, %ebx
	addl	%r14d, %ebx
	sarl	%ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_parse_audio
	testl	%eax, %eax
	js	LBB0_25
## %bb.18:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_parse_audio
	testl	%eax, %eax
	js	LBB0_25
## %bb.19:
	movq	%r15, %rdi
	callq	_parse_metadata_ext
	testl	%eax, %eax
	js	LBB0_25
## %bb.20:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	$1, %ecx
	callq	_parse_audio
	testl	%eax, %eax
	js	LBB0_25
## %bb.21:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	$1, %ecx
	callq	_parse_audio
	testl	%eax, %eax
	js	LBB0_25
## %bb.22:
	movq	%r15, %rdi
	callq	_parse_meter
	testl	%eax, %eax
	js	LBB0_25
## %bb.23:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_filter_frame
	testl	%eax, %eax
	js	LBB0_25
## %bb.24:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	(%r12), %eax
LBB0_25:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid frame header\n"

	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Stream has %d programs (configuration %d), channels will be output in native order.\n"

	.comm	_AV_CH_LAYOUT_4POINT0,4,2       ## @AV_CH_LAYOUT_4POINT0
	.comm	_AV_CH_LAYOUT_5POINT1,4,2       ## @AV_CH_LAYOUT_5POINT1
	.comm	_AV_CH_LAYOUT_7POINT1,4,2       ## @AV_CH_LAYOUT_7POINT1
	.comm	_sample_rate_tab,8,3            ## @sample_rate_tab
	.comm	_AV_SAMPLE_FMT_FLTP,4,2         ## @AV_SAMPLE_FMT_FLTP
	.no_dead_strip	_dolby_e_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dolby_e_decode_frame
_dolby_e_decode_frame:                  ; @dolby_e_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	ldr	w8, [x3]
	cmp	w8, #2
	b.gt	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_26
LBB0_2:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	ldr	x22, [x0, #16]
	mov	w24, #34958
	movk	w24, #7, lsl #16
	ldr	x0, [x3, #8]
	bl	_AV_RB24
	and	w10, w0, #0xfffffe
	mov	w8, #24
	mov	w9, #24
	cmp	w10, w24
	b.eq	LBB0_7
; %bb.3:
	and	w9, w0, #0xffffe0
	add	w10, w24, #82
	cmp	w9, w10
	b.ne	LBB0_5
; %bb.4:
	mov	w9, #20
	b	LBB0_7
LBB0_5:
	and	w9, w0, #0xfffe00
	add	w10, w24, #1394
	cmp	w9, w10
	b.ne	LBB0_27
; %bb.6:
	mov	w9, #16
LBB0_7:
	add	w10, w9, #7
	lsr	w10, w10, #3
	stp	w9, w10, [x22]
	ldr	x11, [x19, #8]
	add	x11, x11, x10
	str	x11, [x22, #48]
	ldr	w11, [x19]
	sdiv	w10, w11, w10
	sub	w10, w10, #1
	sub	w8, w8, w9
	lsr	w8, w0, w8
	and	w8, w8, #0x1
	stp	w10, w8, [x22, #8]
	mov	x0, x22
	bl	_parse_metadata
	tbnz	w0, #31, LBB0_26
; %bb.8:
	ldr	w8, [x22, #16]
	cmp	w8, #2
	b.lt	LBB0_11
; %bb.9:
	ldr	w9, [x22, #20]
	cbnz	w9, LBB0_11
; %bb.10:
Lloh3:
	adrp	x9, _AV_LOG_WARNING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	ldr	w9, [x22, #40]
	stp	x8, x9, [sp]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_av_log
	mov	w8, #1
	str	w8, [x22, #20]
LBB0_11:
	ldr	w24, [x22, #24]
	cmp	w24, #4
	b.eq	LBB0_15
; %bb.12:
	cmp	w24, #8
	b.eq	LBB0_16
; %bb.13:
	cmp	w24, #6
	b.ne	LBB0_18
; %bb.14:
Lloh8:
	adrp	x8, _AV_CH_LAYOUT_5POINT1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_CH_LAYOUT_5POINT1@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
Lloh10:
	adrp	x8, _AV_CH_LAYOUT_4POINT0@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_CH_LAYOUT_4POINT0@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh12:
	adrp	x8, _AV_CH_LAYOUT_7POINT1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_CH_LAYOUT_7POINT1@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	str	w8, [x23, #12]
LBB0_18:
	str	w24, [x23]
Lloh14:
	adrp	x8, _sample_rate_tab@GOTPAGE
Lloh15:
	ldr	x8, [x8, _sample_rate_tab@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x9, [x22, #32]
	ldr	w8, [x8, x9, lsl #2]
Lloh17:
	adrp	x9, _AV_SAMPLE_FMT_FLTP@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AV_SAMPLE_FMT_FLTP@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x23, #4]
	cmp	w24, #0
	cinc	w8, w24, lt
	asr	w23, w8, #1
	mov	x0, x22
	mov	w1, #0
	mov	x2, x23
	mov	w3, #0
	bl	_parse_audio
	tbnz	w0, #31, LBB0_26
; %bb.19:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	w3, #0
	bl	_parse_audio
	tbnz	w0, #31, LBB0_26
; %bb.20:
	mov	x0, x22
	bl	_parse_metadata_ext
	tbnz	w0, #31, LBB0_26
; %bb.21:
	mov	x0, x22
	mov	w1, #0
	mov	x2, x23
	mov	w3, #1
	bl	_parse_audio
	tbnz	w0, #31, LBB0_26
; %bb.22:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	w3, #1
	bl	_parse_audio
	tbnz	w0, #31, LBB0_26
; %bb.23:
	mov	x0, x22
	bl	_parse_meter
	tbnz	w0, #31, LBB0_26
; %bb.24:
	mov	x0, x22
	mov	x1, x21
	bl	_filter_frame
	tbnz	w0, #31, LBB0_26
; %bb.25:
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x19]
LBB0_26:
	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
	add	sp, sp, #80
	ret
LBB0_27:
Lloh20:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str@PAGE
Lloh24:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	bl	_av_log
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid frame header\n"

	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Stream has %d programs (configuration %d), channels will be output in native order.\n"

	.comm	_AV_CH_LAYOUT_4POINT0,4,2       ; @AV_CH_LAYOUT_4POINT0
	.comm	_AV_CH_LAYOUT_5POINT1,4,2       ; @AV_CH_LAYOUT_5POINT1
	.comm	_AV_CH_LAYOUT_7POINT1,4,2       ; @AV_CH_LAYOUT_7POINT1
	.comm	_sample_rate_tab,8,3            ; @sample_rate_tab
	.comm	_AV_SAMPLE_FMT_FLTP,4,2         ; @AV_SAMPLE_FMT_FLTP
	.no_dead_strip	_dolby_e_decode_frame
.subsections_via_symbols
