	.file	"extr_radeon_combios.c_radeon_combios_get_i2c_info_from_table.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	radeon_combios_get_i2c_info_from_table, @function
radeon_combios_get_i2c_info_from_table:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, DWORD PTR COMBIOS_I2C_INFO_TABLE[rip]
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rdi, QWORD PTR [rdi]
	call	combios_get_table_offset@PLT
	test	rax, rax
	jne	.L2
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdi, 2[rax]
	mov	rbp, rax
	call	RBIOS8@PLT
	test	eax, eax
	jle	.L4
	sub	eax, 1
	lea	rbx, 3[rbp]
	lea	rax, [rax+rax*4]
	lea	rbp, 8[rbp+rax]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	add	rbx, 5
	cmp	rbx, rbp
	je	.L4
.L6:
	mov	rdi, rbx
	call	RBIOS8@PLT
	cmp	eax, 136
	jne	.L5
	lea	rdi, 3[rbx]
	call	RBIOS8@PLT
	lea	rdi, 4[rbx]
	mov	ebp, eax
	call	RBIOS8@PLT
	mov	edx, 1
	mov	esi, DWORD PTR DDC_MONID[rip]
	mov	rdi, r12
	mov	ecx, eax
	mov	r8d, edx
	sal	r8d, cl
	mov	ecx, ebp
	sal	edx, cl
	mov	ecx, r8d
	call	combios_setup_i2c_bus@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	radeon_combios_get_i2c_info_from_table, .-radeon_combios_get_i2c_info_from_table
	.comm	DDC_MONID,4,4
	.comm	COMBIOS_I2C_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_get_i2c_info_from_table.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	radeon_combios_get_i2c_info_from_table, %function
radeon_combios_get_i2c_info_from_table:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L10
	push	{r4, r5, r6, lr}
	ldr	r1, [r3]
	mov	r6, r0
	ldr	r0, [r0]
	bl	combios_get_table_offset
	subs	r4, r0, #0
	bne	.L2
.L4:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	add	r0, r4, #2
	bl	RBIOS8
	subs	r5, r0, #0
	ble	.L4
	add	r4, r4, #3
	add	r5, r5, r5, lsl #2
	add	r5, r4, r5
	b	.L6
.L5:
	add	r4, r4, #5
	cmp	r4, r5
	beq	.L4
.L6:
	mov	r0, r4
	bl	RBIOS8
	cmp	r0, #136
	bne	.L5
	add	r0, r4, #3
	bl	RBIOS8
	mov	r2, r0
	add	r0, r4, #4
	mov	r4, r2
	bl	RBIOS8
	mov	r3, #1
	mov	ip, r0
	ldr	r1, .L10+4
	lsl	r2, r3, r4
	mov	r0, r6
	ldr	r1, [r1]
	lsl	r3, r3, ip
	bl	combios_setup_i2c_bus
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	COMBIOS_I2C_INFO_TABLE
	.word	DDC_MONID
	.size	radeon_combios_get_i2c_info_from_table, .-radeon_combios_get_i2c_info_from_table
	.comm	DDC_MONID,4,4
	.comm	COMBIOS_I2C_INFO_TABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
