	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mouse_read                     ## -- Begin function mouse_read
	.p2align	4, 0x90
_mouse_read:                            ## @mouse_read
	.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), %r9
	movl	8(%r9), %esi
	decl	%esi
	cmpl	$8, %esi
	ja	LBB0_1
## %bb.2:
	movq	_input@GOTPCREL(%rip), %r8
	movq	(%r8), %rcx
	movq	(%r9), %rdi
	movq	(%rcx,%rdi,8), %rdx
	movl	(%rdx), %ecx
	movl	4(%rdx), %edx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rsi
	addq	%rax, %rsi
	jmpq	*%rsi
LBB0_4:
	movl	$15, %ecx
	cmpq	$0, 16(%r9)
	jne	LBB0_12
	jmp	LBB0_13
LBB0_1:
	xorl	%ecx, %ecx
	cmpq	$0, 16(%r9)
	jne	LBB0_12
	jmp	LBB0_13
LBB0_3:
	movl	$11, %ecx
	cmpq	$0, 16(%r9)
	jne	LBB0_12
	jmp	LBB0_13
LBB0_5:
	shrl	$31, %ecx
	shrl	$31, %edx
	leal	(%rcx,%rdx,2), %ecx
	cmpq	$0, 16(%r9)
	jne	LBB0_12
	jmp	LBB0_13
LBB0_6:
	movq	8(%r8), %rax
	movl	(%rax,%rdi,4), %ecx
LBB0_7:
	shrl	$4, %ecx
LBB0_8:
	andl	$15, %ecx
	cmpq	$0, 16(%r9)
	je	LBB0_13
LBB0_12:
	movq	$0, 16(%r9)
	movl	12(%r9), %eax
	shrl	%eax
	notl	%eax
	jmp	LBB0_14
LBB0_9:
	shrl	$4, %edx
LBB0_10:
	andl	$15, %edx
	movl	%edx, %ecx
	cmpq	$0, 16(%r9)
	jne	LBB0_12
LBB0_13:
	movl	12(%r9), %eax
	shrl	%eax
LBB0_14:
	andl	$16, %eax
	orl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_input,16,3                     ## @input
	.comm	_mouse,24,3                     ## @mouse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mouse_read                     ; -- Begin function mouse_read
	.p2align	2
_mouse_read:                            ; @mouse_read
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _mouse@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mouse@GOTPAGEOFF]
	ldr	w9, [x8, #8]
	sub	w9, w9, #1
	cmp	w9, #8
	b.hi	LBB0_3
; %bb.1:
Lloh2:
	adrp	x11, _input@GOTPAGE
Lloh3:
	ldr	x11, [x11, _input@GOTPAGEOFF]
	ldr	x10, [x11]
	ldr	x12, [x8]
	ldr	x13, [x10, x12, lsl #3]
	ldp	w10, w13, [x13]
Lloh4:
	adrp	x14, lJTI0_0@PAGE
Lloh5:
	add	x14, x14, lJTI0_0@PAGEOFF
	adr	x15, LBB0_2
	ldrb	w16, [x14, x9]
	add	x15, x15, x16, lsl #2
	br	x15
LBB0_2:
	mov	w9, #15
	ldr	x10, [x8, #16]
	cbnz	x10, LBB0_10
	b	LBB0_12
LBB0_3:
	mov	w9, #0
	ldr	x10, [x8, #16]
	cbnz	x10, LBB0_10
	b	LBB0_12
LBB0_4:
	mov	w9, #11
	ldr	x10, [x8, #16]
	cbnz	x10, LBB0_10
	b	LBB0_12
LBB0_5:
	lsr	w9, w13, #30
	and	w9, w9, #0x2
	bfxil	w9, w10, #31, #1
	ldr	x10, [x8, #16]
	cbnz	x10, LBB0_10
	b	LBB0_12
LBB0_6:
	ldr	x9, [x11, #8]
	ldr	w9, [x9, x12, lsl #2]
	ubfx	w9, w9, #4, #4
	ldr	x10, [x8, #16]
	cbnz	x10, LBB0_10
	b	LBB0_12
LBB0_7:
	ubfx	w9, w10, #4, #4
	ldr	x10, [x8, #16]
	cbnz	x10, LBB0_10
	b	LBB0_12
LBB0_8:
	and	w9, w10, #0xf
	ldr	x10, [x8, #16]
	cbnz	x10, LBB0_10
	b	LBB0_12
LBB0_9:
	ubfx	w9, w13, #4, #4
	ldr	x10, [x8, #16]
	cbz	x10, LBB0_12
LBB0_10:
	str	xzr, [x8, #16]
	ldr	w8, [x8, #12]
	mov	w10, #16
	bic	w8, w10, w8, lsr #1
	orr	w0, w8, w9
	ret
LBB0_11:
	and	w9, w13, #0xf
	ldr	x10, [x8, #16]
	cbnz	x10, LBB0_10
LBB0_12:
	ldr	w8, [x8, #12]
	lsr	w8, w8, #1
	and	w8, w8, #0x10
	orr	w0, w8, w9
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_input,16,3                     ; @input
	.comm	_mouse,24,3                     ; @mouse
.subsections_via_symbols
