	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_CheckMinimumPlayers          ## -- Begin function G_CheckMinimumPlayers
	.p2align	4, 0x90
_G_CheckMinimumPlayers:                 ## @G_CheckMinimumPlayers
	.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	_level@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_29
## %bb.1:
	movl	(%rax), %eax
	leal	-10000(%rax), %ecx
	cmpl	%ecx, _G_CheckMinimumPlayers.checkminimumplayers_time(%rip)
	jg	LBB0_29
## %bb.2:
	movl	%eax, _G_CheckMinimumPlayers.checkminimumplayers_time(%rip)
	movq	_bot_minplayers@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_trap_Cvar_Update
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_29
## %bb.3:
	movq	_g_gametype@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_GT_TEAM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_4
## %bb.15:
	movq	_GT_TOURNAMENT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_23
## %bb.16:
	movq	_g_maxclients@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	-1(%rcx), %r14d
	cmpl	%ecx, %eax
	cmovll	%eax, %r14d
	movl	$-1, %edi
	callq	_G_CountHumanPlayers
	movl	%eax, %ebx
	movl	$-1, %edi
	callq	_G_CountBotPlayers
	addl	%eax, %ebx
	cmpl	%r14d, %ebx
	jge	LBB0_18
## %bb.17:
	movq	_TEAM_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_11
LBB0_4:
	movq	_g_maxclients@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	leal	-1(%rdx), %r14d
	cmpl	%edx, %eax
	cmovll	%eax, %r14d
	movq	_TEAM_RED@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_G_CountHumanPlayers
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_G_CountBotPlayers
	addl	%eax, %ebx
	cmpl	%r14d, %ebx
	jge	LBB0_6
## %bb.5:
	movl	(%r15), %edi
	callq	_G_AddRandomBot
	jmp	LBB0_9
LBB0_23:
	movq	_GT_FFA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_29
## %bb.24:
	movq	_g_maxclients@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	-1(%rcx), %r15d
	cmpl	%ecx, %eax
	cmovll	%eax, %r15d
	movq	_TEAM_FREE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_G_CountHumanPlayers
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_G_CountBotPlayers
	addl	%eax, %ebx
	cmpl	%r15d, %ebx
	jge	LBB0_26
## %bb.25:
	movl	(%r14), %edi
	jmp	LBB0_11
LBB0_6:
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	cmpl	%r14d, %ebx
	jle	LBB0_9
## %bb.8:
	movl	(%r15), %edi
	callq	_G_RemoveRandomBot
LBB0_9:
	movq	_TEAM_BLUE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_G_CountHumanPlayers
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_G_CountBotPlayers
	addl	%eax, %ebx
	cmpl	%r14d, %ebx
	jge	LBB0_12
## %bb.10:
	movl	(%r15), %edi
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_G_AddRandomBot                 ## TAILCALL
LBB0_12:
	testl	%eax, %eax
	je	LBB0_29
## %bb.13:
	cmpl	%r14d, %ebx
	jle	LBB0_29
## %bb.14:
	movl	(%r15), %edi
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_G_RemoveRandomBot              ## TAILCALL
LBB0_18:
	testl	%eax, %eax
	je	LBB0_29
## %bb.19:
	cmpl	%r14d, %ebx
	jle	LBB0_29
## %bb.20:
	movq	_TEAM_SPECTATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_G_RemoveRandomBot
	testl	%eax, %eax
	jne	LBB0_29
## %bb.21:
	movl	$-1, %edi
	jmp	LBB0_22
LBB0_26:
	testl	%eax, %eax
	je	LBB0_29
## %bb.27:
	cmpl	%r15d, %ebx
	jle	LBB0_29
## %bb.28:
	movl	(%r14), %edi
	jmp	LBB0_22
LBB0_29:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_G_CheckMinimumPlayers.checkminimumplayers_time,4,2 ## @G_CheckMinimumPlayers.checkminimumplayers_time
	.comm	_level,16,3                     ## @level
	.comm	_bot_minplayers,4,2             ## @bot_minplayers
	.comm	_g_gametype,8,3                 ## @g_gametype
	.comm	_GT_TEAM,8,3                    ## @GT_TEAM
	.comm	_g_maxclients,4,2               ## @g_maxclients
	.comm	_TEAM_RED,4,2                   ## @TEAM_RED
	.comm	_TEAM_BLUE,4,2                  ## @TEAM_BLUE
	.comm	_GT_TOURNAMENT,8,3              ## @GT_TOURNAMENT
	.comm	_TEAM_FREE,4,2                  ## @TEAM_FREE
	.comm	_TEAM_SPECTATOR,4,2             ## @TEAM_SPECTATOR
	.comm	_GT_FFA,8,3                     ## @GT_FFA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_CheckMinimumPlayers          ; -- Begin function G_CheckMinimumPlayers
	.p2align	2
