	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotResetState                  ## -- Begin function BotResetState
	.p2align	4, 0x90
_BotResetState:                         ## @BotResetState
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	36(%rdi), %r14
	leaq	-52(%rbp), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	40(%rbx), %r12
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
	movss	32(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movl	48(%rbx), %edi
	movups	(%rbx), %xmm0
	movaps	%xmm0, -96(%rbp)                ## 16-byte Spill
	movups	16(%rbx), %xmm0
	movaps	%xmm0, -80(%rbp)                ## 16-byte Spill
	callq	_BotFreeWaypoints
	movl	44(%rbx), %edi
	callq	_BotFreeWaypoints
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$52, %edx
	callq	_memset
	movaps	-80(%rbp), %xmm0                ## 16-byte Reload
	movups	%xmm0, 16(%rbx)
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	movaps	-96(%rbp), %xmm0                ## 16-byte Reload
	movups	%xmm0, (%rbx)
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 32(%rbx)
	movl	16(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_2
## %bb.1:
	callq	_trap_BotResetMoveState
LBB0_2:
	movl	20(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_4
## %bb.3:
	callq	_trap_BotResetGoalState
LBB0_4:
	movl	28(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.5:
	callq	_trap_BotResetWeaponState
LBB0_6:
	movl	20(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_8
## %bb.7:
	callq	_trap_BotResetAvoidGoals
LBB0_8:
	movl	16(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_10
## %bb.9:
	callq	_trap_BotResetAvoidReach
LBB0_10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotResetState                  ; -- Begin function BotResetState
	.p2align	2
_BotResetState:                         ; @BotResetState
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d13, d12, [sp, #16]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset b10, -72
	.cfi_offset b11, -80
	.cfi_offset b12, -88
	.cfi_offset b13, -96
	mov	x19, x0
	add	x20, x0, #36
	add	x0, sp, #12
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	add	x21, x19, #40
	add	x0, sp, #8
	mov	x1, x21
	mov	w2, #4
	bl	_memcpy
	ldr	s8, [x19, #32]
	ldr	w0, [x19, #48]
	ldp	d9, d10, [x19]
	ldp	d11, d12, [x19, #16]
	bl	_BotFreeWaypoints
	ldr	w0, [x19, #44]
	bl	_BotFreeWaypoints
	mov	x0, x19
	mov	w1, #0
	mov	w2, #52
	bl	_memset
	stp	d11, d12, [x19, #16]
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #4
	bl	_memcpy
	add	x1, sp, #12
	mov	x0, x20
	mov	w2, #4
	bl	_memcpy
	stp	d9, d10, [x19]
	str	s8, [x19, #32]
	ldr	w0, [x19, #16]
	cbz	w0, LBB0_2
; %bb.1:
	bl	_trap_BotResetMoveState
LBB0_2:
	ldr	w0, [x19, #20]
	cbz	w0, LBB0_4
; %bb.3:
	bl	_trap_BotResetGoalState
LBB0_4:
	ldr	w0, [x19, #28]
	cbz	w0, LBB0_6
; %bb.5:
	bl	_trap_BotResetWeaponState
LBB0_6:
	ldr	w0, [x19, #20]
	cbz	w0, LBB0_8
; %bb.7:
	bl	_trap_BotResetAvoidGoals
LBB0_8:
	ldr	w0, [x19, #16]
	cbz	w0, LBB0_10
; %bb.9:
	bl	_trap_BotResetAvoidReach
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
