	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SP_func_train                  ## -- Begin function SP_func_train
	.p2align	4, 0x90
_SP_func_train:                         ## @SP_func_train
	.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
	movl	40(%rdi), %edi
	callq	_VectorClear
	movq	_TRAIN_BLOCK_STOPS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rbx)
	je	LBB0_1
LBB0_3:
	movl	%eax, 4(%rbx)
	cmpl	$0, 8(%rbx)
	jne	LBB0_6
	jmp	LBB0_5
LBB0_1:
	cmpl	$0, 4(%rbx)
	je	LBB0_2
## %bb.4:
	cmpl	$0, 8(%rbx)
	je	LBB0_5
LBB0_6:
	cmpl	$0, 36(%rbx)
	je	LBB0_8
LBB0_7:
	movl	28(%rbx), %esi
	movq	%rbx, %rdi
	callq	_trap_SetBrushModel
	movq	%rbx, %rdi
	callq	_InitMover
	movq	_Reached_Train@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_level@GOTPCREL(%rip), %rax
	movq	_FRAMETIME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	%rcx, 16(%rbx)
	movq	_Think_SetupTrainTargets@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movl	$100, 8(%rbx)
	cmpl	$0, 36(%rbx)
	jne	LBB0_7
LBB0_8:
	movl	32(%rbx), %edi
	callq	_vtos
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_G_Printf
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_G_FreeEntity                   ## TAILCALL
LBB0_2:
	movl	$2, %eax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_TRAIN_BLOCK_STOPS,4,2          ## @TRAIN_BLOCK_STOPS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"func_train without a target at %s\n"

	.comm	_Reached_Train,4,2              ## @Reached_Train
	.comm	_level,8,3                      ## @level
	.comm	_FRAMETIME,8,3                  ## @FRAMETIME
	.comm	_Think_SetupTrainTargets,4,2    ## @Think_SetupTrainTargets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SP_func_train                  ; -- Begin function SP_func_train
	.p2align	2
_SP_func_train:                         ; @SP_func_train
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #40]
	bl	_VectorClear
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _TRAIN_BLOCK_STOPS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TRAIN_BLOCK_STOPS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	w8, #0
LBB0_2:
	str	w8, [x19, #4]
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_5
	b	LBB0_7
LBB0_3:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_9
; %bb.4:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_7
LBB0_5:
	ldr	w8, [x19, #36]
	cbz	w8, LBB0_8
LBB0_6:
	ldr	w1, [x19, #28]
	mov	x0, x19
	bl	_trap_SetBrushModel
	mov	x0, x19
	bl	_InitMover
Lloh3:
	adrp	x8, _Reached_Train@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Reached_Train@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh6:
	adrp	x8, _level@GOTPAGE
Lloh7:
	ldr	x8, [x8, _level@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _FRAMETIME@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FRAMETIME@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x19, #16]
Lloh12:
	adrp	x8, _Think_SetupTrainTargets@GOTPAGE
Lloh13:
	ldr	x8, [x8, _Think_SetupTrainTargets@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w8, #100
	str	w8, [x19, #8]
	ldr	w8, [x19, #36]
	cbnz	w8, LBB0_6
LBB0_8:
	ldr	w0, [x19, #32]
	bl	_vtos
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_G_Printf
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_G_FreeEntity
LBB0_9:
	mov	w8, #2
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_TRAIN_BLOCK_STOPS,4,2          ; @TRAIN_BLOCK_STOPS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"func_train without a target at %s\n"

	.comm	_Reached_Train,4,2              ; @Reached_Train
	.comm	_level,8,3                      ; @level
	.comm	_FRAMETIME,8,3                  ; @FRAMETIME
	.comm	_Think_SetupTrainTargets,4,2    ; @Think_SetupTrainTargets
.subsections_via_symbols
