	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_hdmi_hw_send_info_frame
_mtk_hdmi_hw_send_info_frame:           ## @mtk_hdmi_hw_send_info_frame
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	(%rsi), %r12d
	movl	4(%rsi), %ebx
	movl	8(%rsi), %r15d
	movl	12(%rsi), %r9d
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	callq	_dev_dbg
	leal	-128(%r12), %eax
	cmpl	$4, %eax
	jae	LBB0_5
## %bb.1:
	cltq
	leaq	l_switch.table.mtk_hdmi_hw_send_info_frame(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.mtk_hdmi_hw_send_info_frame.2(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	movl	(%rax), %edx
	movl	(%rcx), %esi
	movq	%r13, %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	callq	_mtk_hdmi_clear_bits
	movq	_GRL_INFOFRM_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_mtk_hdmi_write
	movq	_GRL_INFOFRM_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_mtk_hdmi_write
	movq	_GRL_INFOFRM_LNG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_mtk_hdmi_write
	movq	_GRL_IFM_PORT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r13, %rdi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_mtk_hdmi_write
	testl	%r15d, %r15d
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movl	16(%r14,%rbx,4), %edx
	movq	%r13, %rdi
	callq	_mtk_hdmi_write
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_3
LBB0_4:
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtk_hdmi_set_bits              ## TAILCALL
LBB0_5:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GRL_CTRL,4,2                   ## @GRL_CTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"frame_type:0x%x,frame_ver:0x%x,frame_len:0x%x,checksum:0x%x\n"

	.comm	_CTRL_AVI_EN,4,2                ## @CTRL_AVI_EN
	.comm	_CTRL_SPD_EN,4,2                ## @CTRL_SPD_EN
	.comm	_CTRL_AUDIO_EN,4,2              ## @CTRL_AUDIO_EN
	.comm	_VS_EN,4,2                      ## @VS_EN
	.comm	_GRL_ACP_ISRC_CTRL,4,2          ## @GRL_ACP_ISRC_CTRL
L_.str.1:                               ## @.str.1
	.asciz	"Unknown infoframe type %d\n"

	.comm	_GRL_INFOFRM_TYPE,4,2           ## @GRL_INFOFRM_TYPE
	.comm	_GRL_INFOFRM_VER,4,2            ## @GRL_INFOFRM_VER
	.comm	_GRL_INFOFRM_LNG,4,2            ## @GRL_INFOFRM_LNG
	.comm	_GRL_IFM_PORT,4,2               ## @GRL_IFM_PORT
	.no_dead_strip	_mtk_hdmi_hw_send_info_frame
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.mtk_hdmi_hw_send_info_frame
l_switch.table.mtk_hdmi_hw_send_info_frame:
	.quad	_GRL_ACP_ISRC_CTRL
	.quad	_GRL_CTRL
	.quad	_GRL_CTRL
	.quad	_GRL_CTRL

	.p2align	3                               ## @switch.table.mtk_hdmi_hw_send_info_frame.2
l_switch.table.mtk_hdmi_hw_send_info_frame.2:
	.quad	_VS_EN
	.quad	_CTRL_SPD_EN
	.quad	_CTRL_AVI_EN
	.quad	_CTRL_AUDIO_EN

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_hdmi_hw_send_info_frame
_mtk_hdmi_hw_send_info_frame:           ; @mtk_hdmi_hw_send_info_frame
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	ldp	w26, w25, [x1]
	ldp	w20, w24, [x1, #8]
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x26
	mov	x3, x25
	mov	x4, x20
	mov	x5, x24
	bl	_dev_dbg
	sub	w8, w26, #128
	cmp	w8, #4
	b.hs	LBB0_5
; %bb.1:
	sbfiz	x8, x8, #3, #32
Lloh2:
	adrp	x9, l_switch.table.mtk_hdmi_hw_send_info_frame@PAGE
Lloh3:
	add	x9, x9, l_switch.table.mtk_hdmi_hw_send_info_frame@PAGEOFF
	ldr	x9, [x9, x8]
Lloh4:
	adrp	x10, l_switch.table.mtk_hdmi_hw_send_info_frame.2@PAGE
Lloh5:
	add	x10, x10, l_switch.table.mtk_hdmi_hw_send_info_frame.2@PAGEOFF
	ldr	x8, [x10, x8]
	ldr	w22, [x8]
	ldr	w23, [x9]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_mtk_hdmi_clear_bits
Lloh6:
	adrp	x8, _GRL_INFOFRM_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GRL_INFOFRM_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x26
	bl	_mtk_hdmi_write
Lloh9:
	adrp	x8, _GRL_INFOFRM_VER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GRL_INFOFRM_VER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x25
	bl	_mtk_hdmi_write
Lloh12:
	adrp	x8, _GRL_INFOFRM_LNG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GRL_INFOFRM_LNG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_mtk_hdmi_write
Lloh15:
	adrp	x25, _GRL_IFM_PORT@GOTPAGE
Lloh16:
	ldr	x25, [x25, _GRL_IFM_PORT@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x24
	bl	_mtk_hdmi_write
	cmp	w20, #1
	b.lt	LBB0_4
; %bb.2:
	add	x21, x21, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	ldr	w2, [x21], #4
	mov	x0, x19
	bl	_mtk_hdmi_write
	subs	x20, x20, #1
	b.ne	LBB0_3
LBB0_4:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mtk_hdmi_set_bits
LBB0_5:
	ldr	w0, [x19]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x26
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GRL_CTRL,4,2                   ; @GRL_CTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"frame_type:0x%x,frame_ver:0x%x,frame_len:0x%x,checksum:0x%x\n"

	.comm	_CTRL_AVI_EN,4,2                ; @CTRL_AVI_EN
	.comm	_CTRL_SPD_EN,4,2                ; @CTRL_SPD_EN
	.comm	_CTRL_AUDIO_EN,4,2              ; @CTRL_AUDIO_EN
	.comm	_VS_EN,4,2                      ; @VS_EN
	.comm	_GRL_ACP_ISRC_CTRL,4,2          ; @GRL_ACP_ISRC_CTRL
l_.str.1:                               ; @.str.1
	.asciz	"Unknown infoframe type %d\n"

	.comm	_GRL_INFOFRM_TYPE,4,2           ; @GRL_INFOFRM_TYPE
	.comm	_GRL_INFOFRM_VER,4,2            ; @GRL_INFOFRM_VER
	.comm	_GRL_INFOFRM_LNG,4,2            ; @GRL_INFOFRM_LNG
	.comm	_GRL_IFM_PORT,4,2               ; @GRL_IFM_PORT
	.no_dead_strip	_mtk_hdmi_hw_send_info_frame
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.mtk_hdmi_hw_send_info_frame
l_switch.table.mtk_hdmi_hw_send_info_frame:
	.quad	_GRL_ACP_ISRC_CTRL
	.quad	_GRL_CTRL
	.quad	_GRL_CTRL
	.quad	_GRL_CTRL

	.p2align	3                               ; @switch.table.mtk_hdmi_hw_send_info_frame.2
l_switch.table.mtk_hdmi_hw_send_info_frame.2:
	.quad	_VS_EN
	.quad	_CTRL_SPD_EN
	.quad	_CTRL_AVI_EN
	.quad	_CTRL_AUDIO_EN

.subsections_via_symbols
