	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_SetCGameTime                ## -- Begin function CL_SetCGameTime
	.p2align	4, 0x90
_CL_SetCGameTime:                       ## @CL_SetCGameTime
	.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	_clc@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_CA_ACTIVE@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_1
LBB0_10:
	movq	_cl@GOTPCREL(%rip), %rbx
	cmpl	$0, 20(%rbx)
	jne	LBB0_12
## %bb.11:
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_Com_Error
LBB0_12:
	movq	_sv_paused@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.13:
	xorl	%eax, %eax
	callq	_CL_CheckPaused
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_com_sv_running@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	jne	LBB0_5
LBB0_15:
	movl	16(%rbx), %ecx
	cmpl	(%rbx), %ecx
	jge	LBB0_17
## %bb.16:
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_Com_Error
	movl	16(%rbx), %ecx
LBB0_17:
	movl	%ecx, (%rbx)
	movq	48(%r15), %r9
	testq	%r9, %r9
	je	LBB0_19
## %bb.18:
	movq	_cl_freezeDemo@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rdx)
	jne	LBB0_21
LBB0_19:
	movq	_cl_timeNudge@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx), %edx
	cmpl	$30, %edx
	movl	$30, %esi
	cmovll	%edx, %esi
	cmpl	$-29, %esi
	movl	$-30, %edx
	cmovgel	%esi, %edx
	movq	_cls@GOTPCREL(%rip), %r8
	movl	8(%rbx), %eax
	movl	12(%rbx), %esi
	addl	(%r8), %eax
	movl	%eax, %edi
	subl	%edx, %edi
	cmpl	%esi, %edi
	cmovlel	%esi, %edi
	movl	%edi, 4(%rbx)
	movl	%edi, 12(%rbx)
	addl	$-5, %ecx
	cmpl	%ecx, %eax
	jl	LBB0_21
## %bb.20:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
LBB0_21:
	cmpq	$0, 24(%rbx)
	je	LBB0_23
## %bb.22:
	xorl	%eax, %eax
	callq	_CL_AdjustTimeDelta
	movq	48(%r15), %r9
LBB0_23:
	testq	%r9, %r9
	je	LBB0_5
## %bb.24:
	movq	_cl_timedemo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_35
## %bb.25:
	xorl	%eax, %eax
	callq	_Sys_Milliseconds
	cmpl	$0, 8(%r15)
	je	LBB0_27
## %bb.26:
	movl	12(%r15), %edx
	jmp	LBB0_28
LBB0_1:
	movq	_CA_PRIMED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	cmpq	$0, 48(%r15)
	je	LBB0_7
## %bb.3:
	cmpq	$0, 56(%r15)
	je	LBB0_4
## %bb.6:
	xorl	%eax, %eax
	callq	_CL_ReadDemoMessage
LBB0_7:
	movq	_cl@GOTPCREL(%rip), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_9
## %bb.8:
	movq	_qfalse@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 24(%rax)
	xorl	%eax, %eax
	callq	_CL_FirstSnapshot
LBB0_9:
	movq	(%r15), %rax
	cmpq	(%r14), %rax
	je	LBB0_10
	jmp	LBB0_5
LBB0_27:
	movl	%eax, 8(%r15)
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r15)
	movl	$0, 20(%r15)
	movl	%eax, %edx
LBB0_28:
	movl	%eax, 12(%r15)
	movl	24(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_34
## %bb.29:
	subl	%edx, %eax
	cmpl	20(%r15), %eax
	jle	LBB0_31
## %bb.30:
	movl	%eax, 20(%r15)
LBB0_31:
	cmpl	16(%r15), %eax
	jge	LBB0_33
## %bb.32:
	movl	%eax, 16(%r15)
LBB0_33:
	movq	_UCHAR_MAX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmpl	%esi, %eax
	cmovll	%eax, %esi
	movq	32(%r15), %rdi
	decl	%ecx
	movq	_MAX_TIMEDEMO_DURATIONS@GOTPCREL(%rip), %r8
	movl	%ecx, %eax
	cltd
	idivl	(%r8)
                                        ## kill: def $edx killed $edx def $rdx
	movl	%esi, (%rdi,%rdx,4)
	movl	24(%r15), %ecx
LBB0_34:
	incl	%ecx
	movl	%ecx, 24(%r15)
	imull	$50, %ecx, %eax
	addl	40(%r15), %eax
	movl	%eax, 4(%rbx)
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %eax
	cmpl	16(%rbx), %eax
	jl	LBB0_5
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	xorl	%eax, %eax
	callq	_CL_ReadDemoMessage
	movq	(%r15), %rax
	cmpq	(%r14), %rax
	je	LBB0_35
## %bb.37:
	xorl	%eax, %eax
	callq	_dmlab_context
	movq	8(%rax), %rbx
	xorl	%eax, %eax
	callq	_dmlab_context
	movl	(%rax), %edi
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_4:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r15)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_clc,64,3                       ## @clc
	.comm	_CA_ACTIVE,8,3                  ## @CA_ACTIVE
	.comm	_CA_PRIMED,8,3                  ## @CA_PRIMED
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_cl,40,3                        ## @cl
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CL_SetCGameTime: !cl.snap.valid"

	.comm	_sv_paused,8,3                  ## @sv_paused
	.comm	_com_sv_running,8,3             ## @com_sv_running
