	.file	"extr_i2c-qup.c_qup_i2c_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qup_i2c_interrupt, @function
qup_i2c_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rdi, QWORD PTR QUP_I2C_STATUS[rip]
	add	rdi, QWORD PTR 48[rsi]
	call	readl@PLT
	mov	rdi, QWORD PTR QUP_ERROR_FLAGS[rip]
	add	rdi, QWORD PTR 48[rbx]
	mov	r12d, eax
	call	readl@PLT
	mov	rdi, QWORD PTR QUP_OPERATIONAL[rip]
	add	rdi, QWORD PTR 48[rbx]
	mov	ebp, eax
	call	readl@PLT
	cmp	QWORD PTR 16[rbx], 0
	je	.L43
	mov	r13d, eax
	and	r12d, DWORD PTR I2C_STATUS_ERROR_MASK[rip]
	and	ebp, DWORD PTR QUP_STATUS_ERROR_FLAGS[rip]
	jne	.L44
.L4:
	test	r12d, r12d
	jne	.L45
	cmp	QWORD PTR 80[rbx], 0
	jne	.L46
	test	ebp, ebp
	jne	.L7
	mov	edi, DWORD PTR QUP_OUT_SVC_FLAG[rip]
	test	edi, r13d
	jne	.L47
.L14:
	mov	edi, DWORD PTR QUP_IN_SVC_FLAG[rip]
	test	edi, r13d
	jne	.L48
.L18:
	mov	rax, QWORD PTR 16[rbx]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR I2C_M_RD[rip], eax
	je	.L21
	mov	eax, DWORD PTR 96[rbx]
	test	eax, eax
	je	.L40
.L12:
	mov	DWORD PTR [rbx], ebp
	lea	rdi, 8[rbx]
	mov	DWORD PTR 4[rbx], r12d
	call	complete@PLT
.L40:
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L46:
	.cfi_restore_state
	cmp	QWORD PTR [rbx], 0
	jne	.L40
	test	ebp, ebp
	jne	.L12
	mov	edi, DWORD PTR QUP_OUT_SVC_FLAG[rip]
	test	edi, r13d
	je	.L14
.L47:
	mov	rsi, QWORD PTR QUP_OPERATIONAL[rip]
	add	rsi, QWORD PTR 48[rbx]
	call	writel@PLT
	test	DWORD PTR OUT_BLOCK_WRITE_REQ[rip], r13d
	je	.L14
	mov	rax, QWORD PTR 72[rbx]
	add	DWORD PTR 108[rbx], eax
	mov	rdi, rbx
	mov	rax, QWORD PTR 16[rbx]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR I2C_M_RD[rip], eax
	je	.L16
	call	[QWORD PTR 64[rbx]]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L45:
	mov	rsi, QWORD PTR QUP_I2C_STATUS[rip]
	mov	edi, r12d
	add	rsi, QWORD PTR 48[rbx]
	call	writel@PLT
	cmp	QWORD PTR 80[rbx], 0
	je	.L7
	cmp	QWORD PTR [rbx], 0
	je	.L12
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L44:
	mov	rsi, QWORD PTR QUP_ERROR_FLAGS[rip]
	mov	edi, ebp
	add	rsi, QWORD PTR 48[rbx]
	call	writel@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L21:
	cmp	QWORD PTR 88[rbx], 0
	je	.L12
	test	DWORD PTR QUP_MX_OUTPUT_DONE[rip], r13d
	jne	.L12
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L48:
	mov	rsi, QWORD PTR QUP_OPERATIONAL[rip]
	add	rsi, QWORD PTR 48[rbx]
	call	writel@PLT
	mov	edx, DWORD PTR 104[rbx]
	test	edx, edx
	jne	.L19
	mov	rax, QWORD PTR 40[rbx]
	mov	rdi, rbx
	add	DWORD PTR 100[rbx], eax
	call	[QWORD PTR 24[rbx]]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L43:
	mov	edi, DWORD PTR QUP_RESET_STATE[rip]
	mov	rsi, QWORD PTR QUP_STATE[rip]
	add	rsi, QWORD PTR 48[rbx]
	call	writel@PLT
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, DWORD PTR QUP_RESET_STATE[rip]
	mov	rsi, QWORD PTR QUP_STATE[rip]
	add	rsi, QWORD PTR 48[rbx]
	call	writel@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L19:
	test	DWORD PTR IN_BLOCK_READ_REQ[rip], r13d
	je	.L18
	mov	rax, QWORD PTR 32[rbx]
	mov	rdi, rbx
	add	DWORD PTR 100[rbx], eax
	call	[QWORD PTR 24[rbx]]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L16:
	call	[QWORD PTR 56[rbx]]
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	qup_i2c_interrupt, .-qup_i2c_interrupt
	.comm	QUP_STATUS_ERROR_FLAGS,4,4
	.comm	QUP_STATE,8,8
	.comm	QUP_RESET_STATE,4,4
	.comm	QUP_OUT_SVC_FLAG,4,4
	.comm	QUP_OPERATIONAL,8,8
	.comm	QUP_MX_OUTPUT_DONE,4,4
	.comm	QUP_IN_SVC_FLAG,4,4
	.comm	QUP_I2C_STATUS,8,8
	.comm	QUP_ERROR_FLAGS,8,8
	.comm	OUT_BLOCK_WRITE_REQ,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	IN_BLOCK_READ_REQ,4,4
	.comm	I2C_STATUS_ERROR_MASK,4,4
	.comm	I2C_M_RD,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_i2c-qup.c_qup_i2c_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qup_i2c_interrupt, %function
