	.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	%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	%rcx, %rbx
	movq	%rsi, %r14
	movq	_cg@GOTPCREL(%rip), %r15
	movl	%edi, (%r15)
	movq	%rdx, 96(%r15)
	xorl	%eax, %eax
	callq	_CG_UpdateCvars
	xorl	%eax, %eax
	callq	_BG_UpdateItems
	movq	8(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
LBB0_1:
	testq	%rbx, %rbx
	je	LBB0_2
LBB0_28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	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(%r15), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	_SNAPFLAG_NOT_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_1
## %bb.5:
	movl	88(%r15), %esi
	movl	92(%r15), %edi
	callq	_trap_SetUserCmdValue
	incl	40(%r15)
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_CG_PredictPlayerState
	movq	_TEAM_SPECTATOR@GOTPCREL(%rip), %rax
	cmpl	$-1, (%rax)
	je	LBB0_8
## %bb.6:
	movq	_cg_thirdPerson@GOTPCREL(%rip), %rax
	movl	$1, %r12d
	cmpq	$0, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	64(%r15), %rax
	movq	8(%rax), %rax
	movq	_STAT_HEALTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%r12d, %r12d
	cmpq	$0, (%rax,%rcx,8)
	setle	%r12b
LBB0_8:
	movl	%r12d, 16(%r15)
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_CG_CalcViewValues
	movq	64(%r15), %rcx
	movq	16(%rcx), %rdx
	movq	_PERS_TEAM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rdx,%rcx,4), %esi
	movq	_TEAM_RED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_10
## %bb.9:
	movq	_cgs@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	4(%rax), %ecx
	jmp	LBB0_12
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CG_DrawInformation             ## TAILCALL
LBB0_10:
	movq	_TEAM_BLUE@GOTPCREL(%rip), %rdx
	movl	$0, %ecx
	cmpl	(%rdx), %esi
	jne	LBB0_12
## %bb.11:
	movq	_cgs@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %r13d
LBB0_12:
	movl	52(%r15), %esi
	leaq	80(%r15), %r12
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_dmlab_player_state
	testq	%rbx, %rbx
	jne	LBB0_28
## %bb.13:
	cmpl	$0, 16(%r15)
	jne	LBB0_15
## %bb.14:
	xorl	%eax, %eax
	callq	_CG_DamageBlendBlob
LBB0_15:
	cmpl	$0, 84(%r15)
	jne	LBB0_17
## %bb.16:
	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_17:
	movq	%r12, %rdi
	callq	_CG_AddViewWeapon
	xorl	%eax, %eax
	callq	_CG_PlayBufferedSounds
	cmpq	$0, 72(%r15)
	je	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	callq	_CG_AddTestModel
LBB0_19:
	movl	(%r15), %eax
	movl	56(%r15), %edi
	movl	%eax, 44(%r15)
	movq	64(%r15), %rax
	movl	32(%rax), %esi
	movl	$4, %edx
	callq	_memcpy
	xorl	%eax, %eax
	callq	_CG_PowerupTimerSounds
	movq	64(%r15), %rax
	movl	24(%rax), %edi
	movl	48(%r15), %edx
	movl	52(%r15), %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_trap_S_Respatialize
	movq	_STEREO_RIGHT@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	je	LBB0_21
## %bb.20:
	movslq	(%r15), %rax
	movq	%rax, %rcx
	subq	32(%r15), %rcx
	xorl	%edx, %edx
	testq	%rcx, %rcx
	cmovleq	%rdx, %rcx
	movq	%rcx, 24(%r15)
	movq	%rax, 32(%r15)
	xorl	%eax, %eax
	callq	_CG_AddLagometerFrameInfo
LBB0_21:
	movq	_cg_timescale@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_cg_timescaleFadeEnd@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	je	LBB0_27
