	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mouse_step
_mouse_step:                            ## @mouse_step
	.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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_INPUT_STICK_CENTRE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_mouse_move_x@GOTPCREL(%rip), %r8
	movl	(%r8), %r10d
	movl	%r10d, %edi
	negl	%edi
	cmovsl	%r10d, %edi
	movq	_mouse_move_y@GOTPCREL(%rip), %r9
	movl	(%r9), %r15d
	movl	%r15d, %edx
	negl	%edx
	cmovsl	%r15d, %edx
	cmpl	%edx, %edi
	jae	LBB0_3
## %bb.1:
	testl	%r15d, %r15d
	js	LBB0_6
## %bb.2:
	movq	_INPUT_STICK_BACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	movq	_mouse_last_down@GOTPCREL(%rip), %rcx
	movq	_mouse_y@GOTPCREL(%rip), %rsi
	incl	(%rsi)
	movl	$1, (%rcx)
	movq	_MOUSE_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$-1, %ebx
	shll	%cl, %ebx
	addl	%r15d, %ebx
	xorl	%esi, %esi
	testl	%ebx, %ebx
	cmovgl	%ebx, %esi
	jmp	LBB0_7
LBB0_3:
	testl	%r10d, %r10d
	je	LBB0_18
## %bb.4:
	js	LBB0_10
## %bb.5:
	movq	_INPUT_STICK_RIGHT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	movq	_mouse_last_right@GOTPCREL(%rip), %rcx
	movq	_mouse_x@GOTPCREL(%rip), %rsi
	incl	(%rsi)
	movl	$1, (%rcx)
	movq	_MOUSE_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$-1, %ebx
	shll	%cl, %ebx
	addl	%r10d, %ebx
	xorl	%esi, %esi
	testl	%ebx, %ebx
	cmovgl	%ebx, %esi
	jmp	LBB0_11
LBB0_6:
	movq	_INPUT_STICK_FORWARD@GOTPCREL(%rip), %rsi
	movq	_mouse_y@GOTPCREL(%rip), %rcx
	decl	(%rcx)
	movq	_mouse_last_down@GOTPCREL(%rip), %rcx
	movl	$0, (%rcx)
	movq	_MOUSE_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$1, %ebx
	shll	%cl, %ebx
	movl	(%rsi), %r11d
	addl	%r15d, %ebx
	movl	%ebx, %esi
	sarl	$31, %esi
	andl	%ebx, %esi
LBB0_7:
	andl	%r11d, %eax
	movl	%esi, (%r9)
	movl	_mouse_step.e(%rip), %esi
	subl	%edi, %esi
	movl	%esi, _mouse_step.e(%rip)
	jns	LBB0_18
## %bb.8:
	addl	%edx, %esi
	movl	%esi, _mouse_step.e(%rip)
	testl	%r10d, %r10d
	js	LBB0_14
## %bb.9:
	movq	_INPUT_STICK_RIGHT@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	movq	_mouse_x@GOTPCREL(%rip), %rdx
	incl	(%rdx)
	movl	$-1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movq	_mouse_last_right@GOTPCREL(%rip), %rcx
	movl	$1, (%rcx)
	addl	%r10d, %edx
	xorl	%ecx, %ecx
	testl	%edx, %edx
	cmovgl	%edx, %ecx
	jmp	LBB0_15
LBB0_10:
	movq	_INPUT_STICK_LEFT@GOTPCREL(%rip), %rsi
	movq	_mouse_x@GOTPCREL(%rip), %rcx
	decl	(%rcx)
	movq	_mouse_last_right@GOTPCREL(%rip), %rcx
	movl	$0, (%rcx)
	movq	_MOUSE_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$1, %r14d
	shll	%cl, %r14d
	movl	(%rsi), %r11d
	addl	%r10d, %r14d
	movl	%r14d, %esi
	sarl	$31, %esi
	andl	%r14d, %esi
LBB0_11:
	andl	%r11d, %eax
	movl	%esi, (%r8)
	movl	_mouse_step.e(%rip), %esi
	subl	%edx, %esi
	movl	%esi, _mouse_step.e(%rip)
	jns	LBB0_18
## %bb.12:
	addl	%edi, %esi
	movl	%esi, _mouse_step.e(%rip)
	testl	%r15d, %r15d
	js	LBB0_16
## %bb.13:
	movq	_INPUT_STICK_BACK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	movq	_mouse_y@GOTPCREL(%rip), %rdx
	incl	(%rdx)
	movl	$-1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movq	_mouse_last_down@GOTPCREL(%rip), %rcx
	movl	$1, (%rcx)
	addl	%r15d, %edx
	xorl	%ecx, %ecx
	testl	%edx, %edx
	cmovgl	%edx, %ecx
	jmp	LBB0_17
