	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function AINode_Stand
LCPI0_0:
	.quad	0x3fb999999999999a              ## double 0.10000000000000001
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_AINode_Stand
	.p2align	4, 0x90
_AINode_Stand:                          ## @AINode_Stand
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	_INVENTORY_HEALTH@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	(%rcx,%rdx,8), %rax
	jle	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_BotChat_HitTalking
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_FloatTime
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_BotChatTime
	addq	%r14, %rax
	cvtsi2sd	%rax, %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %rax
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
	callq	_FloatTime
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_BotChatTime
	addq	%r14, %rax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %rax
	movq	%rax, 24(%rbx)
LBB0_3:
	movq	16(%rbx), %r14
	xorl	%eax, %eax
	callq	_FloatTime
	cmpq	%rax, %r14
	jge	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_BotFindEnemy
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_AIEnter_Battle_Fight
	jmp	LBB0_10
LBB0_6:
	xorl	%eax, %eax
	callq	_FloatTime
	incq	%rax
	movq	%rax, 16(%rbx)
LBB0_7:
	movl	40(%rbx), %edi
	callq	_trap_EA_Talk
	movq	24(%rbx), %r14
	xorl	%eax, %eax
	callq	_FloatTime
	cmpq	%rax, %r14
	jge	LBB0_8
## %bb.9:
	movl	32(%rbx), %edx
	movl	36(%rbx), %edi
	xorl	%esi, %esi
	callq	_trap_BotEnterChat
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_AIEnter_Seek_LTG
LBB0_10:
	movq	_qfalse@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	movq	_qtrue@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INVENTORY_HEALTH,8,3           ## @INVENTORY_HEALTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stand: found enemy"

	.comm	_qfalse,4,2                     ## @qfalse
L_.str.1:                               ## @.str.1
	.asciz	"stand: time out"

	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AINode_Stand                   ; -- Begin function AINode_Stand
	.p2align	2
_AINode_Stand:                          ; @AINode_Stand
	.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
	mov	x19, x0
	ldp	x8, x9, [x0]
Lloh0:
	adrp	x10, _INVENTORY_HEALTH@GOTPAGE
Lloh1:
	ldr	x10, [x10, _INVENTORY_HEALTH@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	ldr	x9, [x9, x10, lsl #3]
	cmp	x8, x9
	b.le	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_BotChat_HitTalking
	cbz	x0, LBB0_3
; %bb.2:
	bl	_FloatTime
	mov	x20, x0
	mov	x0, x19
	bl	_BotChatTime
	add	x8, x0, x20
	scvtf	d0, x8
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16313, lsl #48
	fmov	d8, x8
	fadd	d0, d0, d8
	fcvtzs	x8, d0
	str	x8, [x19, #16]
	bl	_FloatTime
	mov	x20, x0
	mov	x0, x19
	bl	_BotChatTime
	add	x8, x0, x20
	scvtf	d0, x8
	fadd	d0, d0, d8
	fcvtzs	x8, d0
	str	x8, [x19, #24]
LBB0_3:
	ldr	x20, [x19, #16]
	bl	_FloatTime
	cmp	x20, x0
	b.ge	LBB0_7
; %bb.4:
	mov	x0, x19
	mov	w1, #-1
	bl	_BotFindEnemy
	cbz	x0, LBB0_6
; %bb.5:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_AIEnter_Battle_Fight
	b	LBB0_9
LBB0_6:
	bl	_FloatTime
	add	x8, x0, #1
	str	x8, [x19, #16]
LBB0_7:
	ldr	w0, [x19, #40]
	bl	_trap_EA_Talk
	ldr	x20, [x19, #24]
	bl	_FloatTime
	cmp	x20, x0
	b.ge	LBB0_10
; %bb.8:
	ldp	w2, w0, [x19, #32]
	mov	w1, #0
	bl	_trap_BotEnterChat
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_AIEnter_Seek_LTG
LBB0_9:
Lloh7:
	adrp	x8, _qfalse@GOTPAGE
Lloh8:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh9:
	adrp	x8, _qtrue@GOTPAGE
Lloh10:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_INVENTORY_HEALTH,8,3           ; @INVENTORY_HEALTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stand: found enemy"

	.comm	_qfalse,4,2                     ; @qfalse
l_.str.1:                               ; @.str.1
	.asciz	"stand: time out"

	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
