	.file	"extr_ai_main.c_BotInterbreedBots.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	BotInterbreedBots
	.type	BotInterbreedBots, @function
BotInterbreedBots:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_CLIENTS[rip]
	mov	rsi, rsp
	mov	r9, rax
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L3
.L29:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L29
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L30
.L4:
	mov	rsi, rsp
	test	r9d, r9d
	jle	.L5
	movss	xmm1, DWORD PTR .LC0[rip]
	mov	r8, QWORD PTR botstates[rip]
	lea	edi, -1[r9]
	xor	edx, edx
	movaps	xmm2, xmm1
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdx, rax
.L7:
	mov	rcx, QWORD PTR [r8+rdx*8]
	movaps	xmm0, xmm1
	test	rcx, rcx
	je	.L6
	cmp	QWORD PTR 8[rcx], 0
	movaps	xmm0, xmm2
	je	.L6
	mov	eax, DWORD PTR [rcx]
	pxor	xmm0, xmm0
	add	eax, eax
	sub	eax, DWORD PTR 4[rcx]
	cvtsi2ss	xmm0, eax
.L6:
	movss	DWORD PTR [rsi+rdx*4], xmm0
	lea	rax, 1[rdx]
	cmp	rdi, rdx
	jne	.L15
.L5:
	lea	rcx, -16[rbp]
	lea	rdx, -20[rbp]
	mov	edi, r9d
	lea	r8, -12[rbp]
	call	trap_GeneticParentsAndChildSelection@PLT
	test	rax, rax
	jne	.L31
.L8:
	mov	eax, DWORD PTR MAX_CLIENTS[rip]
	test	eax, eax
	jle	.L1
	mov	rdx, QWORD PTR botstates[rip]
	lea	ecx, -1[rax]
	lea	rax, 8[rdx]
	lea	rcx, [rax+rcx*8]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L32:
	add	rax, 8
.L11:
	mov	rdx, QWORD PTR [rdx]
	test	rdx, rdx
	je	.L10
	cmp	QWORD PTR 8[rdx], 0
	je	.L10
	mov	QWORD PTR [rdx], 0
.L10:
	mov	rdx, rax
	cmp	rax, rcx
	jne	.L32
.L1:
	mov	rax, QWORD PTR -8[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L33
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	mov	rax, QWORD PTR botstates[rip]
	movsx	rcx, DWORD PTR -16[rbp]
	movsx	rdx, DWORD PTR -12[rbp]
	mov	rcx, QWORD PTR [rax+rcx*8]
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	esi, DWORD PTR 16[rcx]
	movsx	rcx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR 16[rdx]
	mov	rax, QWORD PTR [rax+rcx*8]
	mov	edi, DWORD PTR 16[rax]
	call	trap_BotInterbreedGoalFuzzyLogic@PLT
	movsx	rdx, DWORD PTR -12[rbp]
	mov	esi, 1
	mov	rax, QWORD PTR botstates[rip]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	edi, DWORD PTR 16[rax]
	call	trap_BotMutateGoalFuzzyLogic@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L30:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	BotInterbreedBots, .-BotInterbreedBots
	.comm	botstates,8,8
	.comm	MAX_CLIENTS,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	3212836864
	.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_ai_main.c_BotInterbreedBots.c"
	.text
	.global	__aeabi_i2f
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	BotInterbreedBots
	.syntax unified
	.arm
	.fpu softvfp
	.type	BotInterbreedBots, %function
BotInterbreedBots:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #28
	ldr	r6, .L28
	ldr	r3, .L28+4
	ldr	r5, [r6]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	lsl	r9, r5, #2
	add	r3, r9, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	cmp	r5, #0
	add	r7, sp, #8
	ble	.L2
	ldr	r3, .L28+8
	ldr	r10, .L28+12
	ldr	r4, [r3]
	sub	r8, r7, #4
	sub	r4, r4, #4
	add	r9, r4, r9
	b	.L4
.L25:
	ldm	r3, {r0, r3}
	rsb	r0, r3, r0, lsl #1
	bl	__aeabi_i2f
	cmp	r4, r9
	str	r0, [r8, #4]!	@ float
	beq	.L2
.L4:
	ldr	r3, [r4, #4]!
	cmp	r3, #0
	beq	.L11
	ldr	r2, [r3, #8]
	cmp	r2, #0
	bne	.L25
.L11:
	mov	r0, r10
	cmp	r4, r9
	str	r0, [r8, #4]!	@ float
	bne	.L4
.L2:
	sub	r3, fp, #44
	str	r3, [sp]
	mov	r1, r7
	mov	r0, r5
	sub	r3, fp, #48
	sub	r2, fp, #52
	bl	trap_GeneticParentsAndChildSelection
	cmp	r0, #0
	bne	.L26
.L5:
	ldr	r1, [r6]
	cmp	r1, #0
	ble	.L1
	mov	ip, #0
	ldr	r3, .L28+8
	ldr	r3, [r3]
	sub	r3, r3, #4
	add	r1, r3, r1, lsl #2
.L8:
	ldr	r2, [r3, #4]!
	cmp	r2, #0
	beq	.L7
	ldr	r0, [r2, #8]
	cmp	r0, #0
	strne	ip, [r2]
	strne	ip, [r2, #4]
.L7:
	cmp	r1, r3
	bne	.L8
.L1:
	ldr	r3, .L28+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	ldr	r4, .L28+8
	ldr	r0, [fp, #-52]
	ldr	r3, [r4]
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-48]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r1, [r3, r1, lsl #2]
	ldr	r3, [r3, r0, lsl #2]
	ldr	r2, [r2, #12]
	ldr	r1, [r1, #12]
	ldr	r0, [r3, #12]
	bl	trap_BotInterbreedGoalFuzzyLogic
	ldr	r3, [r4]
	ldr	r2, [fp, #-44]
	mov	r1, #1
	ldr	r3, [r3, r2, lsl #2]
	ldr	r0, [r3, #12]
	bl	trap_BotMutateGoalFuzzyLogic
	b	.L5
.L27:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	MAX_CLIENTS
	.word	.LC0
	.word	botstates
	.word	-1082130432
	.size	BotInterbreedBots, .-BotInterbreedBots
	.comm	botstates,4,4
	.comm	MAX_CLIENTS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
