	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotAIPredictObstacles          ## -- Begin function BotAIPredictObstacles
	.p2align	4, 0x90
_BotAIPredictObstacles:                 ## @BotAIPredictObstacles
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_bot_predictobstacles@GOTPCREL(%rip), %rax
	movq	_qfalse@GOTPCREL(%rip), %r15
	cmpl	$0, (%rax)
	je	LBB0_15
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %eax
	cmpl	%eax, 28(%rdi)
	jne	LBB0_4
## %bb.2:
	movl	(%r14), %r12d
	xorl	%eax, %eax
	callq	_FloatTime
	addl	$-6, %eax
	cmpl	%eax, %r12d
	jg	LBB0_15
## %bb.3:
	movl	(%rbx), %eax
LBB0_4:
	movl	%eax, 28(%r14)
	xorl	%eax, %eax
	callq	_FloatTime
	movl	%eax, (%r14)
	movl	24(%r14), %esi
	movl	16(%r14), %r8d
	movl	20(%r14), %edx
	movl	(%rbx), %ecx
	movq	_RSE_USETRAVELTYPE@GOTPCREL(%rip), %rax
	movq	_RSE_ENTERCONTENTS@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	orl	(%rax), %ebx
	movq	_AREACONTENTS_MOVER@GOTPCREL(%rip), %r12
	movl	(%r12), %r10d
	movq	_TFL_BRIDGE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %eax
	subq	$8, %rsp
	leaq	-64(%rbp), %rdi
	movl	$100, %r9d
	pushq	$0
	pushq	%rax
	pushq	%r10
	pushq	%rbx
	pushq	$1000                           ## imm = 0x3E8
	callq	_trap_AAS_PredictRoute
	addq	$48, %rsp
	movl	(%r13), %eax
	testl	%eax, -64(%rbp)
	je	LBB0_15
## %bb.5:
	movl	-60(%rbp), %edi
	testl	%edi, (%r12)
	je	LBB0_15
## %bb.6:
	movq	_AREACONTENTS_MODELNUM@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	movq	_AREACONTENTS_MODELNUMSHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edi
	testl	%edi, %edi
	je	LBB0_15
## %bb.7:
	movq	_ET_MOVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_BotModelMinsMaxs
	testl	%eax, %eax
	je	LBB0_15
## %bb.8:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_BotGetActivateGoal
	testl	%eax, %eax
	je	LBB0_15
## %bb.9:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	cmpl	$0, (%rax)
	jne	LBB0_12
## %bb.11:
	movq	$0, 8(%r14)
LBB0_12:
	movl	-48(%rbp), %esi
	movq	%r14, %rdi
	callq	_BotIsGoingToActivateEntity
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	callq	_BotEnableActivateGoalAreas
	jmp	LBB0_15
LBB0_13:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_BotGoForActivateGoal
	movq	_qtrue@GOTPCREL(%rip), %r15
LBB0_15:
	movl	(%r15), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bot_predictobstacles,4,2       ## @bot_predictobstacles
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_RSE_USETRAVELTYPE,4,2          ## @RSE_USETRAVELTYPE
	.comm	_RSE_ENTERCONTENTS,4,2          ## @RSE_ENTERCONTENTS
	.comm	_AREACONTENTS_MOVER,4,2         ## @AREACONTENTS_MOVER
	.comm	_TFL_BRIDGE,4,2                 ## @TFL_BRIDGE
	.comm	_AREACONTENTS_MODELNUM,4,2      ## @AREACONTENTS_MODELNUM
	.comm	_AREACONTENTS_MODELNUMSHIFT,4,2 ## @AREACONTENTS_MODELNUMSHIFT
	.comm	_ET_MOVER,4,2                   ## @ET_MOVER
	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotAIPredictObstacles          ; -- Begin function BotAIPredictObstacles
	.p2align	2
