	.file	"extr_radeon_combios.c_radeon_combios_external_tmds_setup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Unknown id %d\n"
	.text
	.p2align 4
	.globl	radeon_combios_external_tmds_setup
	.type	radeon_combios_external_tmds_setup, @function
radeon_combios_external_tmds_setup:
.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, 24
	.cfi_def_cfa_offset 80
	mov	rbp, QWORD PTR [rdi]
	mov	rbx, QWORD PTR 0[rbp]
	call	to_radeon_encoder@PLT
	mov	r13, QWORD PTR [rax]
	test	r13, r13
	je	.L2
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR RADEON_IS_IGP[rip], eax
	je	.L3
	mov	esi, DWORD PTR COMBIOS_TMDS_POWER_ON_TABLE[rip]
	mov	rdi, rbp
	call	combios_get_table_offset@PLT
	mov	ebx, eax
	mov	edi, eax
	call	RBIOS8@PLT
	test	ebx, ebx
	jne	.L41
.L2:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR COMBIOS_EXT_TMDS_INFO_TABLE[rip]
	mov	rdi, rbp
	call	combios_get_table_offset@PLT
	test	eax, eax
	je	.L2
	lea	r12d, 10[rax]
	mov	edi, r12d
	call	RBIOS16@PLT
	mov	ebx, eax
	cmp	eax, 65535
	je	.L14
	lea	r14, .L17[rip]
	.p2align 4,,10
	.p2align 3
.L23:
	mov	esi, ebx
	lea	r15d, 2[r12]
	sar	esi, 13
	cmp	ebx, 57343
	ja	.L15
	mov	eax, esi
	movsx	rax, DWORD PTR [r14+rax*4]
	add	rax, r14
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L17:
	.long	.L21-.L17
	.long	.L15-.L17
	.long	.L20-.L17
	.long	.L15-.L17
	.long	.L19-.L17
	.long	.L18-.L17
	.long	.L16-.L17
	.text
	.p2align 4,,10
	.p2align 3
.L41:
	mov	edi, ebx
	call	RBIOS8@PLT
	cmp	eax, 1
	jle	.L2
	lea	edi, 3[rbx]
	lea	r14, .L8[rip]
	add	ebx, 4
	call	RBIOS8@PLT
	mov	r12d, eax
	test	eax, eax
	jle	.L14
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, ebx
	lea	r15d, 2[rbx]
	call	RBIOS16@PLT
	mov	esi, eax
	mov	ebp, eax
	sar	esi, 13
	cmp	eax, 57343
	ja	.L6
	mov	eax, esi
	movsx	rax, DWORD PTR [r14+rax*4]
	add	rax, r14
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L8:
	.long	.L12-.L8
	.long	.L6-.L8
	.long	.L11-.L8
	.long	.L10-.L8
	.long	.L9-.L8
	.long	.L6-.L8
	.long	.L7-.L8
	.text
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, r15d
	add	r12d, 3
	call	RBIOS8@PLT
	mov	edx, ebx
	mov	edi, DWORD PTR 4[r13]
	mov	esi, DWORD PTR 0[r13]
	mov	ecx, eax
	and	edx, 8191
	call	radeon_i2c_put_byte@PLT
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edi, r12d
	call	RBIOS16@PLT
	mov	ebx, eax
	cmp	eax, 65535
	jne	.L23
.L14:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, 1
	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
