	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atamouse_interrupt
_atamouse_interrupt:                    ## @atamouse_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movsbl	(%rdi), %ebx
	movl	%ebx, %r14d
	andl	$1, %r14d
	addl	%ebx, %ebx
	andl	$4, %ebx
	movsbl	1(%rdi), %edx
	movsbl	2(%rdi), %r15d
	movq	_atamouse_dev@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_REL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_input_report_rel
	movl	(%r12), %edi
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_input_report_rel
	movl	(%r12), %edi
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_input_report_key
	movl	(%r12), %edi
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_input_report_key
	movl	(%r12), %edi
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_input_report_key
	movl	(%r12), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_atamouse_dev,4,2               ## @atamouse_dev
	.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	_atari_mouse_buttons,4,2        ## @atari_mouse_buttons
	.no_dead_strip	_atamouse_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atamouse_interrupt
_atamouse_interrupt:                    ; @atamouse_interrupt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldrsb	w8, [x0]
	and	w19, w8, #0x1
	lsl	w8, w8, #1
	and	w20, w8, #0x4
	ldrsb	w2, [x0, #1]
	ldrsb	w21, [x0, #2]
Lloh0:
	adrp	x22, _atamouse_dev@GOTPAGE
Lloh1:
	ldr	x22, [x22, _atamouse_dev@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x8, _REL_X@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_input_report_rel
	ldr	w0, [x22]
Lloh5:
	adrp	x8, _REL_Y@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_input_report_rel
	ldr	w0, [x22]
Lloh8:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_input_report_key
	ldr	w0, [x22]
Lloh11:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_input_report_key
	ldr	w0, [x22]
Lloh14:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_input_report_key
	ldr	w0, [x22]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_input_sync
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_atamouse_dev,4,2               ; @atamouse_dev
	.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	_atari_mouse_buttons,4,2        ; @atari_mouse_buttons
	.no_dead_strip	_atamouse_interrupt
.subsections_via_symbols
