	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_tv_mode_set
_intel_tv_mode_set:                     ## @intel_tv_mode_set
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	movq	8(%rbx), %r14
	movq	8(%r14), %rax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	callq	_to_intel_crtc
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_enc_to_intel_tv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_intel_tv_mode_find
	testq	%rax, %rax
	je	LBB0_45
## %bb.1:
	movq	%rax, %r15
	movl	(%r12), %eax
	movl	%eax, -172(%rbp)                ## 4-byte Spill
	movq	_TV_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %ecx
	movl	(%rbx), %eax
	cmpl	$129, %eax
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_8
## %bb.2:
	cmpl	$131, %eax
	jne	LBB0_3
## %bb.4:
	cmpl	$0, (%r15)
	jne	LBB0_5
## %bb.6:
	movq	_hdtv_csc_yprpb@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_45:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	176(%r15), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	168(%r15), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	(%r15), %esi
	movq	_TV_ENC_OUTPUT_SVIDEO@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	192(%r15), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	184(%r15), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	(%r15), %esi
	movq	_TV_ENC_OUTPUT_COMPOSITE@GOTPCREL(%rip), %rax
LBB0_9:
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_10
LBB0_5:
	movq	_sdtv_csc_yprpb@GOTPCREL(%rip), %rax
LBB0_7:
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	_TV_ENC_OUTPUT_COMPONENT@GOTPCREL(%rip), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%esi, %esi
	movq	_component_levels@GOTPCREL(%rip), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
LBB0_10:
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	movq	_TV_HSYNC_END_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	4(%r15), %eax
	movl	8(%r15), %r13d
	shll	%cl, %eax
	movl	%eax, -164(%rbp)                ## 4-byte Spill
	movq	_TV_HTOTAL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r13d
	movl	16(%r15), %edx
	movq	_TV_HBURST_LEN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	je	LBB0_12
## %bb.11:
	movq	_TV_BURST_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_12:
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	movl	20(%r15), %edx
	movq	_TV_HBLANK_START_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movl	%edx, -160(%rbp)                ## 4-byte Spill
	movl	24(%r15), %edx
	movq	_TV_HBLANK_END_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	28(%r15), %edx
	movq	_TV_NBR_END_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movl	%edx, -144(%rbp)                ## 4-byte Spill
	movl	32(%r15), %edx
	movq	_TV_VI_END_F1_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	36(%r15), %edx
	movq	_TV_VI_END_F2_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movl	%edx, -148(%rbp)                ## 4-byte Spill
	movl	40(%r15), %eax
	movq	_TV_VSYNC_LEN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	%eax, -136(%rbp)                ## 4-byte Spill
	movl	44(%r15), %eax
	movq	_TV_VSYNC_START_F1_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	48(%r15), %edx
	movq	_TV_VSYNC_START_F2_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movl	%edx, -140(%rbp)                ## 4-byte Spill
	movl	52(%r15), %edi
	movq	_TV_VEQ_LEN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	movl	56(%r15), %edx
	movq	_TV_VEQ_START_F1_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movl	60(%r15), %r14d
	movq	_TV_VEQ_START_F2_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r14d
	xorl	%r8d, %r8d
	cmpq	$0, 160(%r15)
	movl	$0, %ecx
	je	LBB0_14
## %bb.13:
	movq	_TV_EQUAL_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_14:
	movl	%ecx, -132(%rbp)                ## 4-byte Spill
	movq	%rbx, -192(%rbp)                ## 8-byte Spill
	movl	64(%r15), %esi
	movq	_TV_VBURST_START_F1_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movl	%esi, -128(%rbp)                ## 4-byte Spill
	movl	68(%r15), %esi
	movq	_TV_VBURST_END_F1_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movl	%esi, -88(%rbp)                 ## 4-byte Spill
	movl	72(%r15), %r10d
	movq	_TV_VBURST_START_F2_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r10d
	movl	76(%r15), %esi
	movq	_TV_VBURST_END_F2_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	80(%r15), %r11d
	movq	_TV_VBURST_START_F3_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r11d
	movl	84(%r15), %esi
	movq	_TV_VBURST_END_F3_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movl	%esi, -72(%rbp)                 ## 4-byte Spill
	movl	88(%r15), %r9d
	movq	_TV_VBURST_START_F4_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r9d
	movl	92(%r15), %esi
	movq	_TV_VBURST_END_F4_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movl	%esi, -84(%rbp)                 ## 4-byte Spill
	cmpl	$1, (%r12)
	movl	$0, %esi
	jne	LBB0_16
## %bb.15:
	movq	_TV_ENC_PIPEB_SELECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_16:
	cmpq	$0, 136(%r15)
	movl	$0, %ebx
	je	LBB0_18
## %bb.17:
	movq	_TV_PROGRESSIVE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
LBB0_18:
	movl	%ebx, -92(%rbp)                 ## 4-byte Spill
	cmpq	$0, 152(%r15)
	movl	$0, %ecx
	je	LBB0_20
## %bb.19:
	movq	_TV_TRILEVEL_SYNC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
LBB0_20:
	movl	%ecx, -124(%rbp)                ## 4-byte Spill
	movl	%edx, %ecx
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	movq	%r12, -200(%rbp)                ## 8-byte Spill
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	cmpq	$0, 144(%r15)
	je	LBB0_22
## %bb.21:
	movq	_TV_PAL_BURST@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
LBB0_22:
	movl	%r8d, -168(%rbp)                ## 4-byte Spill
	movq	_TV_CTL_SAVE@GOTPCREL(%rip), %rbx
	movl	12(%r15), %r8d
	movl	100(%r15), %edx
	movl	%edx, %r12d
	movl	%edx, -156(%rbp)                ## 4-byte Spill
	testl	%edx, %edx
	je	LBB0_24
## %bb.23:
	movq	_TV_SC_DDA1_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
LBB0_24:
	andl	(%rbx), %r13d
	shll	$16, %r8d
	orl	%edi, %ecx
	movl	104(%r15), %edx
	movl	%edx, %edi
	movl	%edx, -152(%rbp)                ## 4-byte Spill
	testl	%edx, %edx
	je	LBB0_26
## %bb.25:
	movq	_TV_SC_DDA2_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
LBB0_26:
	orl	%r12d, %edi
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	orl	(%rdx), %r13d
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	orl	%r8d, %r12d
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	orl	-144(%rbp), %edx                ## 4-byte Folded Reload
	movl	%eax, %ebx
	orl	-136(%rbp), %ebx                ## 4-byte Folded Reload
	orl	%r14d, %ecx
	movl	108(%r15), %r14d
	movl	%r14d, %eax
	testl	%r14d, %r14d
	movl	%ecx, %r8d
	je	LBB0_28
## %bb.27:
	movq	_TV_SC_DDA3_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_28:
	orl	%eax, %edi
	orl	%esi, %r13d
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	orl	-164(%rbp), %esi                ## 4-byte Folded Reload
	orl	-64(%rbp), %r12d                ## 4-byte Folded Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	orl	-160(%rbp), %ecx                ## 4-byte Folded Reload
	orl	-148(%rbp), %edx                ## 4-byte Folded Reload
	orl	-140(%rbp), %ebx                ## 4-byte Folded Reload
	orl	-132(%rbp), %r8d                ## 4-byte Folded Reload
	movl	-128(%rbp), %eax                ## 4-byte Reload
	orl	%eax, -88(%rbp)                 ## 4-byte Folded Spill
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	orl	%r10d, %eax
	movl	%eax, %r10d
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	orl	%r11d, %eax
	movl	%eax, %r11d
	orl	%r9d, -84(%rbp)                 ## 4-byte Folded Spill
	orl	112(%r15), %edi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, -68(%rbp)                 ## 4-byte Spill
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%r10d, -48(%rbp)                ## 4-byte Spill
	movl	%r11d, -72(%rbp)                ## 4-byte Spill
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	je	LBB0_30
## %bb.29:
	movl	(%rax), %eax
	movq	_TV_BURST_LEVEL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, %edi
