	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotAILoadMap                   ## -- Begin function BotAILoadMap
	.p2align	4, 0x90
_BotAILoadMap:                          ## @BotAILoadMap
	.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
	testl	%edi, %edi
	jne	LBB0_2
## %bb.1:
	movq	_CVAR_SERVERINFO@GOTPCREL(%rip), %rax
	movq	_CVAR_ROM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	leaq	-32(%rbp), %rdi
	callq	_trap_Cvar_Register
	movl	-32(%rbp), %edi
	callq	_trap_BotLibLoadMap
LBB0_2:
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	movq	_botstates@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	%eax, %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 8(%rdi)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_BotResetState
	movq	(%r15), %rcx
	movq	(%rcx,%rbx,8), %rax
	movl	$4, (%rax)
	movl	(%r14), %eax
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	callq	_BotSetupDeathmatchAI
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mapname"

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

	.comm	_CVAR_SERVERINFO,4,2            ## @CVAR_SERVERINFO
	.comm	_CVAR_ROM,4,2                   ## @CVAR_ROM
	.comm	_MAX_CLIENTS,4,2                ## @MAX_CLIENTS
	.comm	_botstates,8,3                  ## @botstates
	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotAILoadMap                   ; -- Begin function BotAILoadMap
	.p2align	2
_BotAILoadMap:                          ; @BotAILoadMap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _CVAR_SERVERINFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CVAR_SERVERINFO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CVAR_ROM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CVAR_ROM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_trap_Cvar_Register
	ldr	w0, [sp, #8]
	bl	_trap_BotLibLoadMap
LBB0_2:
Lloh10:
	adrp	x19, _MAX_CLIENTS@GOTPAGE
Lloh11:
	ldr	x19, [x19, _MAX_CLIENTS@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x20, #0
Lloh12:
	adrp	x21, _botstates@GOTPAGE
Lloh13:
	ldr	x21, [x21, _botstates@GOTPAGEOFF]
	ldr	x9, [x21]
	mov	w22, #4
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x9, x20, lsl #3]
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x0, #8]
	cbz	x10, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_BotResetState
	ldr	x9, [x21]
	ldr	x8, [x9, x20, lsl #3]
	str	w22, [x8]
	ldr	w8, [x19]
	b	LBB0_4
LBB0_8:
	bl	_BotSetupDeathmatchAI
Lloh14:
	adrp	x8, _qtrue@GOTPAGE
Lloh15:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mapname"

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

	.comm	_CVAR_SERVERINFO,4,2            ; @CVAR_SERVERINFO
	.comm	_CVAR_ROM,4,2                   ; @CVAR_ROM
	.comm	_MAX_CLIENTS,4,2                ; @MAX_CLIENTS
	.comm	_botstates,8,3                  ; @botstates
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
