	.file	"extr_atombios_dp.c_radeon_dp_getdpcd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"DPCD: "
.LC1:
	.string	"%02x "
.LC2:
	.string	"\n"
	.text
	.p2align 4
	.globl	radeon_dp_getdpcd
	.type	radeon_dp_getdpcd, @function
radeon_dp_getdpcd:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbx
	sub	rsp, 16
	.cfi_offset 3, -48
	mov	rbx, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR DP_DPCD_SIZE[rip]
	mov	rdi, rsp
	mov	rcx, rax
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rdi, rax
	and	rdx, -16
	mov	rax, rdi
	cmp	rsp, rax
	je	.L3
.L16:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L16
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L17
.L4:
	mov	r13, rsp
	mov	esi, DWORD PTR DP_DPCD_REV[rip]
	xor	r8d, r8d
	mov	rdi, r12
	mov	rdx, r13
	call	radeon_dp_aux_native_read@PLT
	test	eax, eax
	jg	.L18
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR [rax], 0
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR -40[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L19
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	edx, DWORD PTR DP_DPCD_SIZE[rip]
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, r13
	call	memcpy@PLT
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	DRM_DEBUG_KMS@PLT
	mov	eax, DWORD PTR DP_DPCD_SIZE[rip]
	test	eax, eax
	jle	.L6
	xor	ebx, ebx
	lea	r14, .LC1[rip]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR 0[r13+rbx*4]
	xor	eax, eax
	mov	rdi, r14
	add	rbx, 1
	call	DRM_DEBUG_KMS@PLT
	cmp	DWORD PTR DP_DPCD_SIZE[rip], ebx
	jg	.L7
.L6:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	DRM_DEBUG_KMS@PLT
	mov	rdi, r12
	call	radeon_dp_probe_oui@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	radeon_dp_getdpcd, .-radeon_dp_getdpcd
	.comm	DP_DPCD_SIZE,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
	.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_atombios_dp.c_radeon_dp_getdpcd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DPCD: \000"
	.align	2
.LC1:
	.ascii	"%02x \000"
	.align	2
.LC2:
	.ascii	"\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	radeon_dp_getdpcd
	.syntax unified
	.arm
	.fpu softvfp
	.type	radeon_dp_getdpcd, %function
radeon_dp_getdpcd:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #20
	mov	r5, #0
	ldr	r6, .L12
	ldr	r2, .L12+4
	ldr	r3, [r6]
	ldr	r1, [r2]
	lsl	r2, r3, #2
	add	r2, r2, #7
	bic	r2, r2, #7
	sub	sp, sp, r2
	ldr	ip, .L12+8
	add	r4, sp, #8
	str	r5, [sp]
	mov	r2, r4
	mov	r7, r0
	ldr	ip, [ip]
	str	ip, [fp, #-32]
	mov	ip,#0
	ldr	r8, [r0]
	bl	radeon_dp_aux_native_read
	cmp	r0, r5
	bgt	.L10
	mov	r0, r5
	ldr	r3, [r8]
	str	r5, [r3]
.L1:
	ldr	r3, .L12+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L10:
	mov	r1, r4
	ldr	r2, [r6]
	ldr	r0, [r8]
	bl	memcpy
	ldr	r0, .L12+12
	bl	DRM_DEBUG_KMS
	ldr	r3, [r6]
	cmp	r3, r5
	ble	.L3
	ldr	r8, .L12+16
	sub	r4, r4, #4
.L4:
	mov	r0, r8
	ldr	r1, [r4, #4]!
	bl	DRM_DEBUG_KMS
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L4
.L3:
	ldr	r0, .L12+20
	bl	DRM_DEBUG_KMS
	mov	r0, r7
	bl	radeon_dp_probe_oui
	mov	r0, #1
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	DP_DPCD_SIZE
	.word	DP_DPCD_REV
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	radeon_dp_getdpcd, .-radeon_dp_getdpcd
	.comm	DP_DPCD_SIZE,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
