	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckTeamStatus                ## -- Begin function CheckTeamStatus
	.p2align	4, 0x90
_CheckTeamStatus:                       ## @CheckTeamStatus
	.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	_level@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, %rdx
	subq	8(%rax), %rdx
	movq	_TEAM_LOCATION_UPDATE_TIME@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jle	LBB0_17
## %bb.1:
	movq	%rcx, 8(%rax)
	movq	_g_maxclients@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	jle	LBB0_17
## %bb.2:
	xorl	%r13d, %r13d
	movq	_g_entities@GOTPCREL(%rip), %r15
	movq	_CON_CONNECTED@GOTPCREL(%rip), %r12
	movq	_TEAM_RED@GOTPCREL(%rip), %rsi
	xorl	%r14d, %r14d
	jmp	LBB0_3
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	%r13, %rbx
	movq	%rbx, %rdi
	callq	_Team_GetLocation
	testq	%rax, %rax
	je	LBB0_8
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rax), %rax
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movq	_g_maxclients@GOTPCREL(%rip), %rdx
	movq	_TEAM_RED@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movslq	(%rdx), %rax
	addq	$24, %r13
	cmpq	%rax, %r14
	jge	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rbx
	movq	(%rbx,%r13), %rax
	movq	8(%rax), %rcx
	cmpq	(%r12), %rcx
	jne	LBB0_20
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 8(%rbx,%r13)
	je	LBB0_20
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax), %rax
	cmpq	(%rsi), %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_TEAM_BLUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
	jmp	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_9:
	testl	%eax, %eax
	jle	LBB0_17
## %bb.10:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	addq	%rbx, %rdi
	callq	_TeamplayInfoMessage
	movq	_TEAM_RED@GOTPCREL(%rip), %rsi
	movq	_g_maxclients@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	addq	$24, %rbx
	cmpq	%rcx, %r14
	jge	LBB0_17
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movq	(%rdi,%rbx), %rcx
	movq	8(%rcx), %rdx
	cmpq	(%r12), %rdx
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	$0, 8(%rdi,%rbx)
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%rcx), %rcx
	cmpq	(%rsi), %rcx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_TEAM_BLUE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_16
	jmp	LBB0_15
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_level,16,3                     ## @level
	.comm	_TEAM_LOCATION_UPDATE_TIME,8,3  ## @TEAM_LOCATION_UPDATE_TIME
	.comm	_g_maxclients,4,2               ## @g_maxclients
	.comm	_g_entities,8,3                 ## @g_entities
	.comm	_CON_CONNECTED,8,3              ## @CON_CONNECTED
	.comm	_TEAM_RED,8,3                   ## @TEAM_RED
	.comm	_TEAM_BLUE,8,3                  ## @TEAM_BLUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckTeamStatus                ; -- Begin function CheckTeamStatus
	.p2align	2
_CheckTeamStatus:                       ; @CheckTeamStatus
	.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	x8, _level@GOTPAGE
Lloh1:
	ldr	x8, [x8, _level@GOTPAGEOFF]
	ldp	x9, x10, [x8]
Lloh2:
	adrp	x11, _TEAM_LOCATION_UPDATE_TIME@GOTPAGE
Lloh3:
	ldr	x11, [x11, _TEAM_LOCATION_UPDATE_TIME@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
	sub	x10, x9, x10
	cmp	x10, x11
	b.le	LBB0_18
; %bb.1:
	str	x9, [x8, #8]
Lloh5:
	adrp	x20, _g_maxclients@GOTPAGE
Lloh6:
	ldr	x20, [x20, _g_maxclients@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.2:
	mov	x25, #0
	mov	x26, #0
Lloh7:
	adrp	x21, _g_entities@GOTPAGE
Lloh8:
	ldr	x21, [x21, _g_entities@GOTPAGEOFF]
Lloh9:
	adrp	x22, _CON_CONNECTED@GOTPAGE
Lloh10:
	ldr	x22, [x22, _CON_CONNECTED@GOTPAGEOFF]
Lloh11:
	adrp	x23, _TEAM_RED@GOTPAGE
Lloh12:
	ldr	x23, [x23, _TEAM_RED@GOTPAGEOFF]
Lloh13:
	adrp	x24, _TEAM_BLUE@GOTPAGE
Lloh14:
	ldr	x24, [x24, _TEAM_BLUE@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x0, #16]
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x19]
	str	x8, [x9, #16]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x20]
	add	x25, x25, #24
	cmp	x26, x8
	b.ge	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x19, x8, x25
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	ldr	x10, [x22]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x8]
	ldr	x9, [x23]
	ldr	x10, [x24]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_Team_GetLocation
	cbnz	x0, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x8, #0
	b	LBB0_4
LBB0_11:
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.12:
	mov	x19, #0
	mov	x25, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x25, x25, #1
	add	x19, x19, #24
	cmp	x25, w8, sxtw
	b.ge	LBB0_18
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21]
	add	x0, x9, x19
	ldr	x9, [x0]
	ldr	x10, [x9, #8]
	ldr	x11, [x22]
	cmp	x10, x11
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x10, [x0, #8]
	cbz	x10, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x9, [x9]
	ldr	x10, [x23]
	ldr	x11, [x24]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	bl	_TeamplayInfoMessage
	ldr	w8, [x20]
	b	LBB0_13
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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_level,16,3                     ; @level
	.comm	_TEAM_LOCATION_UPDATE_TIME,8,3  ; @TEAM_LOCATION_UPDATE_TIME
	.comm	_g_maxclients,4,2               ; @g_maxclients
	.comm	_g_entities,8,3                 ; @g_entities
	.comm	_CON_CONNECTED,8,3              ; @CON_CONNECTED
	.comm	_TEAM_RED,8,3                   ; @TEAM_RED
	.comm	_TEAM_BLUE,8,3                  ; @TEAM_BLUE
.subsections_via_symbols
