	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function CG_DrawActiveFrame
LCPI0_0:
	.long	0x447a0000                      ## float 1000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CG_DrawActiveFrame
	.p2align	4, 0x90
_CG_DrawActiveFrame:                    ## @CG_DrawActiveFrame
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	_cg@GOTPCREL(%rip), %rbx
	movl	%edi, (%rbx)
	movl	%edx, 96(%rbx)
	xorl	%eax, %eax
	callq	_CG_UpdateCvars
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
LBB0_21:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CG_DrawInformation             ## TAILCALL
LBB0_1:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_trap_S_ClearLoopingSounds
	xorl	%eax, %eax
	callq	_trap_R_ClearScene
	xorl	%eax, %eax
	callq	_CG_ProcessSnapshots
	movq	64(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.2:
	movq	_SNAPFLAG_NOT_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_21
## %bb.3:
	movl	88(%rbx), %esi
	movl	92(%rbx), %edi
	callq	_trap_SetUserCmdValue
	incl	40(%rbx)
	xorl	%eax, %eax
	callq	_CG_PredictPlayerState
	movq	_cg_thirdPerson@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpq	$0, (%rcx)
	jne	LBB0_5
## %bb.4:
	movq	64(%rbx), %rax
	movq	8(%rax), %rcx
	movq	_STAT_HEALTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%eax, %eax
	cmpq	$0, (%rcx,%rdx,8)
	setle	%al
LBB0_5:
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	callq	_CG_CalcViewValues
	movl	%eax, %r14d
	cmpl	$0, 16(%rbx)
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_CG_DamageBlendBlob
LBB0_7:
	cmpl	$0, 84(%rbx)
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_CG_AddPacketEntities
	xorl	%eax, %eax
	callq	_CG_AddMarks
	xorl	%eax, %eax
	callq	_CG_AddParticles
	xorl	%eax, %eax
	callq	_CG_AddLocalEntities
LBB0_9:
	leaq	80(%rbx), %rdi
	callq	_CG_AddViewWeapon
	xorl	%eax, %eax
	callq	_CG_PlayBufferedSounds
	xorl	%eax, %eax
	callq	_CG_PlayBufferedVoiceChats
	cmpq	$0, 72(%rbx)
	je	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	callq	_CG_AddTestModel
LBB0_11:
	movl	(%rbx), %eax
	movl	56(%rbx), %edi
	movl	%eax, 44(%rbx)
	movq	64(%rbx), %rax
	movl	24(%rax), %esi
	movl	$4, %edx
	callq	_memcpy
	xorl	%eax, %eax
	callq	_CG_PowerupTimerSounds
	movq	64(%rbx), %rax
	movl	16(%rax), %edi
	movl	48(%rbx), %edx
	movl	52(%rbx), %esi
	movl	%r14d, %ecx
	callq	_trap_S_Respatialize
	movq	_STEREO_RIGHT@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_13
## %bb.12:
	movslq	(%rbx), %rax
	movq	%rax, %rcx
	subq	32(%rbx), %rcx
	xorl	%edx, %edx
	testq	%rcx, %rcx
	cmovleq	%rdx, %rcx
	movq	%rcx, 24(%rbx)
	movq	%rax, 32(%rbx)
	xorl	%eax, %eax
	callq	_CG_AddLagometerFrameInfo
LBB0_13:
	movq	_cg_timescale@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_cg_timescaleFadeEnd@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	je	LBB0_19
## %bb.14:
	movq	_cg_timescaleFadeSpeed@GOTPCREL(%rip), %rsi
	cvtsi2ssq	24(%rbx), %xmm1
	movss	(%rsi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	divss	LCPI0_0(%rip), %xmm1
	cvtsi2ss	%rdx, %xmm2
	jge	LBB0_16
## %bb.15:
	addss	%xmm2, %xmm1
	cvttss2si	%xmm1, %rsi
	cmpq	%rsi, %rcx
	cmovlq	%rcx, %rsi
	jmp	LBB0_17
LBB0_16:
	subss	%xmm1, %xmm2
	cvttss2si	%xmm2, %rsi
	cmpq	%rsi, %rcx
	cmovgq	%rcx, %rsi
LBB0_17:
	movq	%rsi, (%rax)
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jne	LBB0_18
	jnp	LBB0_19
LBB0_18:
	leaq	L_.str.1(%rip), %rdi
	callq	_va
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_trap_Cvar_Set
LBB0_19:
	movq	%r15, %rdi
	callq	_CG_DrawActive
	movq	_cg_stats@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.22:
	movl	40(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CG_Printf                      ## TAILCALL
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,104,3                       ## @cg
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_SNAPFLAG_NOT_ACTIVE,4,2        ## @SNAPFLAG_NOT_ACTIVE
	.comm	_cg_thirdPerson,8,3             ## @cg_thirdPerson
	.comm	_STAT_HEALTH,8,3                ## @STAT_HEALTH
	.comm	_STEREO_RIGHT,8,3               ## @STEREO_RIGHT
	.comm	_cg_timescale,8,3               ## @cg_timescale
	.comm	_cg_timescaleFadeEnd,8,3        ## @cg_timescaleFadeEnd
	.comm	_cg_timescaleFadeSpeed,4,2      ## @cg_timescaleFadeSpeed
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timescale"

L_.str.1:                               ## @.str.1
	.asciz	"%f"

	.comm	_cg_stats,8,3                   ## @cg_stats
L_.str.2:                               ## @.str.2
	.asciz	"cg.clientFrame:%i\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_DrawActiveFrame             ; -- Begin function CG_DrawActiveFrame
	.p2align	2
_CG_DrawActiveFrame:                    ; @CG_DrawActiveFrame
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
Lloh0:
	adrp	x21, _cg@GOTPAGE
Lloh1:
	ldr	x21, [x21, _cg@GOTPAGEOFF]
	str	w0, [x21]
	str	w2, [x21, #96]
	bl	_CG_UpdateCvars
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_CG_DrawInformation
LBB0_2:
Lloh2:
	adrp	x8, _qfalse@GOTPAGE
Lloh3:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_trap_S_ClearLoopingSounds
	bl	_trap_R_ClearScene
	bl	_CG_ProcessSnapshots
	ldr	x8, [x21, #64]
	cbz	x8, LBB0_1
; %bb.3:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _SNAPFLAG_NOT_ACTIVE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SNAPFLAG_NOT_ACTIVE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_1
; %bb.4:
	ldp	w1, w0, [x21, #88]
	bl	_trap_SetUserCmdValue
	ldr	w8, [x21, #40]
	add	w8, w8, #1
	str	w8, [x21, #40]
	bl	_CG_PredictPlayerState
Lloh8:
	adrp	x8, _cg_thirdPerson@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cg_thirdPerson@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	w8, #1
	b	LBB0_7
LBB0_6:
	ldr	x8, [x21, #64]
Lloh11:
	adrp	x9, _STAT_HEALTH@GOTPAGE
Lloh12:
	ldr	x9, [x9, _STAT_HEALTH@GOTPAGEOFF]
	ldr	x8, [x8, #8]
Lloh13:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cmp	x8, #1
	cset	w8, lt
LBB0_7:
	str	w8, [x21, #16]
	bl	_CG_CalcViewValues
	mov	x20, x0
	ldr	w8, [x21, #16]
	cbnz	w8, LBB0_9
; %bb.8:
	bl	_CG_DamageBlendBlob
LBB0_9:
	ldr	w8, [x21, #84]
	cbnz	w8, LBB0_11
; %bb.10:
	bl	_CG_AddPacketEntities
	bl	_CG_AddMarks
	bl	_CG_AddParticles
	bl	_CG_AddLocalEntities
LBB0_11:
	add	x0, x21, #80
	bl	_CG_AddViewWeapon
	bl	_CG_PlayBufferedSounds
	bl	_CG_PlayBufferedVoiceChats
	ldr	x8, [x21, #72]
	cbz	x8, LBB0_13
; %bb.12:
	bl	_CG_AddTestModel
LBB0_13:
	ldr	w8, [x21]
	str	w8, [x21, #44]
	ldr	w0, [x21, #56]
	ldr	x8, [x21, #64]
	ldr	w1, [x8, #24]
	mov	w2, #4
	bl	_memcpy
	bl	_CG_PowerupTimerSounds
	ldr	x8, [x21, #64]
	ldr	w0, [x8, #16]
	ldp	w2, w1, [x21, #48]
	mov	x3, x20
	bl	_trap_S_Respatialize
Lloh14:
	adrp	x8, _STEREO_RIGHT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _STEREO_RIGHT@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_15
; %bb.14:
	ldrsw	x8, [x21]
	ldr	x9, [x21, #32]
	sub	x9, x8, x9
	cmp	x9, #0
	csel	x9, x9, xzr, gt
	stp	x9, x8, [x21, #24]
	bl	_CG_AddLagometerFrameInfo
LBB0_15:
Lloh17:
	adrp	x8, _cg_timescale@GOTPAGE
Lloh18:
	ldr	x8, [x8, _cg_timescale@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh19:
	adrp	x10, _cg_timescaleFadeEnd@GOTPAGE
Lloh20:
	ldr	x10, [x10, _cg_timescaleFadeEnd@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_18
; %bb.16:
Lloh22:
	adrp	x11, _cg_timescaleFadeSpeed@GOTPAGE
Lloh23:
	ldr	x11, [x11, _cg_timescaleFadeSpeed@GOTPAGEOFF]
Lloh24:
	ldr	s0, [x11]
	ldr	x11, [x21, #24]
	scvtf	s1, x11
	fmul	s1, s0, s1
	mov	w11, #1148846080
	fmov	s2, w11
	fdiv	s1, s1, s2
	scvtf	s2, x9
	fsub	s3, s2, s1
	fcvtzs	x11, s3
	cmp	x10, x11
	csel	x11, x10, x11, gt
	fadd	s1, s1, s2
	fcvtzs	x12, s1
	cmp	x10, x12
	csel	x12, x10, x12, lt
	cmp	x9, x10
	csel	x1, x11, x12, ge
	str	x1, [x8]
	fcmp	s0, #0.0
	b.eq	LBB0_18
; %bb.17:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_va
	mov	x1, x0
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_Set
LBB0_18:
	mov	x0, x19
	bl	_CG_DrawActive
Lloh29:
	adrp	x8, _cg_stats@GOTPAGE
Lloh30:
	ldr	x8, [x8, _cg_stats@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	cbz	x8, LBB0_20
; %bb.19:
	ldr	w1, [x21, #40]
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_CG_Printf
LBB0_20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,104,3                       ; @cg
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_SNAPFLAG_NOT_ACTIVE,4,2        ; @SNAPFLAG_NOT_ACTIVE
	.comm	_cg_thirdPerson,8,3             ; @cg_thirdPerson
	.comm	_STAT_HEALTH,8,3                ; @STAT_HEALTH
	.comm	_STEREO_RIGHT,8,3               ; @STEREO_RIGHT
	.comm	_cg_timescale,8,3               ; @cg_timescale
	.comm	_cg_timescaleFadeEnd,8,3        ; @cg_timescaleFadeEnd
	.comm	_cg_timescaleFadeSpeed,4,2      ; @cg_timescaleFadeSpeed
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timescale"

l_.str.1:                               ; @.str.1
	.asciz	"%f"

	.comm	_cg_stats,8,3                   ; @cg_stats
l_.str.2:                               ; @.str.2
	.asciz	"cg.clientFrame:%i\n"

.subsections_via_symbols
