	.file	"extr_mms114.c_mms114_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mms114_interrupt, @function
mms114_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbx
	sub	rsp, 16
	.cfi_offset 3, -48
	mov	r13, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MMS114_MAX_TOUCH[rip]
	mov	rcx, rsp
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L18:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L18
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L19
.L4:
	mov	rdi, r13
	mov	rbx, rsp
	call	mutex_lock@PLT
	mov	eax, DWORD PTR 4[r13]
	mov	rdi, r13
	test	eax, eax
	je	.L20
	call	mutex_unlock@PLT
	mov	esi, DWORD PTR MMS114_PACKET_SIZE[rip]
	mov	rdi, r12
	call	mms114_read_reg@PLT
	mov	r13d, eax
	test	eax, eax
	jle	.L6
	mov	esi, DWORD PTR MMS114_INFORMATION[rip]
	mov	rcx, rbx
	mov	edx, eax
	mov	rdi, r12
	mov	r14d, DWORD PTR MMS114_PACKET_NUM[rip]
	call	__mms114_read_reg@PLT
	test	eax, eax
	js	.L6
	mov	eax, r13d
	cdq
	idiv	r14d
	test	eax, eax
	jle	.L9
	sub	eax, 1
	lea	r13, 4[rbx+rax*4]
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rsi, rbx
	mov	rdi, r12
	add	rbx, 4
	call	mms114_process_mt@PLT
	cmp	rbx, r13
	jne	.L10
.L9:
	mov	rdi, QWORD PTR [r12]
	mov	esi, 1
	call	input_mt_report_pointer_emulation@PLT
	mov	rdi, QWORD PTR [r12]
	call	input_sync@PLT
.L6:
	mov	rcx, QWORD PTR -40[rbp]
	xor	rcx, QWORD PTR fs:40
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	jne	.L21
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	call	mutex_unlock@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mms114_interrupt, .-mms114_interrupt
	.comm	MMS114_PACKET_SIZE,4,4
	.comm	MMS114_PACKET_NUM,4,4
	.comm	MMS114_MAX_TOUCH,4,4
	.comm	MMS114_INFORMATION,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_mms114.c_mms114_interrupt.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mms114_interrupt, %function
mms114_interrupt:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8
	ldr	r3, .L14
	ldr	r6, [r1]
	ldr	r3, [r3]
	mov	r0, r6
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L14+4
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	bl	mutex_lock
	ldr	r3, [r6, #4]
	mov	r0, r6
	cmp	r3, #0
	beq	.L12
	bl	mutex_unlock
	ldr	r3, .L14+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	mms114_read_reg
	subs	r6, r0, #0
	ble	.L3
	mov	r4, sp
	ldr	r3, .L14+12
	ldr	ip, .L14+16
	ldr	r1, [r3]
	mov	r2, r6
	mov	r3, r4
	mov	r0, r5
	ldr	r7, [ip]
	bl	__mms114_read_reg
	cmp	r0, #0
	blt	.L3
	mov	r1, r7
	mov	r0, r6
	bl	__aeabi_idiv
	cmp	r0, #0
	ble	.L6
	add	r6, r4, r0, lsl #2
.L7:
	mov	r1, r4
	mov	r0, r5
	add	r4, r4, #4
	bl	mms114_process_mt
	cmp	r4, r6
	bne	.L7
.L6:
	mov	r1, #1
	ldr	r0, [r5]
	bl	input_mt_report_pointer_emulation
	ldr	r0, [r5]
	bl	input_sync
.L3:
	ldr	r3, .L14+20
	ldr	r0, [r3]
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L12:
	bl	mutex_unlock
	b	.L3
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	MMS114_MAX_TOUCH
	.word	.LC0
	.word	MMS114_PACKET_SIZE
	.word	MMS114_INFORMATION
	.word	MMS114_PACKET_NUM
	.word	IRQ_HANDLED
	.size	mms114_interrupt, .-mms114_interrupt
	.comm	MMS114_PACKET_SIZE,4,4
	.comm	MMS114_PACKET_NUM,4,4
	.comm	MMS114_MAX_TOUCH,4,4
	.comm	MMS114_INFORMATION,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
