	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_hdmi_audio_update          ## -- Begin function msm_hdmi_audio_update
	.p2align	4, 0x90
_msm_hdmi_audio_update:                 ## @msm_hdmi_audio_update
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	16(%rdi), %r15d
	movl	32(%rdi), %edx
	movl	44(%rdi), %ecx
	movl	40(%rdi), %r8d
	movl	36(%rdi), %r9d
	movq	24(%rdi), %rax
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_DBG
	movq	(%r13), %rdx
	movq	8(%r13), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.2:
	cmpq	$0, 8(%r13)
	je	LBB0_4
## %bb.3:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.5:
	callq	_get_arcs
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	(%r13), %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_DBG
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_DBG
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_1:
	xorl	%r15d, %r15d
LBB0_8:
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	movq	_REG_HDMI_ACR_PKT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_hdmi_read
	movl	%eax, %r14d
	movq	_REG_HDMI_VBI_PKT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_hdmi_read
	movl	%eax, -128(%rbp)                ## 4-byte Spill
	movq	_REG_HDMI_AUDIO_PKT_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_hdmi_read
	movl	%eax, -132(%rbp)                ## 4-byte Spill
	movq	_REG_HDMI_INFOFRAME_CTRL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_hdmi_read
	movl	%eax, %r12d
	movq	_REG_HDMI_AUDIO_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_hdmi_read
	movl	%eax, %edi
	movq	_HDMI_ACR_PKT_CTRL_SELECT__MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	andl	%r14d, %ebx
	testl	%r15d, %r15d
	movq	%r15, -160(%rbp)                ## 8-byte Spill
	je	LBB0_20
## %bb.9:
	movl	%r12d, -152(%rbp)               ## 4-byte Spill
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rcx
	movq	24(%r13), %rax
	movl	(%rcx,%rax,8), %r12d
	movl	4(%rcx,%rax,8), %edx
	movq	_MSM_HDMI_SAMPLE_RATE_192KHZ@GOTPCREL(%rip), %rsi
	movq	_MSM_HDMI_SAMPLE_RATE_176_4KHZ@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rsi)
	movl	%edi, -148(%rbp)                ## 4-byte Spill
	je	LBB0_11
## %bb.10:
	cmpq	%rax, (%rcx)
	je	LBB0_11
## %bb.12:
	movq	_MSM_HDMI_SAMPLE_RATE_96KHZ@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	sete	%sil
	movq	_MSM_HDMI_SAMPLE_RATE_88_2KHZ@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	sete	%cl
	orb	%sil, %cl
	sarl	%cl, %r12d
	movzbl	%cl, %r14d
	incl	%r14d
	jmp	LBB0_13
LBB0_20:
	movq	_HDMI_ACR_PKT_CTRL_CONT@GOTPCREL(%rip), %rax
	movq	_HDMI_ACR_PKT_CTRL_SEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_HDMI_VBI_PKT_CTRL_GC_ENABLE@GOTPCREL(%rip), %rax
	movq	_HDMI_VBI_PKT_CTRL_GC_EVERY_FRAME@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movq	_HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SEND@GOTPCREL(%rip), %rax
	movq	_HDMI_INFOFRAME_CTRL0_AUDIO_INFO_CONT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rax), %esi
	notl	%ecx
	andl	%ecx, %ebx
	movq	_HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SOURCE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_HDMI_INFOFRAME_CTRL0_AUDIO_INFO_UPDATE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	notl	%edx
	movl	-128(%rbp), %r15d               ## 4-byte Reload
	andl	%edx, %r15d
	movq	_HDMI_AUDIO_PKT_CTRL1_AUDIO_SAMPLE_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	-132(%rbp), %ecx                ## 4-byte Reload
	andl	%eax, %ecx
	notl	%esi
	andl	%esi, %r12d
	movq	_HDMI_AUDIO_CFG_ENGINE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %edi
	leaq	L_.str.7(%rip), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	%ebx, %edx
	movl	%edi, %r14d
	movl	%ecx, %ebx
	jmp	LBB0_21
LBB0_11:
	sarl	$2, %r12d
	movl	$4, %r14d
LBB0_13:
	leaq	32(%r13), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	leaq	L_.str.4(%rip), %rdi
	movl	%r12d, %esi
	movl	%edx, -116(%rbp)                ## 4-byte Spill
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_DBG
	movq	_HDMI_ACR_PKT_CTRL_SOURCE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_HDMI_ACR_PKT_CTRL_AUDIO_PRIORITY@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_HDMI_ACR_PKT_CTRL_N_MULTIPLIER
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movq	_MSM_HDMI_SAMPLE_RATE_48KHZ@GOTPCREL(%rip), %rdx
	movq	24(%r13), %rcx
	movq	_ACR_48@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rdx)
	je	LBB0_19
## %bb.14:
	movq	_MSM_HDMI_SAMPLE_RATE_96KHZ@GOTPCREL(%rip), %rdx
	cmpq	%rcx, (%rdx)
	je	LBB0_19
## %bb.15:
	movq	_MSM_HDMI_SAMPLE_RATE_192KHZ@GOTPCREL(%rip), %rdx
	cmpq	%rcx, (%rdx)
	je	LBB0_19
## %bb.16:
	movq	_MSM_HDMI_SAMPLE_RATE_44_1KHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_MSM_HDMI_SAMPLE_RATE_88_2KHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_ACR_44@GOTPCREL(%rip), %rsi
	movq	%rsi, %rax
	movq	_MSM_HDMI_SAMPLE_RATE_176_4KHZ@GOTPCREL(%rip), %rbx
	cmpq	%rcx, (%rbx)
	je	LBB0_18
