	.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_Respawn
LCPI0_0:
	.quad	0xbfe0000000000000              ## double -0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_AINode_Respawn
	.p2align	4, 0x90
_AINode_Respawn:                        ## @AINode_Respawn
	.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
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_BotIsDead
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	28(%rbx), %edi
	callq	_trap_EA_Respawn
	jmp	LBB0_7
LBB0_4:
	movsd	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero
	movsd	%xmm0, -16(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	callq	_FloatTime
	ucomisd	-16(%rbp), %xmm0                ## 8-byte Folded Reload
	jbe	LBB0_7
## %bb.5:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	28(%rbx), %edi
	callq	_trap_EA_Respawn
	movsd	16(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jne	LBB0_6
	jnp	LBB0_7
LBB0_6:
	movl	32(%rbx), %edx
	movl	36(%rbx), %edi
	xorl	%esi, %esi
	callq	_trap_BotEnterChat
	movl	$-1, 24(%rbx)
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_AIEnter_Seek_LTG
LBB0_7:
	movsd	16(%rbx), %xmm1                 ## xmm1 = mem[0],zero
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm0, %xmm1
	jne	LBB0_8
	jnp	LBB0_10
LBB0_8:
	xorl	%eax, %eax
	movsd	%xmm1, -16(%rbp)                ## 8-byte Spill
	callq	_FloatTime
	addsd	LCPI0_0(%rip), %xmm0
	ucomisd	-16(%rbp), %xmm0                ## 8-byte Folded Reload
	jbe	LBB0_10
## %bb.9:
	movl	28(%rbx), %edi
	callq	_trap_EA_Talk
LBB0_10:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"respawn: respawned"

	.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_Respawn                 ; -- Begin function AINode_Respawn
	.p2align	2
_AINode_Respawn:                        ; @AINode_Respawn
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x20, _qtrue@GOTPAGE
Lloh1:
	ldr	x20, [x20, _qtrue@GOTPAGEOFF]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_BotIsDead
	cbz	w0, LBB0_6
; %bb.2:
	ldr	w0, [x19, #28]
	bl	_trap_EA_Respawn
	b	LBB0_7
LBB0_3:
	ldr	d8, [x19, #8]
	bl	_FloatTime
	fcmp	d8, d0
	b.pl	LBB0_7
; %bb.4:
	ldr	w8, [x20]
	str	w8, [x19]
	ldr	w0, [x19, #28]
	bl	_trap_EA_Respawn
	ldr	d0, [x19, #16]
	fcmp	d0, #0.0
	b.eq	LBB0_7
; %bb.5:
	ldp	w2, w0, [x19, #32]
	mov	w1, #0
	bl	_trap_BotEnterChat
	mov	w8, #-1
	str	w8, [x19, #24]
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_AIEnter_Seek_LTG
LBB0_7:
	ldr	d8, [x19, #16]
	fcmp	d8, #0.0
	b.eq	LBB0_10
; %bb.8:
	bl	_FloatTime
	fmov	d1, #-0.50000000
	fadd	d0, d0, d1
	fcmp	d8, d0
	b.pl	LBB0_10
; %bb.9:
	ldr	w0, [x19, #28]
	bl	_trap_EA_Talk
LBB0_10:
	ldr	w0, [x20]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"respawn: respawned"

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