_G_CheckMinimumPlayers:                 ; @G_CheckMinimumPlayers
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x9, _level@GOTPAGE
Lloh1:
	ldr	x9, [x9, _level@GOTPAGEOFF]
	ldr	x8, [x9, #8]
	cbnz	x8, LBB0_28
; %bb.1:
	adrp	x8, _G_CheckMinimumPlayers.checkminimumplayers_time@PAGE
	ldr	w10, [x8, _G_CheckMinimumPlayers.checkminimumplayers_time@PAGEOFF]
	ldr	w9, [x9]
	mov	w11, #-10000
	add	w11, w9, w11
	cmp	w10, w11
	b.gt	LBB0_28
; %bb.2:
	str	w9, [x8, _G_CheckMinimumPlayers.checkminimumplayers_time@PAGEOFF]
Lloh2:
	adrp	x19, _bot_minplayers@GOTPAGE
Lloh3:
	ldr	x19, [x19, _bot_minplayers@GOTPAGEOFF]
	mov	x0, x19
	bl	_trap_Cvar_Update
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.3:
Lloh4:
	adrp	x9, _g_gametype@GOTPAGE
Lloh5:
	ldr	x9, [x9, _g_gametype@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
Lloh7:
	adrp	x10, _GT_TEAM@GOTPAGE
Lloh8:
	ldr	x10, [x10, _GT_TEAM@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_7
; %bb.4:
Lloh10:
	adrp	x10, _GT_TOURNAMENT@GOTPAGE
Lloh11:
	ldr	x10, [x10, _GT_TOURNAMENT@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.5:
Lloh13:
	adrp	x9, _g_maxclients@GOTPAGE
Lloh14:
	ldr	x9, [x9, _g_maxclients@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	sub	w10, w9, #1
	cmp	w8, w9
	csel	w20, w8, w10, lt
	mov	w0, #-1
	bl	_G_CountHumanPlayers
	mov	x19, x0
	mov	w0, #-1
	bl	_G_CountBotPlayers
	add	w8, w0, w19
	cmp	w8, w20
	b.ge	LBB0_21
; %bb.6:
Lloh16:
	adrp	x8, _TEAM_FREE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TEAM_FREE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	b	LBB0_16
LBB0_7:
Lloh19:
	adrp	x9, _g_maxclients@GOTPAGE
Lloh20:
	ldr	x9, [x9, _g_maxclients@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	sub	w10, w9, #1
	cmp	w8, w9
	csel	w20, w8, w10, lt
Lloh22:
	adrp	x21, _TEAM_RED@GOTPAGE
Lloh23:
	ldr	x21, [x21, _TEAM_RED@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_G_CountHumanPlayers
	mov	x19, x0
	ldr	w0, [x21]
	bl	_G_CountBotPlayers
	add	w8, w0, w19
	cmp	w8, w20
	b.ge	LBB0_12
; %bb.8:
	ldr	w0, [x21]
	bl	_G_AddRandomBot
	b	LBB0_14
LBB0_9:
Lloh24:
	adrp	x10, _GT_FFA@GOTPAGE
Lloh25:
	ldr	x10, [x10, _GT_FFA@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_28
; %bb.10:
Lloh27:
	adrp	x9, _g_maxclients@GOTPAGE
Lloh28:
	ldr	x9, [x9, _g_maxclients@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	sub	w10, w9, #1
	cmp	w8, w9
	csel	w21, w8, w10, lt
Lloh30:
	adrp	x20, _TEAM_FREE@GOTPAGE
Lloh31:
	ldr	x20, [x20, _TEAM_FREE@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_G_CountHumanPlayers
	mov	x19, x0
	ldr	w0, [x20]
	bl	_G_CountBotPlayers
	add	w8, w0, w19
	cmp	w8, w21
	b.ge	LBB0_25
; %bb.11:
	ldr	w0, [x20]
	b	LBB0_16
LBB0_12:
	cmp	w0, #0
	ccmp	w8, w20, #4, ne
	b.le	LBB0_14
; %bb.13:
	ldr	w0, [x21]
	bl	_G_RemoveRandomBot
LBB0_14:
Lloh32:
	adrp	x21, _TEAM_BLUE@GOTPAGE
Lloh33:
	ldr	x21, [x21, _TEAM_BLUE@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_G_CountHumanPlayers
	mov	x19, x0
	ldr	w0, [x21]
	bl	_G_CountBotPlayers
	add	w8, w0, w19
	cmp	w8, w20
	b.ge	LBB0_17
; %bb.15:
	ldr	w0, [x21]
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_G_AddRandomBot
LBB0_17:
	cbz	w0, LBB0_28
; %bb.18:
	cmp	w8, w20
	b.le	LBB0_28
; %bb.19:
	ldr	w0, [x21]
LBB0_20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_G_RemoveRandomBot
LBB0_21:
	cbz	w0, LBB0_28
; %bb.22:
	cmp	w8, w20
	b.le	LBB0_28
; %bb.23:
Lloh34:
	adrp	x8, _TEAM_SPECTATOR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TEAM_SPECTATOR@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_G_RemoveRandomBot
	cbnz	w0, LBB0_28
; %bb.24:
	mov	w0, #-1
	b	LBB0_20
LBB0_25:
	cbz	w0, LBB0_28
; %bb.26:
	cmp	w8, w21
	b.le	LBB0_28
; %bb.27:
	ldr	w0, [x20]
	b	LBB0_20
LBB0_28:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_G_CheckMinimumPlayers.checkminimumplayers_time,4,2 ; @G_CheckMinimumPlayers.checkminimumplayers_time
	.comm	_level,16,3                     ; @level
	.comm	_bot_minplayers,4,2             ; @bot_minplayers
	.comm	_g_gametype,8,3                 ; @g_gametype
	.comm	_GT_TEAM,8,3                    ; @GT_TEAM
	.comm	_g_maxclients,4,2               ; @g_maxclients
	.comm	_TEAM_RED,4,2                   ; @TEAM_RED
	.comm	_TEAM_BLUE,4,2                  ; @TEAM_BLUE
	.comm	_GT_TOURNAMENT,8,3              ; @GT_TOURNAMENT
	.comm	_TEAM_FREE,4,2                  ; @TEAM_FREE
	.comm	_TEAM_SPECTATOR,4,2             ; @TEAM_SPECTATOR
	.comm	_GT_FFA,8,3                     ; @GT_FFA
.subsections_via_symbols