qup_i2c_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r10, .L54
	ldr	r0, [r1, #28]
	ldr	r3, [r10]
	mov	r4, r1
	add	r0, r0, r3
	bl	readl
	ldr	r8, .L54+4
	ldr	r2, [r4, #28]
	ldr	r3, [r8]
	mov	r5, r0
	add	r0, r2, r3
	bl	readl
	ldr	r9, .L54+8
	ldr	r1, [r4, #28]
	ldr	r2, [r9]
	mov	r6, r0
	add	r0, r1, r2
	bl	readl
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L50
	ldr	r3, .L54+12
	ldr	r2, .L54+16
	ldr	r3, [r3]
	mov	r7, r0
	ldr	r0, [r2]
	ands	r6, r6, r3
	and	r5, r5, r0
	bne	.L51
.L4:
	cmp	r5, #0
	bne	.L52
	ldr	r3, [r4, #44]
	cmp	r3, #0
	bne	.L9
	cmp	r6, #0
	bne	.L6
.L24:
	ldr	r3, .L54+20
	ldr	r0, [r3]
	tst	r0, r7
	bne	.L13
.L46:
	ldr	r8, .L54+24
.L14:
	ldr	r3, .L54+28
	ldr	r0, [r3]
	tst	r0, r7
	bne	.L53
.L18:
	ldr	r2, [r4, #12]
	ldr	r3, [r8]
	ldr	r2, [r2]
	tst	r2, r3
	beq	.L21
	ldr	r3, [r4, #52]
	cmp	r3, #0
	beq	.L48
.L12:
	str	r6, [r4]
	str	r5, [r4, #4]
	add	r0, r4, #8
	bl	complete
.L48:
	ldr	r3, .L54+32
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L52:
	ldr	r3, [r10]
	ldr	r1, [r4, #28]
	mov	r0, r5
	add	r1, r1, r3
	bl	writel
	ldr	r3, [r4, #44]
	cmp	r3, #0
	beq	.L6
.L9:
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L48
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L48
	orrs	r3, r5, r6
	bne	.L12
	b	.L24
.L51:
	ldr	r3, [r8]
	ldr	r1, [r4, #28]
	mov	r0, r6
	add	r1, r1, r3
	bl	writel
	b	.L4
.L21:
	ldr	r3, [r4, #48]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L54+36
	ldr	r3, [r3]
	tst	r7, r3
	bne	.L12
	b	.L48
.L6:
	ldr	r3, .L54+40
	ldr	r1, [r4, #28]
	ldr	r2, [r3]
	ldr	r3, .L54+44
	add	r1, r1, r2
	ldr	r0, [r3]
	bl	writel
	b	.L12
.L13:
	ldr	r3, [r9]
	ldr	r1, [r4, #28]
	add	r1, r1, r3
	bl	writel
	ldr	r3, .L54+48
	ldr	r3, [r3]
	tst	r7, r3
	beq	.L46
	ldr	r3, [r4, #12]
	ldr	r8, .L54+24
	ldr	r1, [r3]
	ldr	r2, [r8]
	ldr	r3, [r4, #64]
	tst	r1, r2
	ldr	r2, [r4, #40]
	mov	r0, r4
	add	r3, r3, r2
	str	r3, [r4, #64]
	ldrne	r3, [r4, #36]
	ldreq	r3, [r4, #32]
	blx	r3
	b	.L14
.L53:
	ldr	r3, [r9]
	ldr	r1, [r4, #28]
	add	r1, r1, r3
	bl	writel
	ldr	r3, [r4, #60]
	cmp	r3, #0
	bne	.L19
	ldr	r3, [r4, #56]
	ldr	r1, [r4, #24]
.L47:
	add	r3, r3, r1
	mov	r0, r4
	ldr	r2, [r4, #16]
	str	r3, [r4, #56]
	blx	r2
	b	.L18
.L50:
	ldr	r3, .L54+40
	ldr	r1, [r4, #28]
	ldr	r2, [r3]
	ldr	r3, .L54+44
	add	r1, r1, r2
	ldr	r0, [r3]
	bl	writel
	ldr	r3, .L54+32
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	ldr	r3, .L54+52
	ldr	r3, [r3]
	tst	r7, r3
	beq	.L18
	ldr	r3, [r4, #56]
	ldr	r1, [r4, #20]
	b	.L47
.L55:
	.align	2
.L54:
	.word	QUP_I2C_STATUS
	.word	QUP_ERROR_FLAGS
	.word	QUP_OPERATIONAL
	.word	QUP_STATUS_ERROR_FLAGS
	.word	I2C_STATUS_ERROR_MASK
	.word	QUP_OUT_SVC_FLAG
	.word	I2C_M_RD
	.word	QUP_IN_SVC_FLAG
	.word	IRQ_HANDLED
	.word	QUP_MX_OUTPUT_DONE
	.word	QUP_STATE
	.word	QUP_RESET_STATE
	.word	OUT_BLOCK_WRITE_REQ
	.word	IN_BLOCK_READ_REQ
	.size	qup_i2c_interrupt, .-qup_i2c_interrupt
	.comm	QUP_STATUS_ERROR_FLAGS,4,4
	.comm	QUP_STATE,4,4
	.comm	QUP_RESET_STATE,4,4
	.comm	QUP_OUT_SVC_FLAG,4,4
	.comm	QUP_OPERATIONAL,4,4
	.comm	QUP_MX_OUTPUT_DONE,4,4
	.comm	QUP_IN_SVC_FLAG,4,4
	.comm	QUP_I2C_STATUS,4,4
	.comm	QUP_ERROR_FLAGS,4,4
	.comm	OUT_BLOCK_WRITE_REQ,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	IN_BLOCK_READ_REQ,4,4
	.comm	I2C_STATUS_ERROR_MASK,4,4
	.comm	I2C_M_RD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
