	.file	"extr_hdmi_audio.c_msm_hdmi_audio_update.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"en"
.LC1:
	.string	"dis"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"audio: enabled=%d, channels=%d, channel_allocation=0x%x, level_shift_value=%d, downmix_inhibit=%d, rate=%d"
	.align 8
.LC3:
	.string	"video: power_on=%d, pixclock=%lu"
	.section	.rodata.str1.1
.LC4:
	.string	"disabling audio: no video"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"disabling audio: unsupported pixclock: %lu"
	.section	.rodata.str1.1
.LC6:
	.string	"n=%u, cts=%u, multiplier=%u"
.LC7:
	.string	"audio %sabled"
	.text
	.p2align 4
	.globl	msm_hdmi_audio_update
	.type	msm_hdmi_audio_update, @function
msm_hdmi_audio_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 112
	.cfi_def_cfa_offset 168
	mov	ebp, DWORD PTR 16[rdi]
	mov	ecx, DWORD PTR 44[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 96[rsp], rax
	xor	eax, eax
	mov	edx, DWORD PTR 32[rdi]
	mov	r9d, DWORD PTR 36[rdi]
	push	QWORD PTR 24[rdi]
	.cfi_def_cfa_offset 176
	mov	r8d, DWORD PTR 40[rdi]
	mov	esi, ebp
	lea	rdi, .LC2[rip]
	call	DBG@PLT
	mov	rdx, QWORD PTR [r12]
	mov	rsi, QWORD PTR 8[r12]
	xor	eax, eax
	lea	rdi, .LC3[rip]
	call	DBG@PLT
	pop	rax
	.cfi_def_cfa_offset 168
	pop	rdx
	.cfi_def_cfa_offset 160
	test	ebp, ebp
	je	.L2
	cmp	QWORD PTR 8[r12], 0
	je	.L3
	mov	rdi, QWORD PTR [r12]
	test	rdi, rdi
	je	.L3
	call	get_arcs@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L28
	mov	esi, DWORD PTR REG_HDMI_ACR_PKT_CTRL[rip]
	mov	rdi, r12
	call	hdmi_read@PLT
	mov	esi, DWORD PTR REG_HDMI_VBI_PKT_CTRL[rip]
	mov	rdi, r12
	mov	r15d, eax
	call	hdmi_read@PLT
	mov	esi, DWORD PTR REG_HDMI_AUDIO_PKT_CTRL1[rip]
	mov	rdi, r12
	mov	DWORD PTR 8[rsp], eax
	call	hdmi_read@PLT
	mov	esi, DWORD PTR REG_HDMI_INFOFRAME_CTRL0[rip]
	mov	rdi, r12
	mov	DWORD PTR 12[rsp], eax
	call	hdmi_read@PLT
	mov	esi, DWORD PTR REG_HDMI_AUDIO_CFG[rip]
	mov	rdi, r12
	mov	DWORD PTR 16[rsp], eax
	call	hdmi_read@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR HDMI_ACR_PKT_CTRL_SELECT__MASK[rip]
	not	eax
	and	eax, r15d
	mov	DWORD PTR 24[rsp], eax
	mov	rax, QWORD PTR 24[r12]
	cmp	rax, QWORD PTR MSM_HDMI_SAMPLE_RATE_192KHZ[rip]
	lea	rdx, [rdx+rax*8]
	mov	r13d, DWORD PTR [rdx]
	mov	r15d, DWORD PTR 4[rdx]
	je	.L15
	cmp	rax, QWORD PTR MSM_HDMI_SAMPLE_RATE_176_4KHZ[rip]
	je	.L15
	cmp	rax, QWORD PTR MSM_HDMI_SAMPLE_RATE_96KHZ[rip]
	je	.L8
	cmp	rax, QWORD PTR MSM_HDMI_SAMPLE_RATE_88_2KHZ[rip]
	mov	r14d, 1
	jne	.L7
.L8:
	sar	r13d
	mov	r14d, 2
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	DBG@PLT
.L2:
	mov	esi, DWORD PTR REG_HDMI_ACR_PKT_CTRL[rip]
	mov	rdi, r12
	call	hdmi_read@PLT
	mov	esi, DWORD PTR REG_HDMI_VBI_PKT_CTRL[rip]
	mov	rdi, r12
	mov	ebx, eax
	call	hdmi_read@PLT
	mov	esi, DWORD PTR REG_HDMI_AUDIO_PKT_CTRL1[rip]
	mov	rdi, r12
	mov	r13d, eax
	call	hdmi_read@PLT
	mov	esi, DWORD PTR REG_HDMI_INFOFRAME_CTRL0[rip]
	mov	rdi, r12
	mov	r15d, eax
	call	hdmi_read@PLT
	mov	esi, DWORD PTR REG_HDMI_AUDIO_CFG[rip]
	mov	rdi, r12
	mov	ebp, eax
	call	hdmi_read@PLT
	mov	r14d, DWORD PTR HDMI_ACR_PKT_CTRL_CONT[rip]
	or	r14d, DWORD PTR HDMI_ACR_PKT_CTRL_SELECT__MASK[rip]
	or	r14d, DWORD PTR HDMI_ACR_PKT_CTRL_SEND[rip]
	mov	edx, DWORD PTR HDMI_AUDIO_PKT_CTRL1_AUDIO_SAMPLE_SEND[rip]
	not	r14d
	and	ebx, r14d
	mov	r14d, DWORD PTR HDMI_VBI_PKT_CTRL_GC_ENABLE[rip]
	not	edx
	or	r14d, DWORD PTR HDMI_VBI_PKT_CTRL_GC_EVERY_FRAME[rip]
	not	r14d
	and	edx, r15d
	mov	r15d, DWORD PTR HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SEND[rip]
	or	r15d, DWORD PTR HDMI_INFOFRAME_CTRL0_AUDIO_INFO_CONT[rip]
	and	r14d, r13d
	mov	r13d, DWORD PTR HDMI_AUDIO_CFG_ENGINE_ENABLE[rip]
	or	r15d, DWORD PTR HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SOURCE[rip]
	mov	DWORD PTR [rsp], edx
	or	r15d, DWORD PTR HDMI_INFOFRAME_CTRL0_AUDIO_INFO_UPDATE[rip]
	not	r15d
	not	r13d
	and	r15d, ebp
	and	r13d, eax
	xor	ebp, ebp
.L17:
	mov	esi, DWORD PTR REG_HDMI_ACR_PKT_CTRL[rip]
	mov	edx, ebx
	mov	rdi, r12
	call	hdmi_write@PLT
	mov	esi, DWORD PTR REG_HDMI_VBI_PKT_CTRL[rip]
	mov	edx, r14d
	mov	rdi, r12
	call	hdmi_write@PLT
	mov	edx, DWORD PTR [rsp]
	mov	esi, DWORD PTR REG_HDMI_AUDIO_PKT_CTRL1[rip]
	mov	rdi, r12
	call	hdmi_write@PLT
	mov	esi, DWORD PTR REG_HDMI_INFOFRAME_CTRL0[rip]
	mov	edx, r15d
	mov	rdi, r12
	call	hdmi_write@PLT
	mov	esi, DWORD PTR HDMI_AUD_INT_AUD_FIFO_URUN_INT[rip]
	mov	edi, ebp
	call	COND@PLT
	mov	esi, DWORD PTR HDMI_AUD_INT_AUD_SAM_DROP_INT[rip]
	mov	edi, ebp
	mov	ebx, eax
	call	COND@PLT
	mov	esi, DWORD PTR REG_HDMI_AUD_INT[rip]
	mov	rdi, r12
	or	ebx, eax
	mov	edx, ebx
	call	hdmi_write@PLT
	mov	esi, DWORD PTR REG_HDMI_AUDIO_CFG[rip]
	mov	edx, r13d
	mov	rdi, r12
	call	hdmi_write@PLT
	test	ebp, ebp
	lea	rax, .LC1[rip]
	lea	rsi, .LC0[rip]
	cmove	rsi, rax
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	DBG@PLT
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L29
	add	rsp, 104
	.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
.L15:
	.cfi_restore_state
	sar	r13d, 2
	mov	r14d, 4
.L7:
	mov	ecx, r14d
	mov	edx, r15d
	mov	esi, r13d
	xor	eax, eax
	lea	rdi, .LC6[rip]
	call	DBG@PLT
	mov	edi, r14d
	mov	ebx, DWORD PTR HDMI_ACR_PKT_CTRL_SOURCE[rip]
	or	ebx, DWORD PTR HDMI_ACR_PKT_CTRL_AUDIO_PRIORITY[rip]
	call	HDMI_ACR_PKT_CTRL_N_MULTIPLIER@PLT
	mov	DWORD PTR [rsp], eax
	mov	rax, QWORD PTR 24[r12]
	cmp	rax, QWORD PTR MSM_HDMI_SAMPLE_RATE_48KHZ[rip]
	je	.L9
	cmp	rax, QWORD PTR MSM_HDMI_SAMPLE_RATE_96KHZ[rip]
	je	.L9
	cmp	rax, QWORD PTR MSM_HDMI_SAMPLE_RATE_192KHZ[rip]
	je	.L9
	cmp	rax, QWORD PTR MSM_HDMI_SAMPLE_RATE_44_1KHZ[rip]
	je	.L12
	cmp	rax, QWORD PTR MSM_HDMI_SAMPLE_RATE_88_2KHZ[rip]
	je	.L12
	cmp	rax, QWORD PTR MSM_HDMI_SAMPLE_RATE_176_4KHZ[rip]
	mov	r14d, DWORD PTR ACR_32[rip]
	jne	.L11
.L12:
	mov	r14d, DWORD PTR ACR_44[rip]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r14d, DWORD PTR ACR_48[rip]
.L11:
	mov	edi, r14d
	call	HDMI_ACR_PKT_CTRL_SELECT@PLT
	mov	edi, r15d
	lea	r15d, -1[r14]
	mov	DWORD PTR 4[rsp], eax
	call	HDMI_ACR_0_CTS@PLT
	mov	edi, r15d
	mov	DWORD PTR 28[rsp], eax
	call	REG_HDMI_ACR_0@PLT
	mov	edx, DWORD PTR 28[rsp]
	mov	rdi, r12
	mov	esi, eax
	call	hdmi_write@PLT
	mov	edi, r13d
	call	HDMI_ACR_1_N@PLT
	mov	edi, r15d
	mov	r13d, eax
	call	REG_HDMI_ACR_1@PLT
	mov	edx, r13d
	mov	rdi, r12
	mov	esi, eax
	call	hdmi_write@PLT
	mov	esi, DWORD PTR HDMI_AUDIO_PKT_CTRL2_LAYOUT[rip]
	xor	edi, edi
	cmp	DWORD PTR 32[r12], 2
	setne	dil
	call	COND@PLT
	mov	edx, DWORD PTR HDMI_AUDIO_PKT_CTRL2_OVERRIDE[rip]
	mov	esi, DWORD PTR REG_HDMI_AUDIO_PKT_CTRL2[rip]
	mov	rdi, r12
	or	edx, eax
	call	hdmi_write@PLT
	mov	r15d, DWORD PTR [rsp]
	or	ebx, DWORD PTR HDMI_ACR_PKT_CTRL_CONT[rip]
	lea	rsi, 32[rsp]
	or	ebx, DWORD PTR HDMI_ACR_PKT_CTRL_SEND[rip]
	lea	rdi, 32[r12]
	or	ebx, DWORD PTR 24[rsp]
	mov	edx, 56
	or	r15d, ebx
	mov	ebx, DWORD PTR 4[rsp]
	call	hdmi_audio_infoframe_pack@PLT
	mov	edx, DWORD PTR 48[rsp]
	mov	eax, DWORD PTR 52[rsp]
	mov	rdi, r12
	mov	esi, DWORD PTR REG_HDMI_AUDIO_INFO0[rip]
	or	ebx, r15d
	sal	eax, 16
	sal	edx, 8
	or	edx, eax
	mov	eax, DWORD PTR 56[rsp]
	or	edx, DWORD PTR 44[rsp]
	sal	eax, 24
	or	edx, eax
	call	hdmi_write@PLT
	mov	edx, DWORD PTR 64[rsp]
	mov	esi, DWORD PTR REG_HDMI_AUDIO_INFO1[rip]
	mov	rdi, r12
	sal	edx, 8
	or	edx, DWORD PTR 60[rsp]
	call	hdmi_write@PLT
	mov	esi, DWORD PTR REG_HDMI_GC[rip]
	xor	edx, edx
	mov	rdi, r12
	call	hdmi_write@PLT
	mov	eax, DWORD PTR 12[rsp]
	or	eax, DWORD PTR HDMI_AUDIO_PKT_CTRL1_AUDIO_SAMPLE_SEND[rip]
	mov	edi, 4
	mov	r13d, DWORD PTR 20[rsp]
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR HDMI_AUDIO_CFG_FIFO_WATERMARK__MASK[rip]
	mov	r14d, DWORD PTR HDMI_VBI_PKT_CTRL_GC_ENABLE[rip]
	mov	r15d, DWORD PTR HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SEND[rip]
	or	r14d, DWORD PTR HDMI_VBI_PKT_CTRL_GC_EVERY_FRAME[rip]
	not	eax
	or	r15d, DWORD PTR HDMI_INFOFRAME_CTRL0_AUDIO_INFO_CONT[rip]
	or	r14d, DWORD PTR 8[rsp]
	or	r15d, DWORD PTR HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SOURCE[rip]
	and	r13d, eax
	or	r15d, DWORD PTR HDMI_INFOFRAME_CTRL0_AUDIO_INFO_UPDATE[rip]
	or	r15d, DWORD PTR 16[rsp]
	call	HDMI_AUDIO_CFG_FIFO_WATERMARK@PLT
	or	r13d, DWORD PTR HDMI_AUDIO_CFG_ENGINE_ENABLE[rip]
	or	r13d, eax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rsi, QWORD PTR [r12]
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	DBG@PLT
	jmp	.L2
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	msm_hdmi_audio_update, .-msm_hdmi_audio_update
	.comm	REG_HDMI_VBI_PKT_CTRL,4,4
	.comm	REG_HDMI_INFOFRAME_CTRL0,4,4
	.comm	REG_HDMI_GC,4,4
	.comm	REG_HDMI_AUD_INT,4,4
	.comm	REG_HDMI_AUDIO_PKT_CTRL2,4,4
	.comm	REG_HDMI_AUDIO_PKT_CTRL1,4,4
	.comm	REG_HDMI_AUDIO_INFO1,4,4
	.comm	REG_HDMI_AUDIO_INFO0,4,4
	.comm	REG_HDMI_AUDIO_CFG,4,4
	.comm	REG_HDMI_ACR_PKT_CTRL,4,4
	.comm	MSM_HDMI_SAMPLE_RATE_96KHZ,8,8
	.comm	MSM_HDMI_SAMPLE_RATE_88_2KHZ,8,8
	.comm	MSM_HDMI_SAMPLE_RATE_48KHZ,8,8
	.comm	MSM_HDMI_SAMPLE_RATE_44_1KHZ,8,8
	.comm	MSM_HDMI_SAMPLE_RATE_192KHZ,8,8
	.comm	MSM_HDMI_SAMPLE_RATE_176_4KHZ,8,8
	.comm	HDMI_VBI_PKT_CTRL_GC_EVERY_FRAME,4,4
	.comm	HDMI_VBI_PKT_CTRL_GC_ENABLE,4,4
	.comm	HDMI_INFOFRAME_CTRL0_AUDIO_INFO_UPDATE,4,4
	.comm	HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SOURCE,4,4
	.comm	HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SEND,4,4
	.comm	HDMI_INFOFRAME_CTRL0_AUDIO_INFO_CONT,4,4
	.comm	HDMI_AUD_INT_AUD_SAM_DROP_INT,4,4
	.comm	HDMI_AUD_INT_AUD_FIFO_URUN_INT,4,4
	.comm	HDMI_AUDIO_PKT_CTRL2_OVERRIDE,4,4
	.comm	HDMI_AUDIO_PKT_CTRL2_LAYOUT,4,4
	.comm	HDMI_AUDIO_PKT_CTRL1_AUDIO_SAMPLE_SEND,4,4
	.comm	HDMI_AUDIO_CFG_FIFO_WATERMARK__MASK,4,4
	.comm	HDMI_AUDIO_CFG_ENGINE_ENABLE,4,4
	.comm	HDMI_ACR_PKT_CTRL_SOURCE,4,4
	.comm	HDMI_ACR_PKT_CTRL_SEND,4,4
	.comm	HDMI_ACR_PKT_CTRL_SELECT__MASK,4,4
	.comm	HDMI_ACR_PKT_CTRL_CONT,4,4
	.comm	HDMI_ACR_PKT_CTRL_AUDIO_PRIORITY,4,4
	.comm	ACR_48,4,4
	.comm	ACR_44,4,4
	.comm	ACR_32,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_hdmi_audio.c_msm_hdmi_audio_update.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"en\000"
	.align	2
.LC1:
	.ascii	"dis\000"
	.align	2
.LC2:
	.ascii	"audio: enabled=%d, channels=%d, channel_allocation="
	.ascii	"0x%x, level_shift_value=%d, downmix_inhibit=%d, rat"
	.ascii	"e=%d\000"
	.align	2
.LC3:
	.ascii	"video: power_on=%d, pixclock=%lu\000"
	.align	2
.LC4:
	.ascii	"disabling audio: no video\000"
	.align	2
.LC5:
	.ascii	"disabling audio: unsupported pixclock: %lu\000"
	.align	2
.LC6:
	.ascii	"n=%u, cts=%u, multiplier=%u\000"
	.align	2
.LC7:
	.ascii	"audio %sabled\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	msm_hdmi_audio_update
	.syntax unified
	.arm
	.fpu softvfp
	.type	msm_hdmi_audio_update, %function
msm_hdmi_audio_update:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r7, [r0, #8]
	ldr	r2, [r4, #20]
	ldr	r0, [r0, #12]
	ldr	r3, [r4, #24]
	sub	sp, sp, #124
	str	r0, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	ip, .L33
	mov	r1, r7
	ldr	r3, [r4, #28]
	ldr	r2, [r4, #16]
	ldr	r0, .L33+4
	ldr	ip, [ip]
	str	ip, [sp, #116]
	mov	ip,#0
	bl	DBG
	ldr	r2, [r4]
	ldr	r1, [r4, #4]
	ldr	r0, .L33+8
	bl	DBG
	cmp	r7, #0
	beq	.L2
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L3
	ldr	r0, [r4]
	cmp	r0, #0
	beq	.L3
	bl	get_arcs
	subs	r5, r0, #0
	beq	.L31
	ldr	fp, .L33+12
	mov	r0, r4
	ldr	r1, [fp]
	bl	hdmi_read
	ldr	r10, .L33+16
	mov	r8, r0
	ldr	r1, [r10]
	mov	r0, r4
	bl	hdmi_read
	mov	r3, r0
	ldr	r2, .L33+20
	mov	r0, r4
	ldr	r1, [r2]
	str	r2, [sp, #24]
	str	r3, [sp, #32]
	bl	hdmi_read
	mov	r9, r0
	ldr	r3, .L33+24
	mov	r0, r4
	ldr	r1, [r3]
	str	r3, [sp, #20]
	str	r9, [sp, #36]
	bl	hdmi_read
	mov	r6, r0
	ldr	r3, .L33+28
	mov	r0, r4
	ldr	r1, [r3]
	str	r3, [sp, #16]
	str	r6, [sp, #40]
	bl	hdmi_read
	ldr	r6, .L33+32
	ldr	r2, .L33+36
	ldr	ip, [r5]
	ldr	r1, [r4, #12]
	ldr	r3, [r6]
	ldr	r5, [r2]
	cmp	r1, r3
	add	r2, ip, r1, lsl #3
	bic	r3, r8, r5
	ldr	r2, [r2, #4]
	ldr	r8, [ip, r1, lsl #3]
	str	r0, [sp, #44]
	str	r3, [sp, #48]
	beq	.L15
	ldr	r3, .L33+40
	ldr	r3, [r3]
	cmp	r1, r3
	beq	.L15
	ldr	r3, .L33+44
	ldr	r3, [r3]
	cmp	r1, r3
	beq	.L8
	ldr	r3, .L33+48
	ldr	r3, [r3]
	cmp	r1, r3
	movne	r5, #1
	bne	.L7
.L8:
	mov	r5, #2
	asr	r8, r8, #1
	b	.L7
.L3:
	ldr	r0, .L33+52
	bl	DBG
.L2:
	ldr	fp, .L33+12
	mov	r0, r4
	ldr	r1, [fp]
	bl	hdmi_read
	ldr	r10, .L33+16
	mov	r5, r0
	ldr	r1, [r10]
	mov	r0, r4
	bl	hdmi_read
	ldr	r3, .L33+20
	mov	r8, r0
	ldr	r1, [r3]
	mov	r0, r4
	str	r3, [sp, #24]
	bl	hdmi_read
	ldr	r3, .L33+24
	mov	r9, r0
	ldr	r1, [r3]
	mov	r0, r4
	str	r3, [sp, #20]
	bl	hdmi_read
	mov	r7, r0
	ldr	r3, .L33+28
	mov	r0, r4
	ldr	r1, [r3]
	str	r3, [sp, #16]
	bl	hdmi_read
	ldr	ip, .L33+56
	ldr	r2, .L33+60
	ldr	r1, .L33+64
	ldr	r6, [ip]
	ldr	r2, [r2]
	ldr	r3, .L33+36
	ldr	lr, [r1]
	ldr	r3, [r3]
	orr	r6, r6, r2
	ldr	r2, .L33+68
	orr	lr, lr, r3
	ldr	r2, [r2]
	ldr	r3, .L33+72
	orr	r6, r6, r2
	ldr	r3, [r3]
	ldr	r1, .L33+76
	ldr	r2, .L33+80
	ldr	ip, [r1]
	ldr	r2, [r2]
	orr	lr, lr, r3
	ldr	r3, .L33+84
	orr	ip, ip, r2
	ldr	r2, [r3]
	ldr	r3, .L33+88
	orr	r2, r6, r2
	bic	r6, r7, r2
	mov	r7, #0
	ldr	r1, [r3]
	ldr	r3, .L33+92
	bic	r5, r5, lr
	ldr	r3, [r3]
	bic	r8, r8, ip
	bic	r9, r9, r1
	bic	r3, r0, r3
.L17:
	mov	r2, r5
	ldr	r1, [fp]
	mov	r0, r4
	str	r3, [sp, #28]
	bl	hdmi_write
	mov	r2, r8
	ldr	r1, [r10]
	mov	r0, r4
	bl	hdmi_write
	ldr	r3, [sp, #24]
	mov	r2, r9
	ldr	r1, [r3]
	mov	r0, r4
	bl	hdmi_write
	ldr	r3, [sp, #20]
	mov	r2, r6
	ldr	r1, [r3]
	mov	r0, r4
	bl	hdmi_write
	ldr	r1, .L33+96
	ldr	r2, .L33+100
	ldr	r1, [r1]
	mov	r0, r7
	ldr	r6, [r2]
	bl	COND
	ldr	r2, .L33+104
	mov	r5, r0
	ldr	r1, [r2]
	mov	r0, r7
	bl	COND
	mov	r1, r6
	orr	r2, r5, r0
	mov	r0, r4
	bl	hdmi_write
	ldr	r3, [sp, #28]
	mov	r0, r4
	mov	r2, r3
	ldr	r3, [sp, #16]
	ldr	r1, [r3]
	bl	hdmi_write
	ldr	r3, .L33+108
	cmp	r7, #0
	ldr	r1, .L33+112
	ldr	r0, .L33+116
	moveq	r1, r3
	bl	DBG
	ldr	r3, .L33
	ldr	r2, [r3]
	ldr	r3, [sp, #116]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L32
	mov	r0, #0
	add	sp, sp, #124
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	mov	r5, #4
	asr	r8, r8, #2
.L7:
	mov	r3, r5
	mov	r1, r8
	ldr	r0, .L33+120
	str	r2, [sp, #52]
	bl	DBG
	ldr	r1, .L33+124
	ldr	r3, .L33+128
	ldr	r1, [r1]
	ldr	r3, [r3]
	mov	r0, r5
	orr	r3, r1, r3
	str	r3, [sp, #28]
	bl	HDMI_ACR_PKT_CTRL_N_MULTIPLIER
	ldr	r1, .L33+132
	ldr	r3, [r4, #12]
	ldr	r1, [r1]
	mov	r5, r0
	cmp	r3, r1
	ldr	r2, [sp, #52]
	beq	.L9
	ldr	r1, .L33+44
	ldr	r1, [r1]
	cmp	r3, r1
	beq	.L9
	ldr	r1, [r6]
	cmp	r3, r1
	beq	.L9
	ldr	r1, .L33+136
	ldr	r1, [r1]
	cmp	r3, r1
	beq	.L12
	ldr	r1, .L33+48
	ldr	r1, [r1]
	cmp	r3, r1
	beq	.L12
	ldr	r1, .L33+40
	ldr	r1, [r1]
	cmp	r3, r1
	beq	.L12
	ldr	r3, .L33+140
	ldr	r6, [r3]
	b	.L11
.L9:
	ldr	r3, .L33+144
	ldr	r6, [r3]
.L11:
	mov	r0, r6
	str	r2, [sp, #52]
	bl	HDMI_ACR_PKT_CTRL_SELECT
	sub	r6, r6, #1
	mov	r9, r0
	mov	r0, r6
	bl	REG_HDMI_ACR_0
	mov	r1, r0
	ldr	r2, [sp, #52]
	str	r1, [sp, #52]
	mov	r0, r2
	bl	HDMI_ACR_0_CTS
	ldr	r1, [sp, #52]
	mov	r2, r0
	mov	r0, r4
	bl	hdmi_write
	mov	r0, r6
	bl	REG_HDMI_ACR_1
	mov	r6, r0
	mov	r0, r8
	bl	HDMI_ACR_1_N
	mov	r1, r6
	mov	r2, r0
	mov	r0, r4
	bl	hdmi_write
	ldr	r0, [r4, #16]
	ldr	r2, .L33+148
	subs	r0, r0, #2
	ldr	r3, .L33+152
	movne	r0, #1
	ldr	r1, [r2]
	ldr	r6, [r3]
	bl	COND
	mov	r2, r0
	ldr	r3, .L33+156
	mov	r1, r6
	ldr	r3, [r3]
	mov	r0, r4
	orr	r2, r2, r3
	bl	hdmi_write
	ldr	r2, .L33+64
	ldr	r3, .L33+72
	ldr	r0, [r2]
	ldr	r2, [sp, #28]
	ldr	r3, [r3]
	orr	r0, r2, r0
	orr	r0, r0, r3
	ldr	r3, [sp, #48]
	mov	r2, #56
	orr	r0, r0, r3
	orr	r5, r0, r5
	add	r1, sp, #60
	add	r0, r4, #16
	bl	hdmi_audio_infoframe_pack
	ldr	r3, [sp, #80]
	ldr	r2, [sp, #76]
	ldr	r0, [sp, #72]
	lsl	r3, r3, #16
	orr	r3, r3, r2, lsl #8
	ldr	r1, .L33+160
	ldr	r2, [sp, #84]
	orr	r3, r3, r0
	orr	r2, r3, r2, lsl #24
	ldr	r1, [r1]
	mov	r0, r4
	bl	hdmi_write
	ldr	r1, [sp, #92]
	ldr	r3, .L33+164
	ldr	r2, [sp, #88]
	mov	r0, r4
	orr	r2, r2, r1, lsl #8
	ldr	r1, [r3]
	bl	hdmi_write
	ldr	r3, .L33+168
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	hdmi_write
	ldr	r1, .L33+56
	ldr	r2, .L33+60
	ldr	r8, [r1]
	ldr	r6, [r2]
	ldr	r3, .L33+68
	ldr	lr, .L33+76
	ldr	r2, .L33+80
	ldr	r1, .L33+84
	ldr	ip, [r3]
	ldr	r2, [r2]
	orr	r6, r8, r6
	ldr	r8, [lr]
	ldr	r1, [r1]
	orr	r6, r6, ip
	orr	r8, r8, r2
	ldr	r2, [sp, #40]
	orr	r6, r6, r1
	ldr	r0, .L33+88
	orr	r6, r6, r2
	ldr	r2, [sp, #32]
	ldr	r3, .L33+172
	orr	r5, r5, r9
	orr	r8, r8, r2
	ldr	r9, [r0]
	ldr	r2, [sp, #36]
	ldr	r3, [r3]
	orr	r9, r2, r9
	ldr	r2, [sp, #44]
	mov	r0, #4
	bic	r3, r2, r3
	str	r3, [sp, #28]
	bl	HDMI_AUDIO_CFG_FIFO_WATERMARK
	ldr	r2, .L33+92
	ldr	r3, [sp, #28]
	ldr	r2, [r2]
	orr	r3, r3, r2
	orr	r3, r3, r0
	b	.L17
.L12:
	ldr	r3, .L33+176
	ldr	r6, [r3]
	b	.L11
.L31:
	ldr	r1, [r4]
	ldr	r0, .L33+180
	bl	DBG
	b	.L2
.L32:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	.LC8
	.word	.LC2
	.word	.LC3
	.word	REG_HDMI_ACR_PKT_CTRL
	.word	REG_HDMI_VBI_PKT_CTRL
	.word	REG_HDMI_AUDIO_PKT_CTRL1
	.word	REG_HDMI_INFOFRAME_CTRL0
	.word	REG_HDMI_AUDIO_CFG
	.word	MSM_HDMI_SAMPLE_RATE_192KHZ
	.word	HDMI_ACR_PKT_CTRL_SELECT__MASK
	.word	MSM_HDMI_SAMPLE_RATE_176_4KHZ
	.word	MSM_HDMI_SAMPLE_RATE_96KHZ
	.word	MSM_HDMI_SAMPLE_RATE_88_2KHZ
	.word	.LC4
	.word	HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SEND
	.word	HDMI_INFOFRAME_CTRL0_AUDIO_INFO_CONT
	.word	HDMI_ACR_PKT_CTRL_CONT
	.word	HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SOURCE
	.word	HDMI_ACR_PKT_CTRL_SEND
	.word	HDMI_VBI_PKT_CTRL_GC_ENABLE
	.word	HDMI_VBI_PKT_CTRL_GC_EVERY_FRAME
	.word	HDMI_INFOFRAME_CTRL0_AUDIO_INFO_UPDATE
	.word	HDMI_AUDIO_PKT_CTRL1_AUDIO_SAMPLE_SEND
	.word	HDMI_AUDIO_CFG_ENGINE_ENABLE
	.word	HDMI_AUD_INT_AUD_FIFO_URUN_INT
	.word	REG_HDMI_AUD_INT
	.word	HDMI_AUD_INT_AUD_SAM_DROP_INT
	.word	.LC1
	.word	.LC0
	.word	.LC7
	.word	.LC6
	.word	HDMI_ACR_PKT_CTRL_SOURCE
	.word	HDMI_ACR_PKT_CTRL_AUDIO_PRIORITY
	.word	MSM_HDMI_SAMPLE_RATE_48KHZ
	.word	MSM_HDMI_SAMPLE_RATE_44_1KHZ
	.word	ACR_32
	.word	ACR_48
	.word	HDMI_AUDIO_PKT_CTRL2_LAYOUT
	.word	REG_HDMI_AUDIO_PKT_CTRL2
	.word	HDMI_AUDIO_PKT_CTRL2_OVERRIDE
	.word	REG_HDMI_AUDIO_INFO0
	.word	REG_HDMI_AUDIO_INFO1
	.word	REG_HDMI_GC
	.word	HDMI_AUDIO_CFG_FIFO_WATERMARK__MASK
	.word	ACR_44
	.word	.LC5
	.size	msm_hdmi_audio_update, .-msm_hdmi_audio_update
	.comm	REG_HDMI_VBI_PKT_CTRL,4,4
	.comm	REG_HDMI_INFOFRAME_CTRL0,4,4
	.comm	REG_HDMI_GC,4,4
	.comm	REG_HDMI_AUD_INT,4,4
	.comm	REG_HDMI_AUDIO_PKT_CTRL2,4,4
	.comm	REG_HDMI_AUDIO_PKT_CTRL1,4,4
	.comm	REG_HDMI_AUDIO_INFO1,4,4
	.comm	REG_HDMI_AUDIO_INFO0,4,4
	.comm	REG_HDMI_AUDIO_CFG,4,4
	.comm	REG_HDMI_ACR_PKT_CTRL,4,4
	.comm	MSM_HDMI_SAMPLE_RATE_96KHZ,4,4
	.comm	MSM_HDMI_SAMPLE_RATE_88_2KHZ,4,4
	.comm	MSM_HDMI_SAMPLE_RATE_48KHZ,4,4
	.comm	MSM_HDMI_SAMPLE_RATE_44_1KHZ,4,4
	.comm	MSM_HDMI_SAMPLE_RATE_192KHZ,4,4
	.comm	MSM_HDMI_SAMPLE_RATE_176_4KHZ,4,4
	.comm	HDMI_VBI_PKT_CTRL_GC_EVERY_FRAME,4,4
	.comm	HDMI_VBI_PKT_CTRL_GC_ENABLE,4,4
	.comm	HDMI_INFOFRAME_CTRL0_AUDIO_INFO_UPDATE,4,4
	.comm	HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SOURCE,4,4
	.comm	HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SEND,4,4
	.comm	HDMI_INFOFRAME_CTRL0_AUDIO_INFO_CONT,4,4
	.comm	HDMI_AUD_INT_AUD_SAM_DROP_INT,4,4
	.comm	HDMI_AUD_INT_AUD_FIFO_URUN_INT,4,4
	.comm	HDMI_AUDIO_PKT_CTRL2_OVERRIDE,4,4
	.comm	HDMI_AUDIO_PKT_CTRL2_LAYOUT,4,4
	.comm	HDMI_AUDIO_PKT_CTRL1_AUDIO_SAMPLE_SEND,4,4
	.comm	HDMI_AUDIO_CFG_FIFO_WATERMARK__MASK,4,4
	.comm	HDMI_AUDIO_CFG_ENGINE_ENABLE,4,4
	.comm	HDMI_ACR_PKT_CTRL_SOURCE,4,4
	.comm	HDMI_ACR_PKT_CTRL_SEND,4,4
	.comm	HDMI_ACR_PKT_CTRL_SELECT__MASK,4,4
	.comm	HDMI_ACR_PKT_CTRL_CONT,4,4
	.comm	HDMI_ACR_PKT_CTRL_AUDIO_PRIORITY,4,4
	.comm	ACR_48,4,4
	.comm	ACR_44,4,4
	.comm	ACR_32,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
