	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotSetupWeaponAI               ## -- Begin function BotSetupWeaponAI
	.p2align	4, 0x90
_BotSetupWeaponAI:                      ## @BotSetupWeaponAI
	.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
	leaq	L_.str.1(%rip), %rsi
	callq	_LibVarString
	movq	%rax, %rdi
	callq	_LoadWeaponConfig
	movq	_weaponconfig@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_BLERR_NOERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_botimport@GOTPCREL(%rip), %rax
	movq	_PRT_FATAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	*(%rax)
	movq	_BLERR_CANNOTLOADWEAPONCONFIG@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"weaponconfig"

L_.str.1:                               ## @.str.1
	.asciz	"weapons.c"

	.comm	_weaponconfig,4,2               ## @weaponconfig
	.comm	_botimport,8,3                  ## @botimport
	.comm	_PRT_FATAL,4,2                  ## @PRT_FATAL
L_.str.2:                               ## @.str.2
	.asciz	"couldn't load the weapon config\n"

	.comm	_BLERR_CANNOTLOADWEAPONCONFIG,4,2 ## @BLERR_CANNOTLOADWEAPONCONFIG
	.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	_BotSetupWeaponAI               ; -- Begin function BotSetupWeaponAI
	.p2align	2
_BotSetupWeaponAI:                      ; @BotSetupWeaponAI
	.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
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_LibVarString
	bl	_LoadWeaponConfig
Lloh4:
	adrp	x8, _weaponconfig@GOTPAGE
Lloh5:
	ldr	x8, [x8, _weaponconfig@GOTPAGEOFF]
Lloh6:
	str	w0, [x8]
	cbz	w0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _BLERR_NOERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BLERR_NOERROR@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _botimport@GOTPAGE
Lloh10:
	ldr	x8, [x8, _botimport@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _PRT_FATAL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PRT_FATAL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x9]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	blr	x8
Lloh17:
	adrp	x8, _BLERR_CANNOTLOADWEAPONCONFIG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BLERR_CANNOTLOADWEAPONCONFIG@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"weaponconfig"

l_.str.1:                               ; @.str.1
	.asciz	"weapons.c"

	.comm	_weaponconfig,4,2               ; @weaponconfig
	.comm	_botimport,8,3                  ; @botimport
	.comm	_PRT_FATAL,4,2                  ; @PRT_FATAL
l_.str.2:                               ; @.str.2
	.asciz	"couldn't load the weapon config\n"

	.comm	_BLERR_CANNOTLOADWEAPONCONFIG,4,2 ; @BLERR_CANNOTLOADWEAPONCONFIG
	.comm	_BLERR_NOERROR,4,2              ; @BLERR_NOERROR
.subsections_via_symbols
