	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function winraw_lightgun_aiming_state
_winraw_lightgun_aiming_state:          ## @winraw_lightgun_aiming_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	%r14
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_config_get_ptr
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movq	_MAX_USERS@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jbe	LBB0_5
## %bb.1:
	movq	_g_mouse_cnt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.2:
	movq	(%rax), %rax
	movl	%ebx, %edx
	movl	(%rax,%rdx,4), %eax
	decl	%ecx
	cmpl	%ecx, %eax
	ja	LBB0_5
## %bb.3:
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movl	(%rcx,%rax,8), %edx
	movl	4(%rcx,%rax,8), %esi
	leaq	-20(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-80(%rbp), %rdi
	leaq	-32(%rbp), %rcx
	leaq	-28(%rbp), %r8
	leaq	-24(%rbp), %r9
	callq	_video_driver_translate_coord_viewport_wrap
LBB0_5:
	xorl	%eax, %eax
	addq	$80, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_USERS,4,2                  ## @MAX_USERS
	.comm	_g_mouse_cnt,4,2                ## @g_mouse_cnt
	.no_dead_strip	_winraw_lightgun_aiming_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function winraw_lightgun_aiming_state
_winraw_lightgun_aiming_state:          ; @winraw_lightgun_aiming_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_config_get_ptr
	stp	xzr, xzr, [sp]
Lloh0:
	adrp	x8, _MAX_USERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_USERS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ls	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _g_mouse_cnt@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g_mouse_cnt@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	cbz	w9, LBB0_5
; %bb.2:
	ldr	x8, [x0]
	ldr	w8, [x8, w20, uxtw #2]
	sub	w9, w9, #1
	cmp	w8, w9
	b.hi	LBB0_5
; %bb.3:
	ldr	x9, [x19]
	cbz	x9, LBB0_5
; %bb.4:
	add	x8, x9, x8, lsl #3
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	str	q0, [sp, #16]
	ldp	w2, w1, [x8]
	add	x0, sp, #16
	add	x3, sp, #12
	add	x4, sp, #8
	add	x5, sp, #4
	mov	x6, sp
	bl	_video_driver_translate_coord_viewport_wrap
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_USERS,4,2                  ; @MAX_USERS
	.comm	_g_mouse_cnt,4,2                ; @g_mouse_cnt
	.no_dead_strip	_winraw_lightgun_aiming_state
.subsections_via_symbols
