	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotGetAlternateRouteGoal       ## -- Begin function BotGetAlternateRouteGoal
	.p2align	4, 0x90
_BotGetAlternateRouteGoal:              ## @BotGetAlternateRouteGoal
	.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
	movq	%rdi, %r14
	movq	_TEAM_RED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%esi, %eax
	jne	LBB0_1
## %bb.2:
	movq	_red_numaltroutegoals@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_blue_numaltroutegoals@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %ebx
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.5:
	cmpl	%esi, %eax
	jne	LBB0_6
## %bb.7:
	movq	_red_altroutegoals@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_qfalse@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_blue_altroutegoals@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %r15
	xorl	%eax, %eax
	callq	_random
	cvtsi2ss	%rax, %xmm0
	cvtsi2ss	%ebx, %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %eax
	leal	-1(%rbx), %ecx
	cmpl	%eax, %ebx
	cmovgl	%eax, %ecx
	movslq	%ecx, %rax
	movl	4(%r15,%rax,8), %ecx
	movl	%ecx, 52(%r14)
	movl	(%r15,%rax,8), %edi
	movl	48(%r14), %esi
	callq	_VectorCopy
	movl	44(%r14), %edi
	movl	$-8, %esi
	movl	$-8, %edx
	movl	$-8, %ecx
	callq	_VectorSet
	movl	40(%r14), %edi
	movl	$8, %esi
	movl	$8, %edx
	movl	$8, %ecx
	callq	_VectorSet
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	movups	%xmm0, 16(%r14)
	movq	$0, 32(%r14)
	movq	_qtrue@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TEAM_RED,4,2                   ## @TEAM_RED
	.comm	_red_altroutegoals,8,3          ## @red_altroutegoals
	.comm	_red_numaltroutegoals,4,2       ## @red_numaltroutegoals
	.comm	_blue_altroutegoals,8,3         ## @blue_altroutegoals
	.comm	_blue_numaltroutegoals,4,2      ## @blue_numaltroutegoals
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotGetAlternateRouteGoal       ; -- Begin function BotGetAlternateRouteGoal
	.p2align	2
_BotGetAlternateRouteGoal:              ; @BotGetAlternateRouteGoal
	.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
Lloh0:
	adrp	x8, _TEAM_RED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEAM_RED@GOTPAGEOFF]
Lloh2:
	adrp	x9, _red_numaltroutegoals@GOTPAGE
Lloh3:
	ldr	x9, [x9, _red_numaltroutegoals@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x10, _blue_numaltroutegoals@GOTPAGE
Lloh6:
	ldr	x10, [x10, _blue_numaltroutegoals@GOTPAGEOFF]
	cmp	w8, w1
	csel	x9, x9, x10, eq
	ldr	w20, [x9]
	cbz	w20, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh7:
	adrp	x9, _red_altroutegoals@GOTPAGE
Lloh8:
	ldr	x9, [x9, _red_altroutegoals@GOTPAGEOFF]
Lloh9:
	adrp	x10, _blue_altroutegoals@GOTPAGE
Lloh10:
	ldr	x10, [x10, _blue_altroutegoals@GOTPAGEOFF]
	cmp	w8, w1
	csel	x8, x9, x10, eq
	ldr	x21, [x8]
	bl	_random
	scvtf	s0, x0
	scvtf	s1, w20
	fmul	s0, s1, s0
	fcvtzs	w8, s0
	sub	w9, w20, #1
	cmp	w20, w8
	csel	w8, w8, w9, gt
	add	x8, x21, w8, sxtw #3
	ldp	w0, w9, [x8]
	str	w9, [x19, #52]
	ldr	w1, [x19, #48]
	bl	_VectorCopy
	ldr	w0, [x19, #44]
	mov	w1, #-8
	mov	w2, #-8
	mov	w3, #-8
	bl	_VectorSet
	ldr	w0, [x19, #40]
	mov	w1, #8
	mov	w2, #8
	mov	w3, #8
	bl	_VectorSet
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19]
	str	xzr, [x19, #32]
Lloh11:
	adrp	x8, _qtrue@GOTPAGE
Lloh12:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh13:
	adrp	x8, _qfalse@GOTPAGE
Lloh14:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_3:
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TEAM_RED,4,2                   ; @TEAM_RED
	.comm	_red_altroutegoals,8,3          ; @red_altroutegoals
	.comm	_red_numaltroutegoals,4,2       ; @red_numaltroutegoals
	.comm	_blue_altroutegoals,8,3         ; @blue_altroutegoals
	.comm	_blue_numaltroutegoals,4,2      ; @blue_numaltroutegoals
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
