	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotAvoidSpots                  ## -- Begin function BotAvoidSpots
	.p2align	4, 0x90
_BotAvoidSpots:                         ## @BotAvoidSpots
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	_TRAVELTYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rsi), %eax
	addl	$-129, %eax
	cmpl	$12, %eax
	ja	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.BotAvoidSpots(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_qtrue@GOTPCREL(%rip), %rax
LBB0_3:
	movq	_AVOID_CLEAR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	testl	%ecx, %ecx
	jle	LBB0_16
## %bb.4:
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %eax
	leaq	(%rax,%rax,2), %rax
	leaq	-12(,%rax,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx,%r13), %edi
	callq	_Square
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movl	4(%rbx,%r13), %edi
	movl	4(%r14), %edx
	movl	%r15d, %esi
	callq	_DistanceFromLineSquared
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rbx,%r13), %edi
	movl	%r15d, %esi
	movss	%xmm0, -52(%rbp)                ## 4-byte Spill
	callq	_VectorDistanceSquared
	ucomiss	-52(%rbp), %xmm0                ## 4-byte Folded Reload
	ja	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rbx,%r13), %edi
	movl	8(%r14), %esi
	callq	_VectorDistanceSquared
	movl	4(%rbx,%r13), %edi
	movl	4(%r14), %esi
	callq	_VectorDistanceSquared
	ucomiss	-52(%rbp), %xmm0                ## 4-byte Folded Reload
	ja	LBB0_13
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rbx,%r13), %edi
	movl	4(%r14), %esi
	movl	8(%r14), %edx
	callq	_DistanceFromLineSquared
	movaps	%xmm0, %xmm1
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm0
	jbe	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rbx,%r13), %edi
	movl	4(%r14), %esi
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	callq	_VectorDistanceSquared
	ucomiss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	jbe	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx,%r13), %r12d
	jmp	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rbx,%r13), %edi
	movl	8(%r14), %esi
	callq	_VectorDistanceSquared
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_AVOID_ALWAYS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	12(%r13), %rax
	cmpq	%r13, -64(%rbp)                 ## 8-byte Folded Reload
	movq	%rax, %r13
	jne	LBB0_5
LBB0_16:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRAVELTYPE_MASK,4,2            ## @TRAVELTYPE_MASK
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_AVOID_CLEAR,4,2                ## @AVOID_CLEAR
	.comm	_AVOID_ALWAYS,4,2               ## @AVOID_ALWAYS
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.BotAvoidSpots
l_switch.table.BotAvoidSpots:
	.quad	_qfalse
	.quad	_qtrue
	.quad	_qfalse
	.quad	_qtrue
	.quad	_qfalse
	.quad	_qtrue
	.quad	_qfalse
	.quad	_qfalse
	.quad	_qfalse
	.quad	_qfalse
	.quad	_qfalse
	.quad	_qtrue
	.quad	_qfalse

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotAvoidSpots                  ; -- Begin function BotAvoidSpots
	.p2align	2
_BotAvoidSpots:                         ; @BotAvoidSpots
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -88
	.cfi_offset b9, -96
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _TRAVELTYPE_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TRAVELTYPE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	sub	w8, w8, #129
	cmp	w8, #12
	b.hi	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, l_switch.table.BotAvoidSpots@PAGE
Lloh4:
	add	x9, x9, l_switch.table.BotAvoidSpots@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _qtrue@GOTPAGE
Lloh6:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
LBB0_3:
Lloh7:
	adrp	x9, _AVOID_CLEAR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AVOID_CLEAR@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x9]
	cmp	w3, #1
	b.lt	LBB0_16
; %bb.4:
	ldr	w22, [x8]
	mov	w8, w3
	sub	x23, x8, #1
	add	x24, x2, #4
Lloh10:
	adrp	x25, _AVOID_ALWAYS@GOTPAGE
Lloh11:
	ldr	x25, [x25, _AVOID_ALWAYS@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldur	w21, [x24, #-4]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x25]
	cmp	w21, w8
	ccmp	x23, #0, #4, ne
	sub	x23, x23, #1
	add	x24, x24, #12
	b.eq	LBB0_16
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24, #4]
	bl	_Square
	fmov	s8, s0
	ldr	w0, [x24]
	ldr	w2, [x19, #4]
	mov	x1, x20
	bl	_DistanceFromLineSquared
	fcmp	s0, s8
	b.pl	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	fmov	s9, s0
	ldr	w0, [x24]
	mov	x1, x20
	bl	_VectorDistanceSquared
	fcmp	s0, s9
	b.gt	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cbnz	w22, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x24]
	ldr	w1, [x19, #8]
	bl	_VectorDistanceSquared
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w22, LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x24]
	ldp	w1, w2, [x19, #4]
	bl	_DistanceFromLineSquared
	fcmp	s0, s8
	b.pl	LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	fmov	s9, s0
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x24]
	ldr	w1, [x19, #4]
	bl	_VectorDistanceSquared
	fcmp	s0, s9
	b.gt	LBB0_5
	b	LBB0_6
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x24]
	ldr	w1, [x19, #8]
	bl	_VectorDistanceSquared
	b	LBB0_6
LBB0_16:
	mov	x0, x21
	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	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TRAVELTYPE_MASK,4,2            ; @TRAVELTYPE_MASK
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_AVOID_CLEAR,4,2                ; @AVOID_CLEAR
	.comm	_AVOID_ALWAYS,4,2               ; @AVOID_ALWAYS
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.BotAvoidSpots
l_switch.table.BotAvoidSpots:
	.quad	_qfalse
	.quad	_qtrue
	.quad	_qfalse
	.quad	_qtrue
	.quad	_qfalse
	.quad	_qtrue
	.quad	_qfalse
	.quad	_qfalse
	.quad	_qfalse
	.quad	_qfalse
	.quad	_qfalse
	.quad	_qtrue
	.quad	_qfalse

.subsections_via_symbols
