	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function G_LoadBots
_G_LoadBots:                            ## @G_LoadBots
	.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	$1176, %rsp                     ## imm = 0x498
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_trap_Cvar_VariableIntegerValue
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	_g_numBots@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_CVAR_INIT@GOTPCREL(%rip), %rax
	movq	_CVAR_ROM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	leaq	-1208(%rbp), %rdi
	callq	_trap_Cvar_Register
	movq	-1208(%rbp), %rdi
	cmpb	$0, (%rdi)
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.3(%rip), %rdi
LBB0_3:
	callq	_G_LoadBotsFromFile
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	leaq	-1200(%rbp), %rbx
	movq	%rbx, %rdx
	movl	$1024, %ecx                     ## imm = 0x400
	callq	_trap_FS_GetFileList
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:
	movl	%eax, %r14d
	leaq	L_.str.6(%rip), %r15
	leaq	-176(%rbp), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %r13d
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_strcpy
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_strcat
	movq	%r12, %rdi
	callq	_G_LoadBotsFromFile
	movslq	%r13d, %rax
	addq	%rax, %rbx
	incq	%rbx
	decl	%r14d
	jne	LBB0_5
LBB0_6:
	movq	_g_numBots@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.7(%rip), %rdi
	callq	_va
	movl	%eax, %edi
	callq	_trap_Print
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$1176, %rsp                     ## imm = 0x498
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bot_enable"

	.comm	_g_numBots,8,3                  ## @g_numBots
L_.str.1:                               ## @.str.1
	.asciz	"g_botsFile"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_CVAR_INIT,4,2                  ## @CVAR_INIT
	.comm	_CVAR_ROM,4,2                   ## @CVAR_ROM
L_.str.3:                               ## @.str.3
	.asciz	"scripts/bots.txt"

L_.str.4:                               ## @.str.4
	.asciz	"scripts"

L_.str.5:                               ## @.str.5
	.asciz	".bot"

L_.str.6:                               ## @.str.6
	.asciz	"scripts/"

L_.str.7:                               ## @.str.7
	.asciz	"%i bots parsed\n"

	.no_dead_strip	_G_LoadBots
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function G_LoadBots
_G_LoadBots:                            ; @G_LoadBots
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #1168
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_VariableIntegerValue
	cbz	w0, LBB0_7
; %bb.1:
Lloh5:
	adrp	x23, _g_numBots@GOTPAGE
Lloh6:
	ldr	x23, [x23, _g_numBots@GOTPAGEOFF]
Lloh7:
	adrp	x8, _CVAR_INIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CVAR_INIT@GOTPAGEOFF]
	str	xzr, [x23]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _CVAR_ROM@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CVAR_ROM@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, sp
	bl	_trap_Cvar_Register
	ldr	x0, [sp]
	ldrb	w8, [x0]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_3:
	bl	_G_LoadBotsFromFile
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #8
	mov	w3, #1024
	bl	_trap_FS_GetFileList
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x19, x0
	add	x20, sp, #8
Lloh23:
	adrp	x21, l_.str.6@PAGE
Lloh24:
	add	x21, x21, l_.str.6@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_strlen
	mov	x22, x0
	sub	x0, x29, #184
	mov	x1, x21
	bl	_strcpy
	sub	x0, x29, #184
	mov	x1, x20
	bl	_strcat
	sub	x0, x29, #184
	bl	_G_LoadBotsFromFile
	add	w8, w22, #1
	add	x20, x20, w8, sxtw
	subs	w19, w19, #1
	b.ne	LBB0_5
LBB0_6:
	ldr	x1, [x23]
Lloh25:
	adrp	x0, l_.str.7@PAGE
Lloh26:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_va
	bl	_trap_Print
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	add	sp, sp, #1168
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bot_enable"

	.comm	_g_numBots,8,3                  ; @g_numBots
l_.str.1:                               ; @.str.1
	.asciz	"g_botsFile"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_CVAR_INIT,4,2                  ; @CVAR_INIT
	.comm	_CVAR_ROM,4,2                   ; @CVAR_ROM
l_.str.3:                               ; @.str.3
	.asciz	"scripts/bots.txt"

l_.str.4:                               ; @.str.4
	.asciz	"scripts"

l_.str.5:                               ; @.str.5
	.asciz	".bot"

l_.str.6:                               ; @.str.6
	.asciz	"scripts/"

l_.str.7:                               ; @.str.7
	.asciz	"%i bots parsed\n"

	.no_dead_strip	_G_LoadBots
.subsections_via_symbols
