	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotAddAvoidSpot                ## -- Begin function BotAddAvoidSpot
	.p2align	4, 0x90
_BotAddAvoidSpot:                       ## @BotAddAvoidSpot
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movss	%xmm0, -28(%rbp)                ## 4-byte Spill
	movl	%esi, %r15d
	callq	_BotMoveStateFromHandle
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	_AVOID_CLEAR@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movq	(%rbx), %rax
	movq	_MAX_AVOIDSPOTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_6
## %bb.4:
	movq	8(%rbx), %rcx
	leaq	(%rax,%rax,2), %rax
	movl	8(%rcx,%rax,4), %esi
	movl	%r15d, %edi
	callq	_VectorCopy
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	leaq	(%rax,%rax,2), %rdx
	movss	-28(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rcx,%rdx,4)
	movl	%r14d, 4(%rcx,%rdx,4)
	incq	%rax
LBB0_5:
	movq	%rax, (%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVOID_CLEAR,4,2                ## @AVOID_CLEAR
	.comm	_MAX_AVOIDSPOTS,8,3             ## @MAX_AVOIDSPOTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotAddAvoidSpot                ; -- Begin function BotAddAvoidSpot
	.p2align	2
_BotAddAvoidSpot:                       ; @BotAddAvoidSpot
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x20, x2
	fmov	s8, s0
	mov	x21, x1
	bl	_BotMoveStateFromHandle
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _AVOID_CLEAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVOID_CLEAR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_3
; %bb.2:
	mov	x8, #0
	b	LBB0_5
LBB0_3:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _MAX_AVOIDSPOTS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_AVOIDSPOTS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_6
; %bb.4:
	ldr	x9, [x19, #8]
	mov	w22, #12
	madd	x8, x8, x22, x9
	ldr	w1, [x8, #8]
	mov	x0, x21
	bl	_VectorCopy
	ldp	x9, x8, [x19]
	madd	x8, x9, x22, x8
	str	s8, [x8]
	str	w20, [x8, #4]
	add	x8, x9, #1
LBB0_5:
	str	x8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVOID_CLEAR,4,2                ; @AVOID_CLEAR
	.comm	_MAX_AVOIDSPOTS,8,3             ; @MAX_AVOIDSPOTS
.subsections_via_symbols