LBB0_30:
	movq	_TV_SCDDA1_INC_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	-156(%rbp), %ebx                ## 4-byte Reload
	shll	%cl, %ebx
	movl	-124(%rbp), %eax                ## 4-byte Reload
	orl	%eax, -92(%rbp)                 ## 4-byte Folded Spill
	movq	_TV_SCDDA2_SIZE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	116(%r15), %eax
	shll	%cl, %eax
	movq	_TV_SCDDA2_INC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	-152(%rbp), %r12d               ## 4-byte Reload
	shll	%cl, %r12d
	orl	96(%r15), %r13d
	movq	_TV_SCDDA3_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	120(%r15), %edx
	shll	%cl, %edx
	orl	%edi, %ebx
	orl	%eax, %r12d
	movq	_TV_SCDDA3_INC_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	movq	_TV_ENC_C0_FIX@GOTPCREL(%rip), %rax
	movq	_TV_ENC_SDP_FIX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%edx, %r14d
	xorl	%edx, %edx
	movq	-120(%rbp), %rax                ## 8-byte Reload
	cmpl	$10098, (%rax)                  ## imm = 0x2772
	cmovll	%ecx, %edx
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movq	_TV_H_CTL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_WRITE
	movq	_TV_H_CTL_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_I915_WRITE
	movq	_TV_H_CTL_3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_I915_WRITE
	movq	_TV_V_CTL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_I915_WRITE
	movq	_TV_V_CTL_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_I915_WRITE
	movq	_TV_V_CTL_3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_I915_WRITE
	movq	_TV_V_CTL_4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	callq	_I915_WRITE
	movq	_TV_V_CTL_5@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_I915_WRITE
	movq	_TV_V_CTL_6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	callq	_I915_WRITE
	movq	_TV_V_CTL_7@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	callq	_I915_WRITE
	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	%r12d, %esi
	callq	_I915_WRITE
	movq	_TV_SC_CTL_3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_I915_WRITE
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_32
## %bb.31:
	movq	_TV_CSC_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	shll	$16, %esi
	orl	4(%rbx), %esi
	callq	_I915_WRITE
	movq	_TV_CSC_Y2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	shll	$16, %esi
	orl	12(%rbx), %esi
	callq	_I915_WRITE
	movq	_TV_CSC_U@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	shll	$16, %esi
	orl	20(%rbx), %esi
	callq	_I915_WRITE
	movq	_TV_CSC_U2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%rbx), %esi
	shll	$16, %esi
	orl	28(%rbx), %esi
	callq	_I915_WRITE
	movq	_TV_CSC_V@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%rbx), %esi
	shll	$16, %esi
	orl	36(%rbx), %esi
	callq	_I915_WRITE
	movq	_TV_CSC_V2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	40(%rbx), %esi
	shll	$16, %esi
	orl	44(%rbx), %esi
	callq	_I915_WRITE
