	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_KeyMove                     ## -- Begin function CL_KeyMove
	.p2align	4, 0x90
_CL_KeyMove:                            ## @CL_KeyMove
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_in_speed@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_cl_run@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_BUTTON_WALKING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	(%rdx), %ecx
	jne	LBB0_1
## %bb.2:
	orl	%eax, 24(%r14)
	movl	$64, %r13d
	jmp	LBB0_3
LBB0_1:
	notl	%eax
	andl	%eax, 24(%r14)
	movl	$127, %r13d
LBB0_3:
	movq	_in_strafe@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.5:
	movq	_in_right@GOTPCREL(%rip), %rdi
	callq	_CL_KeyState
	movl	%eax, %r15d
	movq	_in_left@GOTPCREL(%rip), %rdi
	callq	_CL_KeyState
	subl	%eax, %r15d
	imull	%r13d, %r15d
	jmp	LBB0_6
LBB0_4:
	xorl	%r15d, %r15d
LBB0_6:
	movq	_in_moveright@GOTPCREL(%rip), %rdi
	callq	_CL_KeyState
	movl	%eax, %r12d
	movq	_in_moveleft@GOTPCREL(%rip), %rdi
	callq	_CL_KeyState
	subl	%eax, %r12d
	imull	%r13d, %r12d
	addl	%r15d, %r12d
	movq	_in_up@GOTPCREL(%rip), %rdi
	callq	_CL_KeyState
	movl	%eax, %r15d
	movq	_in_down@GOTPCREL(%rip), %rdi
	callq	_CL_KeyState
	subl	%eax, %r15d
	imull	%r13d, %r15d
	movq	_in_forward@GOTPCREL(%rip), %rdi
	callq	_CL_KeyState
	movl	%eax, %ebx
	movq	_in_back@GOTPCREL(%rip), %rdi
	callq	_CL_KeyState
	subl	%eax, %ebx
	imull	%r13d, %ebx
	movl	%ebx, %edi
	callq	_ClampChar
	movq	%rax, 16(%r14)
	movl	%r12d, %edi
	callq	_ClampChar
	movq	%rax, 8(%r14)
	movl	%r15d, %edi
	callq	_ClampChar
	movq	%rax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_in_speed,4,2                   ## @in_speed
	.comm	_cl_run,8,3                     ## @cl_run
	.comm	_BUTTON_WALKING,4,2             ## @BUTTON_WALKING
	.comm	_in_strafe,8,3                  ## @in_strafe
	.comm	_in_right,4,2                   ## @in_right
	.comm	_in_left,4,2                    ## @in_left
	.comm	_in_moveright,4,2               ## @in_moveright
	.comm	_in_moveleft,4,2                ## @in_moveleft
	.comm	_in_up,4,2                      ## @in_up
	.comm	_in_down,4,2                    ## @in_down
	.comm	_in_forward,4,2                 ## @in_forward
	.comm	_in_back,4,2                    ## @in_back
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_KeyMove                     ; -- Begin function CL_KeyMove
	.p2align	2
_CL_KeyMove:                            ; @CL_KeyMove
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _in_speed@GOTPAGE
Lloh1:
	ldr	x8, [x8, _in_speed@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _cl_run@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cl_run@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w10, [x8]
Lloh6:
	adrp	x8, _BUTTON_WALKING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BUTTON_WALKING@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w9, w10
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
	mov	w23, #64
	b	LBB0_3
LBB0_2:
	ldr	w9, [x19, #24]
	bic	w8, w9, w8
	str	w8, [x19, #24]
	mov	w23, #127
LBB0_3:
Lloh9:
	adrp	x8, _in_strafe@GOTPAGE
Lloh10:
	ldr	x8, [x8, _in_strafe@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh12:
	adrp	x0, _in_right@GOTPAGE
Lloh13:
	ldr	x0, [x0, _in_right@GOTPAGEOFF]
	bl	_CL_KeyState
	mov	x20, x0
Lloh14:
	adrp	x0, _in_left@GOTPAGE
Lloh15:
	ldr	x0, [x0, _in_left@GOTPAGEOFF]
	bl	_CL_KeyState
	sub	w8, w20, w0
	mul	w21, w8, w23
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
Lloh16:
	adrp	x0, _in_moveright@GOTPAGE
Lloh17:
	ldr	x0, [x0, _in_moveright@GOTPAGEOFF]
	bl	_CL_KeyState
	mov	x20, x0
Lloh18:
	adrp	x0, _in_moveleft@GOTPAGE
Lloh19:
	ldr	x0, [x0, _in_moveleft@GOTPAGEOFF]
	bl	_CL_KeyState
	sub	w8, w20, w0
	madd	w20, w8, w23, w21
Lloh20:
	adrp	x0, _in_up@GOTPAGE
Lloh21:
	ldr	x0, [x0, _in_up@GOTPAGEOFF]
	bl	_CL_KeyState
	mov	x21, x0
Lloh22:
	adrp	x0, _in_down@GOTPAGE
Lloh23:
	ldr	x0, [x0, _in_down@GOTPAGEOFF]
	bl	_CL_KeyState
	sub	w8, w21, w0
	mul	w21, w8, w23
Lloh24:
	adrp	x0, _in_forward@GOTPAGE
Lloh25:
	ldr	x0, [x0, _in_forward@GOTPAGEOFF]
	bl	_CL_KeyState
	mov	x22, x0
Lloh26:
	adrp	x0, _in_back@GOTPAGE
Lloh27:
	ldr	x0, [x0, _in_back@GOTPAGEOFF]
	bl	_CL_KeyState
	sub	w8, w22, w0
	mul	w0, w8, w23
	bl	_ClampChar
	str	x0, [x19, #16]
	mov	x0, x20
	bl	_ClampChar
	str	x0, [x19, #8]
	mov	x0, x21
	bl	_ClampChar
	str	x0, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_in_speed,4,2                   ; @in_speed
	.comm	_cl_run,8,3                     ; @cl_run
	.comm	_BUTTON_WALKING,4,2             ; @BUTTON_WALKING
	.comm	_in_strafe,8,3                  ; @in_strafe
	.comm	_in_right,4,2                   ; @in_right
	.comm	_in_left,4,2                    ; @in_left
	.comm	_in_moveright,4,2               ; @in_moveright
	.comm	_in_moveleft,4,2                ; @in_moveleft
	.comm	_in_up,4,2                      ; @in_up
	.comm	_in_down,4,2                    ; @in_down
	.comm	_in_forward,4,2                 ; @in_forward
	.comm	_in_back,4,2                    ; @in_back
.subsections_via_symbols
