	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sii8620_set_infoframes
_sii8620_set_infoframes:                ## @sii8620_set_infoframes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$160, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	-168(%rbp), %rdi
	xorl	%esi, %esi
	callq	_drm_hdmi_avi_infoframe_from_display_mode
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_HDMI_COLORSPACE_YUV422@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -168(%rbp)
LBB0_2:
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	-160(%rbp), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	leaq	-168(%rbp), %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_hdmi_avi_infoframe_pack
LBB0_4:
	testl	%eax, %eax
	jle	LBB0_6
## %bb.5:
	movq	_REG_TPI_AVI_CHSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-148(%rbp), %rdx
	addl	$-3, %eax
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_sii8620_write_buf
LBB0_6:
	movq	%rbx, %rdi
	callq	_sii8620_is_mhl3
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	cmpq	$0, (%rbx)
	je	LBB0_8
## %bb.9:
	movq	_BIT_PKT_FILTER_0_DROP_CEA_GAMUT_PKT@GOTPCREL(%rip), %rax
	movq	_BIT_PKT_FILTER_0_DROP_MPEG_PKT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_REG_PKT_FILTER_0@GOTPCREL(%rip), %rax
	movq	_BIT_PKT_FILTER_0_DROP_AVI_PKT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_BIT_PKT_FILTER_0_DROP_GCP_PKT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_BIT_PKT_FILTER_1_VSI_OVERRIDE_DIS@GOTPCREL(%rip), %rsi
	movq	_BIT_PKT_FILTER_1_DROP_GEN_PKT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	movl	(%rax), %esi
	movq	_BIT_PKT_FILTER_1_DROP_VSIF_PKT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sii8620_write
	movq	_REG_TPI_INFO_FSEL@GOTPCREL(%rip), %rax
	movq	_BIT_TPI_INFO_FSEL_EN@GOTPCREL(%rip), %rcx
	movq	_BIT_TPI_INFO_FSEL_RPT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_VAL_TPI_INFO_FSEL_VSI@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sii8620_write
	leaq	-176(%rbp), %rdi
	callq	_mhl3_infoframe_init
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	leaq	-160(%rbp), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	leaq	-176(%rbp), %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_mhl3_infoframe_pack
LBB0_11:
	movq	_REG_TPI_INFO_B0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-160(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_sii8620_write_buf
	jmp	LBB0_12
LBB0_8:
	movq	_REG_TPI_SC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BIT_TPI_SC_TPI_OUTPUT_MODE_0_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sii8620_write
	movq	_REG_PKT_FILTER_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BIT_PKT_FILTER_0_DROP_CEA_GAMUT_PKT@GOTPCREL(%rip), %rax
	movq	_BIT_PKT_FILTER_0_DROP_MPEG_PKT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_BIT_PKT_FILTER_0_DROP_GCP_PKT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_BIT_PKT_FILTER_1_DROP_GEN_PKT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sii8620_write
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$160, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_COLORSPACE_YUV422,4,2     ## @HDMI_COLORSPACE_YUV422
	.comm	_REG_TPI_AVI_CHSUM,4,2          ## @REG_TPI_AVI_CHSUM
	.comm	_REG_TPI_SC,4,2                 ## @REG_TPI_SC
	.comm	_BIT_TPI_SC_TPI_OUTPUT_MODE_0_HDMI,4,2 ## @BIT_TPI_SC_TPI_OUTPUT_MODE_0_HDMI
	.comm	_REG_PKT_FILTER_0,4,2           ## @REG_PKT_FILTER_0
	.comm	_BIT_PKT_FILTER_0_DROP_CEA_GAMUT_PKT,4,2 ## @BIT_PKT_FILTER_0_DROP_CEA_GAMUT_PKT
	.comm	_BIT_PKT_FILTER_0_DROP_MPEG_PKT,4,2 ## @BIT_PKT_FILTER_0_DROP_MPEG_PKT
	.comm	_BIT_PKT_FILTER_0_DROP_GCP_PKT,4,2 ## @BIT_PKT_FILTER_0_DROP_GCP_PKT
	.comm	_BIT_PKT_FILTER_1_DROP_GEN_PKT,4,2 ## @BIT_PKT_FILTER_1_DROP_GEN_PKT
	.comm	_BIT_PKT_FILTER_0_DROP_AVI_PKT,4,2 ## @BIT_PKT_FILTER_0_DROP_AVI_PKT
	.comm	_BIT_PKT_FILTER_1_VSI_OVERRIDE_DIS,4,2 ## @BIT_PKT_FILTER_1_VSI_OVERRIDE_DIS
	.comm	_BIT_PKT_FILTER_1_DROP_VSIF_PKT,4,2 ## @BIT_PKT_FILTER_1_DROP_VSIF_PKT
	.comm	_REG_TPI_INFO_FSEL,4,2          ## @REG_TPI_INFO_FSEL
	.comm	_BIT_TPI_INFO_FSEL_EN,4,2       ## @BIT_TPI_INFO_FSEL_EN
	.comm	_BIT_TPI_INFO_FSEL_RPT,4,2      ## @BIT_TPI_INFO_FSEL_RPT
	.comm	_VAL_TPI_INFO_FSEL_VSI,4,2      ## @VAL_TPI_INFO_FSEL_VSI
	.comm	_REG_TPI_INFO_B0,4,2            ## @REG_TPI_INFO_B0
	.no_dead_strip	_sii8620_set_infoframes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sii8620_set_infoframes
_sii8620_set_infoframes:                ; @sii8620_set_infoframes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x2, x1
	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, #-24]
	add	x0, sp, #16
	mov	x1, #0
	bl	_drm_hdmi_avi_infoframe_from_display_mode
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _HDMI_COLORSPACE_YUV422@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDMI_COLORSPACE_YUV422@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #16]
LBB0_2:
	cbnz	w0, LBB0_4
; %bb.3:
	add	x0, sp, #28
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x0, sp, #16
	add	x1, sp, #28
	bl	_hdmi_avi_infoframe_pack
LBB0_4:
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _REG_TPI_AVI_CHSUM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_TPI_AVI_CHSUM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x8, sp, #28
	add	x2, x8, #12
	sub	w3, w0, #3
	mov	x0, x19
	bl	_sii8620_write_buf
LBB0_6:
	mov	x0, x19
	bl	_sii8620_is_mhl3
	cbz	w0, LBB0_11
; %bb.7:
	ldr	x8, [x19]
	cbz	x8, LBB0_11
; %bb.8:
Lloh9:
	adrp	x8, _REG_PKT_FILTER_0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_PKT_FILTER_0@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _BIT_PKT_FILTER_0_DROP_CEA_GAMUT_PKT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BIT_PKT_FILTER_0_DROP_CEA_GAMUT_PKT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _BIT_PKT_FILTER_0_DROP_MPEG_PKT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BIT_PKT_FILTER_0_DROP_MPEG_PKT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _BIT_PKT_FILTER_0_DROP_AVI_PKT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _BIT_PKT_FILTER_0_DROP_AVI_PKT@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh20:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _BIT_PKT_FILTER_0_DROP_GCP_PKT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BIT_PKT_FILTER_0_DROP_GCP_PKT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh24:
	adrp	x8, _BIT_PKT_FILTER_1_VSI_OVERRIDE_DIS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BIT_PKT_FILTER_1_VSI_OVERRIDE_DIS@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _BIT_PKT_FILTER_1_DROP_GEN_PKT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _BIT_PKT_FILTER_1_DROP_GEN_PKT@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh30:
	adrp	x9, _BIT_PKT_FILTER_1_DROP_VSIF_PKT@GOTPAGE
Lloh31:
	ldr	x9, [x9, _BIT_PKT_FILTER_1_DROP_VSIF_PKT@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	x8, [sp]
	mov	x0, x19
	bl	_sii8620_write
Lloh33:
	adrp	x8, _REG_TPI_INFO_FSEL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _REG_TPI_INFO_FSEL@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _BIT_TPI_INFO_FSEL_EN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BIT_TPI_INFO_FSEL_EN@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _BIT_TPI_INFO_FSEL_RPT@GOTPAGE
Lloh40:
	ldr	x9, [x9, _BIT_TPI_INFO_FSEL_RPT@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh42:
	adrp	x9, _VAL_TPI_INFO_FSEL_VSI@GOTPAGE
Lloh43:
	ldr	x9, [x9, _VAL_TPI_INFO_FSEL_VSI@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_sii8620_write
	add	x0, sp, #24
	bl	_mhl3_infoframe_init
	mov	x3, x0
	cbnz	w0, LBB0_10
; %bb.9:
	add	x0, sp, #28
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x0, sp, #24
	add	x1, sp, #28
	bl	_mhl3_infoframe_pack
	mov	x3, x0
LBB0_10:
Lloh45:
	adrp	x8, _REG_TPI_INFO_B0@GOTPAGE
Lloh46:
	ldr	x8, [x8, _REG_TPI_INFO_B0@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	add	x2, sp, #28
	mov	x0, x19
	bl	_sii8620_write_buf
	b	LBB0_12
LBB0_11:
Lloh48:
	adrp	x8, _REG_TPI_SC@GOTPAGE
Lloh49:
	ldr	x8, [x8, _REG_TPI_SC@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
Lloh51:
	adrp	x8, _BIT_TPI_SC_TPI_OUTPUT_MODE_0_HDMI@GOTPAGE
Lloh52:
	ldr	x8, [x8, _BIT_TPI_SC_TPI_OUTPUT_MODE_0_HDMI@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sii8620_write
Lloh54:
	adrp	x8, _REG_PKT_FILTER_0@GOTPAGE
Lloh55:
	ldr	x8, [x8, _REG_PKT_FILTER_0@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
Lloh57:
	adrp	x8, _BIT_PKT_FILTER_0_DROP_CEA_GAMUT_PKT@GOTPAGE
Lloh58:
	ldr	x8, [x8, _BIT_PKT_FILTER_0_DROP_CEA_GAMUT_PKT@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
Lloh60:
	adrp	x9, _BIT_PKT_FILTER_0_DROP_MPEG_PKT@GOTPAGE
Lloh61:
	ldr	x9, [x9, _BIT_PKT_FILTER_0_DROP_MPEG_PKT@GOTPAGEOFF]
Lloh62:
	ldr	w9, [x9]
Lloh63:
	adrp	x10, _BIT_PKT_FILTER_0_DROP_GCP_PKT@GOTPAGE
Lloh64:
	ldr	x10, [x10, _BIT_PKT_FILTER_0_DROP_GCP_PKT@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh65:
	ldr	w9, [x10]
	orr	w2, w8, w9
Lloh66:
	adrp	x8, _BIT_PKT_FILTER_1_DROP_GEN_PKT@GOTPAGE
Lloh67:
	ldr	x8, [x8, _BIT_PKT_FILTER_1_DROP_GEN_PKT@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
	str	x8, [sp]
	mov	x0, x19
	bl	_sii8620_write
LBB0_12:
	ldur	x8, [x29, #-24]
Lloh69:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh70:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh71:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_COLORSPACE_YUV422,4,2     ; @HDMI_COLORSPACE_YUV422
	.comm	_REG_TPI_AVI_CHSUM,4,2          ; @REG_TPI_AVI_CHSUM
	.comm	_REG_TPI_SC,4,2                 ; @REG_TPI_SC
	.comm	_BIT_TPI_SC_TPI_OUTPUT_MODE_0_HDMI,4,2 ; @BIT_TPI_SC_TPI_OUTPUT_MODE_0_HDMI
	.comm	_REG_PKT_FILTER_0,4,2           ; @REG_PKT_FILTER_0
	.comm	_BIT_PKT_FILTER_0_DROP_CEA_GAMUT_PKT,4,2 ; @BIT_PKT_FILTER_0_DROP_CEA_GAMUT_PKT
	.comm	_BIT_PKT_FILTER_0_DROP_MPEG_PKT,4,2 ; @BIT_PKT_FILTER_0_DROP_MPEG_PKT
	.comm	_BIT_PKT_FILTER_0_DROP_GCP_PKT,4,2 ; @BIT_PKT_FILTER_0_DROP_GCP_PKT
	.comm	_BIT_PKT_FILTER_1_DROP_GEN_PKT,4,2 ; @BIT_PKT_FILTER_1_DROP_GEN_PKT
	.comm	_BIT_PKT_FILTER_0_DROP_AVI_PKT,4,2 ; @BIT_PKT_FILTER_0_DROP_AVI_PKT
	.comm	_BIT_PKT_FILTER_1_VSI_OVERRIDE_DIS,4,2 ; @BIT_PKT_FILTER_1_VSI_OVERRIDE_DIS
	.comm	_BIT_PKT_FILTER_1_DROP_VSIF_PKT,4,2 ; @BIT_PKT_FILTER_1_DROP_VSIF_PKT
	.comm	_REG_TPI_INFO_FSEL,4,2          ; @REG_TPI_INFO_FSEL
	.comm	_BIT_TPI_INFO_FSEL_EN,4,2       ; @BIT_TPI_INFO_FSEL_EN
	.comm	_BIT_TPI_INFO_FSEL_RPT,4,2      ; @BIT_TPI_INFO_FSEL_RPT
	.comm	_VAL_TPI_INFO_FSEL_VSI,4,2      ; @VAL_TPI_INFO_FSEL_VSI
	.comm	_REG_TPI_INFO_B0,4,2            ; @REG_TPI_INFO_B0
	.no_dead_strip	_sii8620_set_infoframes
.subsections_via_symbols