## %bb.17:
	movq	_ACR_32@GOTPCREL(%rip), %rax
LBB0_18:
	cmpq	%rcx, %rdi
	cmoveq	%rsi, %rax
	cmpq	%rcx, %rdx
	cmoveq	%rsi, %rax
LBB0_19:
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_HDMI_ACR_PKT_CTRL_SELECT
	orl	%eax, %r15d
	decl	%ebx
	movl	%ebx, %edi
	callq	_REG_HDMI_ACR_0
	movl	%eax, %r14d
	movl	-116(%rbp), %edi                ## 4-byte Reload
	callq	_HDMI_ACR_0_CTS
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_hdmi_write
	movl	%ebx, %edi
	callq	_REG_HDMI_ACR_1
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_HDMI_ACR_1_N
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_hdmi_write
	movq	_REG_HDMI_AUDIO_PKT_CTRL2@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$2, 32(%r13)
	movl	(%rax), %ebx
	setne	%dil
	movq	_HDMI_AUDIO_PKT_CTRL2_LAYOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_COND
	movq	_HDMI_AUDIO_PKT_CTRL2_OVERRIDE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_hdmi_write
	movq	_HDMI_ACR_PKT_CTRL_CONT@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_HDMI_ACR_PKT_CTRL_SEND@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r15d, -116(%rbp)               ## 4-byte Spill
	leaq	-112(%rbp), %rsi
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	movl	$56, %edx
	callq	_hdmi_audio_infoframe_pack
	movq	_REG_HDMI_AUDIO_INFO0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-96(%rbp), %eax
	movl	-92(%rbp), %ecx
	shll	$8, %eax
	orl	-100(%rbp), %eax
	shll	$16, %ecx
	movl	-88(%rbp), %edx
	shll	$24, %edx
	orl	%ecx, %edx
	orl	%eax, %edx
	movq	%r13, %rdi
	callq	_hdmi_write
	movq	_REG_HDMI_AUDIO_INFO1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-80(%rbp), %edx
	shll	$8, %edx
	orl	-84(%rbp), %edx
	movq	%r13, %rdi
	callq	_hdmi_write
	movq	_REG_HDMI_GC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_hdmi_write
	movq	_HDMI_VBI_PKT_CTRL_GC_ENABLE@GOTPCREL(%rip), %rax
	movl	-128(%rbp), %r15d               ## 4-byte Reload
	orl	(%rax), %r15d
	movq	_HDMI_VBI_PKT_CTRL_GC_EVERY_FRAME@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_HDMI_AUDIO_PKT_CTRL1_AUDIO_SAMPLE_SEND@GOTPCREL(%rip), %rax
	movl	-132(%rbp), %r14d               ## 4-byte Reload
	orl	(%rax), %r14d
	movq	_HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SEND@GOTPCREL(%rip), %rax
	movl	-152(%rbp), %r12d               ## 4-byte Reload
	orl	(%rax), %r12d
	movq	_HDMI_INFOFRAME_CTRL0_AUDIO_INFO_CONT@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SOURCE@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_HDMI_INFOFRAME_CTRL0_AUDIO_INFO_UPDATE@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_HDMI_AUDIO_CFG_FIFO_WATERMARK__MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	-148(%rbp), %ebx                ## 4-byte Reload
	andl	%eax, %ebx
	movl	$4, %edi
	callq	_HDMI_AUDIO_CFG_FIFO_WATERMARK
	movl	-116(%rbp), %edx                ## 4-byte Reload
	orl	%ebx, %eax
	movl	%r14d, %ebx
	movl	%eax, %r14d
	movq	_HDMI_AUDIO_CFG_ENGINE_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	leaq	L_.str.6(%rip), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
LBB0_21:
	movq	_REG_HDMI_ACR_PKT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_hdmi_write
	movq	_REG_HDMI_VBI_PKT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_hdmi_write
	movq	_REG_HDMI_AUDIO_PKT_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_hdmi_write
	movq	_REG_HDMI_INFOFRAME_CTRL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_hdmi_write
	movq	_REG_HDMI_AUD_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_HDMI_AUD_INT_AUD_FIFO_URUN_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-160(%rbp), %r15                ## 8-byte Reload
	movl	%r15d, %edi
	callq	_COND
	movl	%eax, %ebx
	movq	_HDMI_AUD_INT_AUD_SAM_DROP_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_COND
	orl	%eax, %ebx
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_hdmi_write
	movq	_REG_HDMI_AUDIO_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_hdmi_write
	leaq	L_.str.5(%rip), %rdi
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_DBG
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	xorl	%eax, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"audio: enabled=%d, channels=%d, channel_allocation=0x%x, level_shift_value=%d, downmix_inhibit=%d, rate=%d"

L_.str.1:                               ## @.str.1
	.asciz	"video: power_on=%d, pixclock=%lu"

L_.str.2:                               ## @.str.2
	.asciz	"disabling audio: no video"

