	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_RandomGoalArea             ## -- Begin function AAS_RandomGoalArea
	.p2align	4, 0x90
_AAS_RandomGoalArea:                    ## @AAS_RandomGoalArea
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %r13d
	callq	_AAS_AreaReachability
	movq	_qfalse@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	_aasworld@GOTPCREL(%rip), %r15
	movl	(%r15), %r12d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_random
	movl	%eax, %ebx
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.2:
	imull	%r12d, %ebx
	movslq	%r13d, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	$1, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	incl	%r14d
	movl	(%r15), %eax
	cmpl	%eax, %r14d
	jge	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$2, %ebx
	cmovll	%r12d, %ebx
	cmpl	%eax, %ebx
	cmovgel	%r12d, %ebx
	movl	%ebx, %edi
	callq	_AAS_AreaReachability
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rsi
	movl	%r13d, %edi
	movl	%ebx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_AAS_AreaTravelTimeToGoalArea
	testl	%eax, %eax
	jle	LBB0_8
## %bb.5:
	movl	%ebx, %edi
	callq	_AAS_AreaSwim
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movq	8(%r15), %rax
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_VectorCopy
	movq	_qtrue@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_9:
	movq	_qfalse@GOTPCREL(%rip), %rcx
LBB0_10:
	movl	(%rcx), %eax
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%ebx, %edi
	callq	_AAS_RandomGoalArea.cold.1
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function AAS_RandomGoalArea.cold.1
_AAS_RandomGoalArea.cold.1:             ## @AAS_RandomGoalArea.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	_aasworld@GOTPCREL(%rip), %rax
	movq	8(%rax), %rax
	movl	%edi, %ecx
	movq	(%rax,%rcx,8), %rdi
	callq	_VectorCopy
	callq	_AAS_PointAreaNum
	testl	%eax, %eax
	jne	LBB1_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_Log_Write
LBB1_2:
	callq	_VectorCopy
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_aasworld,16,3                  ## @aasworld
	.comm	_qtrue,4,2                      ## @qtrue
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"area %d center %f %f %f in solid?"

	.comm	_PRESENCE_CROUCH,4,2            ## @PRESENCE_CROUCH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_RandomGoalArea             ; -- Begin function AAS_RandomGoalArea
	.p2align	2
_AAS_RandomGoalArea:                    ; @AAS_RandomGoalArea
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_AAS_AreaReachability
	cbz	x0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x24, _aasworld@GOTPAGE
Lloh1:
	ldr	x24, [x24, _aasworld@GOTPAGEOFF]
	ldr	w23, [x24]
	bl	_random
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	w26, #0
	mul	w9, w0, w23
	sxtw	x27, w22
Lloh2:
	adrp	x25, _qfalse@GOTPAGE
Lloh3:
	ldr	x25, [x25, _qfalse@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w23, #1
	add	w26, w26, #1
	ldr	w8, [x24]
	cmp	w26, w8
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, #1
	csinc	w9, w9, wzr, gt
	cmp	w9, w8
	csinc	w23, w9, wzr, lt
	mov	x0, x23
	bl	_AAS_AreaReachability
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24, #8]
	ldr	x1, [x8, x27, lsl #3]
	mov	x0, x22
	mov	x2, x23
	mov	x3, x21
	bl	_AAS_AreaTravelTimeToGoalArea
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.6:
	mov	x0, x23
	bl	_AAS_AreaSwim
	cbz	x0, LBB0_10
; %bb.7:
	str	w23, [x20]
	ldr	x8, [x24, #8]
	ldr	x0, [x8, w23, uxtw #3]
	mov	x1, x19
	bl	_VectorCopy
Lloh4:
	adrp	x25, _qtrue@GOTPAGE
Lloh5:
	ldr	x25, [x25, _qtrue@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x25, _qfalse@GOTPAGE
Lloh7:
	ldr	x25, [x25, _qfalse@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x25]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x23
	bl	_AAS_RandomGoalArea.cold.1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function AAS_RandomGoalArea.cold.1
_AAS_RandomGoalArea.cold.1:             ; @AAS_RandomGoalArea.cold.1
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh8:
	adrp	x8, _aasworld@GOTPAGE
Lloh9:
	ldr	x8, [x8, _aasworld@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8, #8]
	ldr	x0, [x8, w0, uxtw #3]
	bl	_VectorCopy
	bl	_AAS_PointAreaNum
	cbnz	w0, LBB1_2
; %bb.1:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_Log_Write
LBB1_2:
	bl	_VectorCopy
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_aasworld,16,3                  ; @aasworld
	.comm	_qtrue,4,2                      ; @qtrue
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"area %d center %f %f %f in solid?"

	.comm	_PRESENCE_CROUCH,4,2            ; @PRESENCE_CROUCH
.subsections_via_symbols
