	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_tv_pre_enable
_intel_tv_pre_enable:                   ## @intel_tv_pre_enable
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r15
	movl	(%r14), %edi
	callq	_to_intel_crtc
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_enc_to_tv
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_to_intel_tv_connector_state
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_intel_tv_mode_find
	testq	%rax, %rax
	je	LBB0_39
## %bb.1:
	movq	%rax, %r13
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	_TV_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	_TV_CTL_SAVE@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	(%r14), %eax
	cmpl	$129, %eax
	je	LBB0_8
## %bb.2:
	cmpl	$131, %eax
	jne	LBB0_3
## %bb.4:
	cmpl	$0, (%r13)
	jne	LBB0_5
## %bb.6:
	movq	_hdtv_csc_yprpb@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_39:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	80(%r13), %r14
	movq	72(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_TV_ENC_OUTPUT_SVIDEO@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	96(%r13), %r14
	movq	88(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_TV_ENC_OUTPUT_COMPOSITE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movq	_sdtv_csc_yprpb@GOTPCREL(%rip), %rax
LBB0_7:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_TV_ENC_OUTPUT_COMPONENT@GOTPCREL(%rip), %rax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_component_levels@GOTPCREL(%rip), %r14
LBB0_9:
	orl	(%rax), %ebx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_TV_ENC_PIPE_SEL
	movl	4(%r13), %ecx
	addl	$-2, %ecx
	movq	%r15, %rsi
	cmpl	$6, %ecx
	ja	LBB0_10
## %bb.11:
	movslq	%ecx, %rcx
	leaq	l_switch.table.intel_tv_pre_enable(%rip), %rdx
	movq	(%rdx,%rcx,8), %r15
	jmp	LBB0_12
LBB0_10:
	movq	_TV_OVERSAMPLE_NONE@GOTPCREL(%rip), %r15
LBB0_12:
	movq	%r14, %r10
	xorl	%edx, %edx
	cmpq	$0, 64(%r13)
	movl	$0, %r11d
	je	LBB0_14
## %bb.13:
	movq	_TV_PROGRESSIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
LBB0_14:
	cmpq	$0, 56(%r13)
	movl	$0, %ecx
	je	LBB0_16
## %bb.15:
	movq	_TV_TRILEVEL_SYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_16:
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r9d
	cmpq	$0, 48(%r13)
	je	LBB0_18
## %bb.17:
	movq	_TV_PAL_BURST@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_18:
	movl	8(%r13), %edi
	movl	12(%r13), %esi
	movl	%edi, %ebx
	movl	%edi, %r8d
	testl	%edi, %edi
	je	LBB0_20
## %bb.19:
	movq	_TV_SC_DDA1_EN@GOTPCREL(%rip), %rdi
	movl	(%rdi), %ebx
LBB0_20:
	movl	%esi, %edi
	testl	%esi, %esi
	je	LBB0_22
## %bb.21:
	movq	_TV_SC_DDA2_EN@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
LBB0_22:
	orl	%ebx, %edi
	movl	16(%r13), %r14d
	movl	%r14d, %ebx
	testl	%r14d, %r14d
	je	LBB0_24
## %bb.23:
	movq	_TV_SC_DDA3_EN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
LBB0_24:
	orl	%ebx, %edi
	orl	%eax, %r9d
	orl	%ecx, %r11d
	orl	20(%r13), %edi
	testq	%r10, %r10
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movq	%r10, -104(%rbp)                ## 8-byte Spill
	je	LBB0_26
## %bb.25:
	movl	(%r10), %eax
	movq	_TV_BURST_LEVEL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, %edi
LBB0_26:
	orl	(%r15), %r9d
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movq	_TV_SCDDA1_INC_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r8d, %ebx
	shll	%cl, %ebx
	movq	_TV_SCDDA2_SIZE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	24(%r13), %eax
	shll	%cl, %eax
	movq	_TV_SCDDA2_INC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	orl	%edx, %r11d
	movl	%r11d, -68(%rbp)                ## 4-byte Spill
	movq	_TV_SCDDA3_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	28(%r13), %edx
	shll	%cl, %edx
	orl	%edi, %ebx
	orl	%eax, %esi
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	_TV_SCDDA3_INC_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	orl	%edx, %r14d
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_IS_I915GM
	movq	_TV_ENC_C0_FIX@GOTPCREL(%rip), %rcx
	movq	_TV_ENC_SDP_FIX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	xorl	%r12d, %r12d
	testq	%rax, %rax
	cmovel	%r12d, %edx
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_set_tv_mode_timings
	movq	_TV_SC_CTL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movq	_TV_SC_CTL_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_I915_WRITE
	movq	_TV_SC_CTL_3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_I915_WRITE
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_color_conversion
	movq	%r15, %rdi
	callq	_INTEL_GEN
	cmpl	$4, %eax
	movq	_TV_CLR_KNOBS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4210688, %eax                  ## imm = 0x404000
	movl	$6316032, %esi                  ## imm = 0x606000
	cmovgel	%eax, %esi
	callq	_I915_WRITE
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_28
## %bb.27:
	movq	_TV_CLR_LEVEL@GOTPCREL(%rip), %rax
	movq	_TV_BLACK_LEVEL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	4(%rsi), %edx
	shll	%cl, %edx
	movl	(%rax), %edi
	movl	8(%rsi), %esi
	movq	_TV_BLANK_LEVEL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	orl	%edx, %esi
	callq	_I915_WRITE
LBB0_28:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	orl	-68(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_assert_pipe_disabled
	movq	_TV_AUTO_SCALE@GOTPCREL(%rip), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 16(%rcx)
	movl	$0, %esi
	je	LBB0_30
## %bb.29:
	movq	_TV_V_FILTER_BYPASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_30:
	orl	-64(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	orl	(%rax), %esi
	movq	_TV_FILTER_CTL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_WRITE
	movl	32(%r13), %r14d
	movl	36(%r13), %ebx
	movq	%r13, %rdi
	callq	_intel_tv_mode_vdisplay
	movl	%eax, %r15d
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	(%rcx), %esi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	addl	%esi, %ebx
	addl	8(%rcx), %ebx
	subl	%ebx, %r14d
	movl	8(%rdx), %ecx
	addl	%eax, %ecx
	subl	%ecx, %r15d
	movq	_TV_WIN_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	shll	$16, %esi
	orl	%eax, %esi
	callq	_I915_WRITE
	movq	_TV_WIN_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$16, %r14d
	orl	%r15d, %r14d
	movl	%r14d, %esi
	callq	_I915_WRITE
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	callq	_TV_H_LUMA
	movq	40(%r13), %rcx
	movl	(%rcx,%r12,4), %esi
	incq	%r12
	movl	%eax, %edi
	callq	_I915_WRITE
	cmpq	$60, %r12
	jne	LBB0_31
## %bb.32:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_TV_H_CHROMA
	movq	40(%r13), %rcx
	movl	240(%rcx,%rbx,4), %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	incq	%rbx
	cmpl	$60, %ebx
	jne	LBB0_33
## %bb.34:
	xorl	%ebx, %ebx
	movq	_TV_CTL@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_TV_V_LUMA
	movq	40(%r13), %rcx
	movl	480(%rcx,%rbx,4), %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	incq	%rbx
	cmpl	$43, %ebx
	jne	LBB0_35
## %bb.36:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_TV_V_CHROMA
	movq	40(%r13), %rcx
	movl	652(%rcx,%rbx,4), %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	incq	%rbx
	cmpl	$43, %ebx
	jne	LBB0_37
## %bb.38:
	movq	_TV_DAC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_TV_DAC_SAVE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movl	(%r14), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TV_CTL,4,2                     ## @TV_CTL
	.comm	_TV_CTL_SAVE,4,2                ## @TV_CTL_SAVE
	.comm	_TV_ENC_OUTPUT_COMPOSITE,4,2    ## @TV_ENC_OUTPUT_COMPOSITE
	.comm	_TV_ENC_OUTPUT_COMPONENT,4,2    ## @TV_ENC_OUTPUT_COMPONENT
	.comm	_component_levels,12,2          ## @component_levels
	.comm	_sdtv_csc_yprpb,4,2             ## @sdtv_csc_yprpb
	.comm	_hdtv_csc_yprpb,4,2             ## @hdtv_csc_yprpb
	.comm	_TV_ENC_OUTPUT_SVIDEO,4,2       ## @TV_ENC_OUTPUT_SVIDEO
	.comm	_TV_OVERSAMPLE_8X,4,2           ## @TV_OVERSAMPLE_8X
	.comm	_TV_OVERSAMPLE_4X,4,2           ## @TV_OVERSAMPLE_4X
	.comm	_TV_OVERSAMPLE_2X,4,2           ## @TV_OVERSAMPLE_2X
	.comm	_TV_OVERSAMPLE_NONE,4,2         ## @TV_OVERSAMPLE_NONE
	.comm	_TV_PROGRESSIVE,4,2             ## @TV_PROGRESSIVE
	.comm	_TV_TRILEVEL_SYNC,4,2           ## @TV_TRILEVEL_SYNC
	.comm	_TV_PAL_BURST,4,2               ## @TV_PAL_BURST
	.comm	_TV_SC_DDA1_EN,4,2              ## @TV_SC_DDA1_EN
	.comm	_TV_SC_DDA2_EN,4,2              ## @TV_SC_DDA2_EN
	.comm	_TV_SC_DDA3_EN,4,2              ## @TV_SC_DDA3_EN
	.comm	_TV_BURST_LEVEL_SHIFT,4,2       ## @TV_BURST_LEVEL_SHIFT
	.comm	_TV_SCDDA1_INC_SHIFT,4,2        ## @TV_SCDDA1_INC_SHIFT
	.comm	_TV_SCDDA2_SIZE_SHIFT,4,2       ## @TV_SCDDA2_SIZE_SHIFT
	.comm	_TV_SCDDA2_INC_SHIFT,4,2        ## @TV_SCDDA2_INC_SHIFT
	.comm	_TV_SCDDA3_SIZE_SHIFT,4,2       ## @TV_SCDDA3_SIZE_SHIFT
	.comm	_TV_SCDDA3_INC_SHIFT,4,2        ## @TV_SCDDA3_INC_SHIFT
	.comm	_TV_ENC_C0_FIX,4,2              ## @TV_ENC_C0_FIX
	.comm	_TV_ENC_SDP_FIX,4,2             ## @TV_ENC_SDP_FIX
	.comm	_TV_SC_CTL_1,4,2                ## @TV_SC_CTL_1
	.comm	_TV_SC_CTL_2,4,2                ## @TV_SC_CTL_2
	.comm	_TV_SC_CTL_3,4,2                ## @TV_SC_CTL_3
	.comm	_TV_CLR_KNOBS,4,2               ## @TV_CLR_KNOBS
	.comm	_TV_CLR_LEVEL,4,2               ## @TV_CLR_LEVEL
	.comm	_TV_BLACK_LEVEL_SHIFT,4,2       ## @TV_BLACK_LEVEL_SHIFT
	.comm	_TV_BLANK_LEVEL_SHIFT,4,2       ## @TV_BLANK_LEVEL_SHIFT
	.comm	_TV_AUTO_SCALE,4,2              ## @TV_AUTO_SCALE
	.comm	_TV_V_FILTER_BYPASS,4,2         ## @TV_V_FILTER_BYPASS
	.comm	_TV_FILTER_CTL_1,4,2            ## @TV_FILTER_CTL_1
	.comm	_TV_WIN_POS,4,2                 ## @TV_WIN_POS
	.comm	_TV_WIN_SIZE,4,2                ## @TV_WIN_SIZE
	.comm	_TV_DAC,4,2                     ## @TV_DAC
	.comm	_TV_DAC_SAVE,4,2                ## @TV_DAC_SAVE
	.no_dead_strip	_intel_tv_pre_enable
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.intel_tv_pre_enable
l_switch.table.intel_tv_pre_enable:
	.quad	_TV_OVERSAMPLE_2X
	.quad	_TV_OVERSAMPLE_NONE
	.quad	_TV_OVERSAMPLE_4X
	.quad	_TV_OVERSAMPLE_NONE
	.quad	_TV_OVERSAMPLE_NONE
	.quad	_TV_OVERSAMPLE_NONE
	.quad	_TV_OVERSAMPLE_8X

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_tv_pre_enable
_intel_tv_pre_enable:                   ; @intel_tv_pre_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w0, [x0]
	bl	_to_i915
	mov	x22, x0
	ldr	w0, [x19]
	bl	_to_intel_crtc
	mov	x23, x0
	mov	x0, x21
	bl	_enc_to_tv
	mov	x24, x0
	mov	x0, x20
	bl	_to_intel_tv_connector_state
	mov	x21, x0
	mov	x0, x20
	bl	_intel_tv_mode_find
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _TV_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TV_CTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh3:
	adrp	x8, _TV_CTL_SAVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TV_CTL_SAVE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
	ldr	w9, [x24]
	cmp	w9, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w9, #131
	b.ne	LBB0_6
; %bb.3:
	str	wzr, [sp, #4]                   ; 4-byte Folded Spill
	ldr	w9, [x19]
Lloh6:
	adrp	x10, _sdtv_csc_yprpb@GOTPAGE
Lloh7:
	ldr	x10, [x10, _sdtv_csc_yprpb@GOTPAGEOFF]
Lloh8:
	adrp	x11, _hdtv_csc_yprpb@GOTPAGE
Lloh9:
	ldr	x11, [x11, _hdtv_csc_yprpb@GOTPAGEOFF]
	cmp	w9, #0
	csel	x9, x11, x10, eq
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
Lloh10:
	adrp	x9, _TV_ENC_OUTPUT_COMPONENT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TV_ENC_OUTPUT_COMPONENT@GOTPAGEOFF]
Lloh12:
	adrp	x25, _component_levels@GOTPAGE
Lloh13:
	ldr	x25, [x25, _component_levels@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
	ldp	x9, x25, [x19, #72]
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w9, [x19]
	str	w9, [sp, #4]                    ; 4-byte Folded Spill
Lloh14:
	adrp	x9, _TV_ENC_OUTPUT_SVIDEO@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TV_ENC_OUTPUT_SVIDEO@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	ldp	x9, x25, [x19, #88]
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w9, [x19]
	str	w9, [sp, #4]                    ; 4-byte Folded Spill
Lloh16:
	adrp	x9, _TV_ENC_OUTPUT_COMPOSITE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TV_ENC_OUTPUT_COMPOSITE@GOTPAGEOFF]
LBB0_7:
	ldr	w9, [x9]
	orr	w24, w9, w8
	ldr	w0, [x23]
	bl	_TV_ENC_PIPE_SEL
	orr	w8, w24, w0
	ldr	w9, [x19, #4]
	sub	w9, w9, #2
	cmp	w9, #6
	b.hi	LBB0_9
; %bb.8:
Lloh18:
	adrp	x10, l_switch.table.intel_tv_pre_enable@PAGE
Lloh19:
	add	x10, x10, l_switch.table.intel_tv_pre_enable@PAGEOFF
	ldr	x9, [x10, w9, sxtw #3]
	b	LBB0_10
LBB0_9:
Lloh20:
	adrp	x9, _TV_OVERSAMPLE_NONE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TV_OVERSAMPLE_NONE@GOTPAGEOFF]
LBB0_10:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	x9, [x19, #64]
Lloh22:
	adrp	x10, _TV_PROGRESSIVE@GOTPAGE
Lloh23:
	ldr	x10, [x10, _TV_PROGRESSIVE@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh25:
	adrp	x9, _TV_TRILEVEL_SYNC@GOTPAGE
Lloh26:
	ldr	x9, [x9, _TV_TRILEVEL_SYNC@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	ldp	x11, x10, [x19, #48]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh28:
	adrp	x9, _TV_PAL_BURST@GOTPAGE
Lloh29:
	ldr	x9, [x9, _TV_PAL_BURST@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	cmp	x11, #0
	csel	w9, wzr, w9, eq
	orr	w26, w8, w9
Lloh31:
	adrp	x8, _TV_SC_DDA1_EN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TV_SC_DDA1_EN@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x8]
	ldp	w10, w8, [x19, #8]
	cmp	w10, #0
	csel	w9, wzr, w9, eq
Lloh34:
	adrp	x11, _TV_SC_DDA2_EN@GOTPAGE
Lloh35:
	ldr	x11, [x11, _TV_SC_DDA2_EN@GOTPAGEOFF]
Lloh36:
	ldr	w11, [x11]
	cmp	w8, #0
	csel	w11, wzr, w11, eq
	orr	w11, w11, w9
Lloh37:
	adrp	x9, _TV_SC_DDA3_EN@GOTPAGE
Lloh38:
	ldr	x9, [x9, _TV_SC_DDA3_EN@GOTPAGEOFF]
Lloh39:
	ldr	w12, [x9]
	ldp	w9, w13, [x19, #16]
	cmp	w9, #0
	csel	w12, wzr, w12, eq
	orr	w11, w11, w12
	orr	w11, w11, w13
	cbz	x25, LBB0_12
; %bb.11:
	ldr	w12, [x25]
Lloh40:
	adrp	x13, _TV_BURST_LEVEL_SHIFT@GOTPAGE
Lloh41:
	ldr	x13, [x13, _TV_BURST_LEVEL_SHIFT@GOTPAGEOFF]
Lloh42:
	ldr	w13, [x13]
	lsl	w12, w12, w13
	orr	w11, w12, w11
LBB0_12:
Lloh43:
	adrp	x12, _TV_SCDDA1_INC_SHIFT@GOTPAGE
Lloh44:
	ldr	x12, [x12, _TV_SCDDA1_INC_SHIFT@GOTPAGEOFF]
Lloh45:
	ldr	w12, [x12]
	lsl	w10, w10, w12
	orr	w27, w10, w11
Lloh46:
	adrp	x10, _TV_SCDDA2_SIZE_SHIFT@GOTPAGE
Lloh47:
	ldr	x10, [x10, _TV_SCDDA2_SIZE_SHIFT@GOTPAGEOFF]
Lloh48:
	ldr	w10, [x10]
	ldp	w11, w12, [x19, #24]
	lsl	w10, w11, w10
Lloh49:
	adrp	x11, _TV_SCDDA2_INC_SHIFT@GOTPAGE
Lloh50:
	ldr	x11, [x11, _TV_SCDDA2_INC_SHIFT@GOTPAGEOFF]
Lloh51:
	ldr	w11, [x11]
	lsl	w8, w8, w11
	orr	w28, w8, w10
Lloh52:
	adrp	x8, _TV_SCDDA3_SIZE_SHIFT@GOTPAGE
Lloh53:
	ldr	x8, [x8, _TV_SCDDA3_SIZE_SHIFT@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	lsl	w8, w12, w8
Lloh55:
	adrp	x10, _TV_SCDDA3_INC_SHIFT@GOTPAGE
Lloh56:
	ldr	x10, [x10, _TV_SCDDA3_INC_SHIFT@GOTPAGEOFF]
Lloh57:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w24, w9, w8
	mov	x0, x22
	bl	_IS_I915GM
Lloh58:
	adrp	x8, _TV_ENC_C0_FIX@GOTPAGE
Lloh59:
	ldr	x8, [x8, _TV_ENC_C0_FIX@GOTPAGEOFF]
Lloh60:
	adrp	x9, _TV_ENC_SDP_FIX@GOTPAGE
Lloh61:
	ldr	x9, [x9, _TV_ENC_SDP_FIX@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
Lloh63:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w26, w26, w8
	mov	x0, x22
	mov	x1, x19
	ldr	w2, [sp, #4]                    ; 4-byte Folded Reload
	bl	_set_tv_mode_timings
Lloh64:
	adrp	x8, _TV_SC_CTL_1@GOTPAGE
Lloh65:
	ldr	x8, [x8, _TV_SC_CTL_1@GOTPAGEOFF]
Lloh66:
	ldr	w0, [x8]
	mov	x1, x27
	bl	_I915_WRITE
Lloh67:
	adrp	x8, _TV_SC_CTL_2@GOTPAGE
Lloh68:
	ldr	x8, [x8, _TV_SC_CTL_2@GOTPAGEOFF]
Lloh69:
	ldr	w0, [x8]
	mov	x1, x28
	bl	_I915_WRITE
Lloh70:
	adrp	x8, _TV_SC_CTL_3@GOTPAGE
Lloh71:
	ldr	x8, [x8, _TV_SC_CTL_3@GOTPAGEOFF]
Lloh72:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_I915_WRITE
	mov	x0, x22
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_set_color_conversion
	mov	x0, x22
	bl	_INTEL_GEN
Lloh73:
	adrp	x8, _TV_CLR_KNOBS@GOTPAGE
Lloh74:
	ldr	x8, [x8, _TV_CLR_KNOBS@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
	mov	w9, #8192
	movk	w9, #32, lsl #16
	mov	w10, #16384
	movk	w10, #64, lsl #16
	orr	w9, w10, w9
	cmp	w0, #3
	csel	w1, w10, w9, gt
	mov	x0, x8
	bl	_I915_WRITE
	cbz	x25, LBB0_14
; %bb.13:
Lloh76:
	adrp	x8, _TV_CLR_LEVEL@GOTPAGE
Lloh77:
	ldr	x8, [x8, _TV_CLR_LEVEL@GOTPAGEOFF]
Lloh78:
	ldr	w0, [x8]
Lloh79:
	adrp	x8, _TV_BLACK_LEVEL_SHIFT@GOTPAGE
Lloh80:
	ldr	x8, [x8, _TV_BLACK_LEVEL_SHIFT@GOTPAGEOFF]
Lloh81:
	ldr	w8, [x8]
	ldp	w9, w10, [x25, #4]
	lsl	w8, w9, w8
Lloh82:
	adrp	x9, _TV_BLANK_LEVEL_SHIFT@GOTPAGE
Lloh83:
	ldr	x9, [x9, _TV_BLANK_LEVEL_SHIFT@GOTPAGEOFF]
Lloh84:
	ldr	w9, [x9]
	lsl	w9, w10, w9
	orr	w1, w9, w8
	bl	_I915_WRITE
LBB0_14:
	ldr	w1, [x23]
	mov	x0, x22
	bl	_assert_pipe_disabled
Lloh85:
	adrp	x8, _TV_AUTO_SCALE@GOTPAGE
Lloh86:
	ldr	x8, [x8, _TV_AUTO_SCALE@GOTPAGEOFF]
Lloh87:
	ldr	w8, [x8]
	ldr	x9, [x21, #16]
Lloh88:
	adrp	x10, _TV_V_FILTER_BYPASS@GOTPAGE
Lloh89:
	ldr	x10, [x10, _TV_V_FILTER_BYPASS@GOTPAGEOFF]
Lloh90:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w1, w9, w8
Lloh91:
	adrp	x8, _TV_FILTER_CTL_1@GOTPAGE
Lloh92:
	ldr	x8, [x8, _TV_FILTER_CTL_1@GOTPAGEOFF]
Lloh93:
	ldr	w0, [x8]
	bl	_I915_WRITE
	ldp	w22, w23, [x19, #32]
	mov	x0, x19
	bl	_intel_tv_mode_vdisplay
	ldr	w8, [x20]
	ldr	w9, [x21]
	ldr	w10, [x20, #8]
	add	w11, w23, w8
	add	w10, w11, w10
	sub	w20, w22, w10
	ldr	w10, [x21, #8]
	add	w10, w9, w10
	sub	w21, w0, w10
Lloh94:
	adrp	x10, _TV_WIN_POS@GOTPAGE
Lloh95:
	ldr	x10, [x10, _TV_WIN_POS@GOTPAGEOFF]
Lloh96:
	ldr	w0, [x10]
	orr	w1, w9, w8, lsl #16
	bl	_I915_WRITE
Lloh97:
	adrp	x8, _TV_WIN_SIZE@GOTPAGE
Lloh98:
	ldr	x8, [x8, _TV_WIN_SIZE@GOTPAGEOFF]
Lloh99:
	ldr	w0, [x8]
	orr	w1, w21, w20, lsl #16
	bl	_I915_WRITE
	mov	x20, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_TV_H_LUMA
	ldr	x8, [x19, #40]
	add	x21, x20, #1
	ldr	w1, [x8, x20, lsl #2]
	bl	_I915_WRITE
	mov	x20, x21
	cmp	x21, #60
	b.ne	LBB0_15
; %bb.16:
	mov	x20, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_TV_H_CHROMA
	ldr	x8, [x19, #40]
	add	x8, x8, x20, lsl #2
	ldr	w1, [x8, #240]
	bl	_I915_WRITE
	add	x20, x20, #1
	cmp	w20, #60
	b.ne	LBB0_17
; %bb.18:
	mov	x20, #0
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_TV_V_LUMA
	ldr	x8, [x19, #40]
	add	x8, x8, x20, lsl #2
	ldr	w1, [x8, #480]
	bl	_I915_WRITE
	add	x20, x20, #1
	cmp	w20, #43
	b.ne	LBB0_19
; %bb.20:
	mov	x20, #0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_TV_V_CHROMA
	ldr	x8, [x19, #40]
	add	x8, x8, x20, lsl #2
	ldr	w1, [x8, #652]
	bl	_I915_WRITE
	add	x20, x20, #1
	cmp	w20, #43
	b.ne	LBB0_21
; %bb.22:
Lloh100:
	adrp	x8, _TV_DAC@GOTPAGE
Lloh101:
	ldr	x8, [x8, _TV_DAC@GOTPAGEOFF]
Lloh102:
	ldr	w19, [x8]
	mov	x0, x19
	bl	_I915_READ
Lloh103:
	adrp	x8, _TV_DAC_SAVE@GOTPAGE
Lloh104:
	ldr	x8, [x8, _TV_DAC_SAVE@GOTPAGEOFF]
Lloh105:
	ldr	w8, [x8]
	and	w1, w8, w0
	mov	x0, x19
	bl	_I915_WRITE
Lloh106:
	adrp	x8, _TV_CTL@GOTPAGE
Lloh107:
	ldr	x8, [x8, _TV_CTL@GOTPAGEOFF]
Lloh108:
	ldr	w0, [x8]
	mov	x1, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_I915_WRITE
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh62
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.cfi_endproc
                                        ; -- End function
	.comm	_TV_CTL,4,2                     ; @TV_CTL
	.comm	_TV_CTL_SAVE,4,2                ; @TV_CTL_SAVE
	.comm	_TV_ENC_OUTPUT_COMPOSITE,4,2    ; @TV_ENC_OUTPUT_COMPOSITE
	.comm	_TV_ENC_OUTPUT_COMPONENT,4,2    ; @TV_ENC_OUTPUT_COMPONENT
	.comm	_component_levels,12,2          ; @component_levels
	.comm	_sdtv_csc_yprpb,4,2             ; @sdtv_csc_yprpb
	.comm	_hdtv_csc_yprpb,4,2             ; @hdtv_csc_yprpb
	.comm	_TV_ENC_OUTPUT_SVIDEO,4,2       ; @TV_ENC_OUTPUT_SVIDEO
	.comm	_TV_OVERSAMPLE_8X,4,2           ; @TV_OVERSAMPLE_8X
	.comm	_TV_OVERSAMPLE_4X,4,2           ; @TV_OVERSAMPLE_4X
	.comm	_TV_OVERSAMPLE_2X,4,2           ; @TV_OVERSAMPLE_2X
	.comm	_TV_OVERSAMPLE_NONE,4,2         ; @TV_OVERSAMPLE_NONE
	.comm	_TV_PROGRESSIVE,4,2             ; @TV_PROGRESSIVE
	.comm	_TV_TRILEVEL_SYNC,4,2           ; @TV_TRILEVEL_SYNC
	.comm	_TV_PAL_BURST,4,2               ; @TV_PAL_BURST
	.comm	_TV_SC_DDA1_EN,4,2              ; @TV_SC_DDA1_EN
	.comm	_TV_SC_DDA2_EN,4,2              ; @TV_SC_DDA2_EN
	.comm	_TV_SC_DDA3_EN,4,2              ; @TV_SC_DDA3_EN
	.comm	_TV_BURST_LEVEL_SHIFT,4,2       ; @TV_BURST_LEVEL_SHIFT
	.comm	_TV_SCDDA1_INC_SHIFT,4,2        ; @TV_SCDDA1_INC_SHIFT
	.comm	_TV_SCDDA2_SIZE_SHIFT,4,2       ; @TV_SCDDA2_SIZE_SHIFT
	.comm	_TV_SCDDA2_INC_SHIFT,4,2        ; @TV_SCDDA2_INC_SHIFT
	.comm	_TV_SCDDA3_SIZE_SHIFT,4,2       ; @TV_SCDDA3_SIZE_SHIFT
	.comm	_TV_SCDDA3_INC_SHIFT,4,2        ; @TV_SCDDA3_INC_SHIFT
	.comm	_TV_ENC_C0_FIX,4,2              ; @TV_ENC_C0_FIX
	.comm	_TV_ENC_SDP_FIX,4,2             ; @TV_ENC_SDP_FIX
	.comm	_TV_SC_CTL_1,4,2                ; @TV_SC_CTL_1
	.comm	_TV_SC_CTL_2,4,2                ; @TV_SC_CTL_2
	.comm	_TV_SC_CTL_3,4,2                ; @TV_SC_CTL_3
	.comm	_TV_CLR_KNOBS,4,2               ; @TV_CLR_KNOBS
	.comm	_TV_CLR_LEVEL,4,2               ; @TV_CLR_LEVEL
	.comm	_TV_BLACK_LEVEL_SHIFT,4,2       ; @TV_BLACK_LEVEL_SHIFT
	.comm	_TV_BLANK_LEVEL_SHIFT,4,2       ; @TV_BLANK_LEVEL_SHIFT
	.comm	_TV_AUTO_SCALE,4,2              ; @TV_AUTO_SCALE
	.comm	_TV_V_FILTER_BYPASS,4,2         ; @TV_V_FILTER_BYPASS
	.comm	_TV_FILTER_CTL_1,4,2            ; @TV_FILTER_CTL_1
	.comm	_TV_WIN_POS,4,2                 ; @TV_WIN_POS
	.comm	_TV_WIN_SIZE,4,2                ; @TV_WIN_SIZE
	.comm	_TV_DAC,4,2                     ; @TV_DAC
	.comm	_TV_DAC_SAVE,4,2                ; @TV_DAC_SAVE
	.no_dead_strip	_intel_tv_pre_enable
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.intel_tv_pre_enable
l_switch.table.intel_tv_pre_enable:
	.quad	_TV_OVERSAMPLE_2X
	.quad	_TV_OVERSAMPLE_NONE
	.quad	_TV_OVERSAMPLE_4X
	.quad	_TV_OVERSAMPLE_NONE
	.quad	_TV_OVERSAMPLE_NONE
	.quad	_TV_OVERSAMPLE_NONE
	.quad	_TV_OVERSAMPLE_8X

.subsections_via_symbols
