	.file	"extr_radeon_connectors.c_radeon_dvi_encoder.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	radeon_dvi_encoder, @function
radeon_dvi_encoder:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdi]
	mov	r12d, DWORD PTR [rax]
	call	to_radeon_connector@PLT
	mov	edx, DWORD PTR DRM_CONNECTOR_MAX_ENCODER[rip]
	test	edx, edx
	jle	.L2
	mov	rbp, rax
	xor	ebx, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdx, QWORD PTR [rax]
	cmp	rdx, QWORD PTR DRM_MODE_ENCODER_DAC[rip]
	je	.L1
	cmp	rdx, QWORD PTR DRM_MODE_ENCODER_TVDAC[rip]
	je	.L1
.L7:
	add	rbx, 1
	cmp	DWORD PTR DRM_CONNECTOR_MAX_ENCODER[rip], ebx
	jle	.L2
.L4:
	mov	rax, QWORD PTR 0[r13]
	mov	esi, DWORD PTR [rax+rbx*4]
	test	esi, esi
	je	.L2
	mov	edi, DWORD PTR 8[r13]
	mov	edx, DWORD PTR DRM_MODE_OBJECT_ENCODER[rip]
	call	drm_mode_object_find@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L7
	call	obj_to_encoder@PLT
	cmp	DWORD PTR 0[rbp], 1
	jne	.L5
	mov	rcx, QWORD PTR DRM_MODE_ENCODER_TMDS[rip]
	cmp	QWORD PTR [rax], rcx
	jne	.L7
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	test	r12d, r12d
	je	.L9
	mov	edi, DWORD PTR 8[r13]
	mov	edx, DWORD PTR DRM_MODE_OBJECT_ENCODER[rip]
	mov	esi, r12d
	call	drm_mode_object_find@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L9
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	obj_to_encoder@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	radeon_dvi_encoder, .-radeon_dvi_encoder
	.comm	DRM_MODE_OBJECT_ENCODER,4,4
	.comm	DRM_MODE_ENCODER_TVDAC,8,8
	.comm	DRM_MODE_ENCODER_TMDS,8,8
	.comm	DRM_MODE_ENCODER_DAC,8,8
	.comm	DRM_CONNECTOR_MAX_ENCODER,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_radeon_connectors.c_radeon_dvi_encoder.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	radeon_dvi_encoder, %function
radeon_dvi_encoder:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0]
	ldr	r5, .L19
	ldr	r3, [r3]
	sub	sp, sp, #12
	str	r3, [sp, #4]
	mov	r4, r0
	bl	to_radeon_connector
	ldr	r3, [r5]
	cmp	r3, #0
	ble	.L2
	mov	r7, r0
	mov	fp, #0
	ldr	r6, .L19+4
	ldr	r8, .L19+8
	ldr	r9, .L19+12
	ldr	r10, .L19+16
	b	.L4
.L5:
	ldr	r2, [r0]
	ldr	r1, [r8]
	cmp	r2, r1
	beq	.L1
	ldr	r1, [r9]
	cmp	r2, r1
	beq	.L1
.L7:
	ldr	r2, [r5]
	cmp	r2, fp
	ble	.L2
.L4:
	ldr	r2, [r4]
	ldr	r1, [r2, fp, lsl #2]
	add	fp, fp, #1
	cmp	r1, #0
	beq	.L2
	ldr	r2, [r6]
	ldr	r0, [r4, #4]
	bl	drm_mode_object_find
	cmp	r0, #0
	beq	.L7
	bl	obj_to_encoder
	ldr	r2, [r7]
	cmp	r2, #1
	bne	.L5
	ldr	r1, [r0]
	ldr	r2, [r10]
	cmp	r1, r2
	bne	.L7
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, [sp, #4]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L19+4
	ldr	r1, [sp, #4]
	ldr	r0, [r4, #4]
	ldr	r2, [r3]
	bl	drm_mode_object_find
	cmp	r0, #0
	beq	.L9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	obj_to_encoder
.L9:
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	.align	2
.L19:
	.word	DRM_CONNECTOR_MAX_ENCODER
	.word	DRM_MODE_OBJECT_ENCODER
	.word	DRM_MODE_ENCODER_DAC
	.word	DRM_MODE_ENCODER_TVDAC
	.word	DRM_MODE_ENCODER_TMDS
	.size	radeon_dvi_encoder, .-radeon_dvi_encoder
	.comm	DRM_MODE_OBJECT_ENCODER,4,4
	.comm	DRM_MODE_ENCODER_TVDAC,4,4
	.comm	DRM_MODE_ENCODER_TMDS,4,4
	.comm	DRM_MODE_ENCODER_DAC,4,4
	.comm	DRM_CONNECTOR_MAX_ENCODER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
