	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ui_mouse_button                ## -- Begin function ui_mouse_button
	.p2align	4, 0x90
_ui_mouse_button:                       ## @ui_mouse_button
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%ecx, %eax
	movl	%edx, %r8d
	movl	%esi, %ecx
                                        ## kill: def $edi killed $edi def $rdi
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_MOUSE_FLAG_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	decl	%edi
	cmpl	$4, %edi
	ja	LBB0_10
## %bb.3:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rdi,4), %rsi
	addq	%rdx, %rsi
	jmpq	*%rsi
LBB0_4:
	movq	_MOUSE_FLAG_BUTTON1@GOTPCREL(%rip), %rdx
	jmp	LBB0_9
LBB0_5:
	movq	_MOUSE_FLAG_BUTTON2@GOTPCREL(%rip), %rdx
	jmp	LBB0_9
LBB0_6:
	movq	_MOUSE_FLAG_BUTTON3@GOTPCREL(%rip), %rdx
	jmp	LBB0_9
LBB0_7:
	movq	_MOUSE_FLAG_BUTTON4@GOTPCREL(%rip), %rdx
	jmp	LBB0_9
LBB0_8:
	movq	_MOUSE_FLAG_BUTTON5@GOTPCREL(%rip), %rdx
LBB0_9:
	orl	(%rdx), %eax
LBB0_10:
	movq	_RDP_INPUT_MOUSE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	xorl	%edi, %edi
	movl	%eax, %edx
	popq	%rbp
	jmp	_rdp_send_input                 ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.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
LJTI0_0:
	.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
	.end_data_region
                                        ## -- End function
	.comm	_MOUSE_FLAG_DOWN,4,2            ## @MOUSE_FLAG_DOWN
	.comm	_MOUSE_FLAG_BUTTON1,4,2         ## @MOUSE_FLAG_BUTTON1
	.comm	_MOUSE_FLAG_BUTTON2,4,2         ## @MOUSE_FLAG_BUTTON2
	.comm	_MOUSE_FLAG_BUTTON3,4,2         ## @MOUSE_FLAG_BUTTON3
	.comm	_MOUSE_FLAG_BUTTON4,4,2         ## @MOUSE_FLAG_BUTTON4
	.comm	_MOUSE_FLAG_BUTTON5,4,2         ## @MOUSE_FLAG_BUTTON5
	.comm	_RDP_INPUT_MOUSE,4,2            ## @RDP_INPUT_MOUSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ui_mouse_button                ; -- Begin function ui_mouse_button
	.p2align	2
_ui_mouse_button:                       ; @ui_mouse_button
	.cfi_startproc
; %bb.0:
	mov	x4, x2
	mov	x8, x1
Lloh0:
	adrp	x9, _MOUSE_FLAG_DOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MOUSE_FLAG_DOWN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w3, #0
	csel	w2, wzr, w9, eq
	sub	w9, w0, #1
	cmp	w9, #4
	b.hi	LBB0_8
; %bb.1:
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh5:
	adrp	x9, _MOUSE_FLAG_BUTTON1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MOUSE_FLAG_BUTTON1@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh7:
	adrp	x9, _MOUSE_FLAG_BUTTON2@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MOUSE_FLAG_BUTTON2@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh9:
	adrp	x9, _MOUSE_FLAG_BUTTON3@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MOUSE_FLAG_BUTTON3@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x9, _MOUSE_FLAG_BUTTON4@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MOUSE_FLAG_BUTTON4@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x9, _MOUSE_FLAG_BUTTON5@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MOUSE_FLAG_BUTTON5@GOTPAGEOFF]
LBB0_7:
	ldr	w9, [x9]
	orr	w2, w9, w2
LBB0_8:
Lloh15:
	adrp	x9, _RDP_INPUT_MOUSE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RDP_INPUT_MOUSE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
	mov	w0, #0
	mov	x3, x8
	b	_rdp_send_input
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_MOUSE_FLAG_DOWN,4,2            ; @MOUSE_FLAG_DOWN
	.comm	_MOUSE_FLAG_BUTTON1,4,2         ; @MOUSE_FLAG_BUTTON1
	.comm	_MOUSE_FLAG_BUTTON2,4,2         ; @MOUSE_FLAG_BUTTON2
	.comm	_MOUSE_FLAG_BUTTON3,4,2         ; @MOUSE_FLAG_BUTTON3
	.comm	_MOUSE_FLAG_BUTTON4,4,2         ; @MOUSE_FLAG_BUTTON4
	.comm	_MOUSE_FLAG_BUTTON5,4,2         ; @MOUSE_FLAG_BUTTON5
	.comm	_RDP_INPUT_MOUSE,4,2            ; @RDP_INPUT_MOUSE
.subsections_via_symbols
