	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotSetAvoidGoalTime            ## -- Begin function BotSetAvoidGoalTime
	.p2align	4, 0x90
_BotSetAvoidGoalTime:                   ## @BotSetAvoidGoalTime
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movss	%xmm0, -12(%rbp)                ## 4-byte Spill
	movl	%esi, %ebx
	callq	_BotGoalStateFromHandle
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	xorps	%xmm0, %xmm0
	movss	-12(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm0
	movaps	%xmm1, %xmm0
	jbe	LBB0_7
## %bb.2:
	movq	_itemconfig@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.3:
	movq	_levelitems@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rdx)
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rdx), %rdx
	testq	%rdx, %rdx
	jne	LBB0_5
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	(%rcx), %rcx
	movq	8(%rdx), %rdx
	movss	(%rcx,%rdx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	_AVOID_DEFAULT_TIME@GOTPCREL(%rip), %rcx
	xorps	%xmm1, %xmm1
	cmpneqss	%xmm0, %xmm1
	andps	%xmm1, %xmm0
	movss	(%rcx), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	andnps	%xmm2, %xmm1
	orps	%xmm0, %xmm1
	movq	_AVOID_MINIMUM_TIME@GOTPCREL(%rip), %rcx
	movss	(%rcx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	maxss	%xmm1, %xmm0
LBB0_7:
	movq	%rax, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_BotAddToAvoidGoals             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_itemconfig,8,3                 ## @itemconfig
	.comm	_levelitems,8,3                 ## @levelitems
	.comm	_AVOID_DEFAULT_TIME,4,2         ## @AVOID_DEFAULT_TIME
	.comm	_AVOID_MINIMUM_TIME,4,2         ## @AVOID_MINIMUM_TIME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotSetAvoidGoalTime            ; -- Begin function BotSetAvoidGoalTime
	.p2align	2
_BotSetAvoidGoalTime:                   ; @BotSetAvoidGoalTime
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-48]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	fmov	s8, s0
	mov	x19, x1
	bl	_BotGoalStateFromHandle
	cbz	x0, LBB0_5
; %bb.1:
	fcmp	s8, #0.0
	b.pl	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _itemconfig@GOTPAGE
Lloh1:
	ldr	x8, [x8, _itemconfig@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _levelitems@GOTPAGE
Lloh4:
	ldr	x9, [x9, _levelitems@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	cmp	w10, w19
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x9, #16]
	cbnz	x9, LBB0_3
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x8, [x8]
	ldr	x9, [x9, #8]
	ldr	s0, [x8, x9, lsl #2]
Lloh6:
	adrp	x8, _AVOID_DEFAULT_TIME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVOID_DEFAULT_TIME@GOTPAGEOFF]
Lloh8:
	ldr	s1, [x8]
	fcmp	s0, #0.0
	fcsel	s0, s0, s1, ne
Lloh9:
	adrp	x8, _AVOID_MINIMUM_TIME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVOID_MINIMUM_TIME@GOTPAGEOFF]
Lloh11:
	ldr	s1, [x8]
	fcmp	s0, s1
	fcsel	s8, s1, s0, mi
LBB0_7:
	mov	x1, x19
	fmov	s0, s8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	b	_BotAddToAvoidGoals
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_itemconfig,8,3                 ; @itemconfig
	.comm	_levelitems,8,3                 ; @levelitems
	.comm	_AVOID_DEFAULT_TIME,4,2         ; @AVOID_DEFAULT_TIME
	.comm	_AVOID_MINIMUM_TIME,4,2         ; @AVOID_MINIMUM_TIME
.subsections_via_symbols
