	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CG_InterpolatePlayerState
_CG_InterpolatePlayerState:             ## @CG_InterpolatePlayerState
	.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	_cg@GOTPCREL(%rip), %r15
	movq	16(%r15), %r12
	movq	24(%r15), %r13
	movups	8(%r12), %xmm0
	movups	24(%r12), %xmm1
	movups	%xmm0, 32(%r15)
	movups	%xmm1, 48(%r15)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_trap_GetCurrentCmdNumber
	leaq	-48(%rbp), %rbx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_trap_GetUserCmd
	leaq	32(%r15), %rdi
	movq	%rbx, %rsi
	callq	_PM_UpdateViewAngles
LBB0_2:
	cmpq	$0, 8(%r15)
	jne	LBB0_12
## %bb.3:
	testq	%r13, %r13
	je	LBB0_12
## %bb.4:
	movq	(%r13), %rax
	movq	(%r12), %rcx
	subq	%rcx, %rax
	jle	LBB0_12
## %bb.5:
	movq	(%r15), %rdx
	subq	%rcx, %rdx
	movl	8(%r13), %ecx
	movl	8(%r12), %esi
	leal	256(%rcx), %edi
	cmpl	%esi, %ecx
	cmovgel	%ecx, %edi
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rdx, %xmm0
	cvtsi2ss	%rax, %xmm3
	xorps	%xmm1, %xmm1
	cvtsi2ss	%esi, %xmm1
	subl	%esi, %edi
	cvtsi2ss	%edi, %xmm2
	divss	%xmm3, %xmm0
	movq	40(%r15), %rax
	mulss	%xmm0, %xmm2
	addss	%xmm1, %xmm2
	cvttss2si	%xmm2, %ecx
	movl	%ecx, 32(%r15)
	movq	16(%r12), %rcx
	movss	(%rcx), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	movq	16(%r13), %rdx
	movss	(%rdx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm2, %xmm1
	mulss	%xmm0, %xmm1
	addss	%xmm2, %xmm1
	movss	%xmm1, (%rax)
	testq	%r14, %r14
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	jne	LBB0_7
## %bb.6:
	movq	32(%r12), %rax
	movl	(%rax), %edi
	movq	32(%r13), %rax
	movl	(%rax), %esi
	callq	_LerpAngle
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	56(%r15), %rcx
	movl	%eax, (%rcx)
	movq	16(%r12), %rcx
	movq	16(%r13), %rdx
	movq	40(%r15), %rax
LBB0_7:
	movq	24(%r12), %rsi
	movss	(%rsi), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	movq	24(%r13), %rdi
	movss	(%rdi), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm2, %xmm1
	mulss	%xmm0, %xmm1
	addss	%xmm2, %xmm1
	movq	48(%r15), %rbx
	movss	%xmm1, (%rbx)
	movss	4(%rcx), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	movss	4(%rdx), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm2, %xmm1
	mulss	%xmm0, %xmm1
	addss	%xmm2, %xmm1
	movss	%xmm1, 4(%rax)
	testq	%r14, %r14
	jne	LBB0_9
## %bb.8:
	movq	32(%r12), %rax
	movl	4(%rax), %edi
	movq	32(%r13), %rax
	movl	4(%rax), %esi
	callq	_LerpAngle
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	56(%r15), %rcx
	movl	%eax, 4(%rcx)
	movq	16(%r12), %rcx
	movq	24(%r12), %rsi
	movq	16(%r13), %rdx
	movq	24(%r13), %rdi
	movq	40(%r15), %rax
	movq	48(%r15), %rbx
LBB0_9:
	movss	4(%rsi), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	movss	4(%rdi), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm2, %xmm1
	mulss	%xmm0, %xmm1
	addss	%xmm2, %xmm1
	movss	%xmm1, 4(%rbx)
	movss	8(%rcx), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	movss	8(%rdx), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm2, %xmm1
	mulss	%xmm0, %xmm1
	addss	%xmm2, %xmm1
	movss	%xmm1, 8(%rax)
	testq	%r14, %r14
	jne	LBB0_11
## %bb.10:
	movq	32(%r12), %rax
	movl	8(%rax), %edi
	movq	32(%r13), %rax
	movl	8(%rax), %esi
	callq	_LerpAngle
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	56(%r15), %rcx
	movl	%eax, 8(%rcx)
	movq	24(%r12), %rsi
	movq	24(%r13), %rdi
	movq	48(%r15), %rbx
LBB0_11:
	movss	8(%rsi), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	movss	8(%rdi), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm2, %xmm1
	mulss	%xmm1, %xmm0
	addss	%xmm2, %xmm0
	movss	%xmm0, 8(%rbx)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,64,3                        ## @cg
	.no_dead_strip	_CG_InterpolatePlayerState
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_InterpolatePlayerState
_CG_InterpolatePlayerState:             ; @CG_InterpolatePlayerState
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x0
Lloh0:
	adrp	x21, _cg@GOTPAGE
Lloh1:
	ldr	x21, [x21, _cg@GOTPAGEOFF]
	ldp	x20, x22, [x21, #16]
	ldur	q0, [x20, #24]
	ldur	q1, [x20, #8]
	stp	q1, q0, [x21, #32]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_trap_GetCurrentCmdNumber
	add	x1, sp, #12
	bl	_trap_GetUserCmd
	add	x0, x21, #32
	add	x1, sp, #12
	bl	_PM_UpdateViewAngles
LBB0_2:
	ldr	x8, [x21, #8]
	cmp	x8, #0
	ccmp	x22, #0, #4, eq
	b.eq	LBB0_11
; %bb.3:
	ldr	x8, [x22]
	ldr	x9, [x20]
	subs	x8, x8, x9
	b.le	LBB0_11
; %bb.4:
	ldr	x10, [x21]
	sub	x9, x10, x9
	scvtf	s0, x9
	scvtf	s1, x8
	fdiv	s8, s0, s1
	ldr	w8, [x22, #8]
	ldr	w9, [x20, #8]
	add	w10, w8, #256
	cmp	w8, w9
	csel	w8, w10, w8, lt
	scvtf	s0, w9
	sub	w8, w8, w9
	scvtf	s1, w8
	fmadd	s0, s8, s1, s0
	fcvtzs	w8, s0
	str	w8, [x21, #32]
	ldr	x8, [x20, #16]
	ldr	s0, [x8]
	ldr	x9, [x22, #16]
	ldr	s1, [x9]
	fsub	s1, s1, s0
	fmadd	s0, s8, s1, s0
	ldr	x11, [x21, #40]
	str	s0, [x11]
	cbnz	x19, LBB0_6
; %bb.5:
	ldr	x8, [x20, #32]
	ldr	w0, [x8]
	ldr	x8, [x22, #32]
	ldr	w1, [x8]
	fmov	s0, s8
	bl	_LerpAngle
	ldr	x8, [x21, #56]
	str	w0, [x8]
	ldr	x8, [x20, #16]
	ldr	x9, [x22, #16]
	ldr	x11, [x21, #40]
LBB0_6:
	ldr	x10, [x20, #24]
	ldr	s0, [x10]
	ldr	x12, [x22, #24]
	ldr	s1, [x12]
	fsub	s1, s1, s0
	fmadd	s0, s8, s1, s0
	ldr	x13, [x21, #48]
	str	s0, [x13]
	ldr	s0, [x8, #4]
	ldr	s1, [x9, #4]
	fsub	s1, s1, s0
	fmadd	s0, s8, s1, s0
	str	s0, [x11, #4]
	cbnz	x19, LBB0_8
; %bb.7:
	ldr	x8, [x20, #32]
	ldr	w0, [x8, #4]
	ldr	x8, [x22, #32]
	ldr	w1, [x8, #4]
	fmov	s0, s8
	bl	_LerpAngle
	ldr	x8, [x21, #56]
	str	w0, [x8, #4]
	ldp	x8, x10, [x20, #16]
	ldp	x9, x12, [x22, #16]
	ldp	x11, x13, [x21, #40]
LBB0_8:
	ldr	s0, [x10, #4]
	ldr	s1, [x12, #4]
	fsub	s1, s1, s0
	fmadd	s0, s8, s1, s0
	str	s0, [x13, #4]
	ldr	s0, [x8, #8]
	ldr	s1, [x9, #8]
	fsub	s1, s1, s0
	fmadd	s0, s8, s1, s0
	str	s0, [x11, #8]
	cbnz	x19, LBB0_10
; %bb.9:
	ldr	x8, [x20, #32]
	ldr	w0, [x8, #8]
	ldr	x8, [x22, #32]
	ldr	w1, [x8, #8]
	fmov	s0, s8
	bl	_LerpAngle
	ldp	x13, x8, [x21, #48]
	str	w0, [x8, #8]
	ldr	x10, [x20, #24]
	ldr	x12, [x22, #24]
LBB0_10:
	ldr	s0, [x10, #8]
	ldr	s1, [x12, #8]
	fsub	s1, s1, s0
	fmadd	s0, s8, s1, s0
	str	s0, [x13, #8]
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,64,3                        ; @cg
	.no_dead_strip	_CG_InterpolatePlayerState
.subsections_via_symbols
