	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotTeamOrders                  ## -- Begin function BotTeamOrders
	.p2align	4, 0x90
_BotTeamOrders:                         ## @BotTeamOrders
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_MAX_INFO_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	_BotTeamOrders.maxclients(%rip), %eax
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_trap_Cvar_VariableIntegerValue
	movl	%eax, _BotTeamOrders.maxclients(%rip)
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_2:
	testl	%eax, %eax
	jle	LBB0_22
## %bb.3:
	testl	%ebx, %ebx
	jle	LBB0_22
## %bb.4:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_CS_PLAYERS@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_trap_GetConfigstring
	movq	%r13, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_Info_ValueForKey
	movq	%rax, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_Info_ValueForKey
	movq	%rax, %rdi
	callq	_atoi
	movq	_TEAM_SPECTATOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_BotSameTeam
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r14d, %r14
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax,%r14,4)
	incl	%r14d
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	_BotTeamOrders.maxclients(%rip), %rax
	cmpq	%rax, %rbx
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_12:
	leal	-1(%r14), %eax
	cmpl	$4, %eax
	ja	LBB0_15
## %bb.13:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmpq	*%rax
LBB0_14:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_15:
	leal	-2(%r14), %eax
	cmpl	$8, %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	ja	LBB0_22
## %bb.16:
	shrl	%r14d
	andl	$127, %r14d
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	$2, %edx
	callq	_BotCreateGroup
	addq	$8, %rbx
	decq	%r14
	jne	LBB0_17
	jmp	LBB0_22
LBB0_18:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$2, %edx
	callq	_BotCreateGroup
	addq	$8, %rbx
	movq	%r14, %rdi
LBB0_19:
	movq	%rbx, %rsi
	movl	$2, %edx
	jmp	LBB0_21
LBB0_20:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$2, %edx
	callq	_BotCreateGroup
	addq	$8, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$3, %edx
LBB0_21:
	callq	_BotCreateGroup
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
LJTI0_0:
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_14
	.long	L0_0_set_18
	.long	L0_0_set_20
	.end_data_region
                                        ## -- End function
	.comm	_MAX_CLIENTS,4,2                ## @MAX_CLIENTS
	.comm	_MAX_INFO_STRING,4,2            ## @MAX_INFO_STRING
.zerofill __DATA,__bss,_BotTeamOrders.maxclients,4,2 ## @BotTeamOrders.maxclients
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sv_maxclients"

	.comm	_CS_PLAYERS,8,3                 ## @CS_PLAYERS
L_.str.1:                               ## @.str.1
	.asciz	"n"

L_.str.2:                               ## @.str.2
	.asciz	"t"

	.comm	_TEAM_SPECTATOR,8,3             ## @TEAM_SPECTATOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotTeamOrders                  ; -- Begin function BotTeamOrders
	.p2align	2
