	.file	"extr_bcm_iproc_tsc.c_iproc_touchscreen_interrupt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"pen up-down (%d)\n"
.LC1:
	.string	"xy (0x%x 0x%x)\n"
	.text
	.p2align 4
	.type	iproc_touchscreen_interrupt, @function
iproc_touchscreen_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	rdi, rsi
	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
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	platform_get_drvdata@PLT
	mov	esi, DWORD PTR INTERRUPT_STATUS[rip]
	mov	rdx, rsp
	mov	edi, DWORD PTR 48[rax]
	mov	r13, rax
	call	regmap_read@PLT
	mov	edx, DWORD PTR TS_PEN_INTR_MASK[rip]
	or	edx, DWORD PTR TS_FIFO_INTR_MASK[rip]
	and	edx, DWORD PTR [rsp]
	mov	eax, DWORD PTR IRQ_NONE[rip]
	mov	DWORD PTR [rsp], edx
	jne	.L24
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L25
	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
.L24:
	.cfi_restore_state
	mov	edi, DWORD PTR 48[r13]
	mov	esi, DWORD PTR INTERRUPT_STATUS[rip]
	call	regmap_write@PLT
	mov	eax, DWORD PTR [rsp]
	mov	r12d, eax
	and	r12d, DWORD PTR TS_PEN_INTR_MASK[rip]
	jne	.L4
	test	DWORD PTR TS_FIFO_INTR_MASK[rip], eax
	je	.L11
	mov	eax, DWORD PTR 16[r13]
	test	eax, eax
	jle	.L11
.L10:
	xor	ebx, ebx
	lea	rbp, 4[rsp]
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR 48[r13]
	mov	esi, DWORD PTR FIFO_DATA[rip]
	mov	rdx, rbp
	call	regmap_read@PLT
	mov	eax, DWORD PTR 4[rsp]
	cmp	eax, DWORD PTR INVALID_COORD[rip]
	je	.L12
	mov	ecx, DWORD PTR X_COORD_SHIFT[rip]
	mov	r14d, eax
	mov	edx, DWORD PTR FIFO_DATA_X_Y_MASK[rip]
	sar	r14d, cl
	mov	ecx, DWORD PTR Y_COORD_SHIFT[rip]
	and	r14d, edx
	sar	eax, cl
	sar	r14d, 4
	mov	r12d, eax
	and	r14d, 4095
	and	r12d, edx
	sar	r12d, 4
	and	r12d, 4095
	cmp	QWORD PTR 40[r13], 0
	je	.L13
	mov	eax, DWORD PTR 20[r13]
	sub	eax, r14d
	mov	r14d, eax
.L13:
	cmp	QWORD PTR 32[r13], 0
	je	.L14
	mov	eax, DWORD PTR 24[r13]
	sub	eax, r12d
	mov	r12d, eax
.L14:
	mov	edi, DWORD PTR 4[r13]
	mov	esi, DWORD PTR ABS_X[rip]
	mov	edx, r14d
	call	input_report_abs@PLT
	mov	edi, DWORD PTR 4[r13]
	mov	esi, DWORD PTR ABS_Y[rip]
	mov	edx, r12d
	call	input_report_abs@PLT
	mov	rdi, QWORD PTR 8[r13]
	mov	ecx, r12d
	mov	edx, r14d
	lea	rsi, .LC1[rip]
	xor	eax, eax
	mov	r12d, 1
	call	dev_dbg@PLT
.L12:
	add	ebx, 1
	cmp	DWORD PTR 16[r13], ebx
	jg	.L15
	test	r12d, r12d
	je	.L11
.L9:
	mov	edi, DWORD PTR 4[r13]
	call	input_sync@PLT
.L11:
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR 48[r13]
	mov	esi, DWORD PTR CONTROLLER_STATUS[rip]
	mov	rdx, r13
	call	regmap_read@PLT
	mov	eax, DWORD PTR 0[r13]
	mov	edi, DWORD PTR 4[r13]
	test	DWORD PTR TS_PEN_DOWN[rip], eax
	mov	edx, DWORD PTR PEN_DOWN_STATUS[rip]
	cmove	edx, DWORD PTR PEN_UP_STATUS[rip]
	mov	esi, DWORD PTR BTN_TOUCH[rip]
	mov	DWORD PTR 0[r13], edx
	call	input_report_key@PLT
	mov	rdi, QWORD PTR 8[r13]
	mov	edx, DWORD PTR 0[r13]
	xor	eax, eax
	lea	rsi, .LC0[rip]
	call	dev_dbg@PLT
	mov	eax, DWORD PTR [rsp]
	test	DWORD PTR TS_FIFO_INTR_MASK[rip], eax
	je	.L9
	mov	edx, DWORD PTR 16[r13]
	mov	r12d, 1
	test	edx, edx
	jg	.L10
	jmp	.L9
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	iproc_touchscreen_interrupt, .-iproc_touchscreen_interrupt
	.comm	Y_COORD_SHIFT,4,4
	.comm	X_COORD_SHIFT,4,4
	.comm	TS_PEN_INTR_MASK,4,4
	.comm	TS_PEN_DOWN,4,4
	.comm	TS_FIFO_INTR_MASK,4,4
	.comm	PEN_UP_STATUS,4,4
	.comm	PEN_DOWN_STATUS,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	INVALID_COORD,4,4
	.comm	INTERRUPT_STATUS,4,4
	.comm	FIFO_DATA_X_Y_MASK,4,4
	.comm	FIFO_DATA,4,4
	.comm	CONTROLLER_STATUS,4,4
	.comm	BTN_TOUCH,4,4
	.comm	ABS_Y,4,4
	.comm	ABS_X,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_bcm_iproc_tsc.c_iproc_touchscreen_interrupt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"pen up-down (%d)\012\000"
	.align	2
