	.file	"extr_intel_hdmi.c_hsw_set_infoframes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hsw_set_infoframes, @function
hsw_set_infoframes:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	edi, DWORD PTR [rdi]
	call	to_intel_crtc@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	enc_to_intel_hdmi@PLT
	mov	edi, DWORD PTR [rbx]
	mov	r14, rax
	call	HSW_TVIDEO_DIP_CTL@PLT
	mov	edi, eax
	mov	r13d, eax
	call	I915_READ@PLT
	mov	rdi, r14
	mov	ebx, eax
	call	assert_hdmi_port_disabled@PLT
	mov	eax, DWORD PTR [r14]
	test	eax, eax
	je	.L5
	mov	esi, DWORD PTR VIDEO_DIP_ENABLE_VSC_HSW[rip]
	or	esi, DWORD PTR VIDEO_DIP_ENABLE_GCP_HSW[rip]
	mov	edi, r13d
	or	esi, DWORD PTR VIDEO_DIP_ENABLE_VS_HSW[rip]
	or	esi, DWORD PTR VIDEO_DIP_ENABLE_GMP_HSW[rip]
	not	esi
	and	esi, ebx
	call	I915_WRITE@PLT
	mov	edi, r13d
	call	POSTING_READ@PLT
	mov	rdi, rbp
	mov	rsi, r12
	call	intel_hdmi_set_avi_infoframe@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	intel_hdmi_set_spd_infoframe@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, r13d
	xor	esi, esi
	call	I915_WRITE@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	edi, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	POSTING_READ@PLT
	.cfi_endproc
.LFE0:
	.size	hsw_set_infoframes, .-hsw_set_infoframes
	.comm	VIDEO_DIP_ENABLE_VS_HSW,4,4
	.comm	VIDEO_DIP_ENABLE_VSC_HSW,4,4
	.comm	VIDEO_DIP_ENABLE_GMP_HSW,4,4
	.comm	VIDEO_DIP_ENABLE_GCP_HSW,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_intel_hdmi.c_hsw_set_infoframes.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hsw_set_infoframes, %function
hsw_set_infoframes:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, [r0]
	mov	r6, r1
	bl	to_intel_crtc
	mov	r5, r0
	mov	r0, r4
	bl	enc_to_intel_hdmi
	mov	r8, r0
	ldr	r0, [r5]
	bl	HSW_TVIDEO_DIP_CTL
	mov	r5, r0
	bl	I915_READ
	mov	r7, r0
	mov	r0, r8
	bl	assert_hdmi_port_disabled
	ldr	r1, [r8]
	cmp	r1, #0
	beq	.L5
	ldr	r3, .L6
	ldr	r2, .L6+4
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L6+8
	orr	r3, r3, r2
	ldr	r1, [r1]
	ldr	r2, .L6+12
	orr	r3, r3, r1
	ldr	r1, [r2]
	mov	r0, r5
	orr	r1, r3, r1
	bic	r1, r7, r1
	bl	I915_WRITE
	mov	r0, r5
	bl	POSTING_READ
	mov	r1, r6
	mov	r0, r4
	bl	intel_hdmi_set_avi_infoframe
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	intel_hdmi_set_spd_infoframe
.L5:
	mov	r0, r5
	bl	I915_WRITE
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	POSTING_READ
.L7:
	.align	2
.L6:
	.word	VIDEO_DIP_ENABLE_VSC_HSW
	.word	VIDEO_DIP_ENABLE_GCP_HSW
	.word	VIDEO_DIP_ENABLE_VS_HSW
	.word	VIDEO_DIP_ENABLE_GMP_HSW
	.size	hsw_set_infoframes, .-hsw_set_infoframes
	.comm	VIDEO_DIP_ENABLE_VS_HSW,4,4
	.comm	VIDEO_DIP_ENABLE_VSC_HSW,4,4
	.comm	VIDEO_DIP_ENABLE_GMP_HSW,4,4
	.comm	VIDEO_DIP_ENABLE_GCP_HSW,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
