	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpcmouse_irq
_rpcmouse_irq:                          ## @rpcmouse_irq
	.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	%rsi, %r14
	movq	_IOMD_MOUSEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_iomd_readl
	movq	%rax, %r15
	movq	_IOMD_MOUSEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_iomd_readl
	movq	%rax, %r12
	movl	$-533659648, %edi               ## imm = 0xE0310000
	callq	_IOMEM
	movl	%eax, %edi
	callq	___raw_readl
	movl	%eax, %ebx
	movq	_rpcmouse_lastx@GOTPCREL(%rip), %rax
	movl	%r15d, %ecx
	subw	(%rax), %cx
	movq	_rpcmouse_lasty@GOTPCREL(%rip), %rdx
	movzwl	(%rdx), %r13d
	subl	%r12d, %r13d
	movw	%r15w, (%rax)
	movw	%r12w, (%rdx)
	movq	_REL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movswl	%cx, %edx
	movq	%r14, %rdi
	callq	_input_report_rel
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movswl	%r13w, %edx
	movq	%r14, %rdi
	callq	_input_report_rel
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	$112, %ebx
	movl	%ebx, %edx
	andl	$64, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	andl	$32, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	$16, %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_input_report_key
	movq	%r14, %rdi
	callq	_input_sync
	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	_IOMD_MOUSEX,4,2                ## @IOMD_MOUSEX
	.comm	_IOMD_MOUSEY,4,2                ## @IOMD_MOUSEY
	.comm	_rpcmouse_lastx,2,1             ## @rpcmouse_lastx
	.comm	_rpcmouse_lasty,2,1             ## @rpcmouse_lasty
	.comm	_REL_X,4,2                      ## @REL_X
	.comm	_REL_Y,4,2                      ## @REL_Y
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_rpcmouse_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpcmouse_irq
_rpcmouse_irq:                          ; @rpcmouse_irq
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _IOMD_MOUSEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IOMD_MOUSEX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_iomd_readl
	mov	x20, x0
Lloh3:
	adrp	x8, _IOMD_MOUSEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IOMD_MOUSEY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_iomd_readl
	mov	x21, x0
	mov	w0, #-533659648
	bl	_IOMEM
	bl	___raw_readl
	mov	x22, x0
Lloh6:
	adrp	x8, _rpcmouse_lastx@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rpcmouse_lastx@GOTPAGEOFF]
	ldrh	w9, [x8]
	sub	w9, w20, w9
Lloh8:
	adrp	x10, _rpcmouse_lasty@GOTPAGE
Lloh9:
	ldr	x10, [x10, _rpcmouse_lasty@GOTPAGEOFF]
	ldrh	w11, [x10]
	sub	w23, w11, w21
	strh	w20, [x8]
	strh	w21, [x10]
Lloh10:
	adrp	x8, _REL_X@GOTPAGE
Lloh11:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	sxth	w2, w9
	mov	x0, x19
	bl	_input_report_rel
Lloh13:
	adrp	x8, _REL_Y@GOTPAGE
Lloh14:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	sxth	w2, w23
	mov	x0, x19
	bl	_input_report_rel
Lloh16:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	eor	w20, w22, #0x70
	and	w2, w20, #0x40
	mov	x0, x19
	bl	_input_report_key
Lloh19:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	and	w2, w20, #0x20
	mov	x0, x19
	bl	_input_report_key
Lloh22:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	and	w2, w20, #0x10
	mov	x0, x19
	bl	_input_report_key
	mov	x0, x19
	bl	_input_sync
Lloh25:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh27:
	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	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IOMD_MOUSEX,4,2                ; @IOMD_MOUSEX
	.comm	_IOMD_MOUSEY,4,2                ; @IOMD_MOUSEY
	.comm	_rpcmouse_lastx,2,1             ; @rpcmouse_lastx
	.comm	_rpcmouse_lasty,2,1             ; @rpcmouse_lasty
	.comm	_REL_X,4,2                      ; @REL_X
	.comm	_REL_Y,4,2                      ; @REL_Y
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_rpcmouse_irq
.subsections_via_symbols
