	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mouse_write                    ## -- Begin function mouse_write
	.p2align	4, 0x90
_mouse_write:                           ## @mouse_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_mouse@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	andl	%esi, %edi
	movl	%esi, %edx
	notb	%dl
	andb	%cl, %dl
	orb	%dl, %dil
	xorb	%dil, %cl
	testb	$64, %cl
	je	LBB0_2
## %bb.1:
	xorl	%edx, %edx
	testb	$64, %dil
	sete	%dl
	movl	%edx, 4(%rax)
LBB0_2:
	testb	$32, %cl
	je	LBB0_6
## %bb.3:
	movl	4(%rax), %ecx
	leal	-1(%rcx), %edx
	cmpl	$8, %edx
	ja	LBB0_5
## %bb.4:
	incl	%ecx
	movl	%ecx, 4(%rax)
LBB0_5:
	movl	$1, 8(%rax)
LBB0_6:
	movb	%dil, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mouse,12,2                     ## @mouse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mouse_write                    ; -- Begin function mouse_write
	.p2align	2
_mouse_write:                           ; @mouse_write
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _mouse@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mouse@GOTPAGEOFF]
	ldrb	w10, [x8]
	eor	w9, w1, #0xff
	and	w9, w10, w9
	and	w11, w1, w0
	orr	w9, w9, w11
	eor	w10, w9, w10
	tbnz	w10, #6, LBB0_3
; %bb.1:
	tbnz	w10, #5, LBB0_4
LBB0_2:
	strb	w9, [x8]
	ret
LBB0_3:
	mov	w11, #1
	bic	w11, w11, w9, lsr #6
	str	w11, [x8, #4]
	tbz	w10, #5, LBB0_2
LBB0_4:
	ldr	w10, [x8, #4]
	sub	w11, w10, #1
	cmp	w11, #8
	b.hi	LBB0_6
; %bb.5:
	add	w10, w10, #1
	str	w10, [x8, #4]
LBB0_6:
	mov	w10, #1
	str	w10, [x8, #8]
	strb	w9, [x8]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mouse,12,2                     ; @mouse
.subsections_via_symbols
