	.file	"extr_solo6x10-i2c.c_solo_i2c_isr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	solo_i2c_isr
	.type	solo_i2c_isr, @function
solo_i2c_isr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, DWORD PTR SOLO_IIC_CTRL[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	solo_reg_read@PLT
	mov	esi, DWORD PTR SOLO_IIC_STATE_TRNS[rip]
	or	esi, DWORD PTR SOLO_IIC_STATE_SIG_ERR[rip]
	mov	rdi, rax
	mov	r12d, DWORD PTR EINVAL[rip]
	call	CHK_FLAGS@PLT
	test	rax, rax
	jne	.L2
	cmp	QWORD PTR 0[rbp], 0
	js	.L2
	mov	eax, DWORD PTR 8[rbp]
	cmp	eax, 129
	je	.L5
	cmp	eax, 130
	je	.L6
	cmp	eax, 128
	je	.L7
	neg	r12d
	mov	rdi, rbp
	call	solo_i2c_stop@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rbp]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR I2C_M_RD[rip], eax
	jne	.L17
	mov	DWORD PTR 8[rbp], 128
.L7:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	solo_i2c_handle_write@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	solo_i2c_stop@PLT
	mov	r12d, DWORD PTR ENXIO[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rbp]
	mov	rdx, QWORD PTR 16[rbp]
	mov	rdi, rbp
	mov	esi, DWORD PTR SOLO_IIC_RXD[rip]
	mov	rax, QWORD PTR 8[rax]
	lea	rbx, [rax+rdx*8]
	call	solo_reg_read@PLT
	mov	QWORD PTR [rbx], rax
	add	QWORD PTR 16[rbp], 1
.L15:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	solo_i2c_handle_read@PLT
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	DWORD PTR 8[rbp], 130
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	solo_i2c_isr, .-solo_i2c_isr
	.comm	SOLO_IIC_STATE_TRNS,4,4
	.comm	SOLO_IIC_STATE_SIG_ERR,4,4
	.comm	SOLO_IIC_RXD,4,4
	.comm	SOLO_IIC_CTRL,4,4
	.comm	I2C_M_RD,4,4
	.comm	ENXIO,4,4
	.comm	EINVAL,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_solo6x10-i2c.c_solo_i2c_isr.c"
	.text
	.align	2
	.global	solo_i2c_isr
	.syntax unified
	.arm
	.fpu softvfp
	.type	solo_i2c_isr, %function
solo_i2c_isr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L17
	push	{r4, r5, r6, lr}
	ldr	r1, [r3]
	mov	r4, r0
	bl	solo_reg_read
	ldr	r2, .L17+4
	ldr	r3, .L17+8
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L17+12
	orr	r1, r1, r2
	ldr	r5, [r3]
	bl	CHK_FLAGS
	cmp	r0, #0
	bne	.L2
	ldr	r3, [r4]
	cmp	r3, #0
	blt	.L2
	ldr	r3, [r4, #4]
	cmp	r3, #129
	beq	.L5
	cmp	r3, #130
	beq	.L6
	cmp	r3, #128
	beq	.L7
	mov	r0, r4
	rsb	r5, r5, #0
	bl	solo_i2c_stop
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r2, [r4, #12]
	ldr	r3, .L17+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	moveq	r3, #128
	streq	r3, [r4, #4]
	bne	.L16
.L7:
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	solo_i2c_handle_write
.L2:
	mov	r0, r4
	bl	solo_i2c_stop
	ldr	r3, .L17+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r2, .L17+24
	ldr	r3, [r4, #12]
	mov	r0, r4
	ldr	r1, [r2]
	ldr	r5, [r3, #4]
	ldr	r6, [r4, #8]
	bl	solo_reg_read
	ldr	r3, [r4, #8]
	str	r0, [r5, r6, lsl #2]
	add	r3, r3, #1
	mov	r0, r4
	str	r3, [r4, #8]
	pop	{r4, r5, r6, lr}
	b	solo_i2c_handle_read
.L16:
	mov	r3, #130
	mov	r0, r4
	str	r3, [r4, #4]
	pop	{r4, r5, r6, lr}
	b	solo_i2c_handle_read
.L18:
	.align	2
.L17:
	.word	SOLO_IIC_CTRL
	.word	SOLO_IIC_STATE_TRNS
	.word	SOLO_IIC_STATE_SIG_ERR
	.word	EINVAL
	.word	I2C_M_RD
	.word	ENXIO
	.word	SOLO_IIC_RXD
	.size	solo_i2c_isr, .-solo_i2c_isr
	.comm	SOLO_IIC_STATE_TRNS,4,4
	.comm	SOLO_IIC_STATE_SIG_ERR,4,4
	.comm	SOLO_IIC_RXD,4,4
	.comm	SOLO_IIC_CTRL,4,4
	.comm	I2C_M_RD,4,4
	.comm	ENXIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
