	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_hdmi_set_gcp_infoframe
_intel_hdmi_set_gcp_infoframe:          ## @intel_hdmi_set_gcp_infoframe
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r15
	movl	12(%r12), %edi
	callq	_to_intel_crtc
	movq	%rax, %r14
	movl	(%r12), %ebx
	movq	_HDMI_PACKET_TYPE_GENERAL_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_intel_hdmi_infoframe_enable
	xorl	%r13d, %r13d
	testl	%ebx, %eax
	je	LBB0_9
## %bb.1:
	movq	%r15, %rdi
	callq	_HAS_DDI
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	8(%r12), %edi
	callq	_HSW_TVIDEO_DIP_GCP
	jmp	LBB0_8
LBB0_3:
	movq	%r15, %rdi
	callq	_IS_VALLEYVIEW
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movl	(%r14), %edi
	callq	_VLV_TVIDEO_DIP_GCP
LBB0_8:
	movl	4(%r12), %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movl	$1, %r13d
LBB0_9:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r15, %rdi
	callq	_HAS_PCH_SPLIT
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	(%r14), %edi
	callq	_TVIDEO_DIP_GCP
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_PACKET_TYPE_GENERAL_CONTROL,4,2 ## @HDMI_PACKET_TYPE_GENERAL_CONTROL
	.no_dead_strip	_intel_hdmi_set_gcp_infoframe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_hdmi_set_gcp_infoframe
_intel_hdmi_set_gcp_infoframe:          ; @intel_hdmi_set_gcp_infoframe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	ldr	w0, [x0]
	bl	_to_i915
	mov	x21, x0
	ldr	w0, [x19, #12]
	bl	_to_intel_crtc
	mov	x20, x0
	ldr	w22, [x19]
Lloh0:
	adrp	x8, _HDMI_PACKET_TYPE_GENERAL_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI_PACKET_TYPE_GENERAL_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_intel_hdmi_infoframe_enable
	tst	w0, w22
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_HAS_DDI
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x19, #8]
	bl	_HSW_TVIDEO_DIP_GCP
	b	LBB0_7
LBB0_3:
	mov	w0, #0
	b	LBB0_8
LBB0_4:
	mov	x0, x21
	bl	_IS_VALLEYVIEW
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_9
LBB0_6:
	ldr	w0, [x20]
	bl	_VLV_TVIDEO_DIP_GCP
LBB0_7:
	ldr	w1, [x19, #4]
	bl	_I915_WRITE
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x21
	bl	_HAS_PCH_SPLIT
	cbz	x0, LBB0_8
; %bb.10:
	ldr	w0, [x20]
	bl	_TVIDEO_DIP_GCP
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_PACKET_TYPE_GENERAL_CONTROL,4,2 ; @HDMI_PACKET_TYPE_GENERAL_CONTROL
	.no_dead_strip	_intel_hdmi_set_gcp_infoframe
.subsections_via_symbols
