	.file	"extr_dolby_e.c_parse_channel.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Encoder revision %d"
.LC1:
	.string	"Invalid group type code\n"
.LC2:
	.string	"Read past end of channel %d\n"
	.text
	.p2align 4
	.type	parse_channel, @function
parse_channel:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movsx	rax, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rcx, QWORD PTR [rdi]
	mov	rbx, rdi
	mov	r8d, DWORD PTR [rcx+rax*4]
	cmp	r8d, 1
	jg	.L13
	mov	rcx, QWORD PTR 24[rdi]
	movsx	r13, edx
	mov	r12, rax
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR [rcx+r13*8]
	lea	rbp, [rax+rdx*8]
	mov	rdx, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR lfe_channel_tab[rip]
	cmp	DWORD PTR [rax+rdx*4], r12d
	jne	.L4
	movabs	rax, 124554051587
	mov	edx, 12
	mov	QWORD PTR 0[rbp], rax
	mov	eax, 3
.L5:
	mov	rcx, QWORD PTR nb_groups_tab[rip]
	mov	rsi, QWORD PTR nb_mstr_exp_tab[rip]
	mov	ecx, DWORD PTR [rcx+rdx]
	mov	DWORD PTR 8[rbp], ecx
	mov	edi, DWORD PTR [rsi+rdx]
	mov	DWORD PTR 12[rbp], edi
	test	ecx, ecx
	jle	.L7
	mov	rdx, QWORD PTR frm_ofs_tab[rip]
	xor	ecx, ecx
	mov	r8, QWORD PTR [rdx+r13*8]
	mov	rdx, QWORD PTR 16[rbp]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L14:
	movsx	rax, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR 12[rbp]
.L9:
	mov	rsi, rcx
	sal	rsi, 4
	add	rsi, QWORD PTR [r8+rax*8]
	movdqu	xmm0, XMMWORD PTR [rsi]
	movups	XMMWORD PTR [rdx], xmm0
	cmp	edi, 2
	jne	.L8
	mov	rax, QWORD PTR 8[rdx]
	mov	esi, DWORD PTR 4[rbp]
	sub	DWORD PTR [rdx], esi
	sub	DWORD PTR 4[rax], esi
.L8:
	add	rcx, 1
	add	rdx, 16
	cmp	DWORD PTR 8[rbp], ecx
	jg	.L14
