	.file	"extr_cdv_intel_dp.c_cdv_intel_dp_sink_dpms.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to write sink power state\n"
	.text
	.p2align 4
	.type	cdv_intel_dp_sink_dpms, @function
cdv_intel_dp_sink_dpms:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rdi]
	mov	rdx, QWORD PTR DP_DPCD_REV[rip]
	mov	rax, QWORD PTR [rax]
	cmp	DWORD PTR [rax+rdx*4], 16
	jle	.L16
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, 3
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	DWORD PTR DRM_MODE_DPMS_ON[rip], esi
	mov	r8d, DWORD PTR DP_SET_POWER[rip]
	jne	.L20
.L3:
	mov	edx, DWORD PTR DP_SET_POWER_D0[rip]
	mov	esi, r8d
	mov	rdi, rbp
	call	cdv_intel_dp_aux_native_write_1@PLT
	cmp	eax, 1
	je	.L1
	mov	edi, 1000
	call	udelay@PLT
	sub	ebx, 1
	je	.L1
	mov	r8d, DWORD PTR DP_SET_POWER[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edx, DWORD PTR DP_SET_POWER_D3[rip]
	mov	esi, r8d
	call	cdv_intel_dp_aux_native_write_1@PLT
	cmp	eax, 1
	jne	.L21
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore 3
	.cfi_restore 6
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	add	rsp, 8
	.cfi_def_cfa_offset 24
	lea	rdi, .LC0[rip]
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	DRM_DEBUG_DRIVER@PLT
	.cfi_endproc
.LFE0:
	.size	cdv_intel_dp_sink_dpms, .-cdv_intel_dp_sink_dpms
	.comm	DRM_MODE_DPMS_ON,4,4
	.comm	DP_SET_POWER_D3,4,4
	.comm	DP_SET_POWER_D0,4,4
	.comm	DP_SET_POWER,4,4
	.comm	DP_DPCD_REV,8,8
	.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_cdv_intel_dp.c_cdv_intel_dp_sink_dpms.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to write sink power state\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cdv_intel_dp_sink_dpms, %function
cdv_intel_dp_sink_dpms:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0]
	ldr	r3, .L20
	ldr	r2, [r2]
	ldr	ip, [r3]
	ldr	r2, [r2, ip, lsl #2]
	cmp	r2, #16
	bxle	lr
	mov	r3, r1
	ldr	r2, .L20+4
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r2, [r2]
	ldr	r6, .L20+8
	cmp	r2, r3
	ldr	r1, [r6]
	bne	.L19
	mov	r4, r0
	mov	r5, #3
	ldr	r7, .L20+12
.L3:
	mov	r0, r4
	ldr	r2, [r7]
	bl	cdv_intel_dp_aux_native_write_1
	cmp	r0, #1
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r0, #1000
	bl	udelay
	subs	r5, r5, #1
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r1, [r6]
	b	.L3
.L19:
	ldr	r3, .L20+16
	ldr	r2, [r3]
	bl	cdv_intel_dp_aux_native_write_1
	cmp	r0, #1
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r0, .L20+20
	pop	{r4, r5, r6, r7, r8, lr}
	b	DRM_DEBUG_DRIVER
.L21:
	.align	2
.L20:
	.word	DP_DPCD_REV
	.word	DRM_MODE_DPMS_ON
	.word	DP_SET_POWER
	.word	DP_SET_POWER_D0
	.word	DP_SET_POWER_D3
	.word	.LC0
	.size	cdv_intel_dp_sink_dpms, .-cdv_intel_dp_sink_dpms
	.comm	DRM_MODE_DPMS_ON,4,4
	.comm	DP_SET_POWER_D3,4,4
	.comm	DP_SET_POWER_D0,4,4
	.comm	DP_SET_POWER,4,4
	.comm	DP_DPCD_REV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