L_.str.1:                               ## @.str.1
	.asciz	"cl.snap.serverTime < cl.oldFrameServerTime"

	.comm	_cl_freezeDemo,8,3              ## @cl_freezeDemo
	.comm	_cl_timeNudge,8,3               ## @cl_timeNudge
	.comm	_cls,4,2                        ## @cls
	.comm	_cl_timedemo,8,3                ## @cl_timedemo
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_UCHAR_MAX,4,2                  ## @UCHAR_MAX
	.comm	_MAX_TIMEDEMO_DURATIONS,4,2     ## @MAX_TIMEDEMO_DURATIONS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_SetCGameTime                ; -- Begin function CL_SetCGameTime
	.p2align	2
_CL_SetCGameTime:                       ; @CL_SetCGameTime
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x19, _clc@GOTPAGE
Lloh1:
	ldr	x19, [x19, _clc@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x20, _CA_ACTIVE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _CA_ACTIVE@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_18
LBB0_1:
Lloh4:
	adrp	x21, _cl@GOTPAGE
Lloh5:
	ldr	x21, [x21, _cl@GOTPAGEOFF]
	ldr	w8, [x21, #20]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _ERR_DROP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_DROP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Com_Error
LBB0_3:
Lloh11:
	adrp	x8, _sv_paused@GOTPAGE
Lloh12:
	ldr	x8, [x8, _sv_paused@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.4:
	bl	_CL_CheckPaused
	cbz	x0, LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _com_sv_running@GOTPAGE
Lloh15:
	ldr	x8, [x8, _com_sv_running@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_37
LBB0_6:
	ldr	w9, [x21, #16]
	ldr	w8, [x21]
	cmp	w9, w8
	b.ge	LBB0_8
; %bb.7:
Lloh17:
	adrp	x8, _ERR_DROP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERR_DROP@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Com_Error
	ldr	w9, [x21, #16]
LBB0_8:
	str	w9, [x21]
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_10
; %bb.9:
Lloh22:
	adrp	x10, _cl_freezeDemo@GOTPAGE
Lloh23:
	ldr	x10, [x10, _cl_freezeDemo@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	ldr	x10, [x10]
	cbnz	x10, LBB0_12
LBB0_10:
Lloh25:
	adrp	x10, _cl_timeNudge@GOTPAGE
Lloh26:
	ldr	x10, [x10, _cl_timeNudge@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
	ldr	w10, [x10]
	mov	w11, #30
	cmp	w10, #30
	csel	w10, w10, w11, lt
	cmn	w10, #30
	mov	w11, #-30
Lloh28:
	adrp	x12, _cls@GOTPAGE
Lloh29:
	ldr	x12, [x12, _cls@GOTPAGEOFF]
	csel	w10, w10, w11, gt
Lloh30:
	ldr	w11, [x12]
	ldp	w12, w13, [x21, #8]
	add	w11, w12, w11
	sub	w10, w11, w10
	cmp	w10, w13
	csel	w10, w10, w13, gt
	str	w10, [x21, #4]
	str	w10, [x21, #12]
	sub	w9, w9, #5
	cmp	w11, w9
	b.lt	LBB0_12
; %bb.11:
Lloh31:
	adrp	x9, _qtrue@GOTPAGE
Lloh32:
	ldr	x9, [x9, _qtrue@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	str	x9, [x21, #32]
LBB0_12:
	ldr	x9, [x21, #24]
	cbz	x9, LBB0_14
; %bb.13:
	bl	_CL_AdjustTimeDelta
	ldr	x8, [x19, #48]
LBB0_14:
	cbz	x8, LBB0_37
; %bb.15:
Lloh34:
	adrp	x8, _cl_timedemo@GOTPAGE
Lloh35:
	ldr	x8, [x8, _cl_timedemo@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_33
; %bb.16:
	bl	_Sys_Milliseconds
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_25
; %bb.17:
	ldr	w9, [x19, #12]
	b	LBB0_26
LBB0_18:
Lloh37:
	adrp	x9, _CA_PRIMED@GOTPAGE
Lloh38:
	ldr	x9, [x9, _CA_PRIMED@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_37
; %bb.19:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_22
; %bb.20:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_36
; %bb.21:
	bl	_CL_ReadDemoMessage
LBB0_22:
Lloh40:
	adrp	x8, _cl@GOTPAGE
Lloh41:
	ldr	x8, [x8, _cl@GOTPAGEOFF]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_24
; %bb.23:
Lloh42:
	adrp	x9, _qfalse@GOTPAGE
Lloh43:
	ldr	x9, [x9, _qfalse@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	str	x9, [x8, #24]
	bl	_CL_FirstSnapshot
LBB0_24:
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_1
	b	LBB0_37
LBB0_25:
	str	w0, [x19, #8]
Lloh45:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh46:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	stp	w8, wzr, [x19, #16]
	mov	x9, x0
LBB0_26:
	str	w0, [x19, #12]
	ldr	w10, [x19, #24]
	subs	w8, w10, #1
	b.lt	LBB0_32
; %bb.27:
	ldr	w10, [x19, #20]
	sub	w9, w0, w9
	cmp	w9, w10
	b.le	LBB0_29
; %bb.28:
	str	w9, [x19, #20]
LBB0_29:
	ldr	w10, [x19, #16]
	cmp	w9, w10
	b.ge	LBB0_31
; %bb.30:
	str	w9, [x19, #16]
LBB0_31:
Lloh48:
	adrp	x10, _UCHAR_MAX@GOTPAGE
Lloh49:
	ldr	x10, [x10, _UCHAR_MAX@GOTPAGEOFF]
Lloh50:
	ldr	w10, [x10]
	cmp	w9, w10
	csel	w9, w9, w10, lt
	ldr	x10, [x19, #32]
Lloh51:
	adrp	x11, _MAX_TIMEDEMO_DURATIONS@GOTPAGE
Lloh52:
	ldr	x11, [x11, _MAX_TIMEDEMO_DURATIONS@GOTPAGEOFF]
Lloh53:
	ldr	w11, [x11]
	sdiv	w12, w8, w11
	msub	w8, w12, w11, w8
	str	w9, [x10, w8, uxtw #2]
	ldr	w10, [x19, #24]
LBB0_32:
	add	w8, w10, #1
	str	w8, [x19, #24]
	ldr	w9, [x19, #40]
	mov	w10, #50
	madd	w8, w8, w10, w9
	str	w8, [x21, #4]
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, #4]
	ldr	w9, [x21, #16]
	cmp	w8, w9
	b.lt	LBB0_37
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	bl	_CL_ReadDemoMessage
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_33
; %bb.35:
	bl	_dmlab_context
	ldr	x0, [x0, #8]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_dmlab_context
	ldr	w0, [x0]
Lloh54:
	adrp	x8, _qtrue@GOTPAGE
Lloh55:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh56:
	ldr	x1, [x8]
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	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
	add	sp, sp, #64
	br	x2
LBB0_36:
Lloh57:
	adrp	x8, _qtrue@GOTPAGE
Lloh58:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh59:
	ldr	x8, [x8]
	str	x8, [x19, #56]
LBB0_37:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_clc,64,3                       ; @clc
	.comm	_CA_ACTIVE,8,3                  ; @CA_ACTIVE
	.comm	_CA_PRIMED,8,3                  ; @CA_PRIMED
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_cl,40,3                        ; @cl
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CL_SetCGameTime: !cl.snap.valid"

	.comm	_sv_paused,8,3                  ; @sv_paused
	.comm	_com_sv_running,8,3             ; @com_sv_running
l_.str.1:                               ; @.str.1
	.asciz	"cl.snap.serverTime < cl.oldFrameServerTime"

	.comm	_cl_freezeDemo,8,3              ; @cl_freezeDemo
	.comm	_cl_timeNudge,8,3               ; @cl_timeNudge
	.comm	_cls,4,2                        ; @cls
	.comm	_cl_timedemo,8,3                ; @cl_timedemo
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_UCHAR_MAX,4,2                  ; @UCHAR_MAX
	.comm	_MAX_TIMEDEMO_DURATIONS,4,2     ; @MAX_TIMEDEMO_DURATIONS
.subsections_via_symbols