.L7:
	mov	rsi, rbp
	mov	rdi, rbx
	call	parse_exponents@PLT
	test	eax, eax
	js	.L1
	mov	rsi, rbp
	mov	rdi, rbx
	call	parse_bit_alloc@PLT
	test	eax, eax
	js	.L1
	mov	rsi, rbp
	mov	rdi, rbx
	call	parse_indices@PLT
	test	eax, eax
	js	.L1
	mov	rsi, rbp
	mov	rdi, rbx
	call	parse_mantissas@PLT
	test	eax, eax
	js	.L1
	lea	rdi, 20[rbx]
	call	get_bits_left@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	js	.L15
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	lea	r14, 20[rdi]
	mov	esi, 2
	mov	rdi, r14
	call	get_bits@PLT
	mov	esi, 3
	mov	rdi, r14
	mov	DWORD PTR 0[rbp], eax
	call	get_bits@PLT
	movsx	rdx, DWORD PTR 0[rbp]
	mov	DWORD PTR 4[rbp], eax
	mov	rax, rdx
	sal	rdx, 2
	cmp	eax, 3
	jne	.L5
	mov	edi, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC1[rip]
	xor	eax, eax
	call	av_log@PLT
	mov	eax, DWORD PTR AVERROR_INVALIDDATA[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR 16[rdi]
	mov	edx, r8d
	lea	rsi, .LC0[rip]
	call	avpriv_report_missing_feature@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR AVERROR_PATCHWELCOME[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	mov	ecx, r12d
	lea	rdx, .LC2[rip]
	call	av_log@PLT
	mov	eax, DWORD PTR AVERROR_INVALIDDATA[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	parse_channel, .-parse_channel
	.comm	nb_mstr_exp_tab,8,8
	.comm	nb_groups_tab,8,8
	.comm	lfe_channel_tab,8,8
	.comm	frm_ofs_tab,8,8
	.comm	AV_LOG_ERROR,4,4
	.comm	AVERROR_PATCHWELCOME,4,4
	.comm	AVERROR_INVALIDDATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_dolby_e.c_parse_channel.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Encoder revision %d\000"
	.align	2
.LC1:
	.ascii	"Invalid group type code\012\000"
	.align	2
.LC2:
	.ascii	"Read past end of channel %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_channel, %function
parse_channel:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r2
	ldr	r2, [r3, r1, lsl #2]
	mov	r5, r0
	cmp	r2, #1
	bgt	.L13
	mov	r6, r1
	ldr	r3, .L16
	ldr	r1, [r0, #4]
	ldr	r3, [r3]
	ldr	r2, [r0, #16]
	ldr	r3, [r3, r1, lsl #2]
	ldr	r9, [r2, r7, lsl #2]
	cmp	r3, r6
	add	r3, r6, r6, lsl #2
	add	r4, r9, r3, lsl #2
	lsl	r8, r3, #2
	bne	.L4
	mov	lr, #3
	mov	r3, #29
	mov	r2, #12
	str	lr, [r9, r8]
	str	r3, [r4, #4]
.L5:
	ldr	r3, .L16+4
	ldr	r1, .L16+8
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r3, [r3, r2]
	str	r3, [r4, #8]
	ldr	r1, [r1, r2]
	cmp	r3, #0
	str	r1, [r4, #12]
	ble	.L7
	ldr	r2, .L16+12
	ldr	r3, [r4, #16]
	ldr	r2, [r2]
	mov	ip, #0
	ldr	r7, [r2, r7, lsl #2]
	add	r8, r3, #4
	b	.L9
.L14:
	ldr	lr, [r4]
	ldr	r1, [r4, #12]
.L9:
	ldr	lr, [r7, lr, lsl #2]
	cmp	r1, #2
	add	lr, lr, ip, lsl #3
	add	r2, r3, ip, lsl #3
	ldm	lr, {r0, r1}
	stm	r2, {r0, r1}
	bne	.L8
	ldr	lr, [r4, #4]
	ldr	r1, [r3, ip, lsl #3]
	ldr	r0, [r8, ip, lsl #3]
	sub	r1, r1, lr
	str	r1, [r3, ip, lsl #3]
	ldr	r2, [r0, #4]
	sub	r2, r2, lr
	str	r2, [r0, #4]
.L8:
	ldr	r2, [r4, #8]
	add	ip, ip, #1
	cmp	r2, ip
	bgt	.L14
.L7:
	mov	r1, r4
	mov	r0, r5
	bl	parse_exponents
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r1, r4
	mov	r0, r5
	bl	parse_bit_alloc
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r1, r4
	mov	r0, r5
	bl	parse_indices
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r1, r4
	mov	r0, r5
	bl	parse_mantissas
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	add	r0, r5, #12
	bl	get_bits_left
	cmp	r0, #0
	blt	.L15
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	add	r10, r0, #12
	mov	r1, #2
	mov	r0, r10
	bl	get_bits
	mov	r1, #3
	str	r0, [r9, r8]
	mov	r0, r10
	bl	get_bits
	ldr	lr, [r9, r8]
	str	r0, [r4, #4]
	cmp	lr, #3
	lslne	r2, lr, #2
	bne	.L5
	ldr	r3, .L16+16
	ldr	r0, [r5, #8]
	ldr	r1, [r3]
	ldr	r2, .L16+20
	bl	av_log
	ldr	r3, .L16+24
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	ldr	r1, .L16+28
	ldr	r0, [r0, #8]
	bl	avpriv_report_missing_feature
	ldr	r3, .L16+32
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	ldr	r2, .L16+16
	mov	r3, r6
	ldr	r1, [r2]
	ldr	r0, [r5, #8]
	ldr	r2, .L16+36
	bl	av_log
	ldr	r3, .L16+24
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	.align	2
.L16:
	.word	lfe_channel_tab
	.word	nb_groups_tab
	.word	nb_mstr_exp_tab
	.word	frm_ofs_tab
	.word	AV_LOG_ERROR
	.word	.LC1
	.word	AVERROR_INVALIDDATA
	.word	.LC0
	.word	AVERROR_PATCHWELCOME
	.word	.LC2
	.size	parse_channel, .-parse_channel
	.comm	nb_mstr_exp_tab,4,4
	.comm	nb_groups_tab,4,4
	.comm	lfe_channel_tab,4,4
	.comm	frm_ofs_tab,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AVERROR_PATCHWELCOME,4,4
	.comm	AVERROR_INVALIDDATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