L_.str.3:                               ## @.str.3
	.asciz	"disabling audio: unsupported pixclock: %lu"

	.comm	_REG_HDMI_ACR_PKT_CTRL,4,2      ## @REG_HDMI_ACR_PKT_CTRL
	.comm	_REG_HDMI_VBI_PKT_CTRL,4,2      ## @REG_HDMI_VBI_PKT_CTRL
	.comm	_REG_HDMI_AUDIO_PKT_CTRL1,4,2   ## @REG_HDMI_AUDIO_PKT_CTRL1
	.comm	_REG_HDMI_INFOFRAME_CTRL0,4,2   ## @REG_HDMI_INFOFRAME_CTRL0
	.comm	_REG_HDMI_AUDIO_CFG,4,2         ## @REG_HDMI_AUDIO_CFG
	.comm	_HDMI_ACR_PKT_CTRL_SELECT__MASK,4,2 ## @HDMI_ACR_PKT_CTRL_SELECT__MASK
	.comm	_MSM_HDMI_SAMPLE_RATE_192KHZ,8,3 ## @MSM_HDMI_SAMPLE_RATE_192KHZ
	.comm	_MSM_HDMI_SAMPLE_RATE_176_4KHZ,8,3 ## @MSM_HDMI_SAMPLE_RATE_176_4KHZ
	.comm	_MSM_HDMI_SAMPLE_RATE_96KHZ,8,3 ## @MSM_HDMI_SAMPLE_RATE_96KHZ
	.comm	_MSM_HDMI_SAMPLE_RATE_88_2KHZ,8,3 ## @MSM_HDMI_SAMPLE_RATE_88_2KHZ
L_.str.4:                               ## @.str.4
	.asciz	"n=%u, cts=%u, multiplier=%u"

	.comm	_HDMI_ACR_PKT_CTRL_SOURCE,4,2   ## @HDMI_ACR_PKT_CTRL_SOURCE
	.comm	_HDMI_ACR_PKT_CTRL_AUDIO_PRIORITY,4,2 ## @HDMI_ACR_PKT_CTRL_AUDIO_PRIORITY
	.comm	_MSM_HDMI_SAMPLE_RATE_48KHZ,8,3 ## @MSM_HDMI_SAMPLE_RATE_48KHZ
	.comm	_ACR_48,4,2                     ## @ACR_48
	.comm	_MSM_HDMI_SAMPLE_RATE_44_1KHZ,8,3 ## @MSM_HDMI_SAMPLE_RATE_44_1KHZ
	.comm	_ACR_44,4,2                     ## @ACR_44
	.comm	_ACR_32,4,2                     ## @ACR_32
	.comm	_REG_HDMI_AUDIO_PKT_CTRL2,4,2   ## @REG_HDMI_AUDIO_PKT_CTRL2
	.comm	_HDMI_AUDIO_PKT_CTRL2_LAYOUT,4,2 ## @HDMI_AUDIO_PKT_CTRL2_LAYOUT
	.comm	_HDMI_AUDIO_PKT_CTRL2_OVERRIDE,4,2 ## @HDMI_AUDIO_PKT_CTRL2_OVERRIDE
	.comm	_HDMI_ACR_PKT_CTRL_CONT,4,2     ## @HDMI_ACR_PKT_CTRL_CONT
	.comm	_HDMI_ACR_PKT_CTRL_SEND,4,2     ## @HDMI_ACR_PKT_CTRL_SEND
	.comm	_REG_HDMI_AUDIO_INFO0,4,2       ## @REG_HDMI_AUDIO_INFO0
	.comm	_REG_HDMI_AUDIO_INFO1,4,2       ## @REG_HDMI_AUDIO_INFO1
	.comm	_REG_HDMI_GC,4,2                ## @REG_HDMI_GC
	.comm	_HDMI_VBI_PKT_CTRL_GC_ENABLE,4,2 ## @HDMI_VBI_PKT_CTRL_GC_ENABLE
	.comm	_HDMI_VBI_PKT_CTRL_GC_EVERY_FRAME,4,2 ## @HDMI_VBI_PKT_CTRL_GC_EVERY_FRAME
	.comm	_HDMI_AUDIO_PKT_CTRL1_AUDIO_SAMPLE_SEND,4,2 ## @HDMI_AUDIO_PKT_CTRL1_AUDIO_SAMPLE_SEND
	.comm	_HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SEND,4,2 ## @HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SEND
	.comm	_HDMI_INFOFRAME_CTRL0_AUDIO_INFO_CONT,4,2 ## @HDMI_INFOFRAME_CTRL0_AUDIO_INFO_CONT
	.comm	_HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SOURCE,4,2 ## @HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SOURCE
	.comm	_HDMI_INFOFRAME_CTRL0_AUDIO_INFO_UPDATE,4,2 ## @HDMI_INFOFRAME_CTRL0_AUDIO_INFO_UPDATE
	.comm	_HDMI_AUDIO_CFG_FIFO_WATERMARK__MASK,4,2 ## @HDMI_AUDIO_CFG_FIFO_WATERMARK__MASK
	.comm	_HDMI_AUDIO_CFG_ENGINE_ENABLE,4,2 ## @HDMI_AUDIO_CFG_ENGINE_ENABLE
	.comm	_REG_HDMI_AUD_INT,4,2           ## @REG_HDMI_AUD_INT
	.comm	_HDMI_AUD_INT_AUD_FIFO_URUN_INT,4,2 ## @HDMI_AUD_INT_AUD_FIFO_URUN_INT
	.comm	_HDMI_AUD_INT_AUD_SAM_DROP_INT,4,2 ## @HDMI_AUD_INT_AUD_SAM_DROP_INT
L_.str.5:                               ## @.str.5
	.asciz	"audio %sabled"

L_.str.6:                               ## @.str.6
	.asciz	"en"

L_.str.7:                               ## @.str.7
	.asciz	"dis"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_hdmi_audio_update          ; -- Begin function msm_hdmi_audio_update
	.p2align	2
