	.file	"extr_sv_bot.c_SV_BotInitBotLib.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"fs_restrict"
.LC1:
	.string	"Game CD not in drive"
.LC2:
	.string	"bot_maxdebugpolys"
	.text
	.p2align 4
	.globl	SV_BotInitBotLib
	.type	SV_BotInitBotLib, @function
SV_BotInitBotLib:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 104
	.cfi_def_cfa_offset 112
	lea	rdi, .LC0[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	call	Cvar_VariableValue@PLT
	test	eax, eax
	je	.L12
.L3:
	mov	rdi, QWORD PTR debugpolygons[rip]
	test	rdi, rdi
	jne	.L13
.L5:
	lea	rdi, .LC2[rip]
	call	Cvar_VariableIntegerValue@PLT
	lea	edi, 0[0+rax*4]
	mov	DWORD PTR bot_maxdebugpolys[rip], eax
	call	Z_Malloc@PLT
	mov	rsi, rsp
	mov	QWORD PTR debugpolygons[rip], rax
	mov	eax, DWORD PTR BotImport_Print[rip]
	mov	DWORD PTR 84[rsp], eax
	mov	eax, DWORD PTR BotImport_Trace[rip]
	mov	DWORD PTR 80[rsp], eax
	mov	eax, DWORD PTR BotImport_EntityTrace[rip]
	mov	DWORD PTR 76[rsp], eax
	mov	eax, DWORD PTR BotImport_PointContents[rip]
	mov	DWORD PTR 72[rsp], eax
	mov	eax, DWORD PTR BotImport_inPVS[rip]
	mov	DWORD PTR 68[rsp], eax
	mov	eax, DWORD PTR BotImport_BSPEntityData[rip]
	mov	DWORD PTR 64[rsp], eax
	mov	eax, DWORD PTR BotImport_BSPModelMinsMaxsOrigin[rip]
	mov	DWORD PTR 60[rsp], eax
	mov	eax, DWORD PTR BotClientCommand[rip]
	mov	DWORD PTR 56[rsp], eax
	mov	eax, DWORD PTR BotImport_GetMemory[rip]
	mov	DWORD PTR 52[rsp], eax
	mov	eax, DWORD PTR BotImport_FreeMemory[rip]
	mov	DWORD PTR 48[rsp], eax
	mov	eax, DWORD PTR Z_AvailableMemory[rip]
	mov	DWORD PTR 44[rsp], eax
	mov	eax, DWORD PTR BotImport_HunkAlloc[rip]
	mov	DWORD PTR 40[rsp], eax
	mov	eax, DWORD PTR FS_FOpenFileByMode[rip]
	mov	DWORD PTR 36[rsp], eax
	mov	eax, DWORD PTR FS_Read2[rip]
	mov	DWORD PTR 32[rsp], eax
	mov	eax, DWORD PTR FS_Write[rip]
	mov	DWORD PTR 28[rsp], eax
	mov	eax, DWORD PTR FS_FCloseFile[rip]
	mov	DWORD PTR 24[rsp], eax
	mov	eax, DWORD PTR FS_Seek[rip]
	mov	edi, DWORD PTR BOTLIB_API_VERSION[rip]
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR BotImport_DebugLineCreate[rip]
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR BotImport_DebugLineDelete[rip]
	mov	DWORD PTR 12[rsp], eax
	mov	eax, DWORD PTR BotImport_DebugLineShow[rip]
	mov	DWORD PTR 8[rsp], eax
	mov	eax, DWORD PTR BotImport_DebugPolygonCreate[rip]
	mov	DWORD PTR 4[rsp], eax
	mov	eax, DWORD PTR BotImport_DebugPolygonDelete[rip]
	mov	DWORD PTR [rsp], eax
	call	GetBotLibAPI@PLT
	mov	rdi, rax
	mov	QWORD PTR botlib_export[rip], rax
	call	assert@PLT
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	call	Sys_CheckCD@PLT
	test	eax, eax
	jne	.L3
	mov	edi, DWORD PTR ERR_NEED_CD[rip]
	lea	rsi, .LC1[rip]
	call	Com_Error@PLT
	mov	rdi, QWORD PTR debugpolygons[rip]
	test	rdi, rdi
	je	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	call	Z_Free@PLT
	jmp	.L5
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	SV_BotInitBotLib, .-SV_BotInitBotLib
	.comm	debugpolygons,8,8
	.comm	botlib_export,8,8
	.comm	bot_maxdebugpolys,4,4
	.comm	Z_AvailableMemory,4,4
	.comm	FS_Write,4,4
	.comm	FS_Seek,4,4
	.comm	FS_Read2,4,4
	.comm	FS_FOpenFileByMode,4,4
	.comm	FS_FCloseFile,4,4
	.comm	ERR_NEED_CD,4,4
	.comm	BotImport_inPVS,4,4
	.comm	BotImport_Trace,4,4
	.comm	BotImport_Print,4,4
	.comm	BotImport_PointContents,4,4
	.comm	BotImport_HunkAlloc,4,4
	.comm	BotImport_GetMemory,4,4
	.comm	BotImport_FreeMemory,4,4
	.comm	BotImport_EntityTrace,4,4
	.comm	BotImport_DebugPolygonDelete,4,4
	.comm	BotImport_DebugPolygonCreate,4,4
	.comm	BotImport_DebugLineShow,4,4
	.comm	BotImport_DebugLineDelete,4,4
	.comm	BotImport_DebugLineCreate,4,4
	.comm	BotImport_BSPModelMinsMaxsOrigin,4,4
	.comm	BotImport_BSPEntityData,4,4
	.comm	BotClientCommand,4,4
	.comm	BOTLIB_API_VERSION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sv_bot.c_SV_BotInitBotLib.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fs_restrict\000"
	.align	2
.LC1:
	.ascii	"Game CD not in drive\000"
	.align	2
.LC2:
	.ascii	"bot_maxdebugpolys\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	SV_BotInitBotLib
	.syntax unified
	.arm
	.fpu softvfp
	.type	SV_BotInitBotLib, %function
SV_BotInitBotLib:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L15
	sub	sp, sp, #96
	ldr	r0, .L15+4
	ldr	r3, [r3]
	str	r3, [sp, #92]
	mov	r3,#0
	bl	Cvar_VariableValue
	cmp	r0, #0
	beq	.L12
.L3:
	ldr	r4, .L15+8
	ldr	r0, [r4]
	cmp	r0, #0
	bne	.L13
.L5:
	ldr	r0, .L15+12
	bl	Cvar_VariableIntegerValue
	mov	r3, r0
	ldr	r2, .L15+16
	lsl	r0, r0, #2
	str	r3, [r2]
	bl	Z_Malloc
	ldr	lr, .L15+20
	ldr	r1, .L15+24
	ldr	r3, .L15+28
	ldr	r5, [lr]
	str	r0, [r4]
	ldr	lr, [r1]
	ldr	ip, .L15+32
	ldr	r1, [r3]
	ldr	r0, .L15+36
	ldr	r3, .L15+40
	ldr	r2, .L15+44
	ldr	r6, [ip]
	ldr	r2, [r2]
	ldr	ip, [r0]
	ldr	r0, [r3]
	ldr	r3, .L15+48
	str	r2, [sp, #88]
	ldr	r2, [r3]
	ldr	r3, .L15+52
	str	r5, [sp, #84]
	ldr	r5, [r3]
	ldr	r3, .L15+56
	str	lr, [sp, #76]
	ldr	r4, [r3]
	ldr	r3, .L15+60
	str	r1, [sp, #72]
	ldr	lr, [r3]
	ldr	r3, .L15+64
	str	ip, [sp, #68]
	ldr	r1, [r3]
	ldr	r3, .L15+68
	str	r0, [sp, #64]
	ldr	ip, [r3]
	ldr	r3, .L15+72
	str	r2, [sp, #60]
	ldr	r0, [r3]
	ldr	r3, .L15+76
	str	lr, [sp, #48]
	ldr	r2, [r3]
	ldr	r3, .L15+80
	ldr	lr, .L15+84
	ldr	r3, [r3]
	str	r1, [sp, #44]
	str	ip, [sp, #40]
	str	r0, [sp, #36]
	ldr	ip, .L15+88
	ldr	r0, .L15+92
	ldr	r1, .L15+96
	str	r4, [sp, #52]
	str	r2, [sp, #32]
	str	r6, [sp, #80]
	ldr	r2, .L15+100
	str	r5, [sp, #56]
	str	r3, [sp, #28]
	ldr	r3, .L15+104
	ldr	r4, [lr]
	ldr	r1, [r1]
	ldr	lr, [ip]
	ldr	ip, [r0]
	ldr	r0, .L15+108
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r1, [sp, #20]
	ldr	r0, [r0]
	add	r1, sp, #4
	str	r2, [sp, #8]
	str	lr, [sp, #16]
	str	ip, [sp, #12]
	str	r3, [sp, #4]
	str	r4, [sp, #24]
	bl	GetBotLibAPI
	ldr	r3, .L15+112
	str	r0, [r3]
	bl	assert
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #92]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #96
	@ sp needed
	pop	{r4, r5, r6, pc}
.L12:
	bl	Sys_CheckCD
	cmp	r0, #0
	bne	.L3
	ldr	r3, .L15+116
	ldr	r4, .L15+8
	ldr	r1, .L15+120
	ldr	r0, [r3]
	bl	Com_Error
	ldr	r0, [r4]
	cmp	r0, #0
	beq	.L5
.L13:
	bl	Z_Free
	b	.L5
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC3
	.word	.LC0
	.word	debugpolygons
	.word	.LC2
	.word	bot_maxdebugpolys
	.word	BotImport_Trace
	.word	BotImport_PointContents
	.word	BotImport_inPVS
	.word	BotImport_EntityTrace
	.word	BotImport_BSPEntityData
	.word	BotImport_BSPModelMinsMaxsOrigin
	.word	BotImport_Print
	.word	BotClientCommand
	.word	BotImport_GetMemory
	.word	BotImport_FreeMemory
	.word	Z_AvailableMemory
	.word	BotImport_HunkAlloc
	.word	FS_FOpenFileByMode
	.word	FS_Read2
	.word	FS_Write
	.word	FS_FCloseFile
	.word	FS_Seek
	.word	BotImport_DebugLineDelete
	.word	BotImport_DebugLineShow
	.word	BotImport_DebugLineCreate
	.word	BotImport_DebugPolygonCreate
	.word	BotImport_DebugPolygonDelete
	.word	BOTLIB_API_VERSION
	.word	botlib_export
	.word	ERR_NEED_CD
	.word	.LC1
	.size	SV_BotInitBotLib, .-SV_BotInitBotLib
	.comm	debugpolygons,4,4
	.comm	botlib_export,4,4
	.comm	bot_maxdebugpolys,4,4
	.comm	Z_AvailableMemory,4,4
	.comm	FS_Write,4,4
	.comm	FS_Seek,4,4
	.comm	FS_Read2,4,4
	.comm	FS_FOpenFileByMode,4,4
	.comm	FS_FCloseFile,4,4
	.comm	ERR_NEED_CD,4,4
	.comm	BotImport_inPVS,4,4
	.comm	BotImport_Trace,4,4
	.comm	BotImport_Print,4,4
	.comm	BotImport_PointContents,4,4
	.comm	BotImport_HunkAlloc,4,4
	.comm	BotImport_GetMemory,4,4
	.comm	BotImport_FreeMemory,4,4
	.comm	BotImport_EntityTrace,4,4
	.comm	BotImport_DebugPolygonDelete,4,4
	.comm	BotImport_DebugPolygonCreate,4,4
	.comm	BotImport_DebugLineShow,4,4
	.comm	BotImport_DebugLineDelete,4,4
	.comm	BotImport_DebugLineCreate,4,4
	.comm	BotImport_BSPModelMinsMaxsOrigin,4,4
	.comm	BotImport_BSPEntityData,4,4
	.comm	BotClientCommand,4,4
	.comm	BOTLIB_API_VERSION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
