	.file	"extr_inno_hdmi.c_inno_hdmi_i2c_xfer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"xfer: num: %d/%d, len: %d, flags: %#x\n"
	.text
	.p2align 4
	.type	inno_hdmi_i2c_xfer, @function
inno_hdmi_i2c_xfer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r15d, r15d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	lea	r14, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	i2c_get_adapdata@PLT
	mov	rbp, rax
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], rax
	call	mutex_lock@PLT
	mov	edx, DWORD PTR m_INT_EDID_READY[rip]
	mov	esi, DWORD PTR HDMI_INTERRUPT_MASK1[rip]
	mov	rdi, rbp
	call	hdmi_writeb@PLT
	mov	edx, DWORD PTR m_INT_EDID_READY[rip]
	mov	esi, DWORD PTR HDMI_INTERRUPT_STATUS1[rip]
	mov	rdi, rbp
	call	hdmi_writeb@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L10:
	call	inno_hdmi_i2c_read@PLT
	add	rbx, 8
	mov	r12d, eax
	test	r12d, r12d
	js	.L5
.L2:
	cmp	r15d, r13d
	jge	.L9
	mov	edi, DWORD PTR 0[rbp]
	mov	r9d, DWORD PTR [rbx]
	add	r15d, 1
	mov	rsi, r14
	mov	r8d, DWORD PTR 4[rbx]
	mov	ecx, r13d
	mov	edx, r15d
	call	DRM_DEV_DEBUG@PLT
	mov	eax, DWORD PTR [rbx]
	mov	rsi, rbx
	mov	rdi, rbp
	test	DWORD PTR I2C_M_RD[rip], eax
	jne	.L10
	call	inno_hdmi_i2c_write@PLT
	add	rbx, 8
	mov	r12d, eax
	test	r12d, r12d
	jns	.L2
.L5:
	mov	esi, DWORD PTR HDMI_INTERRUPT_MASK1[rip]
	mov	rdi, rbp
	xor	edx, edx
	call	hdmi_writeb@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	mutex_unlock@PLT
	add	rsp, 24
	.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
.L9:
	.cfi_restore_state
	test	r12d, r12d
	cmove	r12d, r13d
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	inno_hdmi_i2c_xfer, .-inno_hdmi_i2c_xfer
	.comm	m_INT_EDID_READY,4,4
	.comm	I2C_M_RD,4,4
	.comm	HDMI_INTERRUPT_STATUS1,4,4
	.comm	HDMI_INTERRUPT_MASK1,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_inno_hdmi.c_inno_hdmi_i2c_xfer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"xfer: num: %d/%d, len: %d, flags: %#x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	inno_hdmi_i2c_xfer, %function
inno_hdmi_i2c_xfer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r4, r1
	mov	r7, r2
	bl	i2c_get_adapdata
	mov	r6, r0
	mov	r5, #0
	ldr	r10, [r0, #4]
	ldr	r8, .L11
	mov	r0, r10
	bl	mutex_lock
	ldr	r3, .L11+4
	ldr	r2, [r8]
	ldr	r1, [r3]
	mov	r0, r6
	bl	hdmi_writeb
	ldr	r3, .L11+8
	ldr	r2, [r8]
	mov	r0, r6
	ldr	r1, [r3]
	bl	hdmi_writeb
	mov	fp, r5
	ldr	r9, .L11+12
	ldr	r8, .L11+16
	add	r4, r4, #4
	b	.L2
.L10:
	bl	inno_hdmi_i2c_read
	mov	r5, r0
	cmp	r5, #0
	add	r4, r4, #8
	blt	.L5
.L2:
	cmp	fp, r7
	add	fp, fp, #1
	bge	.L9
	ldmda	r4, {r1, r3}
	ldr	r0, [r6]
	mov	r2, fp
	str	r1, [sp, #4]
	str	r3, [sp]
	mov	r1, r9
	mov	r3, r7
	bl	DRM_DEV_DEBUG
	ldr	r0, [r4, #-4]
	ldr	r3, [r8]
	sub	r1, r4, #4
	tst	r0, r3
	mov	r0, r6
	bne	.L10
	bl	inno_hdmi_i2c_write
	mov	r5, r0
	cmp	r5, #0
	add	r4, r4, #8
	bge	.L2
.L5:
	ldr	r3, .L11+4
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r6
	bl	hdmi_writeb
	mov	r0, r10
	bl	mutex_unlock
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	cmp	r5, #0
	moveq	r5, r7
	b	.L5
.L12:
	.align	2
.L11:
	.word	m_INT_EDID_READY
	.word	HDMI_INTERRUPT_MASK1
	.word	HDMI_INTERRUPT_STATUS1
	.word	.LC0
	.word	I2C_M_RD
	.size	inno_hdmi_i2c_xfer, .-inno_hdmi_i2c_xfer
	.comm	m_INT_EDID_READY,4,4
	.comm	I2C_M_RD,4,4
	.comm	HDMI_INTERRUPT_STATUS1,4,4
	.comm	HDMI_INTERRUPT_MASK1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
