	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_map
_r_map:                                 ## @r_map
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %ecx
	movl	(%rsi), %r8d
	movl	%r8d, 4(%rsi)
	movq	_rodent@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%ecx, %edx
	je	LBB0_1
## %bb.2:
	notl	%edx
	andl	%edx, %ecx
	movl	12(%rdi), %r11d
	movl	%r11d, 8(%rdi)
	movq	$0, 12(%rdi)
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
	jmp	LBB0_3
LBB0_1:
	movl	16(%rdi), %r10d
	movl	8(%rdi), %r11d
	movl	12(%rdi), %r9d
LBB0_3:
	movl	%r10d, 16(%rsi)
	movl	%r9d, 12(%rsi)
	movl	%r11d, 8(%rsi)
	movq	8(%rax), %rbx
	movl	(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_20
## %bb.4:
	cmpl	$128, %edx
	je	LBB0_8
## %bb.5:
	cmpl	$129, %edx
	jne	LBB0_10
## %bb.6:
	movl	8(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_20
## %bb.7:
	movl	%eax, 16(%rsi)
	movl	$1, %r10d
	jmp	LBB0_19
LBB0_8:
	movl	8(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_20
## %bb.9:
	movl	%eax, 12(%rsi)
	movl	$1, %r9d
	jmp	LBB0_19
LBB0_10:
	movl	4(%rbx), %r11d
	movl	8(%rbx), %r15d
	movl	%r11d, %eax
	orl	%edx, %eax
	movl	12(%rbx), %r12d
	movl	%r15d, %ebx
	orl	%r12d, %ebx
	orl	%eax, %ebx
	notl	%ebx
	andl	%ebx, %ecx
	movl	8(%rdi), %edi
	cmpl	$-2, %edi
	jg	LBB0_12
## %bb.11:
	movl	$2, %r14d
	testl	%r15d, %r15d
	jne	LBB0_18
LBB0_12:
	testl	%edi, %edi
	js	LBB0_13
## %bb.14:
	cmpl	$2, %edi
	jb	LBB0_16
## %bb.15:
	movl	$3, %r14d
	movl	%r12d, %r15d
	testl	%r12d, %r12d
	jne	LBB0_18
	jmp	LBB0_17
LBB0_13:
	xorl	%r14d, %r14d
	movl	%edx, %r15d
	jmp	LBB0_18
LBB0_16:
	cmpl	$1, %edi
	jne	LBB0_19
LBB0_17:
	movl	$1, %r14d
	movl	%r11d, %r15d
LBB0_18:
	orl	%r15d, %ecx
	movq	_zstate@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%rax,%r14,4)
LBB0_19:
	movl	$0, 8(%rsi)
	xorl	%r11d, %r11d
LBB0_20:
	movq	_MOUSE_MAXBUTTON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	movl	$0, %edx
	testl	%eax, %eax
	jle	LBB0_27
## %bb.21:
	movl	$0, %edx
	testl	%ecx, %ecx
	je	LBB0_27
## %bb.22:
	movq	_p2l@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r15
	xorl	%edx, %edx
	movl	$1, %edi
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, %ebx
	testb	$1, %cl
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	-4(%r15,%rdi,4), %ebx
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	orl	%ebx, %edx
	cmpq	%rax, %rdi
	jae	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	%ecx, %ebx
	sarl	%ebx
	incq	%rdi
	cmpl	$1, %ecx
	movl	%ebx, %ecx
	ja	LBB0_23
LBB0_27:
	movl	%edx, (%rsi)
	orl	%r9d, %r10d
	orl	%r11d, %r10d
	je	LBB0_29
## %bb.28:
	movq	_MOUSE_POSCHANGED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_29:
	xorl	%r8d, %edx
	orl	%r14d, %edx
	movl	%edx, 20(%rsi)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rodent,16,3                    ## @rodent
	.comm	_zstate,8,3                     ## @zstate
	.comm	_MOUSE_MAXBUTTON,4,2            ## @MOUSE_MAXBUTTON
	.comm	_p2l,8,3                        ## @p2l
	.comm	_MOUSE_POSCHANGED,4,2           ## @MOUSE_POSCHANGED
	.no_dead_strip	_r_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_map
_r_map:                                 ; @r_map
	.cfi_startproc
; %bb.0:
	ldr	w10, [x0]
	ldr	w8, [x1]
	str	w8, [x1, #4]
Lloh0:
	adrp	x13, _rodent@GOTPAGE
Lloh1:
	ldr	x13, [x13, _rodent@GOTPAGEOFF]
	ldr	w14, [x13]
	tst	w14, w10
	b.eq	LBB0_2
; %bb.1:
	mov	w11, #0
	mov	w9, #0
	ldr	w12, [x0, #12]
	bic	w10, w10, w14
	stp	wzr, wzr, [x0, #12]
	str	w12, [x0, #8]
	b	LBB0_3
LBB0_2:
	ldp	w11, w9, [x0, #12]
	ldr	w12, [x0, #8]
LBB0_3:
	stp	w11, w9, [x1, #12]
	str	w12, [x1, #8]
	ldr	x15, [x13, #8]
	ldr	w13, [x15]
	cbz	w13, LBB0_22
; %bb.4:
	cmp	w13, #128
	b.eq	LBB0_8
; %bb.5:
	cmp	w13, #129
	b.ne	LBB0_10
; %bb.6:
	ldr	w13, [x0, #8]
	cbz	w13, LBB0_22
; %bb.7:
	str	w13, [x1, #16]
	mov	w9, #1
	b	LBB0_21
LBB0_8:
	ldr	w13, [x0, #8]
	cbz	w13, LBB0_22
; %bb.9:
	str	w13, [x1, #12]
	mov	w11, #1
	b	LBB0_21
LBB0_10:
	ldp	w12, w14, [x15, #4]
	orr	w16, w12, w13
	orr	w17, w16, w14
	ldr	w16, [x15, #12]
	orr	w15, w17, w16
	bic	w10, w10, w15
	ldr	w15, [x0, #8]
	cmn	w15, #2
	b.gt	LBB0_13
; %bb.11:
	cbz	w14, LBB0_13
; %bb.12:
	mov	w15, #2
	b	LBB0_20
LBB0_13:
	tbnz	w15, #31, LBB0_17
; %bb.14:
	cmp	w15, #2
	b.lo	LBB0_18
; %bb.15:
	cbz	w16, LBB0_19
; %bb.16:
	mov	w15, #3
	mov	x14, x16
	b	LBB0_20
LBB0_17:
	mov	x15, #0
	mov	x14, x13
	b	LBB0_20
LBB0_18:
	cmp	w15, #1
	b.ne	LBB0_21
LBB0_19:
	mov	w15, #1
	mov	x14, x12
LBB0_20:
	orr	w10, w10, w14
Lloh2:
	adrp	x12, _zstate@GOTPAGE
Lloh3:
	ldr	x12, [x12, _zstate@GOTPAGEOFF]
Lloh4:
	ldr	x12, [x12]
	mov	w13, #1
	str	w13, [x12, x15, lsl #2]
LBB0_21:
	mov	w12, #0
	str	wzr, [x1, #8]
LBB0_22:
Lloh5:
	adrp	x13, _MOUSE_MAXBUTTON@GOTPAGE
Lloh6:
	ldr	x13, [x13, _MOUSE_MAXBUTTON@GOTPAGEOFF]
Lloh7:
	ldr	w14, [x13]
	cmp	w14, #1
	ccmp	w10, #0, #4, ge
	b.ne	LBB0_24
; %bb.23:
	mov	w13, #0
	b	LBB0_30
LBB0_24:
	mov	x15, #0
	mov	w13, #0
Lloh8:
	adrp	x16, _p2l@GOTPAGE
Lloh9:
	ldr	x16, [x16, _p2l@GOTPAGEOFF]
Lloh10:
	ldr	x16, [x16]
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	tbnz	w10, #0, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	w17, #0
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	w17, [x16, x15, lsl #2]
LBB0_28:                                ;   in Loop: Header=BB0_25 Depth=1
	orr	w13, w17, w13
	add	x15, x15, #1
	cmp	x15, x14
	b.hs	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_25 Depth=1
	asr	w17, w10, #1
	cmp	w10, #1
	mov	x10, x17
	b.hi	LBB0_25
LBB0_30:
	str	w13, [x1]
	orr	w9, w9, w11
	orr	w9, w9, w12
Lloh11:
	adrp	x10, _MOUSE_POSCHANGED@GOTPAGE
Lloh12:
	ldr	x10, [x10, _MOUSE_POSCHANGED@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	w9, #0
	csel	w9, wzr, w10, eq
	eor	w8, w13, w8
	orr	w8, w9, w8
	str	w8, [x1, #20]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_rodent,16,3                    ; @rodent
	.comm	_zstate,8,3                     ; @zstate
	.comm	_MOUSE_MAXBUTTON,4,2            ; @MOUSE_MAXBUTTON
	.comm	_p2l,8,3                        ; @p2l
	.comm	_MOUSE_POSCHANGED,4,2           ; @MOUSE_POSCHANGED
	.no_dead_strip	_r_map
.subsections_via_symbols
