	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotGetItemLongTermGoal         ## -- Begin function BotGetItemLongTermGoal
	.p2align	4, 0x90
_BotGetItemLongTermGoal:                ## @BotGetItemLongTermGoal
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movq	%rdx, %rsi
	callq	_trap_BotGetTopGoal
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_BotReachedGoal
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_BotChooseWeapon
LBB0_4:
	movq	$0, (%rbx)
	xorl	%r12d, %r12d
	jmp	LBB0_5
LBB0_2:
	movq	(%rbx), %r12
LBB0_5:
	xorl	%eax, %eax
	callq	_FloatTime
	cmpq	%rax, %r12
	jge	LBB0_10
## %bb.6:
	movl	8(%rbx), %edi
	callq	_trap_BotPopGoal
	movl	24(%rbx), %esi
	movl	8(%rbx), %edi
	movl	20(%rbx), %edx
	movl	%r15d, %ecx
	callq	_trap_BotChooseLTGItem
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_FloatTime
	addq	$20, %rax
	movq	%rax, (%rbx)
	jmp	LBB0_9
LBB0_10:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	8(%rbx), %edi
	callq	_trap_BotResetAvoidGoals
	movl	12(%rbx), %edi
	callq	_trap_BotResetAvoidReach
LBB0_9:
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trap_BotGetTopGoal             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_PRT_MESSAGE,4,2                ## @PRT_MESSAGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotGetItemLongTermGoal         ; -- Begin function BotGetItemLongTermGoal
	.p2align	2
_BotGetItemLongTermGoal:                ; @BotGetItemLongTermGoal
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	mov	x1, x2
	bl	_trap_BotGetTopGoal
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_BotReachedGoal
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_BotChooseWeapon
LBB0_3:
	mov	x22, #0
	str	xzr, [x20]
	b	LBB0_5
LBB0_4:
	ldr	x22, [x20]
LBB0_5:
	bl	_FloatTime
	cmp	x22, x0
	b.ge	LBB0_8
; %bb.6:
	ldr	w0, [x20, #8]
	bl	_trap_BotPopGoal
	ldr	w0, [x20, #8]
	ldp	w2, w1, [x20, #20]
	mov	x3, x21
	bl	_trap_BotChooseLTGItem
	cbz	x0, LBB0_9
; %bb.7:
	bl	_FloatTime
	add	x8, x0, #20
	str	x8, [x20]
	b	LBB0_10
LBB0_8:
Lloh0:
	adrp	x8, _qtrue@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w0, [x20, #8]
	bl	_trap_BotResetAvoidGoals
	ldr	w0, [x20, #12]
	bl	_trap_BotResetAvoidReach
LBB0_10:
	ldr	w0, [x20, #8]
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_trap_BotGetTopGoal
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_PRT_MESSAGE,4,2                ; @PRT_MESSAGE
.subsections_via_symbols
