	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotSetupGoalAI                 ## -- Begin function BotSetupGoalAI
	.p2align	4, 0x90
_BotSetupGoalAI:                        ## @BotSetupGoalAI
	.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	_LibVarValue
	movq	_g_gametype@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_LibVarString
	movq	%rax, %rdi
	callq	_LoadItemConfig
	movq	_itemconfig@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.5(%rip), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_LibVar
	movq	_droppedweight@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_BLERR_NOERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_botimport@GOTPCREL(%rip), %rax
	movq	_PRT_FATAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	*(%rax)
	movq	_BLERR_CANNOTLOADITEMCONFIG@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"g_gametype"

L_.str.1:                               ## @.str.1
	.asciz	"0"

	.comm	_g_gametype,4,2                 ## @g_gametype
L_.str.2:                               ## @.str.2
	.asciz	"itemconfig"

L_.str.3:                               ## @.str.3
	.asciz	"items.c"

	.comm	_itemconfig,4,2                 ## @itemconfig
	.comm	_botimport,8,3                  ## @botimport
	.comm	_PRT_FATAL,4,2                  ## @PRT_FATAL
L_.str.4:                               ## @.str.4
	.asciz	"couldn't load item config\n"

	.comm	_BLERR_CANNOTLOADITEMCONFIG,4,2 ## @BLERR_CANNOTLOADITEMCONFIG
L_.str.5:                               ## @.str.5
	.asciz	"droppedweight"

L_.str.6:                               ## @.str.6
	.asciz	"1000"

	.comm	_droppedweight,4,2              ## @droppedweight
	.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	_BotSetupGoalAI                 ; -- Begin function BotSetupGoalAI
	.p2align	2
_BotSetupGoalAI:                        ; @BotSetupGoalAI
	.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	_LibVarValue
Lloh4:
	adrp	x8, _g_gametype@GOTPAGE
Lloh5:
	ldr	x8, [x8, _g_gametype@GOTPAGEOFF]
Lloh6:
	str	w0, [x8]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_LibVarString
	bl	_LoadItemConfig
Lloh11:
	adrp	x8, _itemconfig@GOTPAGE
Lloh12:
	ldr	x8, [x8, _itemconfig@GOTPAGEOFF]
Lloh13:
	str	w0, [x8]
	cbz	w0, LBB0_2
; %bb.1:
Lloh14:
	adrp	x0, l_.str.5@PAGE
Lloh15:
	add	x0, x0, l_.str.5@PAGEOFF
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_LibVar
Lloh18:
	adrp	x8, _droppedweight@GOTPAGE
Lloh19:
	ldr	x8, [x8, _droppedweight@GOTPAGEOFF]
Lloh20:
	str	w0, [x8]
Lloh21:
	adrp	x8, _BLERR_NOERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BLERR_NOERROR@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh23:
	adrp	x8, _botimport@GOTPAGE
Lloh24:
	ldr	x8, [x8, _botimport@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
Lloh26:
	adrp	x9, _PRT_FATAL@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PRT_FATAL@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x9]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	blr	x8
Lloh31:
	adrp	x8, _BLERR_CANNOTLOADITEMCONFIG@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BLERR_CANNOTLOADITEMCONFIG@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"g_gametype"

l_.str.1:                               ; @.str.1
	.asciz	"0"

	.comm	_g_gametype,4,2                 ; @g_gametype
l_.str.2:                               ; @.str.2
	.asciz	"itemconfig"

l_.str.3:                               ; @.str.3
	.asciz	"items.c"

	.comm	_itemconfig,4,2                 ; @itemconfig
	.comm	_botimport,8,3                  ; @botimport
	.comm	_PRT_FATAL,4,2                  ; @PRT_FATAL
l_.str.4:                               ; @.str.4
	.asciz	"couldn't load item config\n"

	.comm	_BLERR_CANNOTLOADITEMCONFIG,4,2 ; @BLERR_CANNOTLOADITEMCONFIG
l_.str.5:                               ; @.str.5
	.asciz	"droppedweight"

l_.str.6:                               ; @.str.6
	.asciz	"1000"

	.comm	_droppedweight,4,2              ; @droppedweight
	.comm	_BLERR_NOERROR,4,2              ; @BLERR_NOERROR
.subsections_via_symbols
