	.file	"extr_amdgpu_connectors.c_amdgpu_connector_get_edid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	amdgpu_connector_get_edid, @function
amdgpu_connector_get_edid:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR 8[rdi]
	mov	rbx, rdi
	mov	r12, QWORD PTR [rax]
	call	to_amdgpu_connector@PLT
	cmp	QWORD PTR [rax], 0
	je	.L21
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	cmp	QWORD PTR 24[rax], 0
	mov	rbp, rax
	jne	.L22
.L4:
	mov	rdi, rbx
	call	amdgpu_connector_encoder_get_dp_bridge_encoder_id@PLT
	cmp	rax, QWORD PTR ENCODER_OBJECT_ID_NONE[rip]
	mov	rsi, QWORD PTR 8[rbp]
	je	.L6
	cmp	QWORD PTR 8[rsi], 0
	jne	.L18
.L6:
	mov	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR DRM_MODE_CONNECTOR_DisplayPort[rip]
	je	.L8
	cmp	rax, QWORD PTR DRM_MODE_CONNECTOR_eDP[rip]
	je	.L8
.L9:
	test	rsi, rsi
	jne	.L13
	mov	rax, QWORD PTR 0[rbp]
.L7:
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR DRM_MODE_CONNECTOR_LVDS[rip]
	je	.L15
	cmp	rax, QWORD PTR DRM_MODE_CONNECTOR_eDP[rip]
	jne	.L1
.L15:
	mov	rdi, r12
	call	amdgpu_connector_get_hardcoded_edid@PLT
	mov	QWORD PTR 0[rbp], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR 16[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, QWORD PTR CONNECTOR_OBJECT_ID_DISPLAYPORT[rip]
	je	.L10
	cmp	rax, QWORD PTR CONNECTOR_OBJECT_ID_eDP[rip]
	jne	.L9
.L10:
	cmp	QWORD PTR 8[rsi], 0
	jne	.L18
.L13:
	mov	rdi, rbx
	call	drm_get_edid@PLT
	mov	QWORD PTR 0[rbp], rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L18:
	add	rsi, 4
	mov	rdi, rbx
	call	drm_get_edid@PLT
	mov	QWORD PTR 0[rbp], rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, rax
	call	amdgpu_i2c_router_select_ddc_port@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	amdgpu_connector_get_edid, .-amdgpu_connector_get_edid
	.comm	ENCODER_OBJECT_ID_NONE,8,8
	.comm	DRM_MODE_CONNECTOR_eDP,8,8
	.comm	DRM_MODE_CONNECTOR_LVDS,8,8
	.comm	DRM_MODE_CONNECTOR_DisplayPort,8,8
	.comm	CONNECTOR_OBJECT_ID_eDP,8,8
	.comm	CONNECTOR_OBJECT_ID_DISPLAYPORT,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_amdgpu_connectors.c_amdgpu_connector_get_edid.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	amdgpu_connector_get_edid, %function
amdgpu_connector_get_edid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	push	{r4, r5, r6, lr}
	ldr	r6, [r3]
	mov	r5, r0
	bl	to_amdgpu_connector
	ldr	r3, [r0]
	cmp	r3, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, [r0, #12]
	mov	r4, r0
	cmp	r3, #0
	bne	.L30
.L4:
	mov	r0, r5
	bl	amdgpu_connector_encoder_get_dp_bridge_encoder_id
	ldr	r3, .L32
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L6
	ldr	r3, [r1, #8]
	cmp	r3, #0
	bne	.L27
.L6:
	ldr	r2, .L32+4
	ldr	r3, [r5]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L8
	ldr	r2, .L32+8
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L8
.L9:
	cmp	r1, #0
	bne	.L13
	ldr	r0, [r4]
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
.L31:
	ldr	r2, .L32+12
	ldr	r3, [r5]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L15
	ldr	r2, .L32+8
	ldr	r2, [r2]
	cmp	r3, r2
	popne	{r4, r5, r6, pc}
.L15:
	mov	r0, r6
	bl	amdgpu_connector_get_hardcoded_edid
	str	r0, [r4]
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, [r4, #8]
	ldr	r2, .L32+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L10
	ldr	r2, .L32+20
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L9
.L10:
	ldr	r3, [r1, #8]
	cmp	r3, #0
	bne	.L27
.L13:
	mov	r0, r5
	bl	drm_get_edid
	cmp	r0, #0
	str	r0, [r4]
	popne	{r4, r5, r6, pc}
	b	.L31
.L27:
	mov	r0, r5
	add	r1, r1, #4
	bl	drm_get_edid
	cmp	r0, #0
	str	r0, [r4]
	popne	{r4, r5, r6, pc}
	b	.L31
.L30:
	bl	amdgpu_i2c_router_select_ddc_port
	b	.L4
.L33:
	.align	2
.L32:
	.word	ENCODER_OBJECT_ID_NONE
	.word	DRM_MODE_CONNECTOR_DisplayPort
	.word	DRM_MODE_CONNECTOR_eDP
	.word	DRM_MODE_CONNECTOR_LVDS
	.word	CONNECTOR_OBJECT_ID_DISPLAYPORT
	.word	CONNECTOR_OBJECT_ID_eDP
	.size	amdgpu_connector_get_edid, .-amdgpu_connector_get_edid
	.comm	ENCODER_OBJECT_ID_NONE,4,4
	.comm	DRM_MODE_CONNECTOR_eDP,4,4
	.comm	DRM_MODE_CONNECTOR_LVDS,4,4
	.comm	DRM_MODE_CONNECTOR_DisplayPort,4,4
	.comm	CONNECTOR_OBJECT_ID_eDP,4,4
	.comm	CONNECTOR_OBJECT_ID_DISPLAYPORT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
