	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function logibm_interrupt
_logibm_interrupt:                      ## @logibm_interrupt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_LOGIBM_READ_X_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LOGIBM_CONTROL_PORT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_outb
	movq	_LOGIBM_DATA_PORT@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_inb
	movl	%eax, %ebx
	andl	$15, %ebx
	movq	_LOGIBM_READ_X_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_outb
	movl	(%r13), %edi
	callq	_inb
	movl	%eax, %r14d
	shll	$4, %r14d
	orl	%ebx, %r14d
	movq	_LOGIBM_READ_Y_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_outb
	movl	(%r13), %edi
	callq	_inb
	movl	%eax, %r15d
	andl	$15, %r15d
	movq	_LOGIBM_READ_Y_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_outb
	movl	(%r13), %edi
	callq	_inb
	movl	%eax, %ebx
	movl	%eax, %r13d
	shll	$4, %r13d
	orl	%r15d, %r13d
	shrb	$5, %bl
	notb	%bl
	movq	_logibm_dev@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_REL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movsbl	%r14b, %edx
	callq	_input_report_rel
	movl	(%r15), %edi
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movsbl	%r13b, %edx
	callq	_input_report_rel
	movl	(%r15), %edi
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %eax
	andb	$1, %al
	movzbl	%al, %edx
	callq	_input_report_key
	movl	(%r15), %edi
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %eax
	andb	$2, %al
	movzbl	%al, %edx
	callq	_input_report_key
	movl	(%r15), %edi
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andb	$4, %bl
	movzbl	%bl, %edx
	callq	_input_report_key
	movl	(%r15), %edi
	callq	_input_sync
	movq	_LOGIBM_ENABLE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_outb
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOGIBM_READ_X_LOW,4,2          ## @LOGIBM_READ_X_LOW
	.comm	_LOGIBM_CONTROL_PORT,4,2        ## @LOGIBM_CONTROL_PORT
	.comm	_LOGIBM_DATA_PORT,4,2           ## @LOGIBM_DATA_PORT
	.comm	_LOGIBM_READ_X_HIGH,4,2         ## @LOGIBM_READ_X_HIGH
	.comm	_LOGIBM_READ_Y_LOW,4,2          ## @LOGIBM_READ_Y_LOW
	.comm	_LOGIBM_READ_Y_HIGH,4,2         ## @LOGIBM_READ_Y_HIGH
	.comm	_logibm_dev,4,2                 ## @logibm_dev
	.comm	_REL_X,4,2                      ## @REL_X
	.comm	_REL_Y,4,2                      ## @REL_Y
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_LOGIBM_ENABLE_IRQ,4,2          ## @LOGIBM_ENABLE_IRQ
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_logibm_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function logibm_interrupt
_logibm_interrupt:                      ; @logibm_interrupt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _LOGIBM_READ_X_LOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOGIBM_READ_X_LOW@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x21, _LOGIBM_CONTROL_PORT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _LOGIBM_CONTROL_PORT@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_outb
Lloh5:
	adrp	x22, _LOGIBM_DATA_PORT@GOTPAGE
Lloh6:
	ldr	x22, [x22, _LOGIBM_DATA_PORT@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_inb
	mov	x19, x0
Lloh7:
	adrp	x8, _LOGIBM_READ_X_HIGH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LOGIBM_READ_X_HIGH@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_outb
	ldr	w0, [x22]
	bl	_inb
	bfi	w19, w0, #4, #28
Lloh10:
	adrp	x8, _LOGIBM_READ_Y_LOW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LOGIBM_READ_Y_LOW@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_outb
	ldr	w0, [x22]
	bl	_inb
	mov	x20, x0
Lloh13:
	adrp	x8, _LOGIBM_READ_Y_HIGH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LOGIBM_READ_Y_HIGH@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_outb
	ldr	w0, [x22]
	bl	_inb
	bfi	w20, w0, #4, #28
Lloh16:
	adrp	x22, _logibm_dev@GOTPAGE
Lloh17:
	ldr	x22, [x22, _logibm_dev@GOTPAGEOFF]
	and	w23, w0, #0xe0
	ldr	w0, [x22]
Lloh18:
	adrp	x8, _REL_X@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	sxtb	w2, w19
	bl	_input_report_rel
	ldr	w0, [x22]
Lloh21:
	adrp	x8, _REL_Y@GOTPAGE
Lloh22:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	sxtb	w2, w20
	bl	_input_report_rel
	ldr	w0, [x22]
Lloh24:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	w8, #1
	bic	w2, w8, w23, lsr #5
	bl	_input_report_key
	ldr	w0, [x22]
Lloh27:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	w8, #2
	bic	w2, w8, w23, lsr #5
	bl	_input_report_key
	ldr	w0, [x22]
Lloh30:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	w8, #4
	bic	w2, w8, w23, lsr #5
	bl	_input_report_key
	ldr	w0, [x22]
	bl	_input_sync
Lloh33:
	adrp	x8, _LOGIBM_ENABLE_IRQ@GOTPAGE
Lloh34:
	ldr	x8, [x8, _LOGIBM_ENABLE_IRQ@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_outb
Lloh36:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LOGIBM_READ_X_LOW,4,2          ; @LOGIBM_READ_X_LOW
	.comm	_LOGIBM_CONTROL_PORT,4,2        ; @LOGIBM_CONTROL_PORT
	.comm	_LOGIBM_DATA_PORT,4,2           ; @LOGIBM_DATA_PORT
	.comm	_LOGIBM_READ_X_HIGH,4,2         ; @LOGIBM_READ_X_HIGH
	.comm	_LOGIBM_READ_Y_LOW,4,2          ; @LOGIBM_READ_Y_LOW
	.comm	_LOGIBM_READ_Y_HIGH,4,2         ; @LOGIBM_READ_Y_HIGH
	.comm	_logibm_dev,4,2                 ; @logibm_dev
	.comm	_REL_X,4,2                      ; @REL_X
	.comm	_REL_Y,4,2                      ; @REL_Y
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_LOGIBM_ENABLE_IRQ,4,2          ; @LOGIBM_ENABLE_IRQ
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_logibm_interrupt
.subsections_via_symbols
