	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotPredictVisiblePosition      ## -- Begin function BotPredictVisiblePosition
	.p2align	4, 0x90
_BotPredictVisiblePosition:             ## @BotPredictVisiblePosition
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -76(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movl	%edi, -80(%rbp)                 ## 4-byte Spill
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_AVOIDREACH@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movl	(%r14), %r14d
	leaq	(,%r14,4), %r12
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -112(%rbp)                ## 8-byte Spill
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	_qfalse@GOTPCREL(%rip), %rax
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.2:
	cmpl	$0, (%rbx)
	je	LBB0_12
## %bb.3:
	shll	$2, %r14d
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_Com_Memset
	movl	(%rbx), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	-80(%rbp), %edi                 ## 4-byte Reload
	callq	_VectorCopy
	movl	$20, %r12d
	movl	%r13d, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%rbx), %r13d
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, %r14d
	subq	$8, %rsp
	movl	%r13d, %esi
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movq	-112(%rbp), %r9                 ## 8-byte Reload
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	%r15
	pushq	%r15
	pushq	%rbx
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	callq	_BotGetReachabilityToGoal
	addq	$64, %rsp
	testl	%eax, %eax
	je	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %edi
	leaq	-72(%rbp), %rsi
	callq	_AAS_ReachabilityFromNum
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	movl	-64(%rbp), %edx
	callq	_BotVisible
	testq	%rax, %rax
	jne	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	movl	-68(%rbp), %edx
	callq	_BotVisible
	testq	%rax, %rax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-72(%rbp), %r13d
	movl	-68(%rbp), %edi
	cmpl	(%rbx), %r13d
	je	LBB0_11
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	callq	_VectorCopy
	movl	%r14d, %ecx
	decl	%r12d
	jne	LBB0_4
LBB0_5:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	_qfalse@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_10:
	movl	-64(%rbp), %edi
	jmp	LBB0_11
LBB0_14:
	movl	-68(%rbp), %edi
LBB0_11:
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	callq	_VectorCopy
	movq	_qtrue@GOTPCREL(%rip), %rax
LBB0_12:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_6:
	movl	(%rax), %eax
	movq	%rcx, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_7
## %bb.17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_AVOIDREACH,4,2             ## @MAX_AVOIDREACH
	.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	_BotPredictVisiblePosition      ; -- Begin function BotPredictVisiblePosition
	.p2align	2
_BotPredictVisiblePosition:             ; @BotPredictVisiblePosition
	.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
	sub	sp, sp, #48
	mov	x20, x3
	mov	x21, x2
	mov	x25, x1
	mov	x27, x0
	mov	x14, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x12, _MAX_AVOIDREACH@GOTPAGE
Lloh4:
	ldr	x12, [x12, _MAX_AVOIDREACH@GOTPAGEOFF]
	ldr	w8, [x12]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w12, [x12]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x13, x10, #0x7fffffff0
	sub	x23, x9, x13
	mov	sp, x23
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x24, x8, x13
	mov	sp, x24
Lloh11:
	adrp	x19, _qfalse@GOTPAGE
Lloh12:
	ldr	x19, [x19, _qfalse@GOTPAGEOFF]
	cbz	w1, LBB0_15
; %bb.1:
	cbz	x21, LBB0_15
; %bb.2:
	ldr	w8, [x21]
	cbz	w8, LBB0_10
; %bb.3:
	stur	w4, [x29, #-116]                ; 4-byte Folded Spill
	stur	x14, [x29, #-112]               ; 8-byte Folded Spill
	lsl	w2, w12, #2
	mov	x0, x22
	mov	w1, #0
	bl	_Com_Memset
	ldr	w26, [x21]
	mov	x0, x27
	bl	_VectorCopy
	mov	w28, #20
Lloh13:
	adrp	x19, _qfalse@GOTPAGE
Lloh14:
	ldr	x19, [x19, _qfalse@GOTPAGEOFF]
	mov	x3, x25
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	cmp	w25, w8
	b.eq	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x25
	sub	sp, sp, #32
	str	xzr, [sp, #24]
	str	wzr, [sp, #16]
	str	xzr, [sp, #8]
	stp	w20, w20, [sp]
	mov	x1, x25
	mov	x2, x26
	mov	x4, x22
	mov	x5, x23
	mov	x6, x24
	mov	x7, x21
	bl	_BotGetReachabilityToGoal
	add	sp, sp, #32
	cbz	w0, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x1, x29, #104
	bl	_AAS_ReachabilityFromNum
	ldp	w1, w0, [x21, #4]
	ldur	w2, [x29, #-96]
	bl	_BotVisible
	cbnz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w1, w0, [x21, #4]
	ldur	w2, [x29, #-100]
	bl	_BotVisible
	cbnz	x0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	ldp	w25, w0, [x29, #-104]
	cmp	w25, w8
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_VectorCopy
	mov	x3, x27
	subs	w28, w28, #1
	b.ne	LBB0_4
	b	LBB0_14
LBB0_10:
Lloh15:
	adrp	x19, _qfalse@GOTPAGE
Lloh16:
	ldr	x19, [x19, _qfalse@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
	ldur	w0, [x29, #-96]
	b	LBB0_13
LBB0_12:
	ldur	w0, [x29, #-100]
LBB0_13:
	ldur	w1, [x29, #-116]                ; 4-byte Folded Reload
	bl	_VectorCopy
Lloh17:
	adrp	x19, _qtrue@GOTPAGE
Lloh18:
	ldr	x19, [x19, _qtrue@GOTPAGEOFF]
LBB0_14:
	ldur	x14, [x29, #-112]               ; 8-byte Folded Reload
LBB0_15:
	ldr	w0, [x19]
	mov	sp, x14
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	sub	sp, x29, #80
	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_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_AVOIDREACH,4,2             ; @MAX_AVOIDREACH
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