_BotAIPredictObstacles:                 ; @BotAIPredictObstacles
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, _bot_predictobstacles@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bot_predictobstacles@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_14
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w9, [x0, #28]
	ldr	w8, [x1]
	cmp	w9, w8
	b.ne	LBB0_4
; %bb.2:
	ldr	w21, [x19]
	bl	_FloatTime
	sub	w8, w0, #6
	cmp	w21, w8
	b.gt	LBB0_14
; %bb.3:
	ldr	w8, [x20]
LBB0_4:
	str	w8, [x19, #28]
	bl	_FloatTime
	str	w0, [x19]
	ldp	w2, w1, [x19, #20]
	ldr	w3, [x20]
Lloh3:
	adrp	x8, _RSE_USETRAVELTYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RSE_USETRAVELTYPE@GOTPAGEOFF]
	ldr	w4, [x19, #16]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x21, _RSE_ENTERCONTENTS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _RSE_ENTERCONTENTS@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w7, w9, w8
Lloh8:
	adrp	x20, _AREACONTENTS_MOVER@GOTPAGE
Lloh9:
	ldr	x20, [x20, _AREACONTENTS_MOVER@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh10:
	adrp	x9, _TFL_BRIDGE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TFL_BRIDGE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w9, wzr, [sp, #4]
	add	x0, sp, #24
	str	w8, [sp]
	mov	w5, #100
	mov	w6, #1000
	bl	_trap_AAS_PredictRoute
	ldr	w8, [sp, #24]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.5:
	ldr	w8, [sp, #28]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.6:
Lloh13:
	adrp	x9, _AREACONTENTS_MODELNUM@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AREACONTENTS_MODELNUM@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh16:
	adrp	x9, _AREACONTENTS_MODELNUMSHIFT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AREACONTENTS_MODELNUMSHIFT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	asr	w0, w8, w9
	cbz	w0, LBB0_14
; %bb.7:
Lloh19:
	adrp	x8, _ET_MOVER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ET_MOVER@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	w2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_BotModelMinsMaxs
	cbz	w0, LBB0_14
; %bb.8:
	mov	x1, x0
	add	x2, sp, #40
	mov	x0, x19
	bl	_BotGetActivateGoal
	cbz	w0, LBB0_14
; %bb.9:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.10:
	ldr	w8, [x8]
	cbnz	w8, LBB0_12
; %bb.11:
	str	xzr, [x19, #8]
LBB0_12:
	ldr	w1, [sp, #40]
	mov	x0, x19
	bl	_BotIsGoingToActivateEntity
	cbz	w0, LBB0_16
; %bb.13:
Lloh22:
	adrp	x8, _qtrue@GOTPAGE
Lloh23:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x0, sp, #40
	bl	_BotEnableActivateGoalAreas
LBB0_14:
Lloh25:
	adrp	x8, _qfalse@GOTPAGE
Lloh26:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	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
	add	sp, sp, #96
	ret
LBB0_16:
	add	x1, sp, #40
	mov	x0, x19
	bl	_BotGoForActivateGoal
Lloh27:
	adrp	x8, _qtrue@GOTPAGE
Lloh28:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_bot_predictobstacles,4,2       ; @bot_predictobstacles
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_RSE_USETRAVELTYPE,4,2          ; @RSE_USETRAVELTYPE
	.comm	_RSE_ENTERCONTENTS,4,2          ; @RSE_ENTERCONTENTS
	.comm	_AREACONTENTS_MOVER,4,2         ; @AREACONTENTS_MOVER
	.comm	_TFL_BRIDGE,4,2                 ; @TFL_BRIDGE
	.comm	_AREACONTENTS_MODELNUM,4,2      ; @AREACONTENTS_MODELNUM
	.comm	_AREACONTENTS_MODELNUMSHIFT,4,2 ; @AREACONTENTS_MODELNUMSHIFT
	.comm	_ET_MOVER,4,2                   ; @ET_MOVER
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
