	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_CalcPings                   ## -- Begin function SV_CalcPings
	.p2align	4, 0x90
_SV_CalcPings:                          ## @SV_CalcPings
	.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	_sv_maxclients@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	jle	LBB0_24
## %bb.1:
	xorl	%ebx, %ebx
	movq	_svs@GOTPCREL(%rip), %r15
	movq	_CS_ACTIVE@GOTPCREL(%rip), %r12
	movq	_SVF_BOT@GOTPCREL(%rip), %rsi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$999, 8(%r14,%r13)              ## imm = 0x3E7
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_24
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	movq	(%r15), %r14
	movq	%rbx, %r13
	shlq	$5, %r13
	movq	(%r14,%r13), %rcx
	cmpq	(%r12), %rcx
	jne	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r14,%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rsi), %edx
	testl	%edx, (%rcx)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, 8(%r14,%r13)
	jmp	LBB0_3
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_PACKET_BACKUP@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$999, %eax                      ## imm = 0x3E7
	testl	%r9d, %r9d
	jle	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r14,%r13), %r8
	cmpl	$1, %r9d
	jne	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	xorl	%r11d, %r11d
	xorl	%ecx, %ecx
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	testb	$1, %r9b
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	shlq	$4, %rdx
	movq	(%r8,%rdx), %rsi
	testq	%rsi, %rsi
	jle	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	incl	%r11d
	addl	%esi, %ecx
	subl	8(%r8,%rdx), %ecx
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	testl	%r11d, %r11d
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, %eax
	cltd
	idivl	%r11d
	cmpl	$999, %eax                      ## imm = 0x3E7
	movl	$999, %ecx                      ## imm = 0x3E7
	cmovgel	%ecx, %eax
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, 8(%r14,%r13)
	movl	%ebx, %edi
	callq	_SV_GameClientNum
	movl	8(%r14,%r13), %ecx
	movl	%ecx, (%rax)
	movq	_sv_maxclients@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SVF_BOT@GOTPCREL(%rip), %rsi
	jmp	LBB0_3
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r9d, %r10d
	andl	$-2, %r10d
	leaq	24(%r8), %rdi
	xorl	%edx, %edx
	xorl	%r11d, %r11d
	xorl	%ecx, %ecx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=2
	addq	$2, %rdx
	addq	$32, %rdi
	cmpq	%rdx, %r10
	je	LBB0_12
LBB0_20:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-24(%rdi), %rsi
	testq	%rsi, %rsi
	jle	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=2
	incl	%r11d
	addl	%esi, %ecx
	subl	-16(%rdi), %ecx
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=2
	movq	-8(%rdi), %rsi
	testq	%rsi, %rsi
	jle	LBB0_19
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=2
	incl	%r11d
	addl	%esi, %ecx
	subl	(%rdi), %ecx
	jmp	LBB0_19
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sv_maxclients,8,3              ## @sv_maxclients
	.comm	_svs,8,3                        ## @svs
	.comm	_CS_ACTIVE,8,3                  ## @CS_ACTIVE
	.comm	_SVF_BOT,4,2                    ## @SVF_BOT
	.comm	_PACKET_BACKUP,4,2              ## @PACKET_BACKUP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_CalcPings                   ; -- Begin function SV_CalcPings
	.p2align	2
_SV_CalcPings:                          ; @SV_CalcPings
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x20, _sv_maxclients@GOTPAGE
Lloh1:
	ldr	x20, [x20, _sv_maxclients@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	w8, [x9]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.1:
	mov	x19, #0
Lloh2:
	adrp	x21, _svs@GOTPAGE
Lloh3:
	ldr	x21, [x21, _svs@GOTPAGEOFF]
Lloh4:
	adrp	x22, _CS_ACTIVE@GOTPAGE
Lloh5:
	ldr	x22, [x22, _CS_ACTIVE@GOTPAGEOFF]
	mov	w23, #999
Lloh6:
	adrp	x24, _SVF_BOT@GOTPAGE
Lloh7:
	ldr	x24, [x24, _SVF_BOT@GOTPAGEOFF]
Lloh8:
	adrp	x25, _PACKET_BACKUP@GOTPAGE
Lloh9:
	ldr	x25, [x25, _PACKET_BACKUP@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, x19, lsl #5
	str	w23, [x8, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, #1
	ldrsw	x8, [x9]
	cmp	x19, x8
	b.ge	LBB0_18
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x8, [x21]
	lsl	x10, x19, #5
	ldr	x10, [x8, x10]
	ldr	x11, [x22]
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x8, x19, lsl #5
	ldr	x11, [x10, #24]
	cbz	x11, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x11]
	ldr	w11, [x24]
	tst	w11, w10
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, x19, lsl #5
	str	wzr, [x8, #8]
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w23, [x10, #8]
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x25]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w10, #0
	mov	w11, #0
	add	x12, x8, x19, lsl #5
	ldr	x12, [x12, #16]
	add	x12, x12, #8
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x12, x12, #16
	subs	x9, x9, #1
	b.eq	LBB0_14
LBB0_12:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	x13, [x12, #-8]
	cmp	x13, #1
	b.lt	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	w14, [x12]
	add	w10, w10, #1
	add	w11, w11, w13
	sub	w11, w11, w14
	b	LBB0_11
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w10, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	sdiv	w9, w11, w10
	cmp	w9, #999
	csel	w9, w9, w23, lt
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #999
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x8, x19, lsl #5
	str	w9, [x26, #8]
	mov	x0, x19
	bl	_SV_GameClientNum
	ldr	w8, [x26, #8]
	str	w8, [x0]
	ldr	x9, [x20]
	b	LBB0_3
LBB0_18:
	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	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_sv_maxclients,8,3              ; @sv_maxclients
	.comm	_svs,8,3                        ; @svs
	.comm	_CS_ACTIVE,8,3                  ; @CS_ACTIVE
	.comm	_SVF_BOT,4,2                    ; @SVF_BOT
	.comm	_PACKET_BACKUP,4,2              ; @PACKET_BACKUP
.subsections_via_symbols