.LC1:
	.ascii	"xy (0x%x 0x%x)\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iproc_touchscreen_interrupt, %function
iproc_touchscreen_interrupt:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L31
	sub	sp, sp, #20
	mov	r0, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	platform_get_drvdata
	ldr	r6, .L31+4
	ldr	r5, .L31+8
	ldr	r7, .L31+12
	ldr	r1, [r6]
	add	r2, sp, #4
	mov	r4, r0
	ldr	r0, [r0, #32]
	bl	regmap_read
	ldr	r2, [r5]
	ldr	r1, [r7]
	ldr	r3, [sp, #4]
	orr	r2, r2, r1
	and	r2, r2, r3
	cmp	r2, #0
	str	r2, [sp, #4]
	bne	.L2
	ldr	r3, .L31+16
	ldr	r0, [r3]
.L1:
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r1, [r6]
	ldr	r0, [r4, #32]
	bl	regmap_write
	ldr	r5, [r5]
	ldr	r3, [sp, #4]
	ands	r5, r3, r5
	bne	.L4
	ldr	r2, [r7]
	tst	r3, r2
	beq	.L11
	ldr	r3, [r4, #12]
	cmp	r3, #0
	ble	.L11
.L10:
	mov	r6, #0
	ldr	r7, .L31+20
	ldr	fp, .L31+24
	ldr	r10, .L31+28
	ldr	r9, .L31+32
.L15:
	ldr	r3, .L31+36
	add	r2, sp, #8
	ldr	r1, [r3]
	ldr	r0, [r4, #32]
	bl	regmap_read
	ldr	r3, [sp, #8]
	ldr	r2, [r7]
	cmp	r3, r2
	beq	.L12
	ldr	r8, [fp]
	ldr	r1, [r9]
	ldr	r5, [r10]
	ldr	r2, [r4, #28]
	and	r5, r8, r3, asr r5
	and	r8, r8, r3, asr r1
	ldr	r3, .L31+40
	cmp	r2, #0
	and	r5, r3, r5, asr #4
	and	r8, r3, r8, asr #4
	ldrne	r3, [r4, #16]
	ldr	r0, [r4, #4]
	subne	r5, r3, r5
	ldr	r3, [r4, #24]
	mov	r2, r5
	cmp	r3, #0
	ldrne	r3, [r4, #20]
	subne	r8, r3, r8
	ldr	r3, .L31+44
	ldr	r1, [r3]
	bl	input_report_abs
	ldr	r3, .L31+48
	mov	r2, r8
	ldr	r1, [r3]
	ldr	r0, [r4, #4]
	bl	input_report_abs
	mov	r2, r5
	mov	r3, r8
	ldr	r1, .L31+52
	ldr	r0, [r4, #8]
	bl	dev_dbg
	mov	r5, #1
.L12:
	ldr	r3, [r4, #12]
	add	r6, r6, #1
	cmp	r3, r6
	bgt	.L15
	cmp	r5, #0
	beq	.L11
.L9:
	ldr	r0, [r4, #4]
	bl	input_sync
.L11:
	ldr	r3, .L31+56
	ldr	r0, [r3]
	b	.L1
.L4:
	ldr	r3, .L31+60
	mov	r2, r4
	ldr	r1, [r3]
	ldr	r0, [r4, #32]
	bl	regmap_read
	ldr	r3, .L31+64
	ldr	r2, [r4]
	ldr	r3, [r3]
	ldr	r0, [r4, #4]
	tst	r2, r3
	ldrne	r3, .L31+68
	ldreq	r3, .L31+72
	ldr	r2, [r3]
	ldr	r3, .L31+76
	str	r2, [r4]
	ldr	r1, [r3]
	bl	input_report_key
	ldr	r2, [r4]
	ldr	r1, .L31+80
	ldr	r0, [r4, #8]
	bl	dev_dbg
	ldr	r3, [r7]
	ldr	r2, [sp, #4]
	tst	r2, r3
	beq	.L9
	ldr	r3, [r4, #12]
	cmp	r3, #0
	movgt	r5, #1
	bgt	.L10
	b	.L9
.L30:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	.LC2
	.word	INTERRUPT_STATUS
	.word	TS_PEN_INTR_MASK
	.word	TS_FIFO_INTR_MASK
	.word	IRQ_NONE
	.word	INVALID_COORD
	.word	FIFO_DATA_X_Y_MASK
	.word	X_COORD_SHIFT
	.word	Y_COORD_SHIFT
	.word	FIFO_DATA
	.word	4095
	.word	ABS_X
	.word	ABS_Y
	.word	.LC1
	.word	IRQ_HANDLED
	.word	CONTROLLER_STATUS
	.word	TS_PEN_DOWN
	.word	PEN_DOWN_STATUS
	.word	PEN_UP_STATUS
	.word	BTN_TOUCH
	.word	.LC0
	.size	iproc_touchscreen_interrupt, .-iproc_touchscreen_interrupt
	.comm	Y_COORD_SHIFT,4,4
	.comm	X_COORD_SHIFT,4,4
	.comm	TS_PEN_INTR_MASK,4,4
	.comm	TS_PEN_DOWN,4,4
	.comm	TS_FIFO_INTR_MASK,4,4
	.comm	PEN_UP_STATUS,4,4
	.comm	PEN_DOWN_STATUS,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	INVALID_COORD,4,4
	.comm	INTERRUPT_STATUS,4,4
	.comm	FIFO_DATA_X_Y_MASK,4,4
	.comm	FIFO_DATA,4,4
	.comm	CONTROLLER_STATUS,4,4
	.comm	BTN_TOUCH,4,4
	.comm	ABS_Y,4,4
	.comm	ABS_X,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
