	.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_DrawLagometer
LCPI0_0:
	.long	0x40400000                      ## float 3
LCPI0_2:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_3:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CG_DrawLagometer:                      ## @CG_DrawLagometer
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cg_lagometer@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_32
## %bb.1:
	movq	_cgs@GOTPCREL(%rip), %r14
	cmpq	$0, 8(%r14)
	jne	LBB0_32
## %bb.2:
	xorl	%edi, %edi
	callq	_trap_R_SetColor
	movl	4(%r14), %r8d
	movl	$592, %edi                      ## imm = 0x250
	movl	$432, %esi                      ## imm = 0x1B0
	movl	$48, %edx
	movl	$48, %ecx
	callq	_CG_DrawPic
	movl	$1142161408, -52(%rbp)          ## imm = 0x44140000
	movl	$1138229248, -68(%rbp)          ## imm = 0x43D80000
	movl	$1111490560, -48(%rbp)          ## imm = 0x42400000
	movl	$1111490560, -64(%rbp)          ## imm = 0x42400000
	leaq	-52(%rbp), %rdi
	leaq	-68(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	callq	_CG_AdjustFrom640
	movss	-64(%rbp), %xmm2                ## xmm2 = mem[0],zero,zero,zero
	movss	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movl	$-1, %r15d
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jbe	LBB0_15
## %bb.3:
	divss	LCPI0_0(%rip), %xmm2
	movss	%xmm2, -44(%rbp)                ## 4-byte Spill
	movss	-68(%rbp), %xmm3                ## xmm3 = mem[0],zero,zero,zero
	addss	%xmm2, %xmm3
	movss	%xmm3, -72(%rbp)                ## 4-byte Spill
	movq	_MAX_LAGOMETER_RANGE@GOTPCREL(%rip), %rax
	divss	(%rax), %xmm2
	movss	%xmm2, -60(%rbp)                ## 4-byte Spill
	movl	$1, %r14d
	movl	$-1, %ebx
	movq	_lagometer@GOTPCREL(%rip), %r12
	movq	_LAG_SAMPLES@GOTPCREL(%rip), %r13
	xorps	%xmm3, %xmm3
	movl	$-1, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	addss	-52(%rbp), %xmm0
	minss	%xmm4, %xmm2
	subss	%xmm3, %xmm0
	movss	-72(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm2, %xmm1
	movq	_cgs@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$1, %r15d
	movl	$1, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_trap_R_DrawStretchPic
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	xorps	%xmm1, %xmm1
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	xorps	%xmm3, %xmm3
	cvtsi2ss	%r14d, %xmm3
	movss	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	incl	%r14d
	decl	%ebx
	ucomiss	%xmm3, %xmm0
	jbe	LBB0_14
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	addl	%ebx, %eax
	movslq	(%r13), %rcx
	decq	%rcx
	cltq
	andq	%rcx, %rax
	movq	8(%r12), %rcx
	movss	(%rcx,%rax,4), %xmm4            ## xmm4 = mem[0],zero,zero,zero
	mulss	-60(%rbp), %xmm4                ## 4-byte Folded Reload
	ucomiss	%xmm1, %xmm4
	jbe	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$1, %r15d
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_g_color_table@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_COLOR_YELLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movss	%xmm3, -56(%rbp)                ## 4-byte Spill
	movaps	%xmm4, -96(%rbp)                ## 16-byte Spill
	callq	_ColorIndex
	movq	(%r15,%rax,8), %rdi
	callq	_trap_R_SetColor
	movaps	-96(%rbp), %xmm4                ## 16-byte Reload
	movss	-56(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	movss	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	ucomiss	%xmm4, %xmm1
	jbe	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$2, %r15d
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_g_color_table@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_COLOR_BLUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movss	%xmm3, -56(%rbp)                ## 4-byte Spill
	movaps	%xmm4, -96(%rbp)                ## 16-byte Spill
	callq	_ColorIndex
	movq	(%r15,%rax,8), %rdi
	callq	_trap_R_SetColor
	movaps	-96(%rbp), %xmm4                ## 16-byte Reload
	movss	-56(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	movss	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	xorps	LCPI0_1(%rip), %xmm4
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	minss	%xmm4, %xmm2
	addss	-52(%rbp), %xmm0
	subss	%xmm3, %xmm0
	movq	_cgs@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movss	-72(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movl	$1, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_trap_R_DrawStretchPic
	movl	$2, %r15d
	jmp	LBB0_12
LBB0_32:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CG_DrawDisconnect              ## TAILCALL
LBB0_14:
	movss	-64(%rbp), %xmm2                ## xmm2 = mem[0],zero,zero,zero
	movq	_cgs@GOTPCREL(%rip), %r14
LBB0_15:
	ucomiss	%xmm1, %xmm0
	jbe	LBB0_29
## %bb.16:
	mulss	LCPI0_2(%rip), %xmm2
	movq	_MAX_LAGOMETER_PING@GOTPCREL(%rip), %rax
	movaps	%xmm2, %xmm1
	divss	(%rax), %xmm1
	movss	%xmm1, -72(%rbp)                ## 4-byte Spill
	xorps	%xmm1, %xmm1
	movl	$1, %r12d
	movl	$-1, %ebx
	movq	_lagometer@GOTPCREL(%rip), %r13
	xorps	%xmm3, %xmm3
	movss	%xmm2, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	_g_color_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	movl	(%rax), %edi
	movss	%xmm3, -60(%rbp)                ## 4-byte Spill
	movss	%xmm4, -56(%rbp)                ## 4-byte Spill
	callq	_ColorIndex
	movq	(%r15,%rax,8), %rdi
	callq	_trap_R_SetColor
	movss	-56(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	movss	-60(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	movl	%r14d, %r15d
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=1
	mulss	-72(%rbp), %xmm4                ## 4-byte Folded Reload
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	minss	%xmm4, %xmm2
	movss	-52(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	addss	-48(%rbp), %xmm0
	subss	%xmm3, %xmm0
	movss	-68(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	addss	-64(%rbp), %xmm1
	subss	%xmm2, %xmm1
	movq	_cgs@GOTPCREL(%rip), %r14
	movl	(%r14), %r9d
	movl	$1, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_trap_R_DrawStretchPic
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
LBB0_27:                                ##   in Loop: Header=BB0_17 Depth=1
	xorps	%xmm1, %xmm1
LBB0_28:                                ##   in Loop: Header=BB0_17 Depth=1
	xorps	%xmm3, %xmm3
	cvtsi2ss	%r12d, %xmm3
	movss	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	incl	%r12d
	decl	%ebx
	ucomiss	%xmm3, %xmm0
	jbe	LBB0_29
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%r13), %eax
	addl	%ebx, %eax
	movq	_LAG_SAMPLES@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	decq	%rcx
	cltq
	andq	%rcx, %rax
	movq	24(%r13), %rcx
	movss	(%rcx,%rax,4), %xmm4            ## xmm4 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm4
	jbe	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	32(%r13), %rcx
	movq	_SNAPFLAG_RATE_DELAYED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx,%rax,4)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	$5, %r14d
	movq	_COLOR_YELLOW@GOTPCREL(%rip), %rax
	cmpl	$5, %r15d
	movl	$5, %r15d
	jne	LBB0_21
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=1
	ucomiss	%xmm4, %xmm1
	jbe	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpl	$4, %r15d
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	_g_color_table@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_COLOR_RED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movss	%xmm3, -60(%rbp)                ## 4-byte Spill
	callq	_ColorIndex
	movq	(%r14,%rax,8), %rdi
	movq	_cgs@GOTPCREL(%rip), %r14
	callq	_trap_R_SetColor
	movss	-60(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movss	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
LBB0_26:                                ##   in Loop: Header=BB0_17 Depth=1
	addss	-52(%rbp), %xmm0
	subss	%xmm3, %xmm0
	movss	-68(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	addss	-64(%rbp), %xmm1
	subss	%xmm2, %xmm1
	movl	(%r14), %r9d
	movl	$1, %edi
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_trap_R_DrawStretchPic
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movl	$4, %r15d
	jmp	LBB0_27
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	$3, %r14d
	movq	_COLOR_GREEN@GOTPCREL(%rip), %rax
	cmpl	$3, %r15d
	movl	$3, %r15d
	jne	LBB0_21
	jmp	LBB0_22
LBB0_29:
	xorl	%edi, %edi
	callq	_trap_R_SetColor
	movq	_cg_nopredict@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_cg_synchronousClients@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	je	LBB0_31
## %bb.30:
	movss	-52(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	-68(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	leaq	L_.str(%rip), %rdi
	movsd	LCPI0_3(%rip), %xmm2            ## xmm2 = mem[0],zero
	callq	_CG_DrawBigString
LBB0_31:
	xorl	%eax, %eax
	callq	_CG_DrawDisconnect
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg_lagometer,4,2               ## @cg_lagometer
	.comm	_cgs,16,3                       ## @cgs
	.comm	_MAX_LAGOMETER_RANGE,4,2        ## @MAX_LAGOMETER_RANGE
	.comm	_lagometer,40,3                 ## @lagometer
	.comm	_LAG_SAMPLES,4,2                ## @LAG_SAMPLES
	.comm	_g_color_table,8,3              ## @g_color_table
	.comm	_COLOR_YELLOW,4,2               ## @COLOR_YELLOW
	.comm	_COLOR_BLUE,4,2                 ## @COLOR_BLUE
	.comm	_MAX_LAGOMETER_PING,4,2         ## @MAX_LAGOMETER_PING
	.comm	_SNAPFLAG_RATE_DELAYED,4,2      ## @SNAPFLAG_RATE_DELAYED
	.comm	_COLOR_GREEN,4,2                ## @COLOR_GREEN
	.comm	_COLOR_RED,4,2                  ## @COLOR_RED
	.comm	_cg_nopredict,8,3               ## @cg_nopredict
	.comm	_cg_synchronousClients,8,3      ## @cg_synchronousClients
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"snc"

	.no_dead_strip	_CG_DrawLagometer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_DrawLagometer
_CG_DrawLagometer:                      ; @CG_DrawLagometer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d13, d12, [sp, #16]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
Lloh0:
	adrp	x8, _cg_lagometer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cg_lagometer@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x19, _cgs@GOTPAGE
Lloh4:
	ldr	x19, [x19, _cgs@GOTPAGEOFF]
	ldr	x9, [x19, #8]
	cmp	w8, #0
	ccmp	x9, #0, #0, ne
	b.eq	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_CG_DrawDisconnect
LBB0_2:
	mov	x0, #0
	bl	_trap_R_SetColor
	ldr	w4, [x19, #4]
	mov	w0, #592
	mov	w1, #432
	mov	w2, #48
	mov	w3, #48
	bl	_CG_DrawPic
	mov	w9, #1142161408
	mov	w8, #1138229248
	stp	w8, w9, [sp, #8]
	mov	w8, #1111490560
	stp	w8, w8, [sp]
	add	x0, sp, #12
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x3, sp
	bl	_CG_AdjustFrom640
	ldp	s1, s0, [sp]
	fcmp	s0, #0.0
Lloh5:
	adrp	x20, _lagometer@GOTPAGE
Lloh6:
	ldr	x20, [x20, _lagometer@GOTPAGEOFF]
Lloh7:
	adrp	x21, _LAG_SAMPLES@GOTPAGE
Lloh8:
	ldr	x21, [x21, _LAG_SAMPLES@GOTPAGEOFF]
Lloh9:
	adrp	x22, _g_color_table@GOTPAGE
Lloh10:
	ldr	x22, [x22, _g_color_table@GOTPAGEOFF]
	b.le	LBB0_13
; %bb.3:
	fmov	s2, #3.00000000
	fdiv	s9, s1, s2
	ldr	s1, [sp, #8]
	fadd	s8, s1, s9
Lloh11:
	adrp	x8, _MAX_LAGOMETER_RANGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX_LAGOMETER_RANGE@GOTPAGEOFF]
Lloh13:
	ldr	s1, [x8]
	fdiv	s10, s9, s1
Lloh14:
	adrp	x24, _COLOR_YELLOW@GOTPAGE
Lloh15:
	ldr	x24, [x24, _COLOR_YELLOW@GOTPAGEOFF]
	movi	d11, #0000000000000000
	mov	w25, #1
	mov	w26, #-1
Lloh16:
	adrp	x27, _COLOR_BLUE@GOTPAGE
Lloh17:
	ldr	x27, [x27, _COLOR_BLUE@GOTPAGEOFF]
	mov	w23, #-1
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	fcmp	s12, s9
	fcsel	s2, s9, s12, gt
	ldr	s1, [sp, #12]
	fadd	s0, s1, s0
	fsub	s0, s0, s11
	fsub	s1, s8, s2
	ldr	w5, [x19]
	mov	w23, #1
	mov	w0, #1
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_trap_R_DrawStretchPic
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	scvtf	s11, w25
	ldr	s0, [sp, #4]
	add	w25, w25, #1
	sub	w26, w26, #1
	fcmp	s0, s11
	b.le	LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	ldr	w9, [x21]
	sub	w9, w9, #1
	add	w8, w26, w8
	and	w8, w9, w8
	ldr	x9, [x20, #8]
	ldr	s1, [x9, w8, sxtw #2]
	fmul	s12, s10, s1
	fcmp	s12, #0.0
	b.le	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w23, #1
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x23, [x22]
	ldr	w0, [x24]
	bl	_ColorIndex
	ldr	x0, [x23, x0, lsl #3]
	bl	_trap_R_SetColor
	ldr	s0, [sp, #4]
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	b.pl	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w23, #2
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x23, [x22]
	ldr	w0, [x27]
	bl	_ColorIndex
	ldr	x0, [x23, x0, lsl #3]
	bl	_trap_R_SetColor
	ldr	s0, [sp, #4]
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	fneg	s1, s12
	fcmp	s9, s1
	fcsel	s2, s9, s1, mi
	ldr	s1, [sp, #12]
	fadd	s0, s1, s0
	fsub	s0, s0, s11
	ldr	w5, [x19]
	fmov	s1, s8
	mov	w0, #1
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_trap_R_DrawStretchPic
	mov	w23, #2
	b	LBB0_5
LBB0_13:
	mov	w23, #-1
	fcmp	s0, #0.0
	b.gt	LBB0_15
	b	LBB0_27
LBB0_14:
	ldr	s1, [sp]
	fcmp	s0, #0.0
	b.le	LBB0_27
LBB0_15:
	fmov	s2, #0.50000000
	fmul	s8, s1, s2
Lloh18:
	adrp	x8, _MAX_LAGOMETER_PING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAX_LAGOMETER_PING@GOTPAGEOFF]
Lloh20:
	ldr	s1, [x8]
	fdiv	s9, s8, s1
	movi	d10, #0000000000000000
	mov	w24, #1
	mov	w25, #-1
Lloh21:
	adrp	x26, _SNAPFLAG_RATE_DELAYED@GOTPAGE
Lloh22:
	ldr	x26, [x26, _SNAPFLAG_RATE_DELAYED@GOTPAGEOFF]
Lloh23:
	adrp	x28, _COLOR_YELLOW@GOTPAGE
Lloh24:
	ldr	x28, [x28, _COLOR_YELLOW@GOTPAGEOFF]
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x23, [x22]
	ldr	w0, [x8]
	bl	_ColorIndex
	ldr	x0, [x23, x0, lsl #3]
	bl	_trap_R_SetColor
	mov	x23, x27
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	fmul	s0, s9, s11
	fcmp	s0, s8
	fcsel	s2, s8, s0, gt
	ldr	s0, [sp, #12]
	ldp	s3, s1, [sp]
	fadd	s0, s0, s1
	fsub	s0, s0, s10
	ldr	s1, [sp, #8]
	fadd	s1, s1, s3
	fsub	s1, s1, s2
	ldr	w5, [x19]
	mov	w0, #1
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_trap_R_DrawStretchPic
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	scvtf	s10, w24
	ldr	s0, [sp, #4]
	add	w24, w24, #1
	sub	w25, w25, #1
	fcmp	s0, s10
	b.le	LBB0_27
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #16]
	ldr	w9, [x21]
	sub	w9, w9, #1
	add	w8, w25, w8
	and	w8, w9, w8
	ldr	x9, [x20, #24]
	ldr	s11, [x9, w8, sxtw #2]
	fcmp	s11, #0.0
	b.le	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	sxtw	x8, w8
	ldr	x9, [x20, #32]
	ldr	w8, [x9, x8, lsl #2]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	w27, #5
	mov	x8, x28
	cmp	w23, #5
	mov	w23, #5
	b.ne	LBB0_16
	b	LBB0_17
LBB0_22:                                ;   in Loop: Header=BB0_19 Depth=1
	b.pl	LBB0_18
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	cmp	w23, #4
	b.eq	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x23, [x22]
Lloh25:
	adrp	x8, _COLOR_RED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _COLOR_RED@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_ColorIndex
	ldr	x0, [x23, x0, lsl #3]
	bl	_trap_R_SetColor
	ldr	s0, [sp, #4]
LBB0_25:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	s1, [sp, #12]
	fadd	s0, s1, s0
	fsub	s0, s0, s10
	ldr	s1, [sp, #8]
	ldr	s2, [sp]
	fadd	s1, s1, s2
	fsub	s1, s1, s8
	ldr	w5, [x19]
	mov	w0, #1
	fmov	s2, s8
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_trap_R_DrawStretchPic
	mov	w23, #4
	b	LBB0_18
LBB0_26:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	w27, #3
Lloh28:
	adrp	x8, _COLOR_GREEN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _COLOR_GREEN@GOTPAGEOFF]
	cmp	w23, #3
	mov	w23, #3
	b.ne	LBB0_16
	b	LBB0_17
LBB0_27:
	mov	x0, #0
	bl	_trap_R_SetColor
Lloh30:
	adrp	x8, _cg_nopredict@GOTPAGE
Lloh31:
	ldr	x8, [x8, _cg_nopredict@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
Lloh33:
	adrp	x9, _cg_synchronousClients@GOTPAGE
Lloh34:
	ldr	x9, [x9, _cg_synchronousClients@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	orr	x8, x8, x9
	cbz	x8, LBB0_29
; %bb.28:
	ldp	s1, s0, [sp, #8]
Lloh36:
	adrp	x0, l_.str@PAGE
Lloh37:
	add	x0, x0, l_.str@PAGEOFF
	fmov	d2, #1.00000000
	bl	_CG_DrawBigString
LBB0_29:
	bl	_CG_DrawDisconnect
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_cg_lagometer,4,2               ; @cg_lagometer
	.comm	_cgs,16,3                       ; @cgs
	.comm	_MAX_LAGOMETER_RANGE,4,2        ; @MAX_LAGOMETER_RANGE
	.comm	_lagometer,40,3                 ; @lagometer
	.comm	_LAG_SAMPLES,4,2                ; @LAG_SAMPLES
	.comm	_g_color_table,8,3              ; @g_color_table
	.comm	_COLOR_YELLOW,4,2               ; @COLOR_YELLOW
	.comm	_COLOR_BLUE,4,2                 ; @COLOR_BLUE
	.comm	_MAX_LAGOMETER_PING,4,2         ; @MAX_LAGOMETER_PING
	.comm	_SNAPFLAG_RATE_DELAYED,4,2      ; @SNAPFLAG_RATE_DELAYED
	.comm	_COLOR_GREEN,4,2                ; @COLOR_GREEN
	.comm	_COLOR_RED,4,2                  ; @COLOR_RED
	.comm	_cg_nopredict,8,3               ; @cg_nopredict
	.comm	_cg_synchronousClients,8,3      ; @cg_synchronousClients
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"snc"

	.no_dead_strip	_CG_DrawLagometer
.subsections_via_symbols
