	.file	"extr_hda_eld.c_snd_hdmi_get_eld.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"HDMI: ELD buf size is 0, force 128\n"
	.align 8
.LC1:
	.string	"HDMI: invalid ELD buf size %d\n"
	.align 8
.LC2:
	.string	"HDMI: invalid ELD data byte %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"HDMI: 0 ELD data\n"
	.text
	.p2align 4
	.globl	snd_hdmi_get_eld
	.type	snd_hdmi_get_eld, @function
snd_hdmi_get_eld:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	snd_hdmi_get_eld_size@PLT
	test	eax, eax
	je	.L15
	cmp	DWORD PTR ELD_FIXED_BYTES[rip], eax
	mov	r12d, eax
	jg	.L3
	cmp	DWORD PTR ELD_MAX_SIZE[rip], eax
	jl	.L3
	test	eax, eax
	jle	.L5
.L4:
	xor	r14d, r14d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	and	eax, DWORD PTR AC_ELDD_ELD_DATA[rip]
	mov	ecx, eax
	or	ecx, r14d
	je	.L16
	mov	BYTE PTR 0[rbp+r14], al
	add	r14, 1
	cmp	r12d, r14d
	jle	.L5
.L9:
	mov	edx, r14d
	mov	esi, ebx
	mov	rdi, r15
	call	hdmi_get_eld_data@PLT
	test	DWORD PTR AC_ELDD_ELD_VALID[rip], eax
	jne	.L7
	mov	edx, r14d
	mov	rdi, r15
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	codec_info@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	xor	eax, eax
	lea	rsi, .LC0[rip]
	mov	rdi, r15
	mov	r12d, 128
	call	codec_info@PLT
	cmp	DWORD PTR ELD_FIXED_BYTES[rip], 128
	jg	.L3
	cmp	DWORD PTR ELD_MAX_SIZE[rip], 127
	jg	.L4
.L3:
	mov	edx, r12d
	mov	rdi, r15
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	codec_info@PLT
	mov	eax, DWORD PTR ERANGE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	DWORD PTR 0[r13], r12d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rdi, r15
	lea	rsi, .LC3[rip]
	call	codec_dbg@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	snd_hdmi_get_eld, .-snd_hdmi_get_eld
	.comm	ERANGE,4,4
	.comm	ELD_MAX_SIZE,4,4
	.comm	ELD_FIXED_BYTES,4,4
	.comm	EINVAL,4,4
	.comm	AC_ELDD_ELD_VALID,4,4
	.comm	AC_ELDD_ELD_DATA,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_hda_eld.c_snd_hdmi_get_eld.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"HDMI: ELD buf size is 0, force 128\012\000"
	.align	2
.LC1:
	.ascii	"HDMI: invalid ELD buf size %d\012\000"
	.align	2
.LC2:
	.ascii	"HDMI: invalid ELD data byte %d\012\000"
	.align	2
.LC3:
	.ascii	"HDMI: 0 ELD data\012\000"
	.text
	.align	2
	.global	snd_hdmi_get_eld
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_hdmi_get_eld, %function
snd_hdmi_get_eld:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r2
	mov	r9, r3
	mov	r6, r0
	mov	r7, r1
	bl	snd_hdmi_get_eld_size
	subs	r5, r0, #0
	beq	.L15
	ldr	r3, .L17
	ldr	r3, [r3]
	cmp	r3, r5
	bgt	.L3
	ldr	r3, .L17+4
	ldr	r3, [r3]
	cmp	r3, r5
	blt	.L3
	cmp	r5, #0
	ble	.L5
.L4:
	mov	fp, #0
	ldr	r8, .L17+8
	ldr	r10, .L17+12
	sub	r4, r4, #1
	b	.L9
.L7:
	ldr	r3, [r10]
	and	r0, r0, r3
	orrs	r3, fp, r0
	add	fp, fp, #1
	beq	.L16
	cmp	fp, r5
	strb	r0, [r4, #1]!
	bge	.L5
.L9:
	mov	r2, fp
	mov	r1, r7
	mov	r0, r6
	bl	hdmi_get_eld_data
	ldr	r3, [r8]
	tst	r0, r3
	bne	.L7
	mov	r2, fp
	mov	r0, r6
	ldr	r1, .L17+16
	bl	codec_info
	ldr	r3, .L17+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	mov	r5, #128
.L3:
	mov	r2, r5
	mov	r0, r6
	ldr	r1, .L17+24
	bl	codec_info
	ldr	r3, .L17+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	mov	r0, r6
	ldr	r1, .L17+32
	bl	codec_info
	ldr	r3, .L17
	ldr	r3, [r3]
	cmp	r3, #128
	bgt	.L10
	ldr	r3, .L17+4
	mov	r5, #128
	ldr	r3, [r3]
	cmp	r3, #127
	bgt	.L4
	b	.L3
.L5:
	mov	r0, #0
	str	r5, [r9]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	mov	r0, r6
	ldr	r1, .L17+36
	bl	codec_dbg
	ldr	r3, .L17+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	.align	2
.L17:
	.word	ELD_FIXED_BYTES
	.word	ELD_MAX_SIZE
	.word	AC_ELDD_ELD_VALID
	.word	AC_ELDD_ELD_DATA
	.word	.LC2
	.word	EINVAL
	.word	.LC1
	.word	ERANGE
	.word	.LC0
	.word	.LC3
	.size	snd_hdmi_get_eld, .-snd_hdmi_get_eld
	.comm	ERANGE,4,4
	.comm	ELD_MAX_SIZE,4,4
	.comm	ELD_FIXED_BYTES,4,4
	.comm	EINVAL,4,4
	.comm	AC_ELDD_ELD_VALID,4,4
	.comm	AC_ELDD_ELD_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
