	.file	"extr_logibm.c_logibm_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	logibm_interrupt, @function
logibm_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	mov	esi, DWORD PTR LOGIBM_CONTROL_PORT[rip]
	mov	edi, DWORD PTR LOGIBM_READ_X_LOW[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	outb@PLT
	mov	edi, DWORD PTR LOGIBM_DATA_PORT[rip]
	call	inb@PLT
	mov	esi, DWORD PTR LOGIBM_CONTROL_PORT[rip]
	mov	edi, DWORD PTR LOGIBM_READ_X_HIGH[rip]
	mov	ebp, eax
	call	outb@PLT
	mov	edi, DWORD PTR LOGIBM_DATA_PORT[rip]
	and	ebp, 15
	call	inb@PLT
	mov	esi, DWORD PTR LOGIBM_CONTROL_PORT[rip]
	mov	edi, DWORD PTR LOGIBM_READ_Y_LOW[rip]
	sal	eax, 4
	or	ebp, eax
	call	outb@PLT
	mov	edi, DWORD PTR LOGIBM_DATA_PORT[rip]
	call	inb@PLT
	mov	esi, DWORD PTR LOGIBM_CONTROL_PORT[rip]
	mov	edi, DWORD PTR LOGIBM_READ_Y_HIGH[rip]
	mov	r12d, eax
	call	outb@PLT
	mov	edi, DWORD PTR LOGIBM_DATA_PORT[rip]
	and	r12d, 15
	call	inb@PLT
	mov	esi, DWORD PTR REL_X[rip]
	mov	edi, DWORD PTR logibm_dev[rip]
	mov	edx, eax
	movzx	ebx, al
	sal	edx, 4
	not	ebx
	or	r12d, edx
	movsx	edx, bpl
	sar	ebx, 5
	call	input_report_rel@PLT
	mov	esi, DWORD PTR REL_Y[rip]
	mov	edi, DWORD PTR logibm_dev[rip]
	movsx	edx, r12b
	call	input_report_rel@PLT
	mov	esi, DWORD PTR BTN_RIGHT[rip]
	mov	edi, DWORD PTR logibm_dev[rip]
	mov	edx, ebx
	and	edx, 1
	call	input_report_key@PLT
	mov	esi, DWORD PTR BTN_MIDDLE[rip]
	mov	edi, DWORD PTR logibm_dev[rip]
	mov	edx, ebx
	and	edx, 2
	and	ebx, 4
	call	input_report_key@PLT
	mov	esi, DWORD PTR BTN_LEFT[rip]
	mov	edi, DWORD PTR logibm_dev[rip]
	mov	edx, ebx
	call	input_report_key@PLT
	mov	edi, DWORD PTR logibm_dev[rip]
	call	input_sync@PLT
	mov	esi, DWORD PTR LOGIBM_CONTROL_PORT[rip]
	mov	edi, DWORD PTR LOGIBM_ENABLE_IRQ[rip]
	call	outb@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	logibm_interrupt, .-logibm_interrupt
	.comm	logibm_dev,4,4
	.comm	REL_Y,4,4
	.comm	REL_X,4,4
	.comm	LOGIBM_READ_Y_LOW,4,4
	.comm	LOGIBM_READ_Y_HIGH,4,4
	.comm	LOGIBM_READ_X_LOW,4,4
	.comm	LOGIBM_READ_X_HIGH,4,4
	.comm	LOGIBM_ENABLE_IRQ,4,4
	.comm	LOGIBM_DATA_PORT,4,4
	.comm	LOGIBM_CONTROL_PORT,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	BTN_RIGHT,4,4
	.comm	BTN_MIDDLE,4,4
	.comm	BTN_LEFT,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_logibm.c_logibm_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	logibm_interrupt, %function
logibm_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L4
	ldr	r7, .L4+4
	ldr	r8, .L4+8
	ldr	r1, [r7]
	ldr	r0, [r3]
	bl	outb
	ldr	r0, [r8]
	bl	inb
	ldr	r3, .L4+12
	ldr	r1, [r7]
	mov	r4, r0
	ldr	r0, [r3]
	bl	outb
	ldr	r0, [r8]
	bl	inb
	ldr	r3, .L4+16
	and	r6, r4, #15
	ldr	r1, [r7]
	orr	r6, r6, r0, lsl #4
	ldr	r0, [r3]
	bl	outb
	ldr	r0, [r8]
	bl	inb
	ldr	r3, .L4+20
	ldr	r1, [r7]
	mov	r5, r0
	ldr	r0, [r3]
	bl	outb
	ldr	r0, [r8]
	bl	inb
	and	r9, r0, #255
	mvn	r9, r9, lsr #5
	ldr	r8, .L4+24
	ldr	r3, .L4+28
	lsl	r6, r6, #24
	asr	r6, r6, #24
	and	r4, r5, #15
	ldr	r1, [r3]
	and	r2, r6, #255
	orr	r4, r4, r0, lsl #4
	ldr	r0, [r8]
	bl	input_report_rel
	lsl	r4, r4, #24
	ldr	r3, .L4+32
	asr	r4, r4, #24
	ldr	r1, [r3]
	and	r2, r4, #255
	ldr	r0, [r8]
	bl	input_report_rel
	ldr	r3, .L4+36
	and	r2, r9, #1
	ldr	r1, [r3]
	ldr	r0, [r8]
	bl	input_report_key
	ldr	r3, .L4+40
	and	r2, r9, #2
	ldr	r1, [r3]
	ldr	r0, [r8]
	bl	input_report_key
	ldr	r3, .L4+44
	and	r2, r9, #4
	ldr	r1, [r3]
	ldr	r0, [r8]
	bl	input_report_key
	ldr	r0, [r8]
	bl	input_sync
	ldr	r3, .L4+48
	ldr	r1, [r7]
	ldr	r0, [r3]
	bl	outb
	ldr	r3, .L4+52
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	.align	2
.L4:
	.word	LOGIBM_READ_X_LOW
	.word	LOGIBM_CONTROL_PORT
	.word	LOGIBM_DATA_PORT
	.word	LOGIBM_READ_X_HIGH
	.word	LOGIBM_READ_Y_LOW
	.word	LOGIBM_READ_Y_HIGH
	.word	logibm_dev
	.word	REL_X
	.word	REL_Y
	.word	BTN_RIGHT
	.word	BTN_MIDDLE
	.word	BTN_LEFT
	.word	LOGIBM_ENABLE_IRQ
	.word	IRQ_HANDLED
	.size	logibm_interrupt, .-logibm_interrupt
	.comm	logibm_dev,4,4
	.comm	REL_Y,4,4
	.comm	REL_X,4,4
	.comm	LOGIBM_READ_Y_LOW,4,4
	.comm	LOGIBM_READ_Y_HIGH,4,4
	.comm	LOGIBM_READ_X_LOW,4,4
	.comm	LOGIBM_READ_X_HIGH,4,4
	.comm	LOGIBM_ENABLE_IRQ,4,4
	.comm	LOGIBM_DATA_PORT,4,4
	.comm	LOGIBM_CONTROL_PORT,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	BTN_RIGHT,4,4
	.comm	BTN_MIDDLE,4,4
	.comm	BTN_LEFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
