	.file	"extr_g_mover.c_Think_SetupTrainTargets.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"func_train at %s with an unfound target\n"
	.align 8
.LC1:
	.string	"Train corner at %s without a target\n"
	.align 8
.LC2:
	.string	"Train corner at %s without a target path_corner\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"path_corner"
	.text
	.p2align 4
	.globl	Think_SetupTrainTargets
	.type	Think_SetupTrainTargets, @function
Think_SetupTrainTargets:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r12d, DWORD PTR 12[rdi]
	mov	edi, DWORD PTR targetname[rip]
	call	FOFS@PLT
	mov	edx, r12d
	xor	edi, edi
	lea	r12, .LC3[rip]
	mov	esi, eax
	call	G_Find@PLT
	mov	QWORD PTR [r14], rax
	mov	r13, rax
	mov	rbx, rax
	test	rax, rax
	je	.L14
.L2:
	mov	r15d, DWORD PTR 12[rbx]
	test	r15d, r15d
	je	.L15
	xor	ebp, ebp
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR 16[rax]
	mov	rsi, r12
	call	strcmp@PLT
	test	rax, rax
	je	.L5
	mov	r15d, DWORD PTR 12[rbx]
.L3:
	mov	edi, DWORD PTR targetname[rip]
	call	FOFS@PLT
	mov	rdi, rbp
	mov	edx, r15d
	mov	esi, eax
	call	G_Find@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L4
	mov	edi, DWORD PTR 8[rbx]
	call	vtos@PLT
	lea	rdi, .LC2[rip]
	mov	esi, eax
.L12:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	G_Printf@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	QWORD PTR [rbx], rbp
	cmp	r13, rbp
	je	.L16
	mov	rbx, rbp
	jmp	.L2
.L14:
	mov	edi, DWORD PTR 20[r14]
	call	vtos@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	jmp	.L12
.L16:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r14
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	Reached_Train@PLT
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbx]
	call	vtos@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	Think_SetupTrainTargets, .-Think_SetupTrainTargets
	.comm	targetname,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_g_mover.c_Think_SetupTrainTargets.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"func_train at %s with an unfound target\012\000"
	.align	2
.LC1:
	.ascii	"Train corner at %s without a target\012\000"
	.align	2
.LC2:
	.ascii	"Train corner at %s without a target path_corner\012"
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"path_corner\000"
	.text
	.align	2
	.global	Think_SetupTrainTargets
	.syntax unified
	.arm
	.fpu softvfp
	.type	Think_SetupTrainTargets, %function
Think_SetupTrainTargets:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, .L15
	mov	r9, r0
	ldr	r0, [r6]
	bl	FOFS
	ldr	r2, [r9, #8]
	mov	r1, r0
	mov	r0, #0
	bl	G_Find
	cmp	r0, #0
	str	r0, [r9]
	beq	.L11
	mov	r8, r0
	mov	r5, r0
	ldr	r7, .L15+4
.L2:
	ldr	r3, [r5, #8]
	cmp	r3, #0
	beq	.L12
	mov	r4, #0
	b	.L3
.L4:
	mov	r1, r7
	ldr	r0, [r4, #12]
	bl	strcmp
	cmp	r0, #0
	beq	.L13
.L3:
	ldr	r0, [r6]
	bl	FOFS
	ldr	r2, [r5, #8]
	mov	r1, r0
	mov	r0, r4
	bl	G_Find
	subs	r4, r0, #0
	bne	.L4
	ldr	r0, [r5, #4]
	bl	vtos
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r1, r0
	ldr	r0, .L15+8
	b	G_Printf
.L13:
	cmp	r8, r4
	str	r4, [r5]
	beq	.L14
	mov	r5, r4
	b	.L2
.L11:
	ldr	r0, [r9, #16]
	bl	vtos
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r1, r0
	ldr	r0, .L15+12
	b	G_Printf
.L14:
	mov	r0, r9
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	Reached_Train
.L12:
	ldr	r0, [r5, #4]
	bl	vtos
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r1, r0
	ldr	r0, .L15+16
	b	G_Printf
.L16:
	.align	2
.L15:
	.word	targetname
	.word	.LC3
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	Think_SetupTrainTargets, .-Think_SetupTrainTargets
	.comm	targetname,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