LBB0_14:
	movq	_INPUT_STICK_LEFT@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	movq	_mouse_last_right@GOTPCREL(%rip), %rdx
	movl	$0, (%rdx)
	movq	_mouse_x@GOTPCREL(%rip), %rdx
	decl	(%rdx)
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	addl	%r10d, %edx
	movl	%edx, %ecx
	sarl	$31, %ecx
	andl	%edx, %ecx
LBB0_15:
	movl	%ecx, (%r8)
	jmp	LBB0_18
LBB0_16:
	movq	_INPUT_STICK_FORWARD@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	movq	_mouse_last_down@GOTPCREL(%rip), %rdx
	movl	$0, (%rdx)
	movq	_mouse_y@GOTPCREL(%rip), %rdx
	decl	(%rdx)
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	addl	%r15d, %edx
	movl	%edx, %ecx
	sarl	$31, %ecx
	andl	%edx, %ecx
LBB0_17:
	movl	%ecx, (%r9)
LBB0_18:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_mouse_step.e,4,2 ## @mouse_step.e
	.comm	_INPUT_STICK_CENTRE,4,2         ## @INPUT_STICK_CENTRE
	.comm	_mouse_move_x,4,2               ## @mouse_move_x
	.comm	_mouse_move_y,4,2               ## @mouse_move_y
	.comm	_INPUT_STICK_LEFT,4,2           ## @INPUT_STICK_LEFT
	.comm	_mouse_last_right,4,2           ## @mouse_last_right
	.comm	_mouse_x,4,2                    ## @mouse_x
	.comm	_MOUSE_SHIFT,4,2                ## @MOUSE_SHIFT
	.comm	_INPUT_STICK_RIGHT,4,2          ## @INPUT_STICK_RIGHT
	.comm	_INPUT_STICK_FORWARD,4,2        ## @INPUT_STICK_FORWARD
	.comm	_mouse_last_down,4,2            ## @mouse_last_down
	.comm	_mouse_y,4,2                    ## @mouse_y
	.comm	_INPUT_STICK_BACK,4,2           ## @INPUT_STICK_BACK
	.no_dead_strip	_mouse_step
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mouse_step
_mouse_step:                            ; @mouse_step
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _INPUT_STICK_CENTRE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INPUT_STICK_CENTRE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _mouse_move_x@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mouse_move_x@GOTPAGEOFF]
	ldr	w10, [x8]
	cmp	w10, #0
	cneg	w12, w10, mi
Lloh5:
	adrp	x9, _mouse_move_y@GOTPAGE
Lloh6:
	ldr	x9, [x9, _mouse_move_y@GOTPAGEOFF]
	ldr	w11, [x9]
	cmp	w11, #0
	cneg	w13, w11, mi
	cmp	w12, w13
	b.hs	LBB0_3
; %bb.1:
	tbnz	w11, #31, LBB0_6
; %bb.2:
Lloh7:
	adrp	x14, _INPUT_STICK_BACK@GOTPAGE
Lloh8:
	ldr	x14, [x14, _INPUT_STICK_BACK@GOTPAGEOFF]
Lloh9:
	ldr	w15, [x14]
Lloh10:
	adrp	x14, _mouse_last_down@GOTPAGE
Lloh11:
	ldr	x14, [x14, _mouse_last_down@GOTPAGEOFF]
	mov	w16, #1
Lloh12:
	str	w16, [x14]
Lloh13:
	adrp	x14, _mouse_y@GOTPAGE
Lloh14:
	ldr	x14, [x14, _mouse_y@GOTPAGEOFF]
	ldr	w16, [x14]
	add	w16, w16, #1
	str	w16, [x14]
Lloh15:
	adrp	x14, _MOUSE_SHIFT@GOTPAGE