## %bb.22:
	movq	_cg_timescaleFadeSpeed@GOTPCREL(%rip), %rsi
	cvtsi2ssq	24(%r15), %xmm1
	movss	(%rsi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	divss	LCPI0_0(%rip), %xmm1
	cvtsi2ss	%rdx, %xmm2
	jge	LBB0_24
## %bb.23:
	addss	%xmm2, %xmm1
	cvttss2si	%xmm1, %rsi
	cmpq	%rsi, %rcx
	cmovlq	%rcx, %rsi
	jmp	LBB0_25
LBB0_24:
	subss	%xmm1, %xmm2
	cvttss2si	%xmm2, %rsi
	cmpq	%rsi, %rcx
	cmovgq	%rcx, %rsi
LBB0_25:
	movq	%rsi, (%rax)
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jne	LBB0_26
	jnp	LBB0_27
LBB0_26:
	leaq	L_.str.1(%rip), %rdi
	callq	_va
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_trap_Cvar_Set
LBB0_27:
	movq	%r14, %rdi
	callq	_CG_DrawActive
	movq	_cg_stats@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_28
## %bb.29:
	movl	40(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CG_Printf                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,104,3                       ## @cg
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_SNAPFLAG_NOT_ACTIVE,4,2        ## @SNAPFLAG_NOT_ACTIVE
	.comm	_TEAM_SPECTATOR,4,2             ## @TEAM_SPECTATOR
	.comm	_cg_thirdPerson,8,3             ## @cg_thirdPerson
	.comm	_STAT_HEALTH,8,3                ## @STAT_HEALTH
	.comm	_PERS_TEAM,8,3                  ## @PERS_TEAM
	.comm	_TEAM_RED,4,2                   ## @TEAM_RED
	.comm	_cgs,8,2                        ## @cgs
	.comm	_TEAM_BLUE,4,2                  ## @TEAM_BLUE
	.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	x20, x3
	mov	x19, x1
Lloh0:
	adrp	x22, _cg@GOTPAGE
Lloh1:
	ldr	x22, [x22, _cg@GOTPAGEOFF]
	str	w0, [x22]
	str	x2, [x22, #96]
	bl	_CG_UpdateCvars
	bl	_BG_UpdateItems
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
LBB0_1:
	cbz	x20, LBB0_8
LBB0_2:
	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
LBB0_3:
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, [x22, #64]
	cbz	x8, LBB0_1
; %bb.4:
	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.5:
	ldp	w1, w0, [x22, #88]
	bl	_trap_SetUserCmdValue
	ldr	w8, [x22, #40]
	add	w8, w8, #1
	str	w8, [x22, #40]
	bl	_CG_PredictPlayerState
Lloh8:
	adrp	x8, _TEAM_SPECTATOR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TEAM_SPECTATOR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmn	w8, #1
	b.eq	LBB0_9
; %bb.6:
Lloh11:
	adrp	x8, _cg_thirdPerson@GOTPAGE
Lloh12:
	ldr	x8, [x8, _cg_thirdPerson@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.7:
	mov	w8, #1
	b	LBB0_11
LBB0_8:
	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_9:
	mov	w8, #0
	b	LBB0_11
LBB0_10:
	ldr	x8, [x22, #64]
Lloh14:
	adrp	x9, _STAT_HEALTH@GOTPAGE
Lloh15:
	ldr	x9, [x9, _STAT_HEALTH@GOTPAGEOFF]
	ldr	x8, [x8, #8]
Lloh16:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cmp	x8, #1
	cset	w8, lt
LBB0_11:
	str	w8, [x22, #16]
	bl	_CG_CalcViewValues
	mov	x21, x0
	ldr	x8, [x22, #64]
	ldr	x8, [x8, #16]
Lloh17:
	adrp	x9, _PERS_TEAM@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PERS_TEAM@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh20:
	adrp	x9, _TEAM_RED@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TEAM_RED@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.12:
Lloh23:
	adrp	x8, _cgs@GOTPAGE
Lloh24:
	ldr	x8, [x8, _cgs@GOTPAGEOFF]
	ldp	w2, w3, [x8]
	b	LBB0_16
LBB0_13:
Lloh25:
	adrp	x9, _TEAM_BLUE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _TEAM_BLUE@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.14:
Lloh28:
	adrp	x8, _cgs@GOTPAGE
Lloh29:
	ldr	x8, [x8, _cgs@GOTPAGEOFF]
	ldp	w3, w2, [x8]
	b	LBB0_16
LBB0_15:
	mov	w2, #0
	mov	w3, #0
LBB0_16:
	ldr	w1, [x22, #52]
	add	x0, x22, #80
	bl	_dmlab_player_state
	cbnz	x20, LBB0_2
; %bb.17:
	ldr	w8, [x22, #16]
	cbnz	w8, LBB0_19
; %bb.18:
	bl	_CG_DamageBlendBlob
LBB0_19:
	ldr	w8, [x22, #84]
	cbnz	w8, LBB0_21
; %bb.20:
	bl	_CG_AddPacketEntities
	bl	_CG_AddMarks
	bl	_CG_AddParticles
	bl	_CG_AddLocalEntities
LBB0_21:
	add	x0, x22, #80
	bl	_CG_AddViewWeapon
	bl	_CG_PlayBufferedSounds
	ldr	x8, [x22, #72]
	cbz	x8, LBB0_23
; %bb.22:
	bl	_CG_AddTestModel
LBB0_23:
	ldr	w8, [x22]
	str	w8, [x22, #44]
	ldr	w0, [x22, #56]
	ldr	x8, [x22, #64]
	ldr	w1, [x8, #32]
	mov	w2, #4
	bl	_memcpy
	bl	_CG_PowerupTimerSounds
	ldr	x8, [x22, #64]
	ldr	w0, [x8, #24]
	ldp	w2, w1, [x22, #48]
	mov	x3, x21
	bl	_trap_S_Respatialize
Lloh30:
	adrp	x8, _STEREO_RIGHT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _STEREO_RIGHT@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_25
; %bb.24:
	ldrsw	x8, [x22]
	ldr	x9, [x22, #32]
	sub	x9, x8, x9
	cmp	x9, #0
	csel	x9, x9, xzr, gt
	stp	x9, x8, [x22, #24]
	bl	_CG_AddLagometerFrameInfo
LBB0_25:
Lloh33:
	adrp	x8, _cg_timescale@GOTPAGE
Lloh34:
	ldr	x8, [x8, _cg_timescale@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh35:
	adrp	x10, _cg_timescaleFadeEnd@GOTPAGE
Lloh36:
	ldr	x10, [x10, _cg_timescaleFadeEnd@GOTPAGEOFF]
Lloh37:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_28
; %bb.26:
Lloh38:
	adrp	x11, _cg_timescaleFadeSpeed@GOTPAGE
Lloh39:
	ldr	x11, [x11, _cg_timescaleFadeSpeed@GOTPAGEOFF]
Lloh40:
	ldr	s0, [x11]
	ldr	x11, [x22, #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_28
; %bb.27:
Lloh41:
	adrp	x0, l_.str.1@PAGE
Lloh42:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_va
	mov	x1, x0
Lloh43:
	adrp	x0, l_.str@PAGE
Lloh44:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_Set
LBB0_28:
	mov	x0, x19
	bl	_CG_DrawActive
Lloh45:
	adrp	x8, _cg_stats@GOTPAGE
Lloh46:
	ldr	x8, [x8, _cg_stats@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.29:
	ldr	w1, [x22, #40]
Lloh48:
	adrp	x0, l_.str.2@PAGE
Lloh49:
	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
	.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	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,104,3                       ; @cg
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_SNAPFLAG_NOT_ACTIVE,4,2        ; @SNAPFLAG_NOT_ACTIVE
	.comm	_TEAM_SPECTATOR,4,2             ; @TEAM_SPECTATOR
	.comm	_cg_thirdPerson,8,3             ; @cg_thirdPerson
	.comm	_STAT_HEALTH,8,3                ; @STAT_HEALTH
	.comm	_PERS_TEAM,8,3                  ; @PERS_TEAM
	.comm	_TEAM_RED,4,2                   ; @TEAM_RED
	.comm	_cgs,8,2                        ; @cgs
	.comm	_TEAM_BLUE,4,2                  ; @TEAM_BLUE
	.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
