	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Export_BotLibShutdown          ## -- Begin function Export_BotLibShutdown
	.p2align	4, 0x90
_Export_BotLibShutdown:                 ## @Export_BotLibShutdown
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rdi
	callq	_BotLibSetup
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_BotShutdownChatAI
	xorl	%eax, %eax
	callq	_BotShutdownMoveAI
	xorl	%eax, %eax
	callq	_BotShutdownGoalAI
	xorl	%eax, %eax
	callq	_BotShutdownWeaponAI
	xorl	%eax, %eax
	callq	_BotShutdownWeights
	xorl	%eax, %eax
	callq	_BotShutdownCharacters
	xorl	%eax, %eax
	callq	_AAS_Shutdown
	xorl	%eax, %eax
	callq	_EA_Shutdown
	xorl	%eax, %eax
	callq	_LibVarDeAllocAll
	xorl	%eax, %eax
	callq	_PC_RemoveAllGlobalDefines
	xorl	%eax, %eax
	callq	_Log_Shutdown
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_botlibsetup@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_botlibglobals@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	callq	_PC_CheckOpenSourceHandles
	movq	_BLERR_NOERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_BLERR_LIBRARYNOTSETUP@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BotLibShutdown"

	.comm	_BLERR_LIBRARYNOTSETUP,4,2      ## @BLERR_LIBRARYNOTSETUP
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_botlibsetup,8,3                ## @botlibsetup
	.comm	_botlibglobals,8,3              ## @botlibglobals
	.comm	_BLERR_NOERROR,4,2              ## @BLERR_NOERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Export_BotLibShutdown          ; -- Begin function Export_BotLibShutdown
	.p2align	2
_Export_BotLibShutdown:                 ; @Export_BotLibShutdown
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BotLibSetup
	cbz	w0, LBB0_2
; %bb.1:
	bl	_BotShutdownChatAI
	bl	_BotShutdownMoveAI
	bl	_BotShutdownGoalAI
	bl	_BotShutdownWeaponAI
	bl	_BotShutdownWeights
	bl	_BotShutdownCharacters
	bl	_AAS_Shutdown
	bl	_EA_Shutdown
	bl	_LibVarDeAllocAll
	bl	_PC_RemoveAllGlobalDefines
	bl	_Log_Shutdown
Lloh2:
	adrp	x8, _qfalse@GOTPAGE
Lloh3:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _botlibsetup@GOTPAGE
Lloh6:
	ldr	x9, [x9, _botlibsetup@GOTPAGEOFF]
Lloh7:
	str	x8, [x9]
Lloh8:
	adrp	x9, _botlibglobals@GOTPAGE
Lloh9:
	ldr	x9, [x9, _botlibglobals@GOTPAGEOFF]
Lloh10:
	str	x8, [x9]
	bl	_PC_CheckOpenSourceHandles
Lloh11:
	adrp	x8, _BLERR_NOERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BLERR_NOERROR@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh13:
	adrp	x8, _BLERR_LIBRARYNOTSETUP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BLERR_LIBRARYNOTSETUP@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BotLibShutdown"

	.comm	_BLERR_LIBRARYNOTSETUP,4,2      ; @BLERR_LIBRARYNOTSETUP
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_botlibsetup,8,3                ; @botlibsetup
	.comm	_botlibglobals,8,3              ; @botlibglobals
	.comm	_BLERR_NOERROR,4,2              ; @BLERR_NOERROR
.subsections_via_symbols