Lloh16:
	ldr	x14, [x14, _MOUSE_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w14, [x14]
	mov	w16, #-1
	lsl	w16, w16, w14
	add	w11, w16, w11
	cmp	w11, #0
	csel	w11, w11, wzr, gt
                                        ; kill: def $w14 killed $w14 killed $x14 def $x14
	b	LBB0_7
LBB0_3:
	cbz	w10, LBB0_8
; %bb.4:
	tbnz	w10, #31, LBB0_11
; %bb.5:
Lloh18:
	adrp	x14, _INPUT_STICK_RIGHT@GOTPAGE
Lloh19:
	ldr	x14, [x14, _INPUT_STICK_RIGHT@GOTPAGEOFF]
Lloh20:
	ldr	w15, [x14]
Lloh21:
	adrp	x14, _mouse_last_right@GOTPAGE
Lloh22:
	ldr	x14, [x14, _mouse_last_right@GOTPAGEOFF]
	mov	w16, #1
Lloh23:
	str	w16, [x14]
Lloh24:
	adrp	x14, _mouse_x@GOTPAGE
Lloh25:
	ldr	x14, [x14, _mouse_x@GOTPAGEOFF]
	ldr	w16, [x14]
	add	w16, w16, #1
	str	w16, [x14]
Lloh26:
	adrp	x14, _MOUSE_SHIFT@GOTPAGE
Lloh27:
	ldr	x14, [x14, _MOUSE_SHIFT@GOTPAGEOFF]
Lloh28:
	ldr	w14, [x14]
	mov	w16, #-1
	lsl	w16, w16, w14
	add	w10, w16, w10
	cmp	w10, #0
	csel	w10, w10, wzr, gt
                                        ; kill: def $w14 killed $w14 killed $x14 def $x14
	b	LBB0_12
LBB0_6:
Lloh29:
	adrp	x14, _INPUT_STICK_FORWARD@GOTPAGE
Lloh30:
	ldr	x14, [x14, _INPUT_STICK_FORWARD@GOTPAGEOFF]
Lloh31:
	ldr	w15, [x14]
Lloh32:
	adrp	x14, _mouse_last_down@GOTPAGE
Lloh33:
	ldr	x14, [x14, _mouse_last_down@GOTPAGEOFF]
Lloh34:
	adrp	x16, _mouse_y@GOTPAGE
Lloh35:
	ldr	x16, [x16, _mouse_y@GOTPAGEOFF]
Lloh36:
	str	wzr, [x14]
	ldr	w14, [x16]
	sub	w14, w14, #1
	str	w14, [x16]
Lloh37:
	adrp	x14, _MOUSE_SHIFT@GOTPAGE
Lloh38:
	ldr	x14, [x14, _MOUSE_SHIFT@GOTPAGEOFF]
Lloh39:
	ldr	w14, [x14]
	mov	w16, #1
	lsl	w16, w16, w14
	add	w11, w16, w11
	cmp	w11, #0
	csel	w11, w11, wzr, lt
LBB0_7:
	and	w0, w15, w0
	str	w11, [x9]
	adrp	x9, _mouse_step.e@PAGE
	ldr	w11, [x9, _mouse_step.e@PAGEOFF]
	subs	w11, w11, w12
	str	w11, [x9, _mouse_step.e@PAGEOFF]
	b.mi	LBB0_9
LBB0_8:
	ret
LBB0_9:
	add	w11, w11, w13
	str	w11, [x9, _mouse_step.e@PAGEOFF]
	tbnz	w10, #31, LBB0_15
; %bb.10:
Lloh40:
	adrp	x9, _INPUT_STICK_RIGHT@GOTPAGE
Lloh41:
	ldr	x9, [x9, _INPUT_STICK_RIGHT@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	and	w0, w9, w0
Lloh43:
	adrp	x9, _mouse_last_right@GOTPAGE
Lloh44:
	ldr	x9, [x9, _mouse_last_right@GOTPAGEOFF]
	mov	w11, #1
Lloh45:
	str	w11, [x9]
Lloh46:
	adrp	x9, _mouse_x@GOTPAGE
Lloh47:
	ldr	x9, [x9, _mouse_x@GOTPAGEOFF]
	ldr	w11, [x9]
	add	w11, w11, #1
	str	w11, [x9]
	mov	w9, #-1
	lsl	w9, w9, w14
	add	w9, w9, w10
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	str	w9, [x8]
	ret
LBB0_11:
Lloh48:
	adrp	x14, _INPUT_STICK_LEFT@GOTPAGE
Lloh49:
	ldr	x14, [x14, _INPUT_STICK_LEFT@GOTPAGEOFF]
Lloh50:
	ldr	w15, [x14]
Lloh51:
	adrp	x14, _mouse_last_right@GOTPAGE
Lloh52:
	ldr	x14, [x14, _mouse_last_right@GOTPAGEOFF]
Lloh53:
	adrp	x16, _mouse_x@GOTPAGE
Lloh54:
	ldr	x16, [x16, _mouse_x@GOTPAGEOFF]
Lloh55:
	str	wzr, [x14]
	ldr	w14, [x16]
	sub	w14, w14, #1
	str	w14, [x16]
Lloh56:
	adrp	x14, _MOUSE_SHIFT@GOTPAGE
Lloh57:
	ldr	x14, [x14, _MOUSE_SHIFT@GOTPAGEOFF]
Lloh58:
	ldr	w14, [x14]
	mov	w16, #1
	lsl	w16, w16, w14
	add	w10, w16, w10
	cmp	w10, #0
	csel	w10, w10, wzr, lt
LBB0_12:
	and	w0, w15, w0
	str	w10, [x8]
	adrp	x8, _mouse_step.e@PAGE
	ldr	w10, [x8, _mouse_step.e@PAGEOFF]
	subs	w10, w10, w13
	str	w10, [x8, _mouse_step.e@PAGEOFF]
	b.pl	LBB0_8
; %bb.13:
	add	w10, w10, w12
	str	w10, [x8, _mouse_step.e@PAGEOFF]
	tbnz	w11, #31, LBB0_16
; %bb.14:
Lloh59:
	adrp	x8, _INPUT_STICK_BACK@GOTPAGE
Lloh60:
	ldr	x8, [x8, _INPUT_STICK_BACK@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
	and	w0, w8, w0
Lloh62:
	adrp	x8, _mouse_last_down@GOTPAGE
Lloh63:
	ldr	x8, [x8, _mouse_last_down@GOTPAGEOFF]
	mov	w10, #1
Lloh64:
	str	w10, [x8]
Lloh65:
	adrp	x8, _mouse_y@GOTPAGE
Lloh66:
	ldr	x8, [x8, _mouse_y@GOTPAGEOFF]
	ldr	w10, [x8]
	add	w10, w10, #1
	str	w10, [x8]
	mov	w8, #-1
	lsl	w8, w8, w14
	add	w8, w8, w11
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	str	w8, [x9]
	ret
LBB0_15:
Lloh67:
	adrp	x9, _INPUT_STICK_LEFT@GOTPAGE
Lloh68:
	ldr	x9, [x9, _INPUT_STICK_LEFT@GOTPAGEOFF]
Lloh69:
	ldr	w9, [x9]
	and	w0, w9, w0
Lloh70:
	adrp	x9, _mouse_last_right@GOTPAGE
Lloh71:
	ldr	x9, [x9, _mouse_last_right@GOTPAGEOFF]
Lloh72:
	str	wzr, [x9]
Lloh73:
	adrp	x9, _mouse_x@GOTPAGE
Lloh74:
	ldr	x9, [x9, _mouse_x@GOTPAGEOFF]
	ldr	w11, [x9]
	sub	w11, w11, #1
	str	w11, [x9]
	mov	w9, #1
	lsl	w9, w9, w14
	add	w9, w9, w10
	cmp	w9, #0
	csel	w9, w9, wzr, lt
	str	w9, [x8]
	ret
LBB0_16:
Lloh75:
	adrp	x8, _INPUT_STICK_FORWARD@GOTPAGE
Lloh76:
	ldr	x8, [x8, _INPUT_STICK_FORWARD@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
	and	w0, w8, w0
Lloh78:
	adrp	x8, _mouse_last_down@GOTPAGE
Lloh79:
	ldr	x8, [x8, _mouse_last_down@GOTPAGEOFF]
Lloh80:
	str	wzr, [x8]
Lloh81:
	adrp	x8, _mouse_y@GOTPAGE
Lloh82:
	ldr	x8, [x8, _mouse_y@GOTPAGEOFF]
	ldr	w10, [x8]
	sub	w10, w10, #1
	str	w10, [x8]
	mov	w8, #1
	lsl	w8, w8, w14
	add	w8, w8, w11
	cmp	w8, #0
	csel	w8, w8, wzr, lt
	str	w8, [x9]
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh36
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotStr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotStr	Lloh51, Lloh52, Lloh55
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGotStr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGotStr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGotStr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_mouse_step.e,4,2 ; @mouse_step.e
	.comm	_INPUT_STICK_CENTRE,4,2         ; @INPUT_STICK_CENTRE
	.comm	_mouse_move_x,4,2               ; @mouse_move_x
	.comm	_mouse_move_y,4,2               ; @mouse_move_y
	.comm	_INPUT_STICK_LEFT,4,2           ; @INPUT_STICK_LEFT
	.comm	_mouse_last_right,4,2           ; @mouse_last_right
	.comm	_mouse_x,4,2                    ; @mouse_x
	.comm	_MOUSE_SHIFT,4,2                ; @MOUSE_SHIFT
	.comm	_INPUT_STICK_RIGHT,4,2          ; @INPUT_STICK_RIGHT
	.comm	_INPUT_STICK_FORWARD,4,2        ; @INPUT_STICK_FORWARD
	.comm	_mouse_last_down,4,2            ; @mouse_last_down
	.comm	_mouse_y,4,2                    ; @mouse_y
	.comm	_INPUT_STICK_BACK,4,2           ; @INPUT_STICK_BACK
	.no_dead_strip	_mouse_step
.subsections_via_symbols
