	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_mouse
_decode_mouse:                          ## @decode_mouse
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_AssertTCB
	xorl	%eax, %eax
	callq	_SetSP
	movq	_FROM_LEFT_1ST_BUTTON_PRESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	movq	_BUTTON1_PRESSED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	cmovnel	%r8d, %eax
	movq	_FROM_LEFT_2ND_BUTTON_PRESSED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	andl	%ebx, %ecx
	movq	_BUTTON2_PRESSED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmovnel	%esi, %ecx
	orl	%eax, %ecx
	movq	_FROM_LEFT_3RD_BUTTON_PRESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%ebx, %edx
	movq	_BUTTON3_PRESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmovnel	%edi, %edx
	orl	%ecx, %edx
	movq	_FROM_LEFT_4TH_BUTTON_PRESSED@GOTPCREL(%rip), %rcx
	movq	_BUTTON4_PRESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%edx, %eax
	testl	%ebx, (%rcx)
	cmovnel	%eax, %edx
	movq	_RIGHTMOST_BUTTON_PRESSED@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_6
## %bb.1:
	movl	(%r14), %ebx
	decl	%ebx
	cmpl	$3, %ebx
	ja	LBB0_6
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rbx
	addq	%rcx, %rbx
	jmpq	*%rbx
LBB0_3:
	orl	%r8d, %edx
	jmp	LBB0_6
LBB0_4:
	orl	%esi, %edx
	jmp	LBB0_6
LBB0_5:
	orl	%edi, %edx
LBB0_6:
	movl	%edx, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	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_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_FROM_LEFT_1ST_BUTTON_PRESSED,4,2 ## @FROM_LEFT_1ST_BUTTON_PRESSED
	.comm	_BUTTON1_PRESSED,4,2            ## @BUTTON1_PRESSED
	.comm	_FROM_LEFT_2ND_BUTTON_PRESSED,4,2 ## @FROM_LEFT_2ND_BUTTON_PRESSED
	.comm	_BUTTON2_PRESSED,4,2            ## @BUTTON2_PRESSED
	.comm	_FROM_LEFT_3RD_BUTTON_PRESSED,4,2 ## @FROM_LEFT_3RD_BUTTON_PRESSED
	.comm	_BUTTON3_PRESSED,4,2            ## @BUTTON3_PRESSED
	.comm	_FROM_LEFT_4TH_BUTTON_PRESSED,4,2 ## @FROM_LEFT_4TH_BUTTON_PRESSED
	.comm	_BUTTON4_PRESSED,4,2            ## @BUTTON4_PRESSED
	.comm	_RIGHTMOST_BUTTON_PRESSED,4,2   ## @RIGHTMOST_BUTTON_PRESSED
	.no_dead_strip	_decode_mouse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_mouse
_decode_mouse:                          ; @decode_mouse
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_AssertTCB
	bl	_SetSP
Lloh0:
	adrp	x8, _FROM_LEFT_1ST_BUTTON_PRESSED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FROM_LEFT_1ST_BUTTON_PRESSED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _BUTTON1_PRESSED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUTTON1_PRESSED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w9, w20
Lloh6:
	adrp	x9, _FROM_LEFT_2ND_BUTTON_PRESSED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FROM_LEFT_2ND_BUTTON_PRESSED@GOTPAGEOFF]
	csel	w10, wzr, w8, eq
Lloh8:
	ldr	w11, [x9]
Lloh9:
	adrp	x9, _BUTTON2_PRESSED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BUTTON2_PRESSED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w11, w20
	csel	w11, wzr, w9, eq
	orr	w11, w11, w10
Lloh12:
	adrp	x10, _FROM_LEFT_3RD_BUTTON_PRESSED@GOTPAGE
Lloh13:
	ldr	x10, [x10, _FROM_LEFT_3RD_BUTTON_PRESSED@GOTPAGEOFF]
Lloh14:
	adrp	x12, _BUTTON3_PRESSED@GOTPAGE
Lloh15:
	ldr	x12, [x12, _BUTTON3_PRESSED@GOTPAGEOFF]
Lloh16:
	ldr	w13, [x10]
Lloh17:
	ldr	w10, [x12]
	tst	w13, w20
	csel	w12, wzr, w10, eq
Lloh18:
	adrp	x13, _FROM_LEFT_4TH_BUTTON_PRESSED@GOTPAGE
Lloh19:
	ldr	x13, [x13, _FROM_LEFT_4TH_BUTTON_PRESSED@GOTPAGEOFF]
	orr	w12, w11, w12
Lloh20:
	ldr	w13, [x13]
Lloh21:
	adrp	x11, _BUTTON4_PRESSED@GOTPAGE
Lloh22:
	ldr	x11, [x11, _BUTTON4_PRESSED@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	orr	w11, w12, w11
	tst	w13, w20
	csel	w0, w12, w11, eq
Lloh24:
	adrp	x12, _RIGHTMOST_BUTTON_PRESSED@GOTPAGE
Lloh25:
	ldr	x12, [x12, _RIGHTMOST_BUTTON_PRESSED@GOTPAGEOFF]
Lloh26:
	ldr	w12, [x12]
	tst	w12, w20
	b.eq	LBB0_7
; %bb.1:
	ldr	w12, [x19]
	sub	w12, w12, #1
	cmp	w12, #3
	b.hi	LBB0_7
; %bb.2:
Lloh27:
	adrp	x13, lJTI0_0@PAGE
Lloh28:
	add	x13, x13, lJTI0_0@PAGEOFF
	adr	x14, LBB0_3
	ldrb	w15, [x13, x12]
	add	x14, x14, x15, lsl #2
	br	x14
LBB0_3:
	orr	w0, w0, w8
	b	LBB0_7
LBB0_4:
	orr	w0, w0, w9
	b	LBB0_7
LBB0_5:
	orr	w0, w0, w10
	b	LBB0_7
LBB0_6:
	mov	x0, x11
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
                                        ; -- End function
	.comm	_FROM_LEFT_1ST_BUTTON_PRESSED,4,2 ; @FROM_LEFT_1ST_BUTTON_PRESSED
	.comm	_BUTTON1_PRESSED,4,2            ; @BUTTON1_PRESSED
	.comm	_FROM_LEFT_2ND_BUTTON_PRESSED,4,2 ; @FROM_LEFT_2ND_BUTTON_PRESSED
	.comm	_BUTTON2_PRESSED,4,2            ; @BUTTON2_PRESSED
	.comm	_FROM_LEFT_3RD_BUTTON_PRESSED,4,2 ; @FROM_LEFT_3RD_BUTTON_PRESSED
	.comm	_BUTTON3_PRESSED,4,2            ; @BUTTON3_PRESSED
	.comm	_FROM_LEFT_4TH_BUTTON_PRESSED,4,2 ; @FROM_LEFT_4TH_BUTTON_PRESSED
	.comm	_BUTTON4_PRESSED,4,2            ; @BUTTON4_PRESSED
	.comm	_RIGHTMOST_BUTTON_PRESSED,4,2   ; @RIGHTMOST_BUTTON_PRESSED
	.no_dead_strip	_decode_mouse
.subsections_via_symbols