_BotTeamOrders:                         ; @BotTeamOrders
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
	stur	x0, [x29, #-96]                 ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x26, _MAX_CLIENTS@GOTPAGE
Lloh4:
	ldr	x26, [x26, _MAX_CLIENTS@GOTPAGEOFF]
	ldr	w12, [x26]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x8, x9, x8
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
	mov	sp, x8
Lloh7:
	adrp	x8, _MAX_INFO_STRING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAX_INFO_STRING@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
	mov	x9, x21
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	adrp	x27, _BotTeamOrders.maxclients@PAGE
	ldr	w0, [x27, _BotTeamOrders.maxclients@PAGEOFF]
	cbnz	w0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_VariableIntegerValue
	str	w0, [x27, _BotTeamOrders.maxclients@PAGEOFF]
	ldr	w12, [x26]
LBB0_2:
	cmp	w0, #1
	ccmp	w12, #1, #8, ge
	b.lt	LBB0_23
; %bb.3:
	mov	x23, #0
	mov	w28, #0
Lloh14:
	adrp	x19, _CS_PLAYERS@GOTPAGE
Lloh15:
	ldr	x19, [x19, _CS_PLAYERS@GOTPAGEOFF]
Lloh16:
	adrp	x24, l_.str.1@PAGE
Lloh17:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh18:
	adrp	x20, _TEAM_SPECTATOR@GOTPAGE
Lloh19:
	ldr	x20, [x20, _TEAM_SPECTATOR@GOTPAGEOFF]
Lloh20:
	adrp	x25, l_.str.2@PAGE
Lloh21:
	add	x25, x25, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x27, _BotTeamOrders.maxclients@PAGEOFF]
	ldrsw	x9, [x26]
	cmp	x23, x8
	ccmp	x23, x9, #0, lt
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x0, x23, x8
	mov	x1, x22
	mov	x2, x21
	bl	_trap_GetConfigstring
	mov	x0, x22
	bl	_strlen
	cbz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_Info_ValueForKey
	bl	_strlen
	cbz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x25
	bl	_Info_ValueForKey
	bl	_atoi
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	x0, [x29, #-96]                 ; 8-byte Folded Reload
	mov	x1, x23
	bl	_BotSameTeam
	cbz	x0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	str	w23, [x8, w28, sxtw #2]
	add	w28, w28, #1
	b	LBB0_4
LBB0_10:
	sub	w8, w28, #1
	cmp	w8, #4
	b.hi	LBB0_13
; %bb.11:
Lloh22:
	adrp	x9, lJTI0_0@PAGE
Lloh23:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_12
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_12:
	ldp	x1, x0, [x29, #-104]            ; 16-byte Folded Reload
	b	LBB0_20
LBB0_13:
	sub	w8, w28, #2
	cmp	w8, #8
	b.hi	LBB0_23
; %bb.14:
	ubfx	w19, w28, #1, #7
	ldp	x1, x0, [x29, #-104]            ; 16-byte Folded Reload
	mov	w2, #2
	bl	_BotCreateGroup
	cmp	w19, #1
	b.eq	LBB0_23
; %bb.15:
	ldp	x8, x0, [x29, #-104]            ; 16-byte Folded Reload
	add	x1, x8, #8
	mov	w2, #2
	bl	_BotCreateGroup
	cmp	w19, #2
	b.eq	LBB0_23
; %bb.16:
	ldp	x8, x0, [x29, #-104]            ; 16-byte Folded Reload
	add	x1, x8, #16
	mov	w2, #2
	bl	_BotCreateGroup
	cmp	w19, #3
	b.eq	LBB0_23
; %bb.17:
	ldp	x8, x0, [x29, #-104]            ; 16-byte Folded Reload
	add	x1, x8, #24
	mov	w2, #2
	bl	_BotCreateGroup
	cmp	w19, #4
	b.eq	LBB0_23
; %bb.18:
	ldp	x8, x0, [x29, #-104]            ; 16-byte Folded Reload
	add	x1, x8, #32
	b	LBB0_20
LBB0_19:
	ldp	x20, x19, [x29, #-104]          ; 16-byte Folded Reload
	mov	x0, x19
	mov	x1, x20
	mov	w2, #2
	bl	_BotCreateGroup
	add	x1, x20, #8
	mov	x0, x19
LBB0_20:
	mov	w2, #2
	b	LBB0_22
LBB0_21:
	ldp	x20, x19, [x29, #-104]          ; 16-byte Folded Reload
	mov	x0, x19
	mov	x1, x20
	mov	w2, #2
	bl	_BotCreateGroup
	add	x1, x20, #8
	mov	x0, x19
	mov	w2, #3
LBB0_22:
	bl	_BotCreateGroup
LBB0_23:
	ldur	x8, [x29, #-88]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_23-LBB0_12)>>2
	.byte	(LBB0_23-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_19-LBB0_12)>>2
	.byte	(LBB0_21-LBB0_12)>>2
                                        ; -- End function
	.comm	_MAX_CLIENTS,4,2                ; @MAX_CLIENTS
	.comm	_MAX_INFO_STRING,4,2            ; @MAX_INFO_STRING
.zerofill __DATA,__bss,_BotTeamOrders.maxclients,4,2 ; @BotTeamOrders.maxclients
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sv_maxclients"

	.comm	_CS_PLAYERS,8,3                 ; @CS_PLAYERS
l_.str.1:                               ; @.str.1
	.asciz	"n"

l_.str.2:                               ; @.str.2
	.asciz	"t"

	.comm	_TEAM_SPECTATOR,8,3             ; @TEAM_SPECTATOR
.subsections_via_symbols