LBB0_32:
	movl	-92(%rbp), %ebx                 ## 4-byte Reload
	orl	-168(%rbp), %ebx                ## 4-byte Folded Reload
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_INTEL_INFO
	cmpl	$4, (%rax)
	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	-80(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_34
## %bb.33:
	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_34:
	orl	%ebx, %r13d
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	-172(%rbp), %edi                ## 4-byte Reload
	callq	_PIPECONF
	movl	%eax, %r12d
	movq	-200(%rbp), %r14                ## 8-byte Reload
	movl	4(%r14), %edi
	callq	_DSPCNTR
	movl	%eax, %ebx
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	callq	_I915_READ
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_DISPLAY_PLANE_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	andl	%eax, %esi
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	4(%r14), %esi
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	callq	_intel_flush_display_plane
	movq	-120(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	callq	_IS_GEN2
	testq	%rax, %rax
	je	LBB0_36
## %bb.35:
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_intel_wait_for_vblank
LBB0_36:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	orl	-64(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_PIPECONF_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	andl	%eax, %r13d
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_I915_WRITE
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_intel_wait_for_pipe_off
	movq	_TV_FILTER_CTL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TV_AUTO_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_I915_WRITE
	cmpq	$0, 136(%r15)
	sete	%cl
	movl	20(%r15), %r12d
	movl	28(%r15), %r13d
	shll	%cl, %r13d
	movq	-192(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	movq	_TV_MARGIN_LEFT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,8), %esi
	movq	_TV_MARGIN_TOP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_TV_MARGIN_RIGHT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rax,%rdx,8), %edx
	addl	%esi, %edx
	addl	24(%r15), %edx
	movl	(%rax,%rcx,8), %ecx
	subl	%edx, %r12d
	movq	_TV_MARGIN_BOTTOM@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rax,%rdx,8), %eax
	addl	%ecx, %eax
	subl	%eax, %r13d
	incl	%r13d
	movq	_TV_WIN_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$16, %esi
	orl	%ecx, %esi
	callq	_I915_WRITE
	movq	_TV_WIN_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$16, %r12d
	orl	%r13d, %r12d
	movl	%r12d, %esi
	callq	_I915_WRITE
	movl	%ebx, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_I915_WRITE
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_I915_WRITE
	movl	4(%r14), %esi
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	callq	_intel_flush_display_plane
	xorl	%ebx, %ebx
	movq	_TV_H_LUMA_0@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	addl	%ebx, %edi
	movq	128(%r15), %rax
	movl	(%rax,%rbx), %esi
	callq	_I915_WRITE
	addq	$4, %rbx
	cmpq	$240, %rbx
	jne	LBB0_37
## %bb.38:
	xorl	%ebx, %ebx
	movq	_TV_H_CHROMA_0@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	addl	%ebx, %edi
	movq	128(%r15), %rax
	movl	240(%rax,%rbx), %esi
	callq	_I915_WRITE
	addq	$4, %rbx
	cmpl	$240, %ebx
	jne	LBB0_39
## %bb.40:
	xorl	%ebx, %ebx
	movq	_TV_V_LUMA_0@GOTPCREL(%rip), %r14
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	addl	%ebx, %edi
	movq	128(%r15), %rax
	movl	480(%rax,%rbx), %esi
	callq	_I915_WRITE
	addq	$4, %rbx
	cmpl	$172, %ebx
	jne	LBB0_41
## %bb.42:
	xorl	%ebx, %ebx
	movq	_TV_V_CHROMA_0@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	addl	%ebx, %edi
	movq	128(%r15), %rax
	movl	652(%rax,%rbx), %esi
	callq	_I915_WRITE
	addq	$4, %rbx
	cmpl	$172, %ebx
	jne	LBB0_43
## %bb.44:
	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
	movq	_TV_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	addq	$168, %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,48,2            ## @sdtv_csc_yprpb
	.comm	_hdtv_csc_yprpb,48,2            ## @hdtv_csc_yprpb
	.comm	_TV_ENC_OUTPUT_SVIDEO,4,2       ## @TV_ENC_OUTPUT_SVIDEO
	.comm	_TV_HSYNC_END_SHIFT,4,2         ## @TV_HSYNC_END_SHIFT
	.comm	_TV_HTOTAL_SHIFT,4,2            ## @TV_HTOTAL_SHIFT
	.comm	_TV_HBURST_LEN_SHIFT,4,2        ## @TV_HBURST_LEN_SHIFT
	.comm	_TV_BURST_ENA,4,2               ## @TV_BURST_ENA
	.comm	_TV_HBLANK_START_SHIFT,4,2      ## @TV_HBLANK_START_SHIFT
	.comm	_TV_HBLANK_END_SHIFT,4,2        ## @TV_HBLANK_END_SHIFT
	.comm	_TV_NBR_END_SHIFT,4,2           ## @TV_NBR_END_SHIFT
	.comm	_TV_VI_END_F1_SHIFT,4,2         ## @TV_VI_END_F1_SHIFT
	.comm	_TV_VI_END_F2_SHIFT,4,2         ## @TV_VI_END_F2_SHIFT
	.comm	_TV_VSYNC_LEN_SHIFT,4,2         ## @TV_VSYNC_LEN_SHIFT
	.comm	_TV_VSYNC_START_F1_SHIFT,4,2    ## @TV_VSYNC_START_F1_SHIFT
	.comm	_TV_VSYNC_START_F2_SHIFT,4,2    ## @TV_VSYNC_START_F2_SHIFT
	.comm	_TV_VEQ_LEN_SHIFT,4,2           ## @TV_VEQ_LEN_SHIFT
	.comm	_TV_VEQ_START_F1_SHIFT,4,2      ## @TV_VEQ_START_F1_SHIFT
	.comm	_TV_VEQ_START_F2_SHIFT,4,2      ## @TV_VEQ_START_F2_SHIFT
	.comm	_TV_EQUAL_ENA,4,2               ## @TV_EQUAL_ENA
	.comm	_TV_VBURST_START_F1_SHIFT,4,2   ## @TV_VBURST_START_F1_SHIFT
	.comm	_TV_VBURST_END_F1_SHIFT,4,2     ## @TV_VBURST_END_F1_SHIFT
	.comm	_TV_VBURST_START_F2_SHIFT,4,2   ## @TV_VBURST_START_F2_SHIFT
	.comm	_TV_VBURST_END_F2_SHIFT,4,2     ## @TV_VBURST_END_F2_SHIFT
	.comm	_TV_VBURST_START_F3_SHIFT,4,2   ## @TV_VBURST_START_F3_SHIFT
	.comm	_TV_VBURST_END_F3_SHIFT,4,2     ## @TV_VBURST_END_F3_SHIFT
	.comm	_TV_VBURST_START_F4_SHIFT,4,2   ## @TV_VBURST_START_F4_SHIFT
	.comm	_TV_VBURST_END_F4_SHIFT,4,2     ## @TV_VBURST_END_F4_SHIFT
	.comm	_TV_ENC_PIPEB_SELECT,4,2        ## @TV_ENC_PIPEB_SELECT
	.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_H_CTL_1,4,2                 ## @TV_H_CTL_1
	.comm	_TV_H_CTL_2,4,2                 ## @TV_H_CTL_2
	.comm	_TV_H_CTL_3,4,2                 ## @TV_H_CTL_3
	.comm	_TV_V_CTL_1,4,2                 ## @TV_V_CTL_1
	.comm	_TV_V_CTL_2,4,2                 ## @TV_V_CTL_2
	.comm	_TV_V_CTL_3,4,2                 ## @TV_V_CTL_3
	.comm	_TV_V_CTL_4,4,2                 ## @TV_V_CTL_4
	.comm	_TV_V_CTL_5,4,2                 ## @TV_V_CTL_5
	.comm	_TV_V_CTL_6,4,2                 ## @TV_V_CTL_6
	.comm	_TV_V_CTL_7,4,2                 ## @TV_V_CTL_7
	.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_CSC_Y,4,2                   ## @TV_CSC_Y
	.comm	_TV_CSC_Y2,4,2                  ## @TV_CSC_Y2
	.comm	_TV_CSC_U,4,2                   ## @TV_CSC_U
	.comm	_TV_CSC_U2,4,2                  ## @TV_CSC_U2
	.comm	_TV_CSC_V,4,2                   ## @TV_CSC_V
	.comm	_TV_CSC_V2,4,2                  ## @TV_CSC_V2
	.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	_DISPLAY_PLANE_ENABLE,4,2       ## @DISPLAY_PLANE_ENABLE
	.comm	_PIPECONF_ENABLE,4,2            ## @PIPECONF_ENABLE
	.comm	_TV_FILTER_CTL_1,4,2            ## @TV_FILTER_CTL_1
	.comm	_TV_AUTO_SCALE,4,2              ## @TV_AUTO_SCALE
	.comm	_TV_MARGIN_LEFT,8,3             ## @TV_MARGIN_LEFT
	.comm	_TV_MARGIN_TOP,8,3              ## @TV_MARGIN_TOP
	.comm	_TV_MARGIN_RIGHT,8,3            ## @TV_MARGIN_RIGHT
	.comm	_TV_MARGIN_BOTTOM,8,3           ## @TV_MARGIN_BOTTOM
	.comm	_TV_WIN_POS,4,2                 ## @TV_WIN_POS
	.comm	_TV_WIN_SIZE,4,2                ## @TV_WIN_SIZE
	.comm	_TV_H_LUMA_0,4,2                ## @TV_H_LUMA_0
	.comm	_TV_H_CHROMA_0,4,2              ## @TV_H_CHROMA_0
	.comm	_TV_V_LUMA_0,4,2                ## @TV_V_LUMA_0
	.comm	_TV_V_CHROMA_0,4,2              ## @TV_V_CHROMA_0
	.comm	_TV_DAC,4,2                     ## @TV_DAC
	.comm	_TV_DAC_SAVE,4,2                ## @TV_DAC_SAVE
	.no_dead_strip	_intel_tv_mode_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_tv_mode_set
_intel_tv_mode_set:                     ; @intel_tv_mode_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	ldp	x0, x22, [x0]
	ldr	x21, [x22, #8]
	bl	_to_intel_crtc
	mov	x27, x0
	mov	x0, x19
	bl	_enc_to_intel_tv
	mov	x20, x0
	bl	_intel_tv_mode_find
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w8, [x27]
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
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, [x20]
	cmp	w9, #129
	str	x20, [sp, #48]                  ; 8-byte Folded Spill
	str	x22, [sp, #72]                  ; 8-byte Folded Spill
	b.eq	LBB0_5
; %bb.2:
	cmp	w9, #131
	b.ne	LBB0_6
; %bb.3:
	mov	w9, #0
	ldr	w10, [x19]
Lloh6:
	adrp	x11, _sdtv_csc_yprpb@GOTPAGE
Lloh7:
	ldr	x11, [x11, _sdtv_csc_yprpb@GOTPAGEOFF]
Lloh8:
	adrp	x12, _hdtv_csc_yprpb@GOTPAGE
Lloh9:
	ldr	x12, [x12, _hdtv_csc_yprpb@GOTPAGEOFF]
	cmp	w10, #0
	csel	x23, x12, x11, eq
Lloh10:
	adrp	x10, _TV_ENC_OUTPUT_COMPONENT@GOTPAGE
Lloh11:
	ldr	x10, [x10, _TV_ENC_OUTPUT_COMPONENT@GOTPAGEOFF]
Lloh12:
	adrp	x16, _component_levels@GOTPAGE
Lloh13:
	ldr	x16, [x16, _component_levels@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_5:
	ldp	x23, x16, [x19, #168]
	ldr	w9, [x19]
Lloh14:
	adrp	x10, _TV_ENC_OUTPUT_SVIDEO@GOTPAGE
Lloh15:
	ldr	x10, [x10, _TV_ENC_OUTPUT_SVIDEO@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	ldp	x23, x16, [x19, #184]
	ldr	w9, [x19]
Lloh16:
	adrp	x10, _TV_ENC_OUTPUT_COMPOSITE@GOTPAGE
Lloh17:
	ldr	x10, [x10, _TV_ENC_OUTPUT_COMPOSITE@GOTPAGEOFF]
LBB0_7:
	ldr	w10, [x10]
Lloh18:
	adrp	x11, _TV_HSYNC_END_SHIFT@GOTPAGE
Lloh19:
	ldr	x11, [x11, _TV_HSYNC_END_SHIFT@GOTPAGEOFF]
	orr	w8, w10, w8
Lloh20:
	ldr	w10, [x11]
	ldp	w11, w12, [x19, #4]
Lloh21:
	adrp	x13, _TV_HTOTAL_SHIFT@GOTPAGE
Lloh22:
	ldr	x13, [x13, _TV_HTOTAL_SHIFT@GOTPAGEOFF]
	lsl	w10, w11, w10
Lloh23:
	ldr	w11, [x13]
	lsl	w11, w12, w11
	orr	w1, w11, w10
	ldp	w10, w11, [x19, #12]
Lloh24:
	adrp	x12, _TV_HBURST_LEN_SHIFT@GOTPAGE
Lloh25:
	ldr	x12, [x12, _TV_HBURST_LEN_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	w12, [x12]
	lsl	w11, w11, w12
Lloh27:
	adrp	x12, _TV_BURST_ENA@GOTPAGE
Lloh28:
	ldr	x12, [x12, _TV_BURST_ENA@GOTPAGEOFF]
	orr	w10, w11, w10, lsl #16
Lloh29:
	ldr	w11, [x12]
	cmp	w9, #0
	csel	w9, wzr, w11, eq
Lloh30:
	adrp	x11, _TV_HBLANK_START_SHIFT@GOTPAGE
Lloh31:
	ldr	x11, [x11, _TV_HBLANK_START_SHIFT@GOTPAGEOFF]
	orr	w9, w10, w9
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
Lloh32:
	ldr	w9, [x11]
	ldp	w10, w11, [x19, #20]
Lloh33:
	adrp	x12, _TV_HBLANK_END_SHIFT@GOTPAGE
Lloh34:
	ldr	x12, [x12, _TV_HBLANK_END_SHIFT@GOTPAGEOFF]
	lsl	w9, w10, w9
Lloh35:
	ldr	w10, [x12]
	lsl	w10, w11, w10
	orr	w9, w10, w9
	str	w9, [sp, #24]                   ; 4-byte Folded Spill
Lloh36:
	adrp	x9, _TV_NBR_END_SHIFT@GOTPAGE
Lloh37:
	ldr	x9, [x9, _TV_NBR_END_SHIFT@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	ldp	w10, w11, [x19, #28]
	lsl	w9, w10, w9
Lloh39:
	adrp	x10, _TV_VI_END_F1_SHIFT@GOTPAGE
Lloh40:
	ldr	x10, [x10, _TV_VI_END_F1_SHIFT@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	lsl	w10, w11, w10
	orr	w9, w10, w9
Lloh42:
	adrp	x10, _TV_VI_END_F2_SHIFT@GOTPAGE
Lloh43:
	ldr	x10, [x10, _TV_VI_END_F2_SHIFT@GOTPAGEOFF]
Lloh44:
	ldr	w10, [x10]
	ldp	w11, w12, [x19, #36]
	lsl	w10, w11, w10
	orr	w9, w9, w10
	str	w9, [sp, #20]                   ; 4-byte Folded Spill
Lloh45:
	adrp	x9, _TV_VSYNC_LEN_SHIFT@GOTPAGE
Lloh46:
	ldr	x9, [x9, _TV_VSYNC_LEN_SHIFT@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	lsl	w9, w12, w9
Lloh48:
	adrp	x10, _TV_VSYNC_START_F1_SHIFT@GOTPAGE
Lloh49:
	ldr	x10, [x10, _TV_VSYNC_START_F1_SHIFT@GOTPAGEOFF]
Lloh50:
	ldr	w10, [x10]
	ldp	w11, w12, [x19, #44]
	lsl	w10, w11, w10
	orr	w9, w10, w9
Lloh51:
	adrp	x10, _TV_VSYNC_START_F2_SHIFT@GOTPAGE
Lloh52:
	ldr	x10, [x10, _TV_VSYNC_START_F2_SHIFT@GOTPAGEOFF]
Lloh53:
	ldr	w10, [x10]
	lsl	w10, w12, w10
	orr	w9, w9, w10
	str	w9, [sp, #16]                   ; 4-byte Folded Spill
Lloh54:
	adrp	x9, _TV_VEQ_LEN_SHIFT@GOTPAGE
Lloh55:
	ldr	x9, [x9, _TV_VEQ_LEN_SHIFT@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	ldp	w10, w11, [x19, #52]
	lsl	w9, w10, w9
Lloh57:
	adrp	x10, _TV_VEQ_START_F1_SHIFT@GOTPAGE
Lloh58:
	ldr	x10, [x10, _TV_VEQ_START_F1_SHIFT@GOTPAGEOFF]
Lloh59:
	ldr	w10, [x10]
	lsl	w10, w11, w10
	orr	w10, w10, w9
Lloh60:
	adrp	x9, _TV_VEQ_START_F2_SHIFT@GOTPAGE
Lloh61:
	ldr	x9, [x9, _TV_VEQ_START_F2_SHIFT@GOTPAGEOFF]
Lloh62:
	ldr	w11, [x9]
	ldp	w12, w9, [x19, #60]
	lsl	w11, w12, w11
	orr	w10, w10, w11
Lloh63:
	adrp	x11, _TV_EQUAL_ENA@GOTPAGE
Lloh64:
	ldr	x11, [x11, _TV_EQUAL_ENA@GOTPAGEOFF]
Lloh65:
	ldr	w11, [x11]
	ldp	x13, x12, [x19, #152]
	cmp	x12, #0
	csel	w11, wzr, w11, eq
	orr	w22, w10, w11
Lloh66:
	adrp	x10, _TV_VBURST_START_F1_SHIFT@GOTPAGE
Lloh67:
	ldr	x10, [x10, _TV_VBURST_START_F1_SHIFT@GOTPAGEOFF]
Lloh68:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh69:
	adrp	x10, _TV_VBURST_END_F1_SHIFT@GOTPAGE
Lloh70:
	ldr	x10, [x10, _TV_VBURST_END_F1_SHIFT@GOTPAGEOFF]
Lloh71:
	ldr	w10, [x10]
	ldp	w11, w12, [x19, #68]
	lsl	w10, w11, w10
	orr	w26, w10, w9
Lloh72:
	adrp	x9, _TV_VBURST_START_F2_SHIFT@GOTPAGE
Lloh73:
	ldr	x9, [x9, _TV_VBURST_START_F2_SHIFT@GOTPAGEOFF]
Lloh74:
	ldr	w9, [x9]
	lsl	w9, w12, w9
Lloh75:
	adrp	x10, _TV_VBURST_END_F2_SHIFT@GOTPAGE
Lloh76:
	ldr	x10, [x10, _TV_VBURST_END_F2_SHIFT@GOTPAGEOFF]
Lloh77:
	ldr	w10, [x10]
	ldp	w11, w12, [x19, #76]
	lsl	w10, w11, w10
	orr	w25, w10, w9
Lloh78:
	adrp	x9, _TV_VBURST_START_F3_SHIFT@GOTPAGE
Lloh79:
	ldr	x9, [x9, _TV_VBURST_START_F3_SHIFT@GOTPAGEOFF]
Lloh80:
	ldr	w9, [x9]
	lsl	w9, w12, w9
Lloh81:
	adrp	x10, _TV_VBURST_END_F3_SHIFT@GOTPAGE
Lloh82:
	ldr	x10, [x10, _TV_VBURST_END_F3_SHIFT@GOTPAGEOFF]
Lloh83:
	ldr	w10, [x10]
	ldp	w11, w12, [x19, #84]
	lsl	w10, w11, w10
	orr	w20, w10, w9
Lloh84:
	adrp	x9, _TV_VBURST_START_F4_SHIFT@GOTPAGE
Lloh85:
	ldr	x9, [x9, _TV_VBURST_START_F4_SHIFT@GOTPAGEOFF]
Lloh86:
	ldr	w9, [x9]
Lloh87:
	adrp	x10, _TV_VBURST_END_F4_SHIFT@GOTPAGE
Lloh88:
	ldr	x10, [x10, _TV_VBURST_END_F4_SHIFT@GOTPAGEOFF]
	lsl	w9, w12, w9
Lloh89:
	ldr	w10, [x10]
	ldp	w11, w12, [x19, #92]
	lsl	w10, w11, w10
	orr	w24, w10, w9
	ldr	w9, [x27]
Lloh90:
	adrp	x10, _TV_ENC_PIPEB_SELECT@GOTPAGE
Lloh91:
	ldr	x10, [x10, _TV_ENC_PIPEB_SELECT@GOTPAGEOFF]
Lloh92:
	ldr	w10, [x10]
	cmp	w9, #1
	csel	w9, w10, wzr, eq
	orr	w8, w8, w9
	orr	w8, w8, w12
Lloh93:
	adrp	x9, _TV_PROGRESSIVE@GOTPAGE
Lloh94:
	ldr	x9, [x9, _TV_PROGRESSIVE@GOTPAGEOFF]
Lloh95:
	ldr	w9, [x9]
	ldp	x10, x12, [x19, #136]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w10, w8, w9
Lloh96:
	adrp	x8, _TV_TRILEVEL_SYNC@GOTPAGE
Lloh97:
	ldr	x8, [x8, _TV_TRILEVEL_SYNC@GOTPAGEOFF]
Lloh98:
	ldr	w8, [x8]
	cmp	x13, #0
	csel	w11, wzr, w8, eq
Lloh99:
	adrp	x8, _TV_PAL_BURST@GOTPAGE
Lloh100:
	ldr	x8, [x8, _TV_PAL_BURST@GOTPAGEOFF]
Lloh101:
	ldr	w8, [x8]
	cmp	x12, #0
	csel	w8, wzr, w8, eq
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh102:
	adrp	x8, _TV_SC_DDA1_EN@GOTPAGE
Lloh103:
	ldr	x8, [x8, _TV_SC_DDA1_EN@GOTPAGEOFF]
Lloh104:
	ldr	w8, [x8]
	ldp	w12, w9, [x19, #100]
	cmp	w12, #0
	csel	w8, wzr, w8, eq
Lloh105:
	adrp	x13, _TV_SC_DDA2_EN@GOTPAGE
Lloh106:
	ldr	x13, [x13, _TV_SC_DDA2_EN@GOTPAGEOFF]
Lloh107:
	ldr	w13, [x13]
	cmp	w9, #0
	csel	w13, wzr, w13, eq
	orr	w13, w13, w8
Lloh108:
	adrp	x8, _TV_SC_DDA3_EN@GOTPAGE
Lloh109:
	ldr	x8, [x8, _TV_SC_DDA3_EN@GOTPAGEOFF]
Lloh110:
	ldr	w14, [x8]
	ldp	w8, w15, [x19, #108]
	cmp	w8, #0
	csel	w14, wzr, w14, eq
	orr	w13, w13, w14
	orr	w13, w13, w15
	stp	x27, x21, [sp, #56]             ; 16-byte Folded Spill
	str	x16, [sp, #32]                  ; 8-byte Folded Spill
	cbz	x16, LBB0_9
; %bb.8:
	ldr	w14, [x16]
Lloh111:
	adrp	x15, _TV_BURST_LEVEL_SHIFT@GOTPAGE
Lloh112:
	ldr	x15, [x15, _TV_BURST_LEVEL_SHIFT@GOTPAGEOFF]
Lloh113:
	ldr	w15, [x15]
	lsl	w14, w14, w15
	orr	w13, w14, w13
LBB0_9:
	orr	w10, w10, w11
	str	w10, [sp, #4]                   ; 4-byte Folded Spill
Lloh114:
	adrp	x10, _TV_SCDDA1_INC_SHIFT@GOTPAGE
Lloh115:
	ldr	x10, [x10, _TV_SCDDA1_INC_SHIFT@GOTPAGEOFF]
Lloh116:
	ldr	w10, [x10]
	lsl	w10, w12, w10
	orr	w27, w10, w13
Lloh117:
	adrp	x10, _TV_SCDDA2_SIZE_SHIFT@GOTPAGE
Lloh118:
	ldr	x10, [x10, _TV_SCDDA2_SIZE_SHIFT@GOTPAGEOFF]
Lloh119:
	ldr	w10, [x10]
	ldp	w11, w12, [x19, #116]
	lsl	w10, w11, w10
Lloh120:
	adrp	x11, _TV_SCDDA2_INC_SHIFT@GOTPAGE
Lloh121:
	ldr	x11, [x11, _TV_SCDDA2_INC_SHIFT@GOTPAGEOFF]
Lloh122:
	ldr	w11, [x11]
	lsl	w9, w9, w11
	orr	w28, w9, w10
Lloh123:
	adrp	x9, _TV_SCDDA3_SIZE_SHIFT@GOTPAGE
Lloh124:
	ldr	x9, [x9, _TV_SCDDA3_SIZE_SHIFT@GOTPAGEOFF]
Lloh125:
	ldr	w9, [x9]
Lloh126:
	adrp	x10, _TV_SCDDA3_INC_SHIFT@GOTPAGE
Lloh127:
	ldr	x10, [x10, _TV_SCDDA3_INC_SHIFT@GOTPAGEOFF]
	lsl	w9, w12, w9
Lloh128:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w21, w8, w9
Lloh129:
	adrp	x8, _TV_ENC_C0_FIX@GOTPAGE
Lloh130:
	ldr	x8, [x8, _TV_ENC_C0_FIX@GOTPAGEOFF]
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	ldr	w9, [x9]
Lloh131:
	ldr	w8, [x8]
Lloh132:
	adrp	x10, _TV_ENC_SDP_FIX@GOTPAGE
Lloh133:
	ldr	x10, [x10, _TV_ENC_SDP_FIX@GOTPAGEOFF]
Lloh134:
	ldr	w10, [x10]
	orr	w8, w10, w8
	mov	w10, #10098
	cmp	w9, w10
	csel	w8, w8, wzr, lt
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
Lloh135:
	adrp	x8, _TV_H_CTL_1@GOTPAGE
Lloh136:
	ldr	x8, [x8, _TV_H_CTL_1@GOTPAGEOFF]
Lloh137:
	ldr	w0, [x8]
	bl	_I915_WRITE
Lloh138:
	adrp	x8, _TV_H_CTL_2@GOTPAGE
Lloh139:
	ldr	x8, [x8, _TV_H_CTL_2@GOTPAGEOFF]
Lloh140:
	ldr	w0, [x8]
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
	bl	_I915_WRITE
Lloh141:
	adrp	x8, _TV_H_CTL_3@GOTPAGE
Lloh142:
	ldr	x8, [x8, _TV_H_CTL_3@GOTPAGEOFF]
Lloh143:
	ldr	w0, [x8]
	ldr	w1, [sp, #24]                   ; 4-byte Folded Reload
	bl	_I915_WRITE
Lloh144:
	adrp	x8, _TV_V_CTL_1@GOTPAGE
Lloh145:
	ldr	x8, [x8, _TV_V_CTL_1@GOTPAGEOFF]
Lloh146:
	ldr	w0, [x8]
	ldr	w1, [sp, #20]                   ; 4-byte Folded Reload
	bl	_I915_WRITE
Lloh147:
	adrp	x8, _TV_V_CTL_2@GOTPAGE
Lloh148:
	ldr	x8, [x8, _TV_V_CTL_2@GOTPAGEOFF]
Lloh149:
	ldr	w0, [x8]
	ldr	w1, [sp, #16]                   ; 4-byte Folded Reload
	bl	_I915_WRITE
Lloh150:
	adrp	x8, _TV_V_CTL_3@GOTPAGE
Lloh151:
	ldr	x8, [x8, _TV_V_CTL_3@GOTPAGEOFF]
Lloh152:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_I915_WRITE
Lloh153:
	adrp	x8, _TV_V_CTL_4@GOTPAGE
Lloh154:
	ldr	x8, [x8, _TV_V_CTL_4@GOTPAGEOFF]
Lloh155:
	ldr	w0, [x8]
	mov	x1, x26
	bl	_I915_WRITE
Lloh156:
	adrp	x8, _TV_V_CTL_5@GOTPAGE
Lloh157:
	ldr	x8, [x8, _TV_V_CTL_5@GOTPAGEOFF]
Lloh158:
	ldr	w0, [x8]
	mov	x1, x25
	bl	_I915_WRITE
Lloh159:
	adrp	x8, _TV_V_CTL_6@GOTPAGE
Lloh160:
	ldr	x8, [x8, _TV_V_CTL_6@GOTPAGEOFF]
Lloh161:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_I915_WRITE
Lloh162:
	adrp	x8, _TV_V_CTL_7@GOTPAGE
Lloh163:
	ldr	x8, [x8, _TV_V_CTL_7@GOTPAGEOFF]
Lloh164:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_I915_WRITE
Lloh165:
	adrp	x8, _TV_SC_CTL_1@GOTPAGE
Lloh166:
	ldr	x8, [x8, _TV_SC_CTL_1@GOTPAGEOFF]
Lloh167:
	ldr	w0, [x8]
	mov	x1, x27
	bl	_I915_WRITE
Lloh168:
	adrp	x8, _TV_SC_CTL_2@GOTPAGE
Lloh169:
	ldr	x8, [x8, _TV_SC_CTL_2@GOTPAGEOFF]
Lloh170:
	ldr	w0, [x8]
	mov	x1, x28
	bl	_I915_WRITE
Lloh171:
	adrp	x8, _TV_SC_CTL_3@GOTPAGE
Lloh172:
	ldr	x8, [x8, _TV_SC_CTL_3@GOTPAGEOFF]
Lloh173:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_I915_WRITE
	cbz	x23, LBB0_11
; %bb.10:
Lloh174:
	adrp	x8, _TV_CSC_Y@GOTPAGE
Lloh175:
	ldr	x8, [x8, _TV_CSC_Y@GOTPAGEOFF]
Lloh176:
	ldr	w0, [x8]
	ldp	w8, w9, [x23]
	orr	w1, w9, w8, lsl #16
	bl	_I915_WRITE
Lloh177:
	adrp	x8, _TV_CSC_Y2@GOTPAGE
Lloh178:
	ldr	x8, [x8, _TV_CSC_Y2@GOTPAGEOFF]
Lloh179:
	ldr	w0, [x8]
	ldp	w8, w9, [x23, #8]
	orr	w1, w9, w8, lsl #16
	bl	_I915_WRITE
Lloh180:
	adrp	x8, _TV_CSC_U@GOTPAGE
Lloh181:
	ldr	x8, [x8, _TV_CSC_U@GOTPAGEOFF]
Lloh182:
	ldr	w0, [x8]
	ldp	w8, w9, [x23, #16]
	orr	w1, w9, w8, lsl #16
	bl	_I915_WRITE
Lloh183:
	adrp	x8, _TV_CSC_U2@GOTPAGE
Lloh184:
	ldr	x8, [x8, _TV_CSC_U2@GOTPAGEOFF]
Lloh185:
	ldr	w0, [x8]
	ldp	w8, w9, [x23, #24]
	orr	w1, w9, w8, lsl #16
	bl	_I915_WRITE
Lloh186:
	adrp	x8, _TV_CSC_V@GOTPAGE
Lloh187:
	ldr	x8, [x8, _TV_CSC_V@GOTPAGEOFF]
Lloh188:
	ldr	w0, [x8]
	ldp	w8, w9, [x23, #32]
	orr	w1, w9, w8, lsl #16
	bl	_I915_WRITE
Lloh189:
	adrp	x8, _TV_CSC_V2@GOTPAGE
Lloh190:
	ldr	x8, [x8, _TV_CSC_V2@GOTPAGEOFF]
Lloh191:
	ldr	w0, [x8]
	ldp	w8, w9, [x23, #40]
	orr	w1, w9, w8, lsl #16
	bl	_I915_WRITE
LBB0_11:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	orr	w20, w9, w8
	ldr	x21, [sp, #72]                  ; 8-byte Folded Reload
	mov	x0, x21
	bl	_INTEL_INFO
	ldr	w8, [x0]
Lloh192:
	adrp	x9, _TV_CLR_KNOBS@GOTPAGE
Lloh193:
	ldr	x9, [x9, _TV_CLR_KNOBS@GOTPAGEOFF]
Lloh194:
	ldr	w0, [x9]
	mov	w9, #8192
	movk	w9, #32, lsl #16
	mov	w10, #16384
	movk	w10, #64, lsl #16
	orr	w9, w10, w9
	cmp	w8, #3
	csel	w1, w10, w9, gt
	bl	_I915_WRITE
	ldp	x28, x27, [sp, #56]             ; 16-byte Folded Reload
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	cbz	x10, LBB0_13
; %bb.12:
Lloh195:
	adrp	x8, _TV_CLR_LEVEL@GOTPAGE
Lloh196:
	ldr	x8, [x8, _TV_CLR_LEVEL@GOTPAGEOFF]
Lloh197:
	ldr	w0, [x8]
Lloh198:
	adrp	x8, _TV_BLACK_LEVEL_SHIFT@GOTPAGE
Lloh199:
	ldr	x8, [x8, _TV_BLACK_LEVEL_SHIFT@GOTPAGEOFF]
Lloh200:
	ldr	w8, [x8]
	ldp	w9, w10, [x10, #4]
	lsl	w8, w9, w8
Lloh201:
	adrp	x9, _TV_BLANK_LEVEL_SHIFT@GOTPAGE
Lloh202:
	ldr	x9, [x9, _TV_BLANK_LEVEL_SHIFT@GOTPAGEOFF]
Lloh203:
	ldr	w9, [x9]
	lsl	w9, w10, w9
	orr	w1, w9, w8
	bl	_I915_WRITE
LBB0_13:
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	orr	w25, w20, w8
	ldr	w0, [sp, #44]                   ; 4-byte Folded Reload
	bl	_PIPECONF
	mov	x20, x0
	ldr	w0, [x28, #4]
	bl	_DSPCNTR
	mov	x22, x0
	mov	x0, x20
	bl	_I915_READ
	mov	x24, x0
	mov	x0, x22
	bl	_I915_READ
	mov	x26, x0
Lloh204:
	adrp	x8, _DISPLAY_PLANE_ENABLE@GOTPAGE
Lloh205:
	ldr	x8, [x8, _DISPLAY_PLANE_ENABLE@GOTPAGEOFF]
Lloh206:
	ldr	w8, [x8]
	bic	w1, w0, w8
	mov	x0, x22
	bl	_I915_WRITE
	ldr	w1, [x28, #4]
	mov	x0, x27
	bl	_intel_flush_display_plane
	mov	x0, x21
	bl	_IS_GEN2
	cbz	x0, LBB0_15
; %bb.14:
	ldr	w1, [x28]
	mov	x0, x21
	bl	_intel_wait_for_vblank
LBB0_15:
Lloh207:
	adrp	x8, _PIPECONF_ENABLE@GOTPAGE
Lloh208:
	ldr	x8, [x8, _PIPECONF_ENABLE@GOTPAGEOFF]
Lloh209:
	ldr	w8, [x8]
	bic	w1, w24, w8
	mov	x0, x20
	bl	_I915_WRITE
	ldr	w1, [x28]
	mov	x0, x21
	bl	_intel_wait_for_pipe_off
Lloh210:
	adrp	x8, _TV_FILTER_CTL_1@GOTPAGE
Lloh211:
	ldr	x8, [x8, _TV_FILTER_CTL_1@GOTPAGEOFF]
Lloh212:
	ldr	w0, [x8]
Lloh213:
	adrp	x8, _TV_AUTO_SCALE@GOTPAGE
Lloh214:
	ldr	x8, [x8, _TV_AUTO_SCALE@GOTPAGEOFF]
Lloh215:
	ldr	w1, [x8]
	bl	_I915_WRITE
	ldp	w8, w9, [x19, #20]
	ldr	x10, [x19, #136]
	cmp	x10, #0
	cset	w10, eq
	ldr	w11, [x19, #28]
Lloh216:
	adrp	x12, _TV_MARGIN_LEFT@GOTPAGE
Lloh217:
	ldr	x12, [x12, _TV_MARGIN_LEFT@GOTPAGEOFF]
	ldr	x13, [sp, #48]                  ; 8-byte Folded Reload
	ldr	x13, [x13, #8]
Lloh218:
	ldr	x12, [x12]
	ldr	x12, [x13, x12, lsl #3]
Lloh219:
	adrp	x14, _TV_MARGIN_TOP@GOTPAGE
Lloh220:
	ldr	x14, [x14, _TV_MARGIN_TOP@GOTPAGEOFF]
	lsl	w10, w11, w10
Lloh221:
	ldr	x11, [x14]
	ldr	x11, [x13, x11, lsl #3]
Lloh222:
	adrp	x14, _TV_MARGIN_RIGHT@GOTPAGE
Lloh223:
	ldr	x14, [x14, _TV_MARGIN_RIGHT@GOTPAGEOFF]
Lloh224:
	ldr	x14, [x14]
	ldr	x14, [x13, x14, lsl #3]
	add	w14, w14, w12
	add	w9, w9, w14
	sub	w21, w8, w9
Lloh225:
	adrp	x8, _TV_MARGIN_BOTTOM@GOTPAGE
Lloh226:
	ldr	x8, [x8, _TV_MARGIN_BOTTOM@GOTPAGEOFF]
Lloh227:
	ldr	x8, [x8]
	ldr	x8, [x13, x8, lsl #3]
	add	w8, w8, w11
	sub	w8, w10, w8
	add	w23, w8, #1
Lloh228:
	adrp	x8, _TV_WIN_POS@GOTPAGE
Lloh229:
	ldr	x8, [x8, _TV_WIN_POS@GOTPAGEOFF]
Lloh230:
	ldr	w0, [x8]
	orr	w1, w11, w12, lsl #16
	bl	_I915_WRITE
Lloh231:
	adrp	x8, _TV_WIN_SIZE@GOTPAGE
Lloh232:
	ldr	x8, [x8, _TV_WIN_SIZE@GOTPAGEOFF]
Lloh233:
	ldr	w0, [x8]
	orr	w1, w23, w21, lsl #16
	bl	_I915_WRITE
	mov	x0, x20
	mov	x1, x24
	bl	_I915_WRITE
	mov	x0, x22
	mov	x1, x26
	bl	_I915_WRITE
	ldr	w1, [x28, #4]
	mov	x0, x27
	bl	_intel_flush_display_plane
	mov	x20, #0
Lloh234:
	adrp	x21, _TV_H_LUMA_0@GOTPAGE
Lloh235:
	ldr	x21, [x21, _TV_H_LUMA_0@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	add	w0, w20, w8
	ldr	x8, [x19, #128]
	ldr	w1, [x8, x20]
	bl	_I915_WRITE
	add	x20, x20, #4
	cmp	x20, #240
	b.ne	LBB0_16
; %bb.17:
	mov	x20, #0
Lloh236:
	adrp	x21, _TV_H_CHROMA_0@GOTPAGE
Lloh237:
	ldr	x21, [x21, _TV_H_CHROMA_0@GOTPAGEOFF]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	add	w0, w20, w8
	ldr	x8, [x19, #128]
	add	x8, x8, x20
	ldr	w1, [x8, #240]
	bl	_I915_WRITE
	add	x20, x20, #4
	cmp	w20, #240
	b.ne	LBB0_18
; %bb.19:
	mov	x20, #0
Lloh238:
	adrp	x21, _TV_V_LUMA_0@GOTPAGE
Lloh239:
	ldr	x21, [x21, _TV_V_LUMA_0@GOTPAGEOFF]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	add	w0, w20, w8
	ldr	x8, [x19, #128]
	add	x8, x8, x20
	ldr	w1, [x8, #480]
	bl	_I915_WRITE
	add	x20, x20, #4
	cmp	w20, #172
	b.ne	LBB0_20
; %bb.21:
	mov	x20, #0
Lloh240:
	adrp	x21, _TV_V_CHROMA_0@GOTPAGE
Lloh241:
	ldr	x21, [x21, _TV_V_CHROMA_0@GOTPAGEOFF]
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	add	w0, w20, w8
	ldr	x8, [x19, #128]
	add	x8, x8, x20
	ldr	w1, [x8, #652]
	bl	_I915_WRITE
	add	x20, x20, #4
	cmp	w20, #172
	b.ne	LBB0_22
; %bb.23:
Lloh242:
	adrp	x8, _TV_DAC@GOTPAGE
Lloh243:
	ldr	x8, [x8, _TV_DAC@GOTPAGEOFF]
Lloh244:
	ldr	w19, [x8]
	mov	x0, x19
	bl	_I915_READ
Lloh245:
	adrp	x8, _TV_DAC_SAVE@GOTPAGE
Lloh246:
	ldr	x8, [x8, _TV_DAC_SAVE@GOTPAGEOFF]
Lloh247:
	ldr	w8, [x8]
	and	w1, w8, w0
	mov	x0, x19
	bl	_I915_WRITE
Lloh248:
	adrp	x8, _TV_CTL@GOTPAGE
Lloh249:
	ldr	x8, [x8, _TV_CTL@GOTPAGEOFF]
Lloh250:
	ldr	w0, [x8]
	mov	x1, x25
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	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 AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.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	Lloh45, Lloh46, Lloh47
	.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	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh171, Lloh172, Lloh173
	.loh AdrpLdrGotLdr	Lloh168, Lloh169, Lloh170
	.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
	.loh AdrpLdrGotLdr	Lloh144, Lloh145, Lloh146
	.loh AdrpLdrGotLdr	Lloh141, Lloh142, Lloh143
	.loh AdrpLdrGotLdr	Lloh138, Lloh139, Lloh140
	.loh AdrpLdrGotLdr	Lloh135, Lloh136, Lloh137
	.loh AdrpLdrGotLdr	Lloh132, Lloh133, Lloh134
	.loh AdrpLdrGotLdr	Lloh129, Lloh130, Lloh131
	.loh AdrpLdrGotLdr	Lloh126, Lloh127, Lloh128
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh189, Lloh190, Lloh191
	.loh AdrpLdrGotLdr	Lloh186, Lloh187, Lloh188
	.loh AdrpLdrGotLdr	Lloh183, Lloh184, Lloh185
	.loh AdrpLdrGotLdr	Lloh180, Lloh181, Lloh182
	.loh AdrpLdrGotLdr	Lloh177, Lloh178, Lloh179
	.loh AdrpLdrGotLdr	Lloh174, Lloh175, Lloh176
	.loh AdrpLdrGotLdr	Lloh192, Lloh193, Lloh194
	.loh AdrpLdrGotLdr	Lloh201, Lloh202, Lloh203
	.loh AdrpLdrGotLdr	Lloh198, Lloh199, Lloh200
	.loh AdrpLdrGotLdr	Lloh195, Lloh196, Lloh197
	.loh AdrpLdrGotLdr	Lloh204, Lloh205, Lloh206
	.loh AdrpLdrGot	Lloh234, Lloh235
	.loh AdrpLdrGotLdr	Lloh231, Lloh232, Lloh233
	.loh AdrpLdrGotLdr	Lloh228, Lloh229, Lloh230
	.loh AdrpLdrGotLdr	Lloh225, Lloh226, Lloh227
	.loh AdrpLdrGotLdr	Lloh222, Lloh223, Lloh224
	.loh AdrpLdrGotLdr	Lloh219, Lloh220, Lloh221
	.loh AdrpLdrGotLdr	Lloh216, Lloh217, Lloh218
	.loh AdrpLdrGotLdr	Lloh213, Lloh214, Lloh215
	.loh AdrpLdrGotLdr	Lloh210, Lloh211, Lloh212
	.loh AdrpLdrGotLdr	Lloh207, Lloh208, Lloh209
	.loh AdrpLdrGot	Lloh236, Lloh237
	.loh AdrpLdrGot	Lloh238, Lloh239
	.loh AdrpLdrGot	Lloh240, Lloh241
	.loh AdrpLdrGotLdr	Lloh248, Lloh249, Lloh250
	.loh AdrpLdrGotLdr	Lloh245, Lloh246, Lloh247
	.loh AdrpLdrGotLdr	Lloh242, Lloh243, Lloh244
	.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,48,2            ; @sdtv_csc_yprpb
	.comm	_hdtv_csc_yprpb,48,2            ; @hdtv_csc_yprpb
	.comm	_TV_ENC_OUTPUT_SVIDEO,4,2       ; @TV_ENC_OUTPUT_SVIDEO
	.comm	_TV_HSYNC_END_SHIFT,4,2         ; @TV_HSYNC_END_SHIFT
	.comm	_TV_HTOTAL_SHIFT,4,2            ; @TV_HTOTAL_SHIFT
	.comm	_TV_HBURST_LEN_SHIFT,4,2        ; @TV_HBURST_LEN_SHIFT
	.comm	_TV_BURST_ENA,4,2               ; @TV_BURST_ENA
	.comm	_TV_HBLANK_START_SHIFT,4,2      ; @TV_HBLANK_START_SHIFT
	.comm	_TV_HBLANK_END_SHIFT,4,2        ; @TV_HBLANK_END_SHIFT
	.comm	_TV_NBR_END_SHIFT,4,2           ; @TV_NBR_END_SHIFT
	.comm	_TV_VI_END_F1_SHIFT,4,2         ; @TV_VI_END_F1_SHIFT
	.comm	_TV_VI_END_F2_SHIFT,4,2         ; @TV_VI_END_F2_SHIFT
	.comm	_TV_VSYNC_LEN_SHIFT,4,2         ; @TV_VSYNC_LEN_SHIFT
	.comm	_TV_VSYNC_START_F1_SHIFT,4,2    ; @TV_VSYNC_START_F1_SHIFT
	.comm	_TV_VSYNC_START_F2_SHIFT,4,2    ; @TV_VSYNC_START_F2_SHIFT
	.comm	_TV_VEQ_LEN_SHIFT,4,2           ; @TV_VEQ_LEN_SHIFT
	.comm	_TV_VEQ_START_F1_SHIFT,4,2      ; @TV_VEQ_START_F1_SHIFT
	.comm	_TV_VEQ_START_F2_SHIFT,4,2      ; @TV_VEQ_START_F2_SHIFT
	.comm	_TV_EQUAL_ENA,4,2               ; @TV_EQUAL_ENA
	.comm	_TV_VBURST_START_F1_SHIFT,4,2   ; @TV_VBURST_START_F1_SHIFT
	.comm	_TV_VBURST_END_F1_SHIFT,4,2     ; @TV_VBURST_END_F1_SHIFT
	.comm	_TV_VBURST_START_F2_SHIFT,4,2   ; @TV_VBURST_START_F2_SHIFT
	.comm	_TV_VBURST_END_F2_SHIFT,4,2     ; @TV_VBURST_END_F2_SHIFT
	.comm	_TV_VBURST_START_F3_SHIFT,4,2   ; @TV_VBURST_START_F3_SHIFT
	.comm	_TV_VBURST_END_F3_SHIFT,4,2     ; @TV_VBURST_END_F3_SHIFT
	.comm	_TV_VBURST_START_F4_SHIFT,4,2   ; @TV_VBURST_START_F4_SHIFT
	.comm	_TV_VBURST_END_F4_SHIFT,4,2     ; @TV_VBURST_END_F4_SHIFT
	.comm	_TV_ENC_PIPEB_SELECT,4,2        ; @TV_ENC_PIPEB_SELECT
	.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_H_CTL_1,4,2                 ; @TV_H_CTL_1
	.comm	_TV_H_CTL_2,4,2                 ; @TV_H_CTL_2
	.comm	_TV_H_CTL_3,4,2                 ; @TV_H_CTL_3
	.comm	_TV_V_CTL_1,4,2                 ; @TV_V_CTL_1
	.comm	_TV_V_CTL_2,4,2                 ; @TV_V_CTL_2
	.comm	_TV_V_CTL_3,4,2                 ; @TV_V_CTL_3
	.comm	_TV_V_CTL_4,4,2                 ; @TV_V_CTL_4
	.comm	_TV_V_CTL_5,4,2                 ; @TV_V_CTL_5
	.comm	_TV_V_CTL_6,4,2                 ; @TV_V_CTL_6
	.comm	_TV_V_CTL_7,4,2                 ; @TV_V_CTL_7
	.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_CSC_Y,4,2                   ; @TV_CSC_Y
	.comm	_TV_CSC_Y2,4,2                  ; @TV_CSC_Y2
	.comm	_TV_CSC_U,4,2                   ; @TV_CSC_U
	.comm	_TV_CSC_U2,4,2                  ; @TV_CSC_U2
	.comm	_TV_CSC_V,4,2                   ; @TV_CSC_V
	.comm	_TV_CSC_V2,4,2                  ; @TV_CSC_V2
	.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	_DISPLAY_PLANE_ENABLE,4,2       ; @DISPLAY_PLANE_ENABLE
	.comm	_PIPECONF_ENABLE,4,2            ; @PIPECONF_ENABLE
	.comm	_TV_FILTER_CTL_1,4,2            ; @TV_FILTER_CTL_1
	.comm	_TV_AUTO_SCALE,4,2              ; @TV_AUTO_SCALE
	.comm	_TV_MARGIN_LEFT,8,3             ; @TV_MARGIN_LEFT
	.comm	_TV_MARGIN_TOP,8,3              ; @TV_MARGIN_TOP
	.comm	_TV_MARGIN_RIGHT,8,3            ; @TV_MARGIN_RIGHT
	.comm	_TV_MARGIN_BOTTOM,8,3           ; @TV_MARGIN_BOTTOM
	.comm	_TV_WIN_POS,4,2                 ; @TV_WIN_POS
	.comm	_TV_WIN_SIZE,4,2                ; @TV_WIN_SIZE
	.comm	_TV_H_LUMA_0,4,2                ; @TV_H_LUMA_0
	.comm	_TV_H_CHROMA_0,4,2              ; @TV_H_CHROMA_0
	.comm	_TV_V_LUMA_0,4,2                ; @TV_V_LUMA_0
	.comm	_TV_V_CHROMA_0,4,2              ; @TV_V_CHROMA_0
	.comm	_TV_DAC,4,2                     ; @TV_DAC
	.comm	_TV_DAC_SAVE,4,2                ; @TV_DAC_SAVE
	.no_dead_strip	_intel_tv_mode_set
.subsections_via_symbols
