	.file	"extr_intel_dp_aux_backlight.c_intel_dp_aux_get_backlight.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to read DPCD register 0x%x\n"
	.text
	.p2align 4
	.type	intel_dp_aux_get_backlight, @function
intel_dp_aux_get_backlight:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	enc_to_intel_dp@PLT
	mov	esi, DWORD PTR DP_EDP_BACKLIGHT_BRIGHTNESS_MSB[rip]
	mov	rdx, rsp
	mov	ecx, 8
	lea	rdi, 8[rax]
	mov	QWORD PTR [rsp], 0
	mov	rbx, rax
	call	drm_dp_dpcd_read@PLT
	test	rax, rax
	js	.L10
	mov	rdx, QWORD PTR [rbx]
	mov	eax, DWORD PTR [rsp]
	mov	edx, DWORD PTR 8[rdx]
	test	DWORD PTR DP_EDP_BACKLIGHT_BRIGHTNESS_BYTE_COUNT[rip], edx
	jne	.L11
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	sal	eax, 8
	or	eax, DWORD PTR 4[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, DWORD PTR DP_EDP_BACKLIGHT_BRIGHTNESS_MSB[rip]
	lea	rdi, .LC0[rip]
	call	DRM_DEBUG_KMS@PLT
	xor	eax, eax
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	intel_dp_aux_get_backlight, .-intel_dp_aux_get_backlight
	.comm	DP_EDP_BACKLIGHT_BRIGHTNESS_MSB,4,4
	.comm	DP_EDP_BACKLIGHT_BRIGHTNESS_BYTE_COUNT,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_dp_aux_backlight.c_intel_dp_aux_get_backlight.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to read DPCD register 0x%x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_dp_aux_get_backlight, %function
intel_dp_aux_get_backlight:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L12
	sub	sp, sp, #16
	ldr	r0, [r0]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	enc_to_intel_dp
	mov	r4, #0
	ldr	r6, .L12+4
	mov	r5, r0
	mov	r3, #8
	ldr	r1, [r6]
	add	r0, r0, #4
	add	r2, sp, #4
	str	r4, [sp, #4]
	str	r4, [sp, #8]
	bl	drm_dp_dpcd_read
	cmp	r0, r4
	blt	.L10
	ldr	r2, [r5]
	ldr	r3, .L12+8
	ldr	r2, [r2, #8]
	ldr	r3, [r3]
	ldr	r0, [sp, #4]
	tst	r2, r3
	ldrne	r3, [sp, #8]
	orrne	r0, r3, r0, lsl #8
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r1, [r6]
	ldr	r0, .L12+12
	bl	DRM_DEBUG_KMS
	mov	r0, r4
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	DP_EDP_BACKLIGHT_BRIGHTNESS_MSB
	.word	DP_EDP_BACKLIGHT_BRIGHTNESS_BYTE_COUNT
	.word	.LC0
	.size	intel_dp_aux_get_backlight, .-intel_dp_aux_get_backlight
	.comm	DP_EDP_BACKLIGHT_BRIGHTNESS_MSB,4,4
	.comm	DP_EDP_BACKLIGHT_BRIGHTNESS_BYTE_COUNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
