	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cocoa_pointer_state
_cocoa_pointer_state:                   ## @cocoa_pointer_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $ecx killed $ecx def $rcx
	movl	(%rdi), %r8d
	xorl	%eax, %eax
	cmpl	%edx, %r8d
	jbe	LBB0_10
## %bb.1:
	movq	_MAX_TOUCHES@GOTPCREL(%rip), %r9
	cmpl	%edx, (%r9)
	jbe	LBB0_10
## %bb.2:
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	_RARCH_DEVICE_POINTER_SCREEN@GOTPCREL(%rip), %r9
	xorl	%edi, %edi
	cmpl	%esi, (%r9)
	sete	%sil
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_7
## %bb.4:
	movl	%edx, %edx
	leaq	(%rax,%rdx,4), %rdx
	movb	%sil, %dil
	movl	(%rdx,%rdi,8), %eax
	movl	4(%rdx,%rdi,8), %edx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rsi, %rcx
	jmpq	*%rcx
LBB0_5:
	movl	%edx, %eax
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_8:
	cmpl	$-32768, %eax                   ## imm = 0x8000
	setne	%al
	cmpl	$-32768, %edx                   ## imm = 0x8000
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	popq	%rbp
	retq
LBB0_9:
	movl	%r8d, %eax
LBB0_10:
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_8
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_RARCH_DEVICE_POINTER_SCREEN,4,2 ## @RARCH_DEVICE_POINTER_SCREEN
	.comm	_MAX_TOUCHES,4,2                ## @MAX_TOUCHES
	.no_dead_strip	_cocoa_pointer_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cocoa_pointer_state
_cocoa_pointer_state:                   ; @cocoa_pointer_state
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MAX_TOUCHES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_TOUCHES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w2
	ccmp	w9, w2, #0, hi
	b.ls	LBB0_5
; %bb.1:
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_5
; %bb.2:
Lloh3:
	adrp	x10, _RARCH_DEVICE_POINTER_SCREEN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RARCH_DEVICE_POINTER_SCREEN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w10, w1
	cset	w10, eq
	mov	w11, #4
	mov	w12, #12
	csel	x12, x12, x11, eq
	sub	w11, w3, #128
	cmp	w11, #3
	b.hi	LBB0_5
; %bb.3:
	add	x13, x9, w2, uxtw #2
	ldr	w9, [x13, x12]
	lsl	x10, x10, #3
	ldr	w0, [x13, x10]
Lloh6:
	adrp	x10, lJTI0_0@PAGE
Lloh7:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x12, LBB0_4
	ldrb	w13, [x10, x11]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_4:
	mov	x0, x9
	ret
LBB0_5:
	mov	w0, #0
	ret
LBB0_6:
	cmn	w0, #8, lsl #12                 ; =32768
	mov	w8, #-32768
	ccmp	w9, w8, #4, ne
	cset	w0, ne
	ret
LBB0_7:
	mov	x0, x8
LBB0_8:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
                                        ; -- End function
	.comm	_RARCH_DEVICE_POINTER_SCREEN,4,2 ; @RARCH_DEVICE_POINTER_SCREEN
	.comm	_MAX_TOUCHES,4,2                ; @MAX_TOUCHES
	.no_dead_strip	_cocoa_pointer_state
.subsections_via_symbols
