	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function CL_KeyState
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CL_KeyState
	.p2align	4, 0x90
_CL_KeyState:                           ## @CL_KeyState
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	movl	$0, (%rdi)
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	8(%rdi), %rcx
	subl	%ecx, %eax
	xorl	%edx, %edx
	testq	%rcx, %rcx
	movq	_com_frameTime@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmovnel	%eax, %edx
	leal	(%rcx,%rdx), %eax
	movq	%rcx, 8(%rdi)
LBB0_2:
	cvtsi2ss	%eax, %xmm0
	movq	_frame_msec@GOTPCREL(%rip), %rax
	divss	(%rax), %xmm0
	xorps	%xmm1, %xmm1
	maxss	%xmm0, %xmm1
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	minss	%xmm1, %xmm0
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_com_frameTime,8,3              ## @com_frameTime
	.comm	_frame_msec,4,2                 ## @frame_msec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_KeyState                    ; -- Begin function CL_KeyState
	.p2align	2
_CL_KeyState:                           ; @CL_KeyState
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	str	wzr, [x0]
	ldr	x9, [x0, #16]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	x9, [x0, #8]
Lloh0:
	adrp	x10, _com_frameTime@GOTPAGE
Lloh1:
	ldr	x10, [x10, _com_frameTime@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	sub	w8, w8, w9
	cmp	x9, #0
	csel	w8, wzr, w8, eq
	add	w8, w8, w10
	str	x10, [x0, #8]
LBB0_2:
	scvtf	s0, w8
Lloh3:
	adrp	x8, _frame_msec@GOTPAGE
Lloh4:
	ldr	x8, [x8, _frame_msec@GOTPAGEOFF]
Lloh5:
	ldr	s1, [x8]
	fdiv	s0, s0, s1
	movi	d1, #0000000000000000
	fmax	s0, s0, s1
	fmov	s1, #1.00000000
	fmin	s0, s0, s1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_com_frameTime,8,3              ; @com_frameTime
	.comm	_frame_msec,4,2                 ; @frame_msec
.subsections_via_symbols
