	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rwebinput_mouse_cb
_rwebinput_mouse_cb:                    ## @rwebinput_mouse_cb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movb	(%rsi), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	28(%rsi), %edx
	movq	_g_rwebinput_mouse@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%edx, 16(%rcx)
	movl	24(%rsi), %edx
	movl	%edx, 12(%rcx)
	movl	16(%rsi), %edx
	addl	%edx, 8(%rcx)
	movl	8(%rsi), %edx
	addl	%edx, 4(%rcx)
	movq	_EMSCRIPTEN_EVENT_MOUSEDOWN@GOTPCREL(%rip), %rdx
	cmpl	%edi, (%rdx)
	jne	LBB0_2
## %bb.1:
	orl	%eax, (%rcx)
	jmp	LBB0_4
LBB0_2:
	movq	_EMSCRIPTEN_EVENT_MOUSEUP@GOTPCREL(%rip), %rdx
	cmpl	%edi, (%rdx)
	jne	LBB0_4
## %bb.3:
	notl	%eax
	andl	%eax, (%rcx)
LBB0_4:
	movq	_EM_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_rwebinput_mouse,8,3          ## @g_rwebinput_mouse
	.comm	_EMSCRIPTEN_EVENT_MOUSEDOWN,4,2 ## @EMSCRIPTEN_EVENT_MOUSEDOWN
	.comm	_EMSCRIPTEN_EVENT_MOUSEUP,4,2   ## @EMSCRIPTEN_EVENT_MOUSEUP
	.comm	_EM_TRUE,4,2                    ## @EM_TRUE
	.no_dead_strip	_rwebinput_mouse_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rwebinput_mouse_cb
_rwebinput_mouse_cb:                    ; @rwebinput_mouse_cb
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
	mov	w9, #1
	lsl	w9, w9, w8
Lloh0:
	adrp	x8, _g_rwebinput_mouse@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_rwebinput_mouse@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	d0, [x1, #24]
	stur	d0, [x8, #12]
	ldur	q0, [x1, #8]
	ldur	d1, [x8, #4]
	xtn.2s	v0, v0
	add.2s	v0, v1, v0
	stur	d0, [x8, #4]
Lloh3:
	adrp	x10, _EMSCRIPTEN_EVENT_MOUSEDOWN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _EMSCRIPTEN_EVENT_MOUSEDOWN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w10, w0
	b.ne	LBB0_2
; %bb.1:
	ldr	w10, [x8]
	orr	w9, w10, w9
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x10, _EMSCRIPTEN_EVENT_MOUSEUP@GOTPAGE
Lloh7:
	ldr	x10, [x10, _EMSCRIPTEN_EVENT_MOUSEUP@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w10, w0
	b.ne	LBB0_5
; %bb.3:
	ldr	w10, [x8]
	bic	w9, w10, w9
LBB0_4:
	str	w9, [x8]
LBB0_5:
Lloh9:
	adrp	x8, _EM_TRUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EM_TRUE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_g_rwebinput_mouse,8,3          ; @g_rwebinput_mouse
	.comm	_EMSCRIPTEN_EVENT_MOUSEDOWN,4,2 ; @EMSCRIPTEN_EVENT_MOUSEDOWN
	.comm	_EMSCRIPTEN_EVENT_MOUSEUP,4,2   ; @EMSCRIPTEN_EVENT_MOUSEUP
	.comm	_EM_TRUE,4,2                    ; @EM_TRUE
	.no_dead_strip	_rwebinput_mouse_cb
.subsections_via_symbols
