	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotSetLastOrderedTask          ## -- Begin function BotSetLastOrderedTask
	.p2align	4, 0x90
_BotSetLastOrderedTask:                 ## @BotSetLastOrderedTask
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_gametype@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_GT_CTF@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_6
## %bb.1:
	movq	(%rbx), %rax
	movq	_LTG_RETURNFLAG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	callq	_BotTeam
	movq	_TEAM_RED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	cmpq	$0, 8(%rbx)
	jne	LBB0_6
	jmp	LBB0_5
LBB0_4:
	cmpq	$0, 16(%rbx)
	jne	LBB0_6
LBB0_5:
	movq	$0, (%rbx)
LBB0_6:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	72(%rbx), %ecx
	movl	%ecx, 76(%rbx)
	movq	_qtrue@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movl	%ecx, 24(%rbx)
	movq	%rax, 32(%rbx)
	leaq	68(%rbx), %rdi
	leaq	64(%rbx), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	56(%rbx), %eax
	movl	%eax, 60(%rbx)
	xorl	%eax, %eax
	callq	_FloatTime
	addq	$300, %rax                      ## imm = 0x12C
	movq	%rax, 48(%rbx)
	movq	%rbx, %rdi
	callq	_BotSetTeamStatus
	movq	(%r14), %rax
	cmpq	(%r15), %rax
	jne	LBB0_12
## %bb.9:
	movq	32(%rbx), %rax
	movq	_LTG_GETFLAG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.10:
	movq	%rbx, %rdi
	callq	_BotTeamFlag
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_BotEnemyFlag
	movq	%rax, %r15
	movl	40(%rbx), %esi
	movl	44(%rbx), %edi
	movl	(%r14), %edx
	movq	_TFL_DEFAULT@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	callq	_trap_AAS_AreaTravelTimeToGoalArea
	movl	%eax, %r14d
	movl	40(%rbx), %esi
	movl	44(%rbx), %edi
	movl	(%r15), %edx
	movl	(%r13), %ecx
	callq	_trap_AAS_AreaTravelTimeToGoalArea
	cmpl	%r14d, %eax
	jle	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_BotOppositeTeam
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_BotGetAlternateRouteGoal
	jmp	LBB0_12
LBB0_7:
	movq	_qfalse@GOTPCREL(%rip), %r12
LBB0_12:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gametype,8,3                   ## @gametype
	.comm	_GT_CTF,8,3                     ## @GT_CTF
	.comm	_LTG_RETURNFLAG,8,3             ## @LTG_RETURNFLAG
	.comm	_TEAM_RED,8,3                   ## @TEAM_RED
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_LTG_GETFLAG,8,3                ## @LTG_GETFLAG
	.comm	_TFL_DEFAULT,4,2                ## @TFL_DEFAULT
	.comm	_qfalse,4,2                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotSetLastOrderedTask          ; -- Begin function BotSetLastOrderedTask
	.p2align	2
_BotSetLastOrderedTask:                 ; @BotSetLastOrderedTask
	.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, x0
Lloh0:
	adrp	x20, _gametype@GOTPAGE
Lloh1:
	ldr	x20, [x20, _gametype@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x21, _GT_CTF@GOTPAGE
Lloh3:
	ldr	x21, [x21, _GT_CTF@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _LTG_RETURNFLAG@GOTPAGE
Lloh5:
	ldr	x9, [x9, _LTG_RETURNFLAG@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_BotTeam
Lloh7:
	adrp	x8, _TEAM_RED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TEAM_RED@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_6
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_6
LBB0_5:
	str	xzr, [x19]
LBB0_6:
	ldr	x8, [x19]
	cbz	x8, LBB0_12
; %bb.7:
	ldr	w9, [x19, #72]
Lloh10:
	adrp	x22, _qtrue@GOTPAGE
Lloh11:
	ldr	x22, [x22, _qtrue@GOTPAGEOFF]
	str	w9, [x19, #76]
	ldr	w9, [x22]
	str	w9, [x19, #24]
	str	x8, [x19, #32]
	add	x0, x19, #68
	add	x1, x19, #64
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x19, #56]
	str	w8, [x19, #60]
	bl	_FloatTime
	add	x8, x0, #300
	str	x8, [x19, #48]
	mov	x0, x19
	bl	_BotSetTeamStatus
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.8:
	ldr	x8, [x19, #32]
Lloh12:
	adrp	x9, _LTG_GETFLAG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LTG_GETFLAG@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_BotTeamFlag
	mov	x20, x0
	mov	x0, x19
	bl	_BotEnemyFlag
	mov	x21, x0
	ldp	w1, w0, [x19, #40]
	ldr	w2, [x20]
Lloh15:
	adrp	x22, _TFL_DEFAULT@GOTPAGE
Lloh16:
	ldr	x22, [x22, _TFL_DEFAULT@GOTPAGEOFF]
	ldr	w3, [x22]
	bl	_trap_AAS_AreaTravelTimeToGoalArea
	mov	x20, x0
	ldp	w1, w0, [x19, #40]
	ldr	w2, [x21]
	ldr	w3, [x22]
	bl	_trap_AAS_AreaTravelTimeToGoalArea
	cmp	w0, w20
	b.le	LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_BotOppositeTeam
	mov	x1, x0
	mov	x0, x19
	bl	_BotGetAlternateRouteGoal
LBB0_11:
Lloh17:
	adrp	x22, _qtrue@GOTPAGE
Lloh18:
	ldr	x22, [x22, _qtrue@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh19:
	adrp	x22, _qfalse@GOTPAGE
Lloh20:
	ldr	x22, [x22, _qfalse@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x22]
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_gametype,8,3                   ; @gametype
	.comm	_GT_CTF,8,3                     ; @GT_CTF
	.comm	_LTG_RETURNFLAG,8,3             ; @LTG_RETURNFLAG
	.comm	_TEAM_RED,8,3                   ; @TEAM_RED
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_LTG_GETFLAG,8,3                ; @LTG_GETFLAG
	.comm	_TFL_DEFAULT,4,2                ; @TFL_DEFAULT
	.comm	_qfalse,4,2                     ; @qfalse
.subsections_via_symbols
