	.file	"extr_intel_psr.c_intel_psr_enable_sink.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	intel_psr_enable_sink, @function
intel_psr_enable_sink:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	dp_to_i915@PLT
	mov	r12d, DWORD PTR DP_PSR_ENABLE[rip]
	cmp	QWORD PTR 8[rax], 0
	jne	.L7
	cmp	QWORD PTR [rax], 0
	mov	rdi, rax
	je	.L4
	or	r12d, DWORD PTR DP_PSR_MAIN_LINK_ACTIVE[rip]
.L4:
	call	INTEL_GEN@PLT
	cmp	eax, 7
	jle	.L3
	or	r12d, DWORD PTR DP_PSR_CRC_VERIFICATION[rip]
.L3:
	mov	esi, DWORD PTR DP_PSR_EN_CFG[rip]
	mov	edx, r12d
	mov	rdi, rbp
	call	drm_dp_dpcd_writeb@PLT
	mov	edx, DWORD PTR DP_SET_POWER_D0[rip]
	mov	esi, DWORD PTR DP_SET_POWER[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	drm_dp_dpcd_writeb@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edx, DWORD PTR DP_ALPM_ENABLE[rip]
	mov	esi, DWORD PTR DP_RECEIVER_ALPM_CONFIG[rip]
	mov	rdi, rbp
	call	drm_dp_dpcd_writeb@PLT
	or	r12d, DWORD PTR DP_PSR_ENABLE_PSR2[rip]
	or	r12d, DWORD PTR DP_PSR_IRQ_HPD_WITH_CRC_ERRORS[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	intel_psr_enable_sink, .-intel_psr_enable_sink
	.comm	DP_SET_POWER_D0,4,4
	.comm	DP_SET_POWER,4,4
	.comm	DP_RECEIVER_ALPM_CONFIG,4,4
	.comm	DP_PSR_MAIN_LINK_ACTIVE,4,4
	.comm	DP_PSR_IRQ_HPD_WITH_CRC_ERRORS,4,4
	.comm	DP_PSR_EN_CFG,4,4
	.comm	DP_PSR_ENABLE_PSR2,4,4
	.comm	DP_PSR_ENABLE,4,4
	.comm	DP_PSR_CRC_VERIFICATION,4,4
	.comm	DP_ALPM_ENABLE,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_psr.c_intel_psr_enable_sink.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_psr_enable_sink, %function
intel_psr_enable_sink:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	dp_to_i915
	ldr	r2, [r0, #4]
	ldr	r3, .L11
	cmp	r2, #0
	ldr	r5, [r3]
	bne	.L10
	ldr	r3, [r0]
	cmp	r3, #0
	ldrne	r3, .L11+4
	ldrne	r3, [r3]
	orrne	r5, r5, r3
	bl	INTEL_GEN
	cmp	r0, #7
	ldrgt	r3, .L11+8
	ldrgt	r3, [r3]
	orrgt	r5, r5, r3
.L3:
	ldr	r3, .L11+12
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, r4
	bl	drm_dp_dpcd_writeb
	ldr	r2, .L11+16
	ldr	r3, .L11+20
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	ldr	r2, [r2]
	ldr	r1, [r3]
	b	drm_dp_dpcd_writeb
.L10:
	ldr	r3, .L11+24
	ldr	r2, .L11+28
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	bl	drm_dp_dpcd_writeb
	ldr	r3, .L11+32
	ldr	r2, .L11+36
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r5, r5, r3
	orr	r5, r5, r2
	b	.L3
.L12:
	.align	2
.L11:
	.word	DP_PSR_ENABLE
	.word	DP_PSR_MAIN_LINK_ACTIVE
	.word	DP_PSR_CRC_VERIFICATION
	.word	DP_PSR_EN_CFG
	.word	DP_SET_POWER_D0
	.word	DP_SET_POWER
	.word	DP_RECEIVER_ALPM_CONFIG
	.word	DP_ALPM_ENABLE
	.word	DP_PSR_ENABLE_PSR2
	.word	DP_PSR_IRQ_HPD_WITH_CRC_ERRORS
	.size	intel_psr_enable_sink, .-intel_psr_enable_sink
	.comm	DP_SET_POWER_D0,4,4
	.comm	DP_SET_POWER,4,4
	.comm	DP_RECEIVER_ALPM_CONFIG,4,4
	.comm	DP_PSR_MAIN_LINK_ACTIVE,4,4
	.comm	DP_PSR_IRQ_HPD_WITH_CRC_ERRORS,4,4
	.comm	DP_PSR_EN_CFG,4,4
	.comm	DP_PSR_ENABLE_PSR2,4,4
	.comm	DP_PSR_ENABLE,4,4
	.comm	DP_PSR_CRC_VERIFICATION,4,4
	.comm	DP_ALPM_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
