	.file	"extr_drm_dp_dual_mode_helper.c_drm_dp_dual_mode_set_tmds_output.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"enable"
.LC1:
	.string	"disable"
.LC2:
	.string	"enabling"
.LC3:
	.string	"disabling"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"Failed to %s TMDS output buffers (%d attempts)\n"
	.align 8
.LC5:
	.string	"I2C read failed during TMDS output buffer %s (%d attempts)\n"
	.align 8
.LC6:
	.string	"I2C write value mismatch during TMDS output buffer %s\n"
	.text
	.p2align 4
	.globl	drm_dp_dual_mode_set_tmds_output
	.type	drm_dp_dual_mode_set_tmds_output, @function
drm_dp_dual_mode_set_tmds_output:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	edx, edx
	cmove	rax, QWORD PTR DP_DUAL_MODE_TMDS_DISABLE[rip]
	xor	r12d, r12d
	cmp	DWORD PTR DRM_DP_DUAL_MODE_TYPE2_DVI[rip], edi
	mov	QWORD PTR 8[rsp], rax
	ja	.L1
	mov	rbx, rsi
	mov	r13d, edx
	lea	r14, 8[rsp]
	xor	ebp, ebp
	lea	r15, 16[rsp]
.L9:
	mov	esi, DWORD PTR DP_DUAL_MODE_TMDS_OEN[rip]
	mov	ecx, 8
	mov	rdx, r14
	mov	rdi, rbx
	call	drm_dp_dual_mode_write@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L21
	mov	esi, DWORD PTR DP_DUAL_MODE_TMDS_OEN[rip]
	mov	ecx, 8
	mov	rdx, r15
	mov	rdi, rbx
	call	drm_dp_dual_mode_read@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L22
	mov	rax, QWORD PTR 8[rsp]
	cmp	QWORD PTR 16[rsp], rax
	je	.L1
	add	ebp, 1
	cmp	ebp, 3
	jne	.L9
	test	r13d, r13d
	lea	rax, .LC3[rip]
	lea	rsi, .LC2[rip]
	cmove	rsi, rax
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	DRM_DEBUG_KMS@PLT
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	test	r13d, r13d
	lea	rax, .LC1[rip]
	lea	edx, 1[rbp]
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	cmove	rsi, rax
	xor	eax, eax
	call	DRM_DEBUG_KMS@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	test	r13d, r13d
	lea	rax, .LC3[rip]
	lea	edx, 1[rbp]
	lea	rsi, .LC2[rip]
	lea	rdi, .LC5[rip]
	cmove	rsi, rax
	xor	eax, eax
	call	DRM_DEBUG_KMS@PLT
	jmp	.L1
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	drm_dp_dual_mode_set_tmds_output, .-drm_dp_dual_mode_set_tmds_output
	.comm	EIO,4,4
	.comm	DRM_DP_DUAL_MODE_TYPE2_DVI,4,4
	.comm	DP_DUAL_MODE_TMDS_OEN,4,4
	.comm	DP_DUAL_MODE_TMDS_DISABLE,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_drm_dp_dual_mode_helper.c_drm_dp_dual_mode_set_tmds_output.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"enable\000"
	.align	2
.LC1:
	.ascii	"disable\000"
	.align	2
.LC2:
	.ascii	"enabling\000"
	.align	2
.LC3:
	.ascii	"disabling\000"
	.align	2
.LC4:
	.ascii	"Failed to %s TMDS output buffers (%d attempts)\012\000"
	.align	2
.LC5:
	.ascii	"I2C read failed during TMDS output buffer %s (%d at"
	.ascii	"tempts)\012\000"
	.align	2
.LC6:
	.ascii	"I2C write value mismatch during TMDS output buffer "
	.ascii	"%s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	drm_dp_dual_mode_set_tmds_output
	.syntax unified
	.arm
	.fpu softvfp
	.type	drm_dp_dual_mode_set_tmds_output, %function
drm_dp_dual_mode_set_tmds_output:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L24
	sub	sp, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	subs	r7, r2, #0
	movne	r2, #0
	ldreq	r3, .L24+4
	mov	r5, r1
	ldreq	r2, [r3]
	ldr	r3, .L24+8
	str	r2, [sp, #4]
	ldr	r3, [r3]
	cmp	r3, r0
	movhi	r4, #0
	bhi	.L1
	mov	r6, #0
	ldr	r8, .L24+12
.L9:
	mov	r3, #4
	mov	r0, r5
	ldr	r1, [r8]
	add	r2, sp, r3
	bl	drm_dp_dual_mode_write
	subs	r4, r0, #0
	bne	.L21
	mov	r3, #4
	mov	r0, r5
	ldr	r1, [r8]
	add	r2, sp, #8
	bl	drm_dp_dual_mode_read
	subs	r4, r0, #0
	bne	.L22
	ldr	r2, [sp, #8]
	ldr	r3, [sp, #4]
	cmp	r2, r3
	beq	.L1
	add	r6, r6, #1
	cmp	r6, #3
	bne	.L9
	ldr	r3, .L24+16
	cmp	r7, #0
	ldr	r1, .L24+20
	ldr	r0, .L24+24
	moveq	r1, r3
	bl	DRM_DEBUG_KMS
	ldr	r3, .L24+28
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	ldr	r3, .L24+32
	cmp	r7, #0
	ldr	r1, .L24+36
	add	r2, r6, #1
	moveq	r1, r3
	ldr	r0, .L24+40
	bl	DRM_DEBUG_KMS
	b	.L1
.L22:
	ldr	r3, .L24+16
	cmp	r7, #0
	ldr	r1, .L24+20
	add	r2, r6, #1
	moveq	r1, r3
	ldr	r0, .L24+44
	bl	DRM_DEBUG_KMS
	b	.L1
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC7
	.word	DP_DUAL_MODE_TMDS_DISABLE
	.word	DRM_DP_DUAL_MODE_TYPE2_DVI
	.word	DP_DUAL_MODE_TMDS_OEN
	.word	.LC3
	.word	.LC2
	.word	.LC6
	.word	EIO
	.word	.LC1
	.word	.LC0
	.word	.LC4
	.word	.LC5
	.size	drm_dp_dual_mode_set_tmds_output, .-drm_dp_dual_mode_set_tmds_output
	.comm	EIO,4,4
	.comm	DRM_DP_DUAL_MODE_TYPE2_DVI,4,4
	.comm	DP_DUAL_MODE_TMDS_OEN,4,4
	.comm	DP_DUAL_MODE_TMDS_DISABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
