	.file	"extr_melfas_mip4.c_mip4_interrupt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to read packet info: %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"packet size: %d, alert: %d\n"
.LC2:
	.string	"Empty packet\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"Failed to read packet data: %d\n"
	.section	.rodata.str1.1
.LC4:
	.string	"Alert: %d\n"
	.text
	.p2align 4
	.type	mip4_interrupt, @function
mip4_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r8d, 1
	mov	edx, 8
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	mov	rdi, rbx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rcx, QWORD PTR [rsi]
	mov	r13, QWORD PTR 24[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR MIP4_R0_EVENT[rip]
	mov	rbp, rsp
	mov	rsi, rbp
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR MIP4_R1_EVENT_PACKET_INFO[rip]
	mov	DWORD PTR 4[rsp], eax
	call	mip4_i2c_xfer@PLT
	test	eax, eax
	jne	.L14
	mov	rax, QWORD PTR [rbx]
	mov	edi, 7
	mov	r14d, DWORD PTR [rax]
	call	BIT@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	mov	r12d, r14d
	and	r14d, eax
	xor	eax, eax
	and	r12d, 127
	mov	ecx, r14d
	mov	edx, r12d
	call	dev_dbg@PLT
	test	r12d, r12d
	je	.L15
	mov	eax, DWORD PTR MIP4_R0_EVENT[rip]
	mov	rcx, QWORD PTR [rbx]
	mov	r8d, r12d
	mov	rsi, rbp
	mov	edx, 8
	mov	rdi, rbx
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR MIP4_R1_EVENT_PACKET_DATA[rip]
	mov	DWORD PTR 4[rsp], eax
	call	mip4_i2c_xfer@PLT
	test	eax, eax
	jne	.L16
	mov	rax, QWORD PTR [rbx]
	xor	ebp, ebp
	test	r14d, r14d
	je	.L6
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rax, QWORD PTR [rbx]
.L6:
	mov	edx, ebp
	mov	rdi, rbx
	lea	rsi, [rax+rdx*4]
	call	mip4_handle_packet@PLT
	test	eax, eax
	jne	.L7
	add	ebp, DWORD PTR 16[rbx]
	cmp	r12d, ebp
	ja	.L18
.L7:
	mov	edi, DWORD PTR 8[rbx]
	call	input_sync@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
.L3:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	jne	.L19
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	edx, eax
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edx, DWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_dbg@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edx, eax
	lea	rsi, .LC3[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L3
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mip4_interrupt, .-mip4_interrupt
	.comm	MIP4_R1_EVENT_PACKET_INFO,4,4
	.comm	MIP4_R1_EVENT_PACKET_DATA,4,4
	.comm	MIP4_R0_EVENT,4,4
	.comm	IRQ_HANDLED,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_melfas_mip4.c_mip4_interrupt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to read packet info: %d\012\000"
	.align	2
.LC1:
	.ascii	"packet size: %d, alert: %d\012\000"
	.align	2
.LC2:
	.ascii	"Empty packet\012\000"
	.align	2
.LC3:
	.ascii	"Failed to read packet data: %d\012\000"
	.align	2
.LC4:
	.ascii	"Alert: %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mip4_interrupt, %function
mip4_interrupt:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	lr, #1
	mov	r4, r1
	ldr	r3, .L18
	ldr	r7, .L18+4
	sub	sp, sp, #24
	ldr	ip, [r3]
	ldr	r2, [r7]
	ldr	r3, [r1]
	str	lr, [sp]
	ldr	lr, .L18+8
	mov	r0, r1
	ldr	lr, [lr]
	str	lr, [sp, #20]
	mov	lr,#0
	add	r1, sp, #12
	str	r2, [sp, #12]
	mov	r2, #8
	ldr	r8, [r4, #12]
	str	ip, [sp, #16]
	bl	mip4_i2c_xfer
	subs	r2, r0, #0
	bne	.L12
	ldr	r3, [r4]
	mov	r0, #7
	ldr	r5, [r3]
	bl	BIT
	and	r6, r5, #127
	and	r5, r5, r0
	mov	r3, r5
	mov	r2, r6
	mov	r0, r8
	ldr	r1, .L18+12
	bl	dev_dbg
	cmp	r6, #0
	beq	.L13
	ldr	r3, .L18+16
	ldr	r0, [r7]
	ldr	ip, [r3]
	str	r6, [sp]
	mov	r2, #8
	str	r0, [sp, #12]
	ldr	r3, [r4]
	mov	r0, r4
	add	r1, sp, #12
	str	ip, [sp, #16]
	bl	mip4_i2c_xfer
	subs	r2, r0, #0
	bne	.L14
	cmp	r5, #0
	ldr	r1, [r4]
	beq	.L6
	b	.L15
.L16:
	ldr	r1, [r4]
.L6:
	mov	r0, r4
	add	r1, r1, r5, lsl #2
	bl	mip4_handle_packet
	cmp	r0, #0
	bne	.L7
	ldr	r3, [r4, #8]
	add	r5, r5, r3
	cmp	r6, r5
	bhi	.L16
.L7:
	ldr	r0, [r4, #4]
	bl	input_sync
	b	.L3
.L13:
	mov	r0, r8
	ldr	r1, .L18+20
	bl	dev_err
.L3:
	ldr	r3, .L18+24
	ldr	r0, [r3]
	ldr	r3, .L18+8
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	mov	r0, r8
	ldr	r1, .L18+28
	bl	dev_err
	b	.L3
.L15:
	ldr	r2, [r1]
	mov	r0, r8
	ldr	r1, .L18+32
	bl	dev_dbg
	b	.L3
.L14:
	mov	r0, r8
	ldr	r1, .L18+36
	bl	dev_err
	b	.L3
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	MIP4_R1_EVENT_PACKET_INFO
	.word	MIP4_R0_EVENT
	.word	.LC5
	.word	.LC1
	.word	MIP4_R1_EVENT_PACKET_DATA
	.word	.LC2
	.word	IRQ_HANDLED
	.word	.LC0
	.word	.LC4
	.word	.LC3
	.size	mip4_interrupt, .-mip4_interrupt
	.comm	MIP4_R1_EVENT_PACKET_INFO,4,4
	.comm	MIP4_R1_EVENT_PACKET_DATA,4,4
	.comm	MIP4_R0_EVENT,4,4
	.comm	IRQ_HANDLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