.L18:
	.cfi_restore_state
	and	ebx, 8191
	mov	edi, r15d
	call	RBIOS32@PLT
	mov	ebp, ebx
	lea	edi, 6[r12]
	add	r12d, 10
	mov	r15d, eax
	call	RBIOS32@PLT
	mov	edi, ebp
	mov	ebx, eax
	call	RREG32_PLL@PLT
	mov	esi, r15d
	mov	edi, ebp
	and	esi, eax
	or	esi, ebx
	call	WREG32_PLL@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, r15d
	add	r12d, 4
	call	RBIOS16@PLT
	mov	edi, eax
	call	udelay@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L20:
	and	ebx, 8191
	mov	edi, r15d
	call	RBIOS32@PLT
	lea	ebp, 0[0+rbx*4]
	lea	edi, 6[r12]
	add	r12d, 10
	mov	r15d, eax
	call	RBIOS32@PLT
	mov	edi, ebp
	mov	ebx, eax
	call	RREG32@PLT
	mov	esi, r15d
	mov	edi, ebp
	and	esi, eax
	or	esi, ebx
	call	WREG32@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rdi, .LC0[rip]
	mov	r12d, r15d
	call	DRM_ERROR@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edi, r15d
	mov	r12d, r15d
	call	RBIOS32@PLT
	lea	edi, 0[0+rbx*4]
	mov	esi, eax
	call	WREG32@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L7:
	lea	edi, 3[rbx]
	call	RBIOS8@PLT
	lea	edi, 4[rbx]
	add	ebx, 5
	mov	r15d, eax
	call	RBIOS8@PLT
	mov	esi, ebp
	mov	edi, DWORD PTR 4[r13]
	mov	edx, r15d
	sar	esi
	mov	ecx, eax
	and	esi, 127
	call	radeon_i2c_put_byte@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	sub	r12d, 1
	jne	.L4
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, r15d
	add	ebx, 4
	call	RBIOS16@PLT
	mov	edi, eax
	call	mdelay@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, r15d
	add	ebx, 4
	call	RBIOS16@PLT
	mov	edi, eax
	call	udelay@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, r15d
	and	ebp, 8191
	call	RBIOS32@PLT
	sal	ebp, 2
	lea	edi, 6[rbx]
	add	ebx, 10
	mov	r15d, eax
	call	RBIOS32@PLT
	mov	edi, ebp
	mov	DWORD PTR 12[rsp], eax
	call	RREG32@PLT
	mov	esi, r15d
	mov	edi, ebp
	and	esi, eax
	or	esi, DWORD PTR 12[rsp]
	call	WREG32@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, r15d
	add	ebx, 6
	call	RBIOS32@PLT
	lea	edi, 0[0+rbp*4]
	mov	esi, eax
	call	WREG32@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rdi, .LC0[rip]
	mov	ebx, r15d
	call	DRM_ERROR@PLT
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	radeon_combios_external_tmds_setup, .-radeon_combios_external_tmds_setup
	.comm	RADEON_IS_IGP,4,4
	.comm	COMBIOS_TMDS_POWER_ON_TABLE,4,4
	.comm	COMBIOS_EXT_TMDS_INFO_TABLE,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_combios.c_radeon_combios_external_tmds_setup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unknown id %d\012\000"
	.text
	.align	2
	.global	radeon_combios_external_tmds_setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	radeon_combios_external_tmds_setup, %function
radeon_combios_external_tmds_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, [r0]
	ldr	r5, [r4]
	bl	to_radeon_encoder
	ldr	r6, [r0]
	cmp	r6, #0
	beq	.L2
	ldr	r3, .L39
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L3
	ldr	r3, .L39+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	combios_get_table_offset
	mov	r4, r0
	bl	RBIOS8
	cmp	r4, #0
	bne	.L38
.L2:
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r3, .L39+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	combios_get_table_offset
	cmp	r0, #0
	beq	.L2
	add	r5, r0, #10
	mov	r0, r5
	bl	RBIOS16
	ldr	r8, .L39+12
	mov	r4, r0
	cmp	r0, r8
	beq	.L14
	ldr	r10, .L39+16
	ldr	r9, .L39+20
