	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dinput_mouse_state
_dinput_mouse_state:                    ## @dinput_mouse_state
	.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	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	_MAX_USERS@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jbe	LBB0_15
## %bb.1:
	movq	(%rax), %rax
	movl	%ebx, %ecx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_2
LBB0_15:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	addl	$-128, %r12d
	cmpl	$10, %r12d
	ja	LBB0_15
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r12,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	movl	4(%r14), %r15d
	jmp	LBB0_15
LBB0_4:
	movl	(%r14), %r15d
	jmp	LBB0_15
LBB0_8:
	xorl	%r15d, %r15d
	cmpl	$0, 16(%r14)
	setne	%r15b
	movl	$0, 16(%r14)
	jmp	LBB0_15
LBB0_9:
	xorl	%r15d, %r15d
	cmpl	$0, 20(%r14)
	setne	%r15b
	movl	$0, 20(%r14)
	jmp	LBB0_15
LBB0_7:
	movl	12(%r14), %r15d
	jmp	LBB0_15
LBB0_12:
	movl	32(%r14), %r15d
	jmp	LBB0_15
LBB0_6:
	movl	8(%r14), %r15d
	jmp	LBB0_15
LBB0_10:
	xorl	%r15d, %r15d
	cmpl	$0, 24(%r14)
	setne	%r15b
	movl	$0, 24(%r14)
	jmp	LBB0_15
LBB0_11:
	xorl	%r15d, %r15d
	cmpl	$0, 28(%r14)
	setne	%r15b
	movl	$0, 28(%r14)
	jmp	LBB0_15
LBB0_14:
	movl	40(%r14), %r15d
	jmp	LBB0_15
LBB0_13:
	movl	36(%r14), %r15d
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_12
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_14
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_MAX_USERS,4,2                  ## @MAX_USERS
	.no_dead_strip	_dinput_mouse_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dinput_mouse_state
_dinput_mouse_state:                    ; @dinput_mouse_state
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_config_get_ptr
Lloh0:
	adrp	x8, _MAX_USERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_USERS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ls	LBB0_2
; %bb.1:
	ldr	x8, [x0]
	ldr	x8, [x8, w21, uxtw #3]
	cbz	x8, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	sub	w8, w20, #128
	cmp	w8, #10
	b.hi	LBB0_2
; %bb.5:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	ldr	w0, [x19, #4]
	b	LBB0_3
LBB0_7:
	ldr	w0, [x19]
	b	LBB0_3
LBB0_8:
	ldr	w8, [x19, #16]
	cmp	w8, #0
	cset	w0, ne
	str	wzr, [x19, #16]
	b	LBB0_3
LBB0_9:
	ldr	w8, [x19, #20]
	cmp	w8, #0
	cset	w0, ne
	str	wzr, [x19, #20]
	b	LBB0_3
LBB0_10:
	ldr	w0, [x19, #12]
	b	LBB0_3
LBB0_11:
	ldr	w0, [x19, #32]
	b	LBB0_3
LBB0_12:
	ldr	w0, [x19, #8]
	b	LBB0_3
LBB0_13:
	ldr	w8, [x19, #24]
	cmp	w8, #0
	cset	w0, ne
	str	wzr, [x19, #24]
	b	LBB0_3
LBB0_14:
	ldr	w8, [x19, #28]
	cmp	w8, #0
	cset	w0, ne
	str	wzr, [x19, #28]
	b	LBB0_3
LBB0_15:
	ldr	w0, [x19, #40]
	b	LBB0_3
LBB0_16:
	ldr	w0, [x19, #36]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_14-LBB0_6)>>2
	.byte	(LBB0_15-LBB0_6)>>2
	.byte	(LBB0_16-LBB0_6)>>2
                                        ; -- End function
	.comm	_MAX_USERS,4,2                  ; @MAX_USERS
	.no_dead_strip	_dinput_mouse_state
.subsections_via_symbols