_msm_hdmi_audio_update:                 ; @msm_hdmi_audio_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	x21, x0
	ldr	w8, [x21, #32]!
	ldr	w20, [x0, #16]
	ldr	x9, [x0, #24]
	ldp	w11, w10, [x0, #40]
	ldr	w12, [x0, #36]
	stp	x12, x9, [sp, #32]
	stp	x10, x11, [sp, #16]
	stp	x20, x8, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	ldp	x9, x8, [x19]
	stp	x8, x9, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBG
	cbz	w20, LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x0, [x19]
	cbz	x0, LBB0_5
; %bb.3:
	bl	_get_arcs
	mov	x26, x0
	cbnz	x0, LBB0_7
; %bb.4:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DBG
	mov	w20, #0
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DBG
	mov	w20, #0
LBB0_6:
	mov	x26, #0
LBB0_7:
Lloh11:
	adrp	x8, _REG_HDMI_ACR_PKT_CTRL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_HDMI_ACR_PKT_CTRL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hdmi_read
	mov	x27, x0
Lloh14:
	adrp	x8, _REG_HDMI_VBI_PKT_CTRL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REG_HDMI_VBI_PKT_CTRL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hdmi_read
	mov	x25, x0
Lloh17:
	adrp	x8, _REG_HDMI_AUDIO_PKT_CTRL1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _REG_HDMI_AUDIO_PKT_CTRL1@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hdmi_read
	mov	x24, x0
Lloh20:
	adrp	x8, _REG_HDMI_INFOFRAME_CTRL0@GOTPAGE
Lloh21:
	ldr	x8, [x8, _REG_HDMI_INFOFRAME_CTRL0@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hdmi_read
	mov	x22, x0
Lloh23:
	adrp	x28, _REG_HDMI_AUDIO_CFG@GOTPAGE
Lloh24:
	ldr	x28, [x28, _REG_HDMI_AUDIO_CFG@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x0, x19
	bl	_hdmi_read
Lloh25:
	adrp	x8, _HDMI_ACR_PKT_CTRL_SELECT__MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _HDMI_ACR_PKT_CTRL_SELECT__MASK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	bic	w23, w27, w8
	cbz	w20, LBB0_11
; %bb.8:
	str	x21, [sp, #64]                  ; 8-byte Folded Spill
	str	w25, [sp, #60]                  ; 4-byte Folded Spill
	str	w22, [sp, #72]                  ; 4-byte Folded Spill
	ldr	x8, [x26]
	ldr	x9, [x19, #24]
	add	x10, x8, x9, lsl #3
	ldp	w8, w25, [x10]
Lloh28:
	adrp	x21, _MSM_HDMI_SAMPLE_RATE_192KHZ@GOTPAGE
Lloh29:
	ldr	x21, [x21, _MSM_HDMI_SAMPLE_RATE_192KHZ@GOTPAGEOFF]
	ldr	x10, [x21]
Lloh30:
	adrp	x22, _MSM_HDMI_SAMPLE_RATE_176_4KHZ@GOTPAGE
Lloh31:
	ldr	x22, [x22, _MSM_HDMI_SAMPLE_RATE_176_4KHZ@GOTPAGEOFF]
Lloh32:
	adrp	x11, _MSM_HDMI_SAMPLE_RATE_96KHZ@GOTPAGE
Lloh33:
	ldr	x11, [x11, _MSM_HDMI_SAMPLE_RATE_96KHZ@GOTPAGEOFF]
	cmp	x10, x9
	str	w0, [sp, #76]                   ; 4-byte Folded Spill
	b.eq	LBB0_12
; %bb.9:
	ldr	x10, [x22]
	cmp	x10, x9
	b.eq	LBB0_12
; %bb.10:
	mov	x26, x11
	ldr	x10, [x11]
	cmp	x10, x9
Lloh34:
	adrp	x10, _MSM_HDMI_SAMPLE_RATE_88_2KHZ@GOTPAGE
Lloh35:
	ldr	x10, [x10, _MSM_HDMI_SAMPLE_RATE_88_2KHZ@GOTPAGEOFF]
Lloh36:
	ldr	x10, [x10]
	ccmp	x10, x9, #4, ne
	cset	w9, eq
	asr	w27, w8, w9
	mov	w8, #1
	cinc	w28, w8, eq
	b	LBB0_13
LBB0_11:
Lloh37:
	adrp	x8, _HDMI_ACR_PKT_CTRL_CONT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _HDMI_ACR_PKT_CTRL_CONT@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
Lloh40:
	adrp	x9, _HDMI_ACR_PKT_CTRL_SEND@GOTPAGE
Lloh41:
	ldr	x9, [x9, _HDMI_ACR_PKT_CTRL_SEND@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w26, w23, w8
Lloh43:
	adrp	x8, _HDMI_VBI_PKT_CTRL_GC_ENABLE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _HDMI_VBI_PKT_CTRL_GC_ENABLE@GOTPAGEOFF]
Lloh45:
	adrp	x9, _HDMI_VBI_PKT_CTRL_GC_EVERY_FRAME@GOTPAGE
Lloh46:
	ldr	x9, [x9, _HDMI_VBI_PKT_CTRL_GC_EVERY_FRAME@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
Lloh48:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w21, w25, w8
Lloh49:
	adrp	x8, _HDMI_AUDIO_PKT_CTRL1_AUDIO_SAMPLE_SEND@GOTPAGE
Lloh50:
	ldr	x8, [x8, _HDMI_AUDIO_PKT_CTRL1_AUDIO_SAMPLE_SEND@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	bic	w24, w24, w8
Lloh52:
	adrp	x8, _HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SEND@GOTPAGE
Lloh53:
	ldr	x8, [x8, _HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SEND@GOTPAGEOFF]
Lloh54:
	adrp	x9, _HDMI_INFOFRAME_CTRL0_AUDIO_INFO_CONT@GOTPAGE
Lloh55:
	ldr	x9, [x9, _HDMI_INFOFRAME_CTRL0_AUDIO_INFO_CONT@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
Lloh57:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh58:
	adrp	x9, _HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SOURCE@GOTPAGE
Lloh59:
	ldr	x9, [x9, _HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SOURCE@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh61:
	adrp	x9, _HDMI_INFOFRAME_CTRL0_AUDIO_INFO_UPDATE@GOTPAGE
Lloh62:
	ldr	x9, [x9, _HDMI_INFOFRAME_CTRL0_AUDIO_INFO_UPDATE@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w23, w22, w8
Lloh64:
	adrp	x8, _HDMI_AUDIO_CFG_ENGINE_ENABLE@GOTPAGE
Lloh65:
	ldr	x8, [x8, _HDMI_AUDIO_CFG_ENGINE_ENABLE@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	bic	w22, w0, w8
Lloh67:
	adrp	x25, l_.str.7@PAGE
Lloh68:
	add	x25, x25, l_.str.7@PAGEOFF
	b	LBB0_19
LBB0_12:
	mov	x26, x11
	asr	w27, w8, #2
	mov	w28, #4
LBB0_13:
	stp	x25, x28, [sp, #8]
	str	x27, [sp]
Lloh69:
	adrp	x0, l_.str.4@PAGE
Lloh70:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DBG
Lloh71:
	adrp	x8, _HDMI_ACR_PKT_CTRL_SOURCE@GOTPAGE
Lloh72:
	ldr	x8, [x8, _HDMI_ACR_PKT_CTRL_SOURCE@GOTPAGEOFF]
Lloh73:
	ldr	w8, [x8]
	orr	w8, w8, w23
Lloh74:
	adrp	x9, _HDMI_ACR_PKT_CTRL_AUDIO_PRIORITY@GOTPAGE
Lloh75:
	ldr	x9, [x9, _HDMI_ACR_PKT_CTRL_AUDIO_PRIORITY@GOTPAGEOFF]
Lloh76:
	ldr	w9, [x9]
	orr	w23, w8, w9
	mov	x0, x28
	bl	_HDMI_ACR_PKT_CTRL_N_MULTIPLIER
Lloh77:
	adrp	x8, _MSM_HDMI_SAMPLE_RATE_48KHZ@GOTPAGE
Lloh78:
	ldr	x8, [x8, _MSM_HDMI_SAMPLE_RATE_48KHZ@GOTPAGEOFF]
	orr	w23, w23, w0
Lloh79:
	ldr	x10, [x8]
	ldr	x9, [x19, #24]
Lloh80:
	adrp	x8, _ACR_48@GOTPAGE
Lloh81:
	ldr	x8, [x8, _ACR_48@GOTPAGEOFF]
	cmp	x10, x9
	b.eq	LBB0_17
; %bb.14:
	ldr	x10, [x26]
	cmp	x10, x9
	b.eq	LBB0_17
; %bb.15:
	ldr	x10, [x21]
	cmp	x10, x9
	ldr	w21, [sp, #60]                  ; 4-byte Folded Reload
	b.eq	LBB0_18
; %bb.16:
Lloh82:
	adrp	x8, _MSM_HDMI_SAMPLE_RATE_44_1KHZ@GOTPAGE
Lloh83:
	ldr	x8, [x8, _MSM_HDMI_SAMPLE_RATE_44_1KHZ@GOTPAGEOFF]
Lloh84:
	ldr	x8, [x8]
Lloh85:
	adrp	x10, _MSM_HDMI_SAMPLE_RATE_88_2KHZ@GOTPAGE
Lloh86:
	ldr	x10, [x10, _MSM_HDMI_SAMPLE_RATE_88_2KHZ@GOTPAGEOFF]
Lloh87:
	ldr	x10, [x10]
	ldr	x11, [x22]
	cmp	x11, x9
	ccmp	x10, x9, #4, ne
	ccmp	x8, x9, #4, ne
Lloh88:
	adrp	x8, _ACR_32@GOTPAGE
Lloh89:
	ldr	x8, [x8, _ACR_32@GOTPAGEOFF]
Lloh90:
	adrp	x9, _ACR_44@GOTPAGE
Lloh91:
	ldr	x9, [x9, _ACR_44@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	b	LBB0_18
LBB0_17:
	ldr	w21, [sp, #60]                  ; 4-byte Folded Reload
LBB0_18:
	ldr	w28, [x8]
	mov	x0, x28
	bl	_HDMI_ACR_PKT_CTRL_SELECT
	orr	w23, w23, w0
	sub	w28, w28, #1
	mov	x0, x28
	bl	_REG_HDMI_ACR_0
	mov	x22, x0
	mov	x0, x25
	bl	_HDMI_ACR_0_CTS
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_hdmi_write
	mov	x0, x28
	bl	_REG_HDMI_ACR_1
	mov	x22, x0
	mov	x0, x27
	bl	_HDMI_ACR_1_N
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_hdmi_write
Lloh92:
	adrp	x8, _REG_HDMI_AUDIO_PKT_CTRL2@GOTPAGE
Lloh93:
	ldr	x8, [x8, _REG_HDMI_AUDIO_PKT_CTRL2@GOTPAGEOFF]
Lloh94:
	ldr	w22, [x8]
	ldr	w8, [x19, #32]
	cmp	w8, #2
	cset	w0, ne
Lloh95:
	adrp	x8, _HDMI_AUDIO_PKT_CTRL2_LAYOUT@GOTPAGE
Lloh96:
	ldr	x8, [x8, _HDMI_AUDIO_PKT_CTRL2_LAYOUT@GOTPAGEOFF]
Lloh97:
	ldr	w1, [x8]
	bl	_COND
Lloh98:
	adrp	x8, _HDMI_AUDIO_PKT_CTRL2_OVERRIDE@GOTPAGE
Lloh99:
	ldr	x8, [x8, _HDMI_AUDIO_PKT_CTRL2_OVERRIDE@GOTPAGEOFF]
Lloh100:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x22
	bl	_hdmi_write
Lloh101:
	adrp	x8, _HDMI_ACR_PKT_CTRL_CONT@GOTPAGE
Lloh102:
	ldr	x8, [x8, _HDMI_ACR_PKT_CTRL_CONT@GOTPAGEOFF]
Lloh103:
	ldr	w8, [x8]
	orr	w8, w23, w8
Lloh104:
	adrp	x9, _HDMI_ACR_PKT_CTRL_SEND@GOTPAGE
Lloh105:
	ldr	x9, [x9, _HDMI_ACR_PKT_CTRL_SEND@GOTPAGEOFF]
Lloh106:
	ldr	w9, [x9]
	orr	w26, w8, w9
	add	x1, sp, #80
	ldr	x0, [sp, #64]                   ; 8-byte Folded Reload
	mov	w2, #56
	bl	_hdmi_audio_infoframe_pack
Lloh107:
	adrp	x8, _REG_HDMI_AUDIO_INFO0@GOTPAGE
Lloh108:
	ldr	x8, [x8, _REG_HDMI_AUDIO_INFO0@GOTPAGEOFF]
Lloh109:
	ldr	w1, [x8]
	ldp	w8, w9, [sp, #92]
	orr	w8, w8, w9, lsl #8
	ldp	w9, w10, [sp, #100]
	orr	w8, w8, w9, lsl #16
	orr	w2, w8, w10, lsl #24
	mov	x0, x19
	bl	_hdmi_write
Lloh110:
	adrp	x8, _REG_HDMI_AUDIO_INFO1@GOTPAGE
Lloh111:
	ldr	x8, [x8, _REG_HDMI_AUDIO_INFO1@GOTPAGEOFF]
Lloh112:
	ldr	w1, [x8]
	ldp	w8, w9, [sp, #108]
	orr	w2, w8, w9, lsl #8
	mov	x0, x19
	bl	_hdmi_write
Lloh113:
	adrp	x8, _REG_HDMI_GC@GOTPAGE
Lloh114:
	ldr	x8, [x8, _REG_HDMI_GC@GOTPAGEOFF]
Lloh115:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_hdmi_write
Lloh116:
	adrp	x8, _HDMI_VBI_PKT_CTRL_GC_ENABLE@GOTPAGE
Lloh117:
	ldr	x8, [x8, _HDMI_VBI_PKT_CTRL_GC_ENABLE@GOTPAGEOFF]
Lloh118:
	ldr	w8, [x8]
	orr	w8, w8, w21
Lloh119:
	adrp	x9, _HDMI_VBI_PKT_CTRL_GC_EVERY_FRAME@GOTPAGE
Lloh120:
	ldr	x9, [x9, _HDMI_VBI_PKT_CTRL_GC_EVERY_FRAME@GOTPAGEOFF]
Lloh121:
	ldr	w9, [x9]
	orr	w21, w8, w9
Lloh122:
	adrp	x8, _HDMI_AUDIO_PKT_CTRL1_AUDIO_SAMPLE_SEND@GOTPAGE
Lloh123:
	ldr	x8, [x8, _HDMI_AUDIO_PKT_CTRL1_AUDIO_SAMPLE_SEND@GOTPAGEOFF]
Lloh124:
	ldr	w8, [x8]
	orr	w24, w8, w24
Lloh125:
	adrp	x8, _HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SEND@GOTPAGE
Lloh126:
	ldr	x8, [x8, _HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SEND@GOTPAGEOFF]
Lloh127:
	ldr	w8, [x8]
	ldr	w9, [sp, #72]                   ; 4-byte Folded Reload
	orr	w8, w8, w9
Lloh128:
	adrp	x9, _HDMI_INFOFRAME_CTRL0_AUDIO_INFO_CONT@GOTPAGE
Lloh129:
	ldr	x9, [x9, _HDMI_INFOFRAME_CTRL0_AUDIO_INFO_CONT@GOTPAGEOFF]
Lloh130:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh131:
	adrp	x9, _HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SOURCE@GOTPAGE
Lloh132:
	ldr	x9, [x9, _HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SOURCE@GOTPAGEOFF]
Lloh133:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh134:
	adrp	x9, _HDMI_INFOFRAME_CTRL0_AUDIO_INFO_UPDATE@GOTPAGE
Lloh135:
	ldr	x9, [x9, _HDMI_INFOFRAME_CTRL0_AUDIO_INFO_UPDATE@GOTPAGEOFF]
Lloh136:
	ldr	w9, [x9]
	orr	w23, w8, w9
Lloh137:
	adrp	x8, _HDMI_AUDIO_CFG_FIFO_WATERMARK__MASK@GOTPAGE
Lloh138:
	ldr	x8, [x8, _HDMI_AUDIO_CFG_FIFO_WATERMARK__MASK@GOTPAGEOFF]
Lloh139:
	ldr	w8, [x8]
	ldr	w9, [sp, #76]                   ; 4-byte Folded Reload
	bic	w22, w9, w8
	mov	w0, #4
	bl	_HDMI_AUDIO_CFG_FIFO_WATERMARK
	orr	w8, w22, w0
Lloh140:
	adrp	x9, _HDMI_AUDIO_CFG_ENGINE_ENABLE@GOTPAGE
Lloh141:
	ldr	x9, [x9, _HDMI_AUDIO_CFG_ENGINE_ENABLE@GOTPAGEOFF]
Lloh142:
	ldr	w9, [x9]
	orr	w22, w8, w9
Lloh143:
	adrp	x25, l_.str.6@PAGE
Lloh144:
	add	x25, x25, l_.str.6@PAGEOFF
Lloh145:
	adrp	x28, _REG_HDMI_AUDIO_CFG@GOTPAGE
Lloh146:
	ldr	x28, [x28, _REG_HDMI_AUDIO_CFG@GOTPAGEOFF]
LBB0_19:
Lloh147:
	adrp	x8, _REG_HDMI_ACR_PKT_CTRL@GOTPAGE
Lloh148:
	ldr	x8, [x8, _REG_HDMI_ACR_PKT_CTRL@GOTPAGEOFF]
Lloh149:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x26
	bl	_hdmi_write
Lloh150:
	adrp	x8, _REG_HDMI_VBI_PKT_CTRL@GOTPAGE
Lloh151:
	ldr	x8, [x8, _REG_HDMI_VBI_PKT_CTRL@GOTPAGEOFF]
Lloh152:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_hdmi_write
Lloh153:
	adrp	x8, _REG_HDMI_AUDIO_PKT_CTRL1@GOTPAGE
Lloh154:
	ldr	x8, [x8, _REG_HDMI_AUDIO_PKT_CTRL1@GOTPAGEOFF]
Lloh155:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x24
	bl	_hdmi_write
Lloh156:
	adrp	x8, _REG_HDMI_INFOFRAME_CTRL0@GOTPAGE
Lloh157:
	ldr	x8, [x8, _REG_HDMI_INFOFRAME_CTRL0@GOTPAGEOFF]
Lloh158:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_hdmi_write
Lloh159:
	adrp	x8, _REG_HDMI_AUD_INT@GOTPAGE
Lloh160:
	ldr	x8, [x8, _REG_HDMI_AUD_INT@GOTPAGEOFF]
Lloh161:
	ldr	w21, [x8]
Lloh162:
	adrp	x8, _HDMI_AUD_INT_AUD_FIFO_URUN_INT@GOTPAGE
Lloh163:
	ldr	x8, [x8, _HDMI_AUD_INT_AUD_FIFO_URUN_INT@GOTPAGEOFF]
Lloh164:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_COND
	mov	x23, x0
Lloh165:
	adrp	x8, _HDMI_AUD_INT_AUD_SAM_DROP_INT@GOTPAGE
Lloh166:
	ldr	x8, [x8, _HDMI_AUD_INT_AUD_SAM_DROP_INT@GOTPAGEOFF]
Lloh167:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_COND
	orr	w2, w0, w23
	mov	x0, x19
	mov	x1, x21
	bl	_hdmi_write
	ldr	w1, [x28]
	mov	x0, x19
	mov	x2, x22
	bl	_hdmi_write
	str	x25, [sp]
Lloh168:
	adrp	x0, l_.str.5@PAGE
Lloh169:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DBG
	ldur	x8, [x29, #-88]
Lloh170:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh171:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh172:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	mov	w0, #0
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh56
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh47
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh145, Lloh146
	.loh AdrpAdd	Lloh143, Lloh144
	.loh AdrpLdrGotLdr	Lloh140, Lloh141, Lloh142
	.loh AdrpLdrGotLdr	Lloh137, Lloh138, Lloh139
	.loh AdrpLdrGotLdr	Lloh134, Lloh135, Lloh136
	.loh AdrpLdrGotLdr	Lloh131, Lloh132, Lloh133
	.loh AdrpLdrGotLdr	Lloh128, Lloh129, Lloh130
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh170, Lloh171, Lloh172
	.loh AdrpAdd	Lloh168, Lloh169
	.loh AdrpLdrGotLdr	Lloh165, Lloh166, Lloh167
	.loh AdrpLdrGotLdr	Lloh162, Lloh163, Lloh164
	.loh AdrpLdrGotLdr	Lloh159, Lloh160, Lloh161
	.loh AdrpLdrGotLdr	Lloh156, Lloh157, Lloh158
	.loh AdrpLdrGotLdr	Lloh153, Lloh154, Lloh155
	.loh AdrpLdrGotLdr	Lloh150, Lloh151, Lloh152
	.loh AdrpLdrGotLdr	Lloh147, Lloh148, Lloh149
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"audio: enabled=%d, channels=%d, channel_allocation=0x%x, level_shift_value=%d, downmix_inhibit=%d, rate=%d"

l_.str.1:                               ; @.str.1
	.asciz	"video: power_on=%d, pixclock=%lu"

l_.str.2:                               ; @.str.2
	.asciz	"disabling audio: no video"

l_.str.3:                               ; @.str.3
	.asciz	"disabling audio: unsupported pixclock: %lu"

	.comm	_REG_HDMI_ACR_PKT_CTRL,4,2      ; @REG_HDMI_ACR_PKT_CTRL
	.comm	_REG_HDMI_VBI_PKT_CTRL,4,2      ; @REG_HDMI_VBI_PKT_CTRL
	.comm	_REG_HDMI_AUDIO_PKT_CTRL1,4,2   ; @REG_HDMI_AUDIO_PKT_CTRL1
	.comm	_REG_HDMI_INFOFRAME_CTRL0,4,2   ; @REG_HDMI_INFOFRAME_CTRL0
	.comm	_REG_HDMI_AUDIO_CFG,4,2         ; @REG_HDMI_AUDIO_CFG
	.comm	_HDMI_ACR_PKT_CTRL_SELECT__MASK,4,2 ; @HDMI_ACR_PKT_CTRL_SELECT__MASK
	.comm	_MSM_HDMI_SAMPLE_RATE_192KHZ,8,3 ; @MSM_HDMI_SAMPLE_RATE_192KHZ
	.comm	_MSM_HDMI_SAMPLE_RATE_176_4KHZ,8,3 ; @MSM_HDMI_SAMPLE_RATE_176_4KHZ
	.comm	_MSM_HDMI_SAMPLE_RATE_96KHZ,8,3 ; @MSM_HDMI_SAMPLE_RATE_96KHZ
	.comm	_MSM_HDMI_SAMPLE_RATE_88_2KHZ,8,3 ; @MSM_HDMI_SAMPLE_RATE_88_2KHZ
l_.str.4:                               ; @.str.4
	.asciz	"n=%u, cts=%u, multiplier=%u"

	.comm	_HDMI_ACR_PKT_CTRL_SOURCE,4,2   ; @HDMI_ACR_PKT_CTRL_SOURCE
	.comm	_HDMI_ACR_PKT_CTRL_AUDIO_PRIORITY,4,2 ; @HDMI_ACR_PKT_CTRL_AUDIO_PRIORITY
	.comm	_MSM_HDMI_SAMPLE_RATE_48KHZ,8,3 ; @MSM_HDMI_SAMPLE_RATE_48KHZ
	.comm	_ACR_48,4,2                     ; @ACR_48
	.comm	_MSM_HDMI_SAMPLE_RATE_44_1KHZ,8,3 ; @MSM_HDMI_SAMPLE_RATE_44_1KHZ
	.comm	_ACR_44,4,2                     ; @ACR_44
	.comm	_ACR_32,4,2                     ; @ACR_32
	.comm	_REG_HDMI_AUDIO_PKT_CTRL2,4,2   ; @REG_HDMI_AUDIO_PKT_CTRL2
	.comm	_HDMI_AUDIO_PKT_CTRL2_LAYOUT,4,2 ; @HDMI_AUDIO_PKT_CTRL2_LAYOUT
	.comm	_HDMI_AUDIO_PKT_CTRL2_OVERRIDE,4,2 ; @HDMI_AUDIO_PKT_CTRL2_OVERRIDE
	.comm	_HDMI_ACR_PKT_CTRL_CONT,4,2     ; @HDMI_ACR_PKT_CTRL_CONT
	.comm	_HDMI_ACR_PKT_CTRL_SEND,4,2     ; @HDMI_ACR_PKT_CTRL_SEND
	.comm	_REG_HDMI_AUDIO_INFO0,4,2       ; @REG_HDMI_AUDIO_INFO0
	.comm	_REG_HDMI_AUDIO_INFO1,4,2       ; @REG_HDMI_AUDIO_INFO1
	.comm	_REG_HDMI_GC,4,2                ; @REG_HDMI_GC
	.comm	_HDMI_VBI_PKT_CTRL_GC_ENABLE,4,2 ; @HDMI_VBI_PKT_CTRL_GC_ENABLE
	.comm	_HDMI_VBI_PKT_CTRL_GC_EVERY_FRAME,4,2 ; @HDMI_VBI_PKT_CTRL_GC_EVERY_FRAME
	.comm	_HDMI_AUDIO_PKT_CTRL1_AUDIO_SAMPLE_SEND,4,2 ; @HDMI_AUDIO_PKT_CTRL1_AUDIO_SAMPLE_SEND
	.comm	_HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SEND,4,2 ; @HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SEND
	.comm	_HDMI_INFOFRAME_CTRL0_AUDIO_INFO_CONT,4,2 ; @HDMI_INFOFRAME_CTRL0_AUDIO_INFO_CONT
	.comm	_HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SOURCE,4,2 ; @HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SOURCE
	.comm	_HDMI_INFOFRAME_CTRL0_AUDIO_INFO_UPDATE,4,2 ; @HDMI_INFOFRAME_CTRL0_AUDIO_INFO_UPDATE
	.comm	_HDMI_AUDIO_CFG_FIFO_WATERMARK__MASK,4,2 ; @HDMI_AUDIO_CFG_FIFO_WATERMARK__MASK
	.comm	_HDMI_AUDIO_CFG_ENGINE_ENABLE,4,2 ; @HDMI_AUDIO_CFG_ENGINE_ENABLE
	.comm	_REG_HDMI_AUD_INT,4,2           ; @REG_HDMI_AUD_INT
	.comm	_HDMI_AUD_INT_AUD_FIFO_URUN_INT,4,2 ; @HDMI_AUD_INT_AUD_FIFO_URUN_INT
	.comm	_HDMI_AUD_INT_AUD_SAM_DROP_INT,4,2 ; @HDMI_AUD_INT_AUD_SAM_DROP_INT
l_.str.5:                               ; @.str.5
	.asciz	"audio %sabled"

l_.str.6:                               ; @.str.6
	.asciz	"en"

l_.str.7:                               ; @.str.7
	.asciz	"dis"

.subsections_via_symbols