.L23:
	asr	r1, r4, #13
	add	r7, r5, #2
	cmp	r1, #6
	ldrls	pc, [pc, r1, asl #2]
	b	.L15
.L17:
	.word	.L21
	.word	.L15
	.word	.L20
	.word	.L15
	.word	.L19
	.word	.L18
	.word	.L16
.L38:
	mov	r0, r4
	bl	RBIOS8
	cmp	r0, #1
	ble	.L2
	add	r0, r4, #3
	bl	RBIOS8
	subs	r7, r0, #0
	add	r4, r4, #4
	ble	.L14
	ldr	r9, .L39+16
	ldr	r8, .L39+20
.L4:
	mov	r0, r4
	bl	RBIOS16
	asr	r1, r0, #13
	mov	r5, r0
	add	r3, r4, #2
	cmp	r1, #6
	ldrls	pc, [pc, r1, asl #2]
	b	.L6
.L8:
	.word	.L12
	.word	.L6
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L6
	.word	.L7
.L16:
	mov	r0, r7
	bl	RBIOS8
	ldr	r1, [r6]
	mov	r3, r0
	and	r2, r4, r9
	ldr	r0, [r6, #4]
	add	r5, r5, #3
	bl	radeon_i2c_put_byte
.L22:
	mov	r0, r5
	bl	RBIOS16
	cmp	r0, r8
	mov	r4, r0
	bne	.L23
.L14:
	mov	r0, #1
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	mov	r0, r7
	bl	RBIOS32
	mov	r7, r0
	add	r0, r5, #6
	bl	RBIOS32
	and	r4, r4, r9
	mov	fp, r0
	mov	r0, r4
	bl	RREG32_PLL
	and	r7, r7, r0
	orr	r1, r7, fp
	mov	r0, r4
	add	r5, r5, #10
	bl	WREG32_PLL
	b	.L22
.L19:
	mov	r0, r7
	bl	RBIOS16
	add	r5, r5, #4
	bl	udelay
	b	.L22
.L20:
	mov	r0, r7
	bl	RBIOS32
	mov	r7, r0
	add	r0, r5, #6
	bl	RBIOS32
	and	r4, r4, r9
	lsl	r4, r4, #2
	mov	fp, r0
	mov	r0, r4
	bl	RREG32
	and	r7, r7, r0
	orr	r1, r7, fp
	mov	r0, r4
	add	r5, r5, #10
	bl	WREG32
	b	.L22
.L15:
	mov	r0, r10
	mov	r5, r7
	bl	DRM_ERROR
	b	.L22
.L21:
	mov	r0, r7
	bl	RBIOS32
	mov	r1, r0
	lsl	r0, r4, #2
	bl	WREG32
	mov	r5, r7
	b	.L22
.L7:
	add	r0, r4, #3
	bl	RBIOS8
	mov	r10, r0
	add	r0, r4, #4
	bl	RBIOS8
	asr	r1, r5, #1
	mov	r3, r0
	mov	r2, r10
	ldr	r0, [r6, #4]
	and	r1, r1, #127
	add	r4, r4, #5
	bl	radeon_i2c_put_byte
.L13:
	subs	r7, r7, #1
	bne	.L4
	b	.L14
.L9:
	mov	r0, r3
	bl	RBIOS16
	add	r4, r4, #4
	bl	mdelay
	b	.L13
.L10:
	mov	r0, r3
	bl	RBIOS16
	add	r4, r4, #4
	bl	udelay
	b	.L13
.L11:
	mov	r0, r3
	bl	RBIOS32
	mov	r10, r0
	add	r0, r4, #6
	bl	RBIOS32
	and	r5, r5, r8
	lsl	r5, r5, #2
	mov	fp, r0
	mov	r0, r5
	bl	RREG32
	and	r10, r10, r0
	orr	r1, r10, fp
	mov	r0, r5
	add	r4, r4, #10
	bl	WREG32
	b	.L13
.L12:
	mov	r0, r3
	bl	RBIOS32
	mov	r1, r0
	lsl	r0, r5, #2
	add	r4, r4, #6
	bl	WREG32
	b	.L13
.L6:
	mov	r0, r9
	mov	r4, r3
	bl	DRM_ERROR
	b	.L13
.L40:
	.align	2
.L39:
	.word	RADEON_IS_IGP
	.word	COMBIOS_TMDS_POWER_ON_TABLE
	.word	COMBIOS_EXT_TMDS_INFO_TABLE
	.word	65535
	.word	.LC0
	.word	8191
	.size	radeon_combios_external_tmds_setup, .-radeon_combios_external_tmds_setup
	.comm	RADEON_IS_IGP,4,4
	.comm	COMBIOS_TMDS_POWER_ON_TABLE,4,4
	.comm	COMBIOS_EXT_TMDS_INFO_TABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
