	.file	"extr_..packetizera52.h_vlc_a52_header_ParseEac3.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vlc_a52_header_ParseEac3, @function
vlc_a52_header_ParseEac3:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rax, QWORD PTR VLC_A52_MIN_HEADER_SIZE[rip]
	add	rsi, 8
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	lea	rdx, -2[rax]
	mov	rbx, rdi
	add	rdi, 40
	call	vlc_a52_ParseEac3BitstreamInfo@PLT
	cmp	rax, QWORD PTR VLC_SUCCESS[rip]
	je	.L2
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR VLC_EGENERIC[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR 64[rbx]
	lea	eax, 2[rax+rax]
	mov	DWORD PTR [rbx], eax
	movsx	rax, DWORD PTR 40[rbx]
	cmp	eax, 3
	je	.L10
	mov	eax, DWORD PTR [r12+rax*4]
	mov	rdx, QWORD PTR 80[rbx]
	mov	DWORD PTR 4[rbx], eax
	lea	rax, pi_numblkscod.1958[rip]
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR 8[rbx], eax
.L5:
	mov	rax, QWORD PTR 48[rbx]
	mov	edi, DWORD PTR 0[rbp+rax*4]
	mov	DWORD PTR 32[rbx], 0
	mov	DWORD PTR 24[rbx], edi
	test	rax, rax
	jne	.L6
	mov	eax, DWORD PTR AOUT_CHANMODE_DUALMONO[rip]
	mov	DWORD PTR 32[rbx], eax
.L6:
	cmp	QWORD PTR 56[rbx], 0
	je	.L7
	or	edi, DWORD PTR AOUT_CHAN_LFE[rip]
	mov	DWORD PTR 24[rbx], edi
.L7:
	call	vlc_popcount@PLT
	mov	ecx, DWORD PTR 8[rbx]
	xor	edx, edx
	mov	DWORD PTR 20[rbx], 1
	mov	DWORD PTR 28[rbx], eax
	mov	eax, DWORD PTR [rbx]
	imul	eax, DWORD PTR 4[rbx]
	sal	ecx, 8
	mov	DWORD PTR 16[rbx], ecx
	sal	eax, 3
	div	ecx
	mov	DWORD PTR 12[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR VLC_SUCCESS[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rax, QWORD PTR 72[rbx]
	mov	eax, DWORD PTR [r12+rax*4]
	mov	DWORD PTR 8[rbx], 6
	shr	eax
	mov	DWORD PTR 4[rbx], eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	vlc_a52_header_ParseEac3, .-vlc_a52_header_ParseEac3
	.section	.rodata
	.align 16
	.type	pi_numblkscod.1958, @object
	.size	pi_numblkscod.1958, 16
pi_numblkscod.1958:
	.long	1
	.long	2
	.long	3
	.long	6
	.comm	VLC_SUCCESS,8,8
	.comm	VLC_EGENERIC,4,4
	.comm	VLC_A52_MIN_HEADER_SIZE,8,8
	.comm	AOUT_CHAN_LFE,4,4
	.comm	AOUT_CHANMODE_DUALMONO,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_..packetizera52.h_vlc_a52_header_ParseEac3.c"
	.text
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vlc_a52_header_ParseEac3, %function
vlc_a52_header_ParseEac3:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r2
	ldr	r2, .L14
	mov	r4, r0
	ldr	r2, [r2]
	add	r1, r1, #8
	add	r0, r0, #36
	sub	r2, r2, #2
	mov	r6, r3
	bl	vlc_a52_ParseEac3BitstreamInfo
	ldr	r7, .L14+4
	ldr	r3, [r7]
	cmp	r0, r3
	beq	.L2
	ldr	r3, .L14+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, [r4, #48]
	ldr	r2, [r4, #36]
	add	r3, r3, #1
	lsl	r3, r3, #1
	cmp	r2, #3
	str	r3, [r4]
	beq	.L13
	ldr	r1, [r6, r2, lsl #2]
	ldr	r3, .L14+12
	ldr	r2, [r4, #56]
	str	r1, [r4, #4]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [r4, #8]
.L5:
	mov	r2, #0
	ldr	r3, [r4, #40]
	cmp	r3, r2
	ldr	r0, [r5, r3, lsl #2]
	ldreq	r3, .L14+16
	str	r2, [r4, #32]
	ldreq	r3, [r3]
	str	r0, [r4, #24]
	streq	r3, [r4, #32]
	ldr	r3, [r4, #44]
	cmp	r3, #0
	ldrne	r3, .L14+20
	ldrne	r3, [r3]
	orrne	r0, r0, r3
	strne	r0, [r4, #24]
	bl	vlc_popcount
	ldr	r3, [r4]
	ldr	r2, [r4, #4]
	str	r0, [r4, #28]
	mul	r0, r2, r3
	ldr	r5, [r4, #8]
	lsl	r0, r0, #3
	lsl	r5, r5, #8
	mov	r1, r5
	bl	__aeabi_uidiv
	mov	r3, #1
	mov	r2, r0
	str	r5, [r4, #16]
	ldr	r0, [r7]
	str	r2, [r4, #12]
	str	r3, [r4, #20]
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	mov	r2, #6
	ldr	r3, [r4, #52]
	ldr	r3, [r6, r3, lsl #2]
	str	r2, [r4, #8]
	lsr	r3, r3, #1
	str	r3, [r4, #4]
	b	.L5
.L15:
	.align	2
.L14:
	.word	VLC_A52_MIN_HEADER_SIZE
	.word	VLC_SUCCESS
	.word	VLC_EGENERIC
	.word	.LANCHOR0
	.word	AOUT_CHANMODE_DUALMONO
	.word	AOUT_CHAN_LFE
	.size	vlc_a52_header_ParseEac3, .-vlc_a52_header_ParseEac3
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	VLC_A52_MIN_HEADER_SIZE,4,4
	.comm	AOUT_CHAN_LFE,4,4
	.comm	AOUT_CHANMODE_DUALMONO,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	pi_numblkscod.4242, %object
	.size	pi_numblkscod.4242, 16
pi_numblkscod.4242:
	.word	1
	.word	2
	.word	3
	.word	6
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
