	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotGetReachabilityToGoal       ## -- Begin function BotGetReachabilityToGoal
	.p2align	4, 0x90
_BotGetReachabilityToGoal:              ## @BotGetReachabilityToGoal
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movl	%esi, %ebx
	movl	40(%rbp), %r15d
	movl	32(%rbp), %r13d
	movl	%esi, %edi
	callq	_AAS_AreaDoNotEnter
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	24(%rbp), %rax
	movl	(%rax), %edi
	callq	_AAS_AreaDoNotEnter
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	_TFL_DONOTENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, %r13d
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	orl	%eax, %r15d
LBB0_6:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_AAS_NextAreaReachability
	testl	%eax, %eax
	je	LBB0_20
## %bb.7:
	movl	%eax, %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_8
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %r14d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_AAS_NextAreaReachability
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_20
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	leaq	-88(%rbp), %rsi
	callq	_AAS_ReachabilityFromNum
	movq	24(%rbp), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%r14d, -88(%rbp)
	je	LBB0_19
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	leaq	-88(%rbp), %rsi
	movl	%r15d, %edx
	callq	_BotValidTravel
	testl	%eax, %eax
	je	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r14d, %ebx
	movl	-88(%rbp), %edi
	movl	-72(%rbp), %esi
	movq	24(%rbp), %rax
	movl	(%rax), %edx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	callq	_AAS_AreaTravelTimeToGoalArea
	testl	%eax, %eax
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, %r14d
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	leaq	-88(%rbp), %rsi
	movq	48(%rbp), %rdx
	movl	56(%rbp), %ecx
	callq	_BotAvoidSpots
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	64(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_MOVERESULT_BLOCKEDBYAVOIDSPOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rcx)
	jmp	LBB0_18
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	addl	-80(%rbp), %r14d
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, %edx
	sete	%al
	cmpl	%edx, %r14d
	setl	%cl
	orb	%al, %cl
	movl	%r13d, %eax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%edx, %r14d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_17
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_20:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_TFL_DONOTENTER,4,2             ## @TFL_DONOTENTER
	.comm	_MOVERESULT_BLOCKEDBYAVOIDSPOT,4,2 ## @MOVERESULT_BLOCKEDBYAVOIDSPOT
	.comm	_AVOIDREACH_TRIES,4,2           ## @AVOIDREACH_TRIES
	.comm	_MAX_AVOIDREACH,4,2             ## @MAX_AVOIDREACH
	.comm	_PRT_MESSAGE,4,2                ## @PRT_MESSAGE
	.comm	_bot_developer,8,3              ## @bot_developer
	.comm	_botimport,8,3                  ## @botimport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotGetReachabilityToGoal       ; -- Begin function BotGetReachabilityToGoal
	.p2align	2
_BotGetReachabilityToGoal:              ; @BotGetReachabilityToGoal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	cbz	w1, LBB0_14
; %bb.1:
	mov	x19, x7
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldp	w25, w24, [x29, #16]
	mov	x0, x1
	bl	_AAS_AreaDoNotEnter
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19]
	bl	_AAS_AreaDoNotEnter
	cbz	x0, LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _TFL_DONOTENTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TFL_DONOTENTER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w25, w8, w25
	orr	w24, w8, w24
LBB0_4:
	mov	x0, x22
	mov	w1, #0
	bl	_AAS_NextAreaReachability
	cbz	w0, LBB0_14
; %bb.5:
	mov	x27, x0
	str	wzr, [sp, #20]                  ; 4-byte Folded Spill
	mov	w26, #0
	ldr	x8, [x29, #40]
	str	x8, [sp]                        ; 8-byte Folded Spill
	ldr	w8, [x29, #32]
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	ldr	x8, [x29, #24]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [sp, #32]
	add	w8, w28, w8
	cmp	w26, #0
	ccmp	w8, w26, #8, ne
	cset	w9, lt
	cmp	w9, #0
	csel	w26, w8, w26, ne
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	csel	w8, w27, w8, ne
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	mov	x1, x27
	bl	_AAS_NextAreaReachability
	mov	x27, x0
	cbz	w0, LBB0_15
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #24
	mov	x0, x27
	bl	_AAS_ReachabilityFromNum
	ldr	w8, [x19]
	ldr	w9, [sp, #24]
	cmp	w8, w21
	ccmp	w9, w20, #0, eq
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x1, sp, #24
	mov	x0, x23
	mov	x2, x24
	bl	_BotValidTravel
	cbz	w0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [sp, #24]
	ldr	w1, [sp, #40]
	ldr	w2, [x19]
	mov	x3, x25
	bl	_AAS_AreaTravelTimeToGoalArea
	cbz	w0, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x28, x0
	add	x1, sp, #24
	mov	x0, x23
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w3, [sp, #16]                   ; 4-byte Folded Reload
	bl	_BotAvoidSpots
	cbz	x0, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x10, [sp]                       ; 8-byte Folded Reload
	cbz	x10, LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh3:
	adrp	x8, _MOVERESULT_BLOCKEDBYAVOIDSPOT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MOVERESULT_BLOCKEDBYAVOIDSPOT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x10]
	orr	w8, w9, w8
	str	w8, [x10]
	b	LBB0_7
LBB0_14:
	str	wzr, [sp, #20]                  ; 4-byte Folded Spill
LBB0_15:
	ldr	w0, [sp, #20]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TFL_DONOTENTER,4,2             ; @TFL_DONOTENTER
	.comm	_MOVERESULT_BLOCKEDBYAVOIDSPOT,4,2 ; @MOVERESULT_BLOCKEDBYAVOIDSPOT
	.comm	_AVOIDREACH_TRIES,4,2           ; @AVOIDREACH_TRIES
	.comm	_MAX_AVOIDREACH,4,2             ; @MAX_AVOIDREACH
	.comm	_PRT_MESSAGE,4,2                ; @PRT_MESSAGE
	.comm	_bot_developer,8,3              ; @bot_developer
	.comm	_botimport,8,3                  ; @botimport
.subsections_via_symbols
