	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotAIShutdownClient            ## -- Begin function BotAIShutdownClient
	.p2align	4, 0x90
_BotAIShutdownClient:                   ## @BotAIShutdownClient
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_botstates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	_qfalse@GOTPCREL(%rip), %rax
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.1:
	cmpl	$0, (%rbx)
	je	LBB0_7
## %bb.2:
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_BotWriteSessionData
LBB0_4:
	movq	%rbx, %rdi
	callq	_BotChat_ExitGame
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	20(%rbx), %edi
	movl	32(%rbx), %esi
	movq	_CHAT_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_trap_BotEnterChat
LBB0_6:
	movl	28(%rbx), %edi
	callq	_trap_BotFreeMoveState
	movl	24(%rbx), %edi
	callq	_trap_BotFreeGoalState
	movl	20(%rbx), %edi
	callq	_trap_BotFreeChatState
	movl	16(%rbx), %edi
	callq	_trap_BotFreeWeaponState
	movl	12(%rbx), %edi
	callq	_trap_BotFreeCharacter
	movl	8(%rbx), %edi
	callq	_BotFreeWaypoints
	movl	4(%rbx), %edi
	callq	_BotFreeWaypoints
	movq	%rbx, %rdi
	callq	_BotClearActivateGoalStack
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$36, %edx
	callq	_memset
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_numbots@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	_qtrue@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_botstates,8,3                  ## @botstates
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_CHAT_ALL,4,2                   ## @CHAT_ALL
	.comm	_numbots,4,2                    ## @numbots
	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotAIShutdownClient            ; -- Begin function BotAIShutdownClient
	.p2align	2
_BotAIShutdownClient:                   ; @BotAIShutdownClient
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _botstates@GOTPAGE
Lloh1:
	ldr	x8, [x8, _botstates@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x19, [x8, w0, sxtw #3]
	cbz	x19, LBB0_7
; %bb.1:
	ldr	w8, [x19]
Lloh3:
	adrp	x20, _qfalse@GOTPAGE
Lloh4:
	ldr	x20, [x20, _qfalse@GOTPAGEOFF]
	cbz	w8, LBB0_8
; %bb.2:
	cbz	x1, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_BotWriteSessionData
LBB0_4:
	mov	x0, x19
	bl	_BotChat_ExitGame
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #20]
	ldr	w1, [x19, #32]
Lloh5:
	adrp	x8, _CHAT_ALL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CHAT_ALL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_trap_BotEnterChat
LBB0_6:
	ldr	w0, [x19, #28]
	bl	_trap_BotFreeMoveState
	ldr	w0, [x19, #24]
	bl	_trap_BotFreeGoalState
	ldr	w0, [x19, #20]
	bl	_trap_BotFreeChatState
	ldr	w0, [x19, #16]
	bl	_trap_BotFreeWeaponState
	ldr	w0, [x19, #12]
	bl	_trap_BotFreeCharacter
	ldr	w0, [x19, #8]
	bl	_BotFreeWaypoints
	ldr	w0, [x19, #4]
	bl	_BotFreeWaypoints
	mov	x0, x19
	bl	_BotClearActivateGoalStack
	mov	x0, x19
	mov	w1, #0
	mov	w2, #36
	bl	_memset
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _numbots@GOTPAGE
Lloh9:
	ldr	x9, [x9, _numbots@GOTPAGEOFF]
	str	w8, [x19]
	ldr	w8, [x9]
	sub	w8, w8, #1
	str	w8, [x9]
Lloh10:
	adrp	x20, _qtrue@GOTPAGE
Lloh11:
	ldr	x20, [x20, _qtrue@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh12:
	adrp	x20, _qfalse@GOTPAGE
Lloh13:
	ldr	x20, [x20, _qfalse@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_botstates,8,3                  ; @botstates
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_CHAT_ALL,4,2                   ; @CHAT_ALL
	.comm	_numbots,4,2                    ; @numbots
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
