	.file	"638408.c"
	.intel_syntax noprefix
	.text
	.globl	cas
	.bss
	.align 32
	.type	cas, @object
	.size	cas, 8880400
cas:
	.zero	8880400
	.globl	rules_pop
	.align 32
	.type	rules_pop, @object
	.size	rules_pop, 51200
rules_pop:
	.zero	51200
	.globl	top_score
	.align 4
	.type	top_score, @object
	.size	top_score, 4
top_score:
	.zero	4
	.globl	top_target
	.align 4
	.type	top_target, @object
	.size	top_target, 4
top_target:
	.zero	4
	.globl	sample_ca
	.align 32
	.type	sample_ca, @object
	.size	sample_ca, 88804
sample_ca:
	.zero	88804
	.globl	top_rule
	.align 32
	.type	top_rule, @object
	.size	top_rule, 512
top_rule:
	.zero	512
	.globl	top_rule_id
	.align 4
	.type	top_rule_id, @object
	.size	top_rule_id, 4
top_rule_id:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Rule %i: "
.LC1:
	.string	"%i "
	.text
	.globl	print_rules_pop
	.type	print_rules_pop, @function
print_rules_pop:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 7
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, rules_pop[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L3:
	cmp	DWORD PTR -4[rbp], 127
	jle	.L4
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L2:
	cmp	DWORD PTR -8[rbp], 99
	jle	.L5
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_rules_pop, .-print_rules_pop
	.section	.rodata
.LC2:
	.string	"a+"
.LC3:
	.string	"save_ca.txt"
	.align 8
.LC4:
	.string	"generation %i, rule %i, ic %i, target %i, score %i\n\n"
.LC5:
	.string	"rule %i: "
.LC6:
	.string	"%i"
.LC7:
	.string	"\n\n"
.LC8:
	.string	"CA saved for gen %i\n"
	.text
	.globl	save_ca
	.type	save_ca, @function
save_ca:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -44[rbp], edx
	mov	DWORD PTR -48[rbp], ecx
	mov	DWORD PTR -52[rbp], r8d
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	r8d, DWORD PTR -48[rbp]
	mov	edi, DWORD PTR -44[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	mov	esi, DWORD PTR -52[rbp]
	push	rsi
	mov	r9d, r8d
	mov	r8d, edi
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 7
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, rules_pop[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -12[rbp], 1
.L7:
	cmp	DWORD PTR -12[rbp], 127
	jle	.L8
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	DWORD PTR -20[rbp], 0
	jmp	.L9
.L12:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	imul	rsi, rax, 22201
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, cas[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -16[rbp], 1
.L10:
	cmp	DWORD PTR -16[rbp], 148
	jle	.L11
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	add	DWORD PTR -20[rbp], 1
.L9:
	cmp	DWORD PTR -20[rbp], 148
	jle	.L12
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	save_ca, .-save_ca
	.section	.rodata
.LC9:
	.string	"run%d"
	.align 8
.LC10:
	.string	"generation %i, rule %i, target %i, score %i\n\n"
.LC11:
	.string	"top CA saved for gen %i\n"
	.text
	.globl	save_top_ca
	.type	save_top_ca, @function
save_top_ca:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	DWORD PTR -120[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 3342061660045014111
	mov	edx, 7633012
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	QWORD PTR -64[rbp], 0
	mov	BYTE PTR -56[rbp], 0
	mov	edx, DWORD PTR -120[rbp]
	lea	rax, -48[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, -80[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -48[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	edi, DWORD PTR top_score[rip]
	mov	esi, DWORD PTR top_target[rip]
	mov	ecx, DWORD PTR top_rule_id[rip]
	mov	edx, DWORD PTR -116[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	r9d, edi
	mov	r8d, esi
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edx, DWORD PTR top_rule_id[rip]
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -92[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, top_rule[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -92[rbp], 1
.L14:
	cmp	DWORD PTR -92[rbp], 127
	jle	.L15
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	DWORD PTR -100[rbp], 0
	jmp	.L16
.L19:
	mov	DWORD PTR -96[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -96[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, sample_ca[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -96[rbp], 1
.L17:
	cmp	DWORD PTR -96[rbp], 148
	jle	.L18
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	add	DWORD PTR -100[rbp], 1
.L16:
	cmp	DWORD PTR -100[rbp], 148
	jle	.L19
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	save_top_ca, .-save_top_ca
	.section	.rodata
.LC12:
	.string	"generation %i\n"
.LC13:
	.string	"top rule 1 id: %i, score: %i\n"
.LC14:
	.string	"top rule 2 id: %i, score: %i\n"
.LC15:
	.string	"top 20 scores: "
.LC16:
	.string	"%i, "
	.text
	.globl	save_selected_scores
	.type	save_selected_scores, @function
save_selected_scores:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	DWORD PTR -100[rbp], edi
	mov	DWORD PTR -104[rbp], esi
	mov	DWORD PTR -108[rbp], edx
	mov	DWORD PTR -112[rbp], ecx
	mov	DWORD PTR -116[rbp], r8d
	mov	DWORD PTR -120[rbp], r9d
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR -128[rbp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 8026385814397346143
	movabs	rdx, 128060694095218
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	QWORD PTR -64[rbp], 0
	mov	BYTE PTR -56[rbp], 0
	mov	edx, DWORD PTR -120[rbp]
	lea	rax, -48[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, -80[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -48[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	edx, DWORD PTR -116[rbp]
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	ecx, DWORD PTR -104[rbp]
	mov	edx, DWORD PTR -100[rbp]
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	ecx, DWORD PTR -112[rbp]
	mov	edx, DWORD PTR -108[rbp]
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	DWORD PTR -92[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -92[rbp], 1
.L22:
	cmp	DWORD PTR -92[rbp], 19
	jle	.L23
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	save_selected_scores, .-save_selected_scores
	.globl	my_rand
	.type	my_rand, @function
my_rand:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -4[rbp]
	movsd	QWORD PTR -16[rbp], xmm2
	call	rand@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC17[rip]
	divsd	xmm0, xmm1
	mulsd	xmm0, QWORD PTR -16[rbp]
	cvttsd2si	eax, xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	my_rand, .-my_rand
	.globl	get_rule_index
	.type	get_rule_index, @function
get_rule_index:
.LFB11:
	.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L28
.L29:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	QWORD PTR -32[rbp], xmm2
	mov	eax, 6
	sub	eax, DWORD PTR -8[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR .LC18[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	xmm1, QWORD PTR -32[rbp]
	mulsd	xmm1, xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -4[rbp]
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -4[rbp], eax
	add	DWORD PTR -8[rbp], 1
.L28:
	cmp	DWORD PTR -8[rbp], 6
	jle	.L29
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	get_rule_index, .-get_rule_index
	.globl	get_next_cell_state
	.type	get_next_cell_state, @function
get_next_cell_state:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	DWORD PTR -72[rbp], esi
	mov	DWORD PTR -76[rbp], edx
	mov	DWORD PTR -80[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -60[rbp], 0
	jmp	.L32
.L35:
	mov	edx, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -60[rbp]
	add	eax, edx
	sub	eax, 3
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -56[rbp], 0
	jns	.L33
	add	DWORD PTR -56[rbp], 149
.L33:
	cmp	DWORD PTR -56[rbp], 148
	jle	.L34
	sub	DWORD PTR -56[rbp], 149
.L34:
	mov	eax, DWORD PTR -56[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	mov	edx, DWORD PTR -76[rbp]
	movsx	rdx, edx
	imul	rsi, rax, 22201
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, cas[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], edx
	add	DWORD PTR -60[rbp], 1
.L32:
	cmp	DWORD PTR -60[rbp], 6
	jle	.L35
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	get_rule_index
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	sal	rax, 7
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, rules_pop[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	get_next_cell_state, .-get_next_cell_state
	.globl	generate_next_ca
	.type	generate_next_ca, @function
generate_next_ca:
.LFB13:
	.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L39
.L40:
	mov	eax, DWORD PTR -28[rbp]
	lea	edi, -1[rax]
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, edx
	mov	edx, edi
	mov	edi, eax
	call	get_next_cell_state
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	imul	rdi, rax, 22201
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rdi
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	lea	rax, cas[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -4[rbp], 1
.L39:
	cmp	DWORD PTR -4[rbp], 148
	jle	.L40
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	generate_next_ca, .-generate_next_ca
	.globl	count_ones
	.type	count_ones, @function
count_ones:
.LFB14:
	.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	cmp	DWORD PTR -28[rbp], 0
	je	.L42
	mov	edi, 10
	call	putchar@PLT
.L42:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L43
.L45:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	imul	rsi, rax, 22201
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, cas[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L44
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	imul	rsi, rax, 22201
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, cas[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L44:
	add	DWORD PTR -8[rbp], 1
.L43:
	cmp	DWORD PTR -8[rbp], 148
	jle	.L45
	cmp	DWORD PTR -28[rbp], 0
	je	.L46
	mov	edi, 10
	call	putchar@PLT
.L46:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	count_ones, .-count_ones
	.globl	generate_cas
	.type	generate_cas, @function
generate_cas:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	DWORD PTR -60[rbp], edx
	mov	DWORD PTR -28[rbp], 0
	mov	edi, 2
	call	my_rand
	test	eax, eax
	jne	.L49
	mov	eax, 99
	jmp	.L50
.L49:
	mov	eax, 49
.L50:
	mov	DWORD PTR -12[rbp], eax
	mov	edi, 3
	call	my_rand
	sub	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L51
.L57:
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	count_ones
	cmp	eax, 74
	setg	al
	movzx	eax, al
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jne	.L52
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -24[rbp], eax
.L52:
	mov	DWORD PTR -32[rbp], 1
	jmp	.L53
.L54:
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	generate_next_ca
	add	DWORD PTR -32[rbp], 1
.L53:
	cmp	DWORD PTR -32[rbp], 148
	jle	.L54
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 0
	mov	esi, 148
	mov	edi, eax
	call	count_ones
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 149
	jne	.L55
	cmp	DWORD PTR -8[rbp], 1
	jne	.L55
	add	DWORD PTR -28[rbp], 1
	jmp	.L56
.L55:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L56
	cmp	DWORD PTR -8[rbp], 0
	jne	.L56
	add	DWORD PTR -28[rbp], 1
.L56:
	add	DWORD PTR -36[rbp], 1
.L51:
	cmp	DWORD PTR -36[rbp], 99
	jle	.L57
	mov	eax, DWORD PTR top_score[rip]
	cmp	DWORD PTR -28[rbp], eax
	jle	.L58
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR top_score[rip], eax
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR top_rule_id[rip], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR top_target[rip], eax
	mov	DWORD PTR -32[rbp], 0
	jmp	.L59
.L62:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L60
.L61:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	imul	rsi, rax, 22201
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, cas[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	lea	rax, sample_ca[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -20[rbp], 1
.L60:
	cmp	DWORD PTR -20[rbp], 148
	jle	.L61
	add	DWORD PTR -32[rbp], 1
.L59:
	cmp	DWORD PTR -32[rbp], 148
	jle	.L62
	mov	DWORD PTR -16[rbp], 0
	jmp	.L63
.L64:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 7
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, rules_pop[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, top_rule[rip]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -16[rbp], 1
.L63:
	cmp	DWORD PTR -16[rbp], 127
	jle	.L64
.L58:
	mov	eax, DWORD PTR -28[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	generate_cas, .-generate_cas
	.section	.rodata
	.align 8
.LC19:
	.string	"ICs: generated %i initial configurations\n"
	.text
	.globl	gen_init_config
	.type	gen_init_config, @function
gen_init_config:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -8[rbp], 0
	jmp	.L67
.L72:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L68
.L71:
	mov	eax, 51
	sub	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	my_rand
	test	eax, eax
	jne	.L69
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rax, rax, 22201
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, cas[rip]
	mov	DWORD PTR [rdx+rax], 0
	jmp	.L70
.L69:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rax, rax, 22201
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, cas[rip]
	mov	DWORD PTR [rdx+rax], 1
.L70:
	add	DWORD PTR -4[rbp], 1
.L68:
	cmp	DWORD PTR -4[rbp], 148
	jle	.L71
	add	DWORD PTR -8[rbp], 1
.L67:
	cmp	DWORD PTR -8[rbp], 49
	jle	.L72
	mov	DWORD PTR -8[rbp], 50
	jmp	.L73
.L78:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L74
.L77:
	mov	eax, 101
	sub	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	my_rand
	test	eax, eax
	jne	.L75
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rax, rax, 22201
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, cas[rip]
	mov	DWORD PTR [rdx+rax], 1
	jmp	.L76
.L75:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rax, rax, 22201
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, cas[rip]
	mov	DWORD PTR [rdx+rax], 0
.L76:
	add	DWORD PTR -4[rbp], 1
.L74:
	cmp	DWORD PTR -4[rbp], 148
	jle	.L77
	add	DWORD PTR -8[rbp], 1
.L73:
	cmp	DWORD PTR -8[rbp], 99
	jle	.L78
	mov	esi, 100
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	gen_init_config, .-gen_init_config
	.section	.rodata
	.align 8
.LC20:
	.string	"Rules: all %i rules initialized\n"
	.text
	.globl	initialize_rules
	.type	initialize_rules, @function
initialize_rules:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -8[rbp], 0
	jmp	.L80
.L83:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L81
.L82:
	mov	edi, 2
	call	my_rand
	mov	edx, DWORD PTR -4[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	sal	rdx, 7
	add	rdx, rcx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, rules_pop[rip]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -4[rbp], 1
.L81:
	cmp	DWORD PTR -4[rbp], 127
	jle	.L82
	add	DWORD PTR -8[rbp], 1
.L80:
	cmp	DWORD PTR -8[rbp], 99
	jle	.L83
	mov	esi, 100
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	initialize_rules, .-initialize_rules
	.globl	top_twenty
	.type	top_twenty, @function
top_twenty:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L85
.L87:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -12[rbp], eax
	jle	.L86
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
.L86:
	add	DWORD PTR -8[rbp], 1
.L85:
	cmp	DWORD PTR -8[rbp], 19
	jle	.L87
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L89
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR 4[rdx], eax
.L89:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	top_twenty, .-top_twenty
	.globl	in_top_rules
	.type	in_top_rules, @function
in_top_rules:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L91
.L94:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L92
	mov	eax, 1
	jmp	.L93
.L92:
	add	DWORD PTR -4[rbp], 1
.L91:
	cmp	DWORD PTR -4[rbp], 19
	jle	.L94
	mov	eax, 0
.L93:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	in_top_rules, .-in_top_rules
	.globl	get_new_offspring
	.type	get_new_offspring, @function
get_new_offspring:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	edi, 128
	call	my_rand
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -8[rbp], 0
	jmp	.L96
.L97:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -8[rbp], 1
.L96:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L97
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L98
.L99:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -8[rbp], 1
.L98:
	cmp	DWORD PTR -8[rbp], 127
	jle	.L99
	mov	DWORD PTR -8[rbp], 0
	jmp	.L100
.L103:
	mov	edi, 64
	call	my_rand
	test	eax, eax
	jne	.L101
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, 1
	sub	eax, edx
	jmp	.L102
.L101:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
.L102:
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -8[rbp], 1
.L100:
	cmp	DWORD PTR -8[rbp], 127
	jle	.L103
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	get_new_offspring, .-get_new_offspring
	.globl	produce_offspring
	.type	produce_offspring, @function
produce_offspring:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 576
	mov	QWORD PTR -568[rbp], rdi
	mov	DWORD PTR -572[rbp], esi
	mov	DWORD PTR -576[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 20
	call	my_rand
	mov	DWORD PTR -552[rbp], eax
	mov	edi, 20
	call	my_rand
	mov	DWORD PTR -548[rbp], eax
	mov	eax, DWORD PTR -552[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -568[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 9
	mov	rdx, rax
	lea	rax, rules_pop[rip]
	add	rax, rdx
	mov	QWORD PTR -544[rbp], rax
	mov	eax, DWORD PTR -548[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -568[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 9
	mov	rdx, rax
	lea	rax, rules_pop[rip]
	add	rax, rdx
	mov	QWORD PTR -536[rbp], rax
	mov	eax, DWORD PTR -552[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -568[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -552[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -568[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -548[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -568[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -548[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -568[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -548[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -568[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -548[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -568[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -552[rbp]
	cdqe
	lea	rsi, 0[0+rax*8]
	mov	rax, QWORD PTR -568[rbp]
	add	rax, rsi
	mov	esi, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -552[rbp]
	cdqe
	lea	rdi, 0[0+rax*8]
	mov	rax, QWORD PTR -568[rbp]
	add	rax, rdi
	mov	eax, DWORD PTR [rax]
	mov	r8d, DWORD PTR -576[rbp]
	mov	edi, DWORD PTR -572[rbp]
	sub	rsp, 8
	push	QWORD PTR -568[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	edi, eax
	call	save_selected_scores
	add	rsp, 16
	mov	DWORD PTR -560[rbp], 0
	jmp	.L105
.L110:
	mov	rdx, QWORD PTR -568[rbp]
	mov	eax, DWORD PTR -560[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	in_top_rules
	test	eax, eax
	jne	.L112
	lea	rdx, -528[rbp]
	mov	rcx, QWORD PTR -536[rbp]
	mov	rax, QWORD PTR -544[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	get_new_offspring
	mov	DWORD PTR -556[rbp], 0
	jmp	.L108
.L109:
	mov	eax, DWORD PTR -556[rbp]
	cdqe
	mov	eax, DWORD PTR -528[rbp+rax*4]
	mov	edx, DWORD PTR -556[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -560[rbp]
	movsx	rdx, edx
	sal	rdx, 7
	add	rdx, rcx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, rules_pop[rip]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -556[rbp], 1
.L108:
	cmp	DWORD PTR -556[rbp], 127
	jle	.L109
	jmp	.L107
.L112:
	nop
.L107:
	add	DWORD PTR -560[rbp], 1
.L105:
	cmp	DWORD PTR -560[rbp], 99
	jle	.L110
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L111
	call	__stack_chk_fail@PLT
.L111:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	produce_offspring, .-produce_offspring
	.section	.rodata
.LC21:
	.string	"generation: %i\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	mov	eax, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -188[rbp], 0
	jmp	.L114
.L121:
	mov	eax, 0
	call	initialize_rules
	mov	DWORD PTR -200[rbp], 0
	jmp	.L115
.L120:
	mov	eax, 0
	call	gen_init_config
	mov	DWORD PTR -196[rbp], 0
	jmp	.L116
.L117:
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	mov	DWORD PTR -172[rbp+rax*8], 0
	mov	edi, 100
	call	my_rand
	mov	edx, DWORD PTR -196[rbp]
	movsx	rdx, edx
	mov	DWORD PTR -176[rbp+rdx*8], eax
	add	DWORD PTR -196[rbp], 1
.L116:
	cmp	DWORD PTR -196[rbp], 19
	jle	.L117
	mov	edi, 100
	call	my_rand
	mov	DWORD PTR -184[rbp], eax
	mov	DWORD PTR -192[rbp], 0
	jmp	.L118
.L119:
	mov	edx, DWORD PTR -200[rbp]
	mov	ecx, DWORD PTR -184[rbp]
	mov	eax, DWORD PTR -192[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	generate_cas
	mov	DWORD PTR -180[rbp], eax
	lea	rdx, -176[rbp]
	mov	ecx, DWORD PTR -180[rbp]
	mov	eax, DWORD PTR -192[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	top_twenty
	add	DWORD PTR -192[rbp], 1
.L118:
	cmp	DWORD PTR -192[rbp], 99
	jle	.L119
	mov	edx, DWORD PTR -188[rbp]
	mov	eax, DWORD PTR -200[rbp]
	mov	esi, edx
	mov	edi, eax
	call	save_top_ca
	mov	DWORD PTR top_score[rip], 0
	mov	eax, DWORD PTR -200[rbp]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -188[rbp]
	mov	ecx, DWORD PTR -200[rbp]
	lea	rax, -176[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	produce_offspring
	add	DWORD PTR -200[rbp], 1
.L115:
	cmp	DWORD PTR -200[rbp], 99
	jle	.L120
	add	DWORD PTR -188[rbp], 1
.L114:
	cmp	DWORD PTR -188[rbp], 29
	jle	.L121
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L123
	call	__stack_chk_fail@PLT
.L123:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC17:
	.long	0
	.long	1105199104
	.align 8
.LC18:
	.long	0
	.long	1073741824
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"638408.c"
	.text
	.comm	cas,8880400,4
	.comm	rules_pop,51200,4
	.global	top_score
	.bss
	.align	2
	.type	top_score, %object
	.size	top_score, 4
top_score:
	.space	4
	.global	top_target
	.align	2
	.type	top_target, %object
	.size	top_target, 4
top_target:
	.space	4
	.comm	sample_ca,88804,4
	.comm	top_rule,512,4
	.global	top_rule_id
	.align	2
	.type	top_rule_id, %object
	.size	top_rule_id, 4
top_rule_id:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Rule %i: \000"
	.align	2
.LC1:
	.ascii	"%i \000"
	.text
	.align	2
	.global	print_rules_pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_rules_pop, %function
print_rules_pop:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L5:
	ldr	r1, [fp, #-12]
	ldr	r0, .L6
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L3
.L4:
	ldr	r1, .L6+4
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #7
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L6+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #127
	ble	.L4
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #99
	ble	.L5
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	rules_pop
	.word	.LC1
	.size	print_rules_pop, .-print_rules_pop
	.section	.rodata
	.align	2
.LC2:
	.ascii	"a+\000"
	.align	2
.LC3:
	.ascii	"save_ca.txt\000"
	.align	2
.LC4:
	.ascii	"generation %i, rule %i, ic %i, target %i, score %i\012"
	.ascii	"\012\000"
	.align	2
.LC5:
	.ascii	"rule %i: \000"
	.align	2
.LC6:
	.ascii	"%i\000"
	.align	2
.LC7:
	.ascii	"\012\012\000"
	.align	2
.LC8:
	.ascii	"CA saved for gen %i\012\000"
	.text
	.align	2
	.global	save_ca
	.syntax unified
	.arm
	.fpu softvfp
	.type	save_ca, %function
save_ca:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r1, .L15
	ldr	r0, .L15+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #4]
	str	r3, [sp, #8]
	ldr	r3, [fp, #-36]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	ldr	r1, .L15+8
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r2, [fp, #-24]
	ldr	r1, .L15+12
	ldr	r0, [fp, #-8]
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L9
.L10:
	ldr	r1, .L15+16
	ldr	r3, [fp, #-24]
	lsl	r2, r3, #7
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r1, r3, lsl #2]
	mov	r2, r3
	ldr	r1, .L15+20
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L9:
	ldr	r3, [fp, #-12]
	cmp	r3, #127
	ble	.L10
	ldr	r3, [fp, #-8]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L15+24
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L11
.L14:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L12
.L13:
	ldr	r0, .L15+28
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, .L15+32
	mul	r2, r1, r2
	add	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r0, r3, lsl #2]
	mov	r2, r3
	ldr	r1, .L15+20
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L12:
	ldr	r3, [fp, #-16]
	cmp	r3, #148
	ble	.L13
	ldr	r1, [fp, #-8]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L11:
	ldr	r3, [fp, #-20]
	cmp	r3, #148
	ble	.L14
	ldr	r1, [fp, #-8]
	mov	r0, #10
	bl	fputc
	ldr	r0, [fp, #-8]
	bl	fclose
	ldr	r1, [fp, #-28]
	ldr	r0, .L15+36
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	rules_pop
	.word	.LC6
	.word	.LC7
	.word	cas
	.word	22201
	.word	.LC8
	.size	save_ca, .-save_ca
	.section	.rodata
	.align	2
.LC10:
	.ascii	"run%d\000"
	.align	2
.LC11:
	.ascii	"generation %i, rule %i, target %i, score %i\012\012"
	.ascii	"\000"
	.align	2
.LC12:
	.ascii	"top CA saved for gen %i\012\000"
	.align	2
.LC9:
	.ascii	"_top_ca.txt\000"
	.space	13
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	save_top_ca
	.syntax unified
	.arm
	.fpu softvfp
	.type	save_top_ca, %function
save_top_ca:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L25+4
	sub	r3, fp, #64
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	sub	r3, fp, #52
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	strb	r2, [r3, #12]
	sub	r3, fp, #36
	ldr	r2, [fp, #-92]
	ldr	r1, .L25+8
	mov	r0, r3
	bl	sprintf
	sub	r2, fp, #64
	sub	r3, fp, #36
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #36
	ldr	r1, .L25+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-68]
	ldr	r3, .L25+16
	ldr	r1, [r3]
	ldr	r3, .L25+20
	ldr	r3, [r3]
	ldr	r2, .L25+24
	ldr	r2, [r2]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r1
	ldr	r2, [fp, #-88]
	ldr	r1, .L25+28
	ldr	r0, [fp, #-68]
	bl	fprintf
	ldr	r3, .L25+16
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L25+32
	ldr	r0, [fp, #-68]
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L18
.L19:
	ldr	r2, .L25+36
	ldr	r3, [fp, #-72]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r1, .L25+40
	ldr	r0, [fp, #-68]
	bl	fprintf
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L18:
	ldr	r3, [fp, #-72]
	cmp	r3, #127
	ble	.L19
	ldr	r3, [fp, #-68]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L25+44
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L20
.L23:
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L21
.L22:
	ldr	r1, .L25+48
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-76]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	mov	r2, r3
	ldr	r1, .L25+40
	ldr	r0, [fp, #-68]
	bl	fprintf
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L21:
	ldr	r3, [fp, #-76]
	cmp	r3, #148
	ble	.L22
	ldr	r1, [fp, #-68]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L20:
	ldr	r3, [fp, #-80]
	cmp	r3, #148
	ble	.L23
	ldr	r1, [fp, #-68]
	mov	r0, #10
	bl	fputc
	ldr	r0, [fp, #-68]
	bl	fclose
	ldr	r1, [fp, #-88]
	ldr	r0, .L25+52
	bl	printf
	nop
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC13
	.word	.LC9
	.word	.LC10
	.word	.LC2
	.word	top_rule_id
	.word	top_target
	.word	top_score
	.word	.LC11
	.word	.LC5
	.word	top_rule
	.word	.LC6
	.word	.LC7
	.word	sample_ca
	.word	.LC12
	.size	save_top_ca, .-save_top_ca
	.section	.rodata
	.align	2
.LC15:
	.ascii	"generation %i\012\000"
	.align	2
.LC16:
	.ascii	"top rule 1 id: %i, score: %i\012\000"
	.align	2
.LC17:
	.ascii	"top rule 2 id: %i, score: %i\012\000"
	.align	2
.LC18:
	.ascii	"top 20 scores: \000"
	.align	2
.LC19:
	.ascii	"%i, \000"
	.align	2
.LC14:
	.ascii	"_aca_score.txt\000"
	.space	10
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	save_selected_scores
	.syntax unified
	.arm
	.fpu softvfp
	.type	save_selected_scores, %function
save_selected_scores:
	@ args = 12, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	str	r2, [fp, #-88]
	str	r3, [fp, #-92]
	ldr	r3, [fp, #12]
	str	r3, [fp, #-96]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L31+4
	sub	ip, fp, #64
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strh	r3, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r3, #16
	strb	r3, [ip]
	sub	r3, fp, #49
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #36
	ldr	r2, [fp, #8]
	ldr	r1, .L31+8
	mov	r0, r3
	bl	sprintf
	sub	r2, fp, #64
	sub	r3, fp, #36
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #36
	ldr	r1, .L31+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-68]
	ldr	r2, [fp, #4]
	ldr	r1, .L31+16
	ldr	r0, [fp, #-68]
	bl	fprintf
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-80]
	ldr	r1, .L31+20
	ldr	r0, [fp, #-68]
	bl	fprintf
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-88]
	ldr	r1, .L31+24
	ldr	r0, [fp, #-68]
	bl	fprintf
	ldr	r3, [fp, #-68]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L31+28
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L28
.L29:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r1, .L31+32
	ldr	r0, [fp, #-68]
	bl	fprintf
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L28:
	ldr	r3, [fp, #-72]
	cmp	r3, #19
	ble	.L29
	ldr	r3, [fp, #-68]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L31+36
	bl	fwrite
	ldr	r0, [fp, #-68]
	bl	fclose
	nop
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC20
	.word	.LC14
	.word	.LC10
	.word	.LC2
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC7
	.size	save_selected_scores, .-save_selected_scores
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.global	__aeabi_d2iz
	.align	2
	.global	my_rand
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_rand, %function
my_rand:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L35
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L36:
	.align	2
.L35:
	.word	1105199104
	.size	my_rand, .-my_rand
	.global	__aeabi_dadd
	.align	2
	.global	get_rule_index
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_rule_index, %function
get_rule_index:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L38
.L39:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-20]
	rsb	r3, r3, #6
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-16]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L38:
	ldr	r3, [fp, #-20]
	cmp	r3, #6
	ble	.L39
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	get_rule_index, .-get_rule_index
	.section	.rodata
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_next_cell_state
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_next_cell_state, %function
get_next_cell_state:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	str	r3, [fp, #-68]
	ldr	r3, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L42
.L45:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	sub	r3, r3, #3
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bge	.L43
	ldr	r3, [fp, #-44]
	add	r3, r3, #149
	str	r3, [fp, #-44]
.L43:
	ldr	r3, [fp, #-44]
	cmp	r3, #148
	ble	.L44
	ldr	r3, [fp, #-44]
	sub	r3, r3, #149
	str	r3, [fp, #-44]
.L44:
	ldr	r0, .L48+4
	ldr	r2, [fp, #-64]
	ldr	r1, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, .L48+8
	mul	r2, r1, r2
	add	r2, r3, r2
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r0, r3, lsl #2]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-32]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L42:
	ldr	r3, [fp, #-48]
	cmp	r3, #6
	ble	.L45
	sub	r3, fp, #36
	mov	r0, r3
	bl	get_rule_index
	str	r0, [fp, #-40]
	ldr	r1, .L48+12
	ldr	r3, [fp, #-56]
	lsl	r2, r3, #7
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r1, r3, lsl #2]
	ldr	r2, .L48
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC21
	.word	cas
	.word	22201
	.word	rules_pop
	.size	get_next_cell_state, .-get_next_cell_state
	.align	2
	.global	generate_next_ca
	.syntax unified
	.arm
	.fpu softvfp
	.type	generate_next_ca, %function
generate_next_ca:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L51
.L52:
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	get_next_cell_state
	ldr	ip, .L53
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, .L53+4
	mul	r2, r1, r2
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r0, [ip, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L51:
	ldr	r3, [fp, #-8]
	cmp	r3, #148
	ble	.L52
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	cas
	.word	22201
	.size	generate_next_ca, .-generate_next_ca
	.align	2
	.global	count_ones
	.syntax unified
	.arm
	.fpu softvfp
	.type	count_ones, %function
count_ones:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L56
	mov	r0, #10
	bl	putchar
.L56:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L57
.L59:
	ldr	r0, .L62
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, .L62+4
	mul	r2, r1, r2
	add	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r0, r3, lsl #2]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L58
	ldr	r0, .L62
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, .L62+4
	mul	r2, r1, r2
	add	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r0, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L62+8
	bl	printf
.L58:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L57:
	ldr	r3, [fp, #-12]
	cmp	r3, #148
	ble	.L59
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L60
	mov	r0, #10
	bl	putchar
.L60:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L63:
	.align	2
.L62:
	.word	cas
	.word	22201
	.word	.LC6
	.size	count_ones, .-count_ones
	.align	2
	.global	generate_cas
	.syntax unified
	.arm
	.fpu softvfp
	.type	generate_cas, %function
generate_cas:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r0, #2
	bl	my_rand
	mov	r3, r0
	cmp	r3, #0
	bne	.L65
	mov	r3, #99
	b	.L66
.L65:
	mov	r3, #49
.L66:
	str	r3, [fp, #-16]
	mov	r0, #3
	bl	my_rand
	mov	r2, r0
	ldr	r3, [fp, #-16]
	sub	r3, r3, r2
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L67
.L73:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-40]
	bl	count_ones
	mov	r3, r0
	cmp	r3, #74
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L68
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-28]
.L68:
	mov	r3, #1
	str	r3, [fp, #-36]
	b	.L69
.L70:
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-48]
	bl	generate_next_ca
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L69:
	ldr	r3, [fp, #-36]
	cmp	r3, #148
	ble	.L70
	mov	r2, #0
	mov	r1, #148
	ldr	r0, [fp, #-40]
	bl	count_ones
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #149
	bne	.L71
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L71
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L72
.L71:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L72
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L72
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L72:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L67:
	ldr	r3, [fp, #-40]
	cmp	r3, #99
	ble	.L73
	ldr	r3, .L82
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	ble	.L74
	ldr	r2, .L82
	ldr	r3, [fp, #-32]
	str	r3, [r2]
	ldr	r2, .L82+4
	ldr	r3, [fp, #-48]
	str	r3, [r2]
	ldr	r2, .L82+8
	ldr	r3, [fp, #-28]
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L75
.L78:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L76
.L77:
	ldr	r0, .L82+12
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, .L82+16
	mul	r2, r1, r2
	add	r2, r3, r2
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldr	r1, [r0, r3, lsl #2]
	ldr	r0, .L82+20
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-24]
	add	r3, r3, r2
	str	r1, [r0, r3, lsl #2]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L76:
	ldr	r3, [fp, #-24]
	cmp	r3, #148
	ble	.L77
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L75:
	ldr	r3, [fp, #-36]
	cmp	r3, #148
	ble	.L78
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L79
.L80:
	ldr	r1, .L82+24
	ldr	r3, [fp, #-48]
	lsl	r2, r3, #7
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r1, r3, lsl #2]
	ldr	r1, .L82+28
	ldr	r3, [fp, #-20]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L79:
	ldr	r3, [fp, #-20]
	cmp	r3, #127
	ble	.L80
.L74:
	ldr	r3, [fp, #-32]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L83:
	.align	2
.L82:
	.word	top_score
	.word	top_rule_id
	.word	top_target
	.word	cas
	.word	22201
	.word	sample_ca
	.word	rules_pop
	.word	top_rule
	.size	generate_cas, .-generate_cas
	.section	.rodata
	.align	2
.LC22:
	.ascii	"ICs: generated %i initial configurations\012\000"
	.text
	.align	2
	.global	gen_init_config
	.syntax unified
	.arm
	.fpu softvfp
	.type	gen_init_config, %function
gen_init_config:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L85
.L90:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L86
.L89:
	ldr	r3, [fp, #-12]
	rsb	r3, r3, #51
	mov	r0, r3
	bl	my_rand
	mov	r3, r0
	cmp	r3, #0
	bne	.L87
	ldr	r1, .L97
	ldr	r3, [fp, #-12]
	ldr	r2, .L97+4
	mul	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r1, r3, lsl #2]
	b	.L88
.L87:
	ldr	r1, .L97
	ldr	r3, [fp, #-12]
	ldr	r2, .L97+4
	mul	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r1, r3, lsl #2]
.L88:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L86:
	ldr	r3, [fp, #-8]
	cmp	r3, #148
	ble	.L89
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L85:
	ldr	r3, [fp, #-12]
	cmp	r3, #49
	ble	.L90
	mov	r3, #50
	str	r3, [fp, #-12]
	b	.L91
.L96:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L92
.L95:
	ldr	r3, [fp, #-12]
	rsb	r3, r3, #101
	mov	r0, r3
	bl	my_rand
	mov	r3, r0
	cmp	r3, #0
	bne	.L93
	ldr	r1, .L97
	ldr	r3, [fp, #-12]
	ldr	r2, .L97+4
	mul	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r1, r3, lsl #2]
	b	.L94
.L93:
	ldr	r1, .L97
	ldr	r3, [fp, #-12]
	ldr	r2, .L97+4
	mul	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r1, r3, lsl #2]
.L94:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L92:
	ldr	r3, [fp, #-8]
	cmp	r3, #148
	ble	.L95
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L91:
	ldr	r3, [fp, #-12]
	cmp	r3, #99
	ble	.L96
	mov	r1, #100
	ldr	r0, .L97+8
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L98:
	.align	2
.L97:
	.word	cas
	.word	22201
	.word	.LC22
	.size	gen_init_config, .-gen_init_config
	.section	.rodata
	.align	2
.LC23:
	.ascii	"Rules: all %i rules initialized\012\000"
	.text
	.align	2
	.global	initialize_rules
	.syntax unified
	.arm
	.fpu softvfp
	.type	initialize_rules, %function
initialize_rules:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L100
.L103:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L101
.L102:
	mov	r0, #2
	bl	my_rand
	mov	r1, r0
	ldr	r0, .L104
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #7
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r1, [r0, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L101:
	ldr	r3, [fp, #-8]
	cmp	r3, #127
	ble	.L102
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L100:
	ldr	r3, [fp, #-12]
	cmp	r3, #99
	ble	.L103
	mov	r1, #100
	ldr	r0, .L104+4
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L105:
	.align	2
.L104:
	.word	rules_pop
	.word	.LC23
	.size	initialize_rules, .-initialize_rules
	.align	2
	.global	top_twenty
	.syntax unified
	.arm
	.fpu softvfp
	.type	top_twenty, %function
top_twenty:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L107
.L109:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L108
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
.L108:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L107:
	ldr	r3, [fp, #-12]
	cmp	r3, #19
	ble	.L109
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L111
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3, #4]
.L111:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	top_twenty, .-top_twenty
	.align	2
	.global	in_top_rules
	.syntax unified
	.arm
	.fpu softvfp
	.type	in_top_rules, %function
in_top_rules:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L113
.L116:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L114
	mov	r3, #1
	b	.L115
.L114:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L113:
	ldr	r3, [fp, #-8]
	cmp	r3, #19
	ble	.L116
	mov	r3, #0
.L115:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	in_top_rules, .-in_top_rules
	.align	2
	.global	get_new_offspring
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_new_offspring, %function
get_new_offspring:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r0, #128
	bl	my_rand
	str	r0, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L118
.L119:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L118:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L119
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	b	.L120
.L121:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L120:
	ldr	r3, [fp, #-12]
	cmp	r3, #127
	ble	.L121
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L122
.L125:
	mov	r0, #64
	bl	my_rand
	mov	r3, r0
	cmp	r3, #0
	bne	.L123
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	rsb	r3, r3, #1
	b	.L124
.L123:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
.L124:
	ldr	r2, [fp, #-12]
	lsl	r2, r2, #2
	ldr	r1, [fp, #-24]
	add	r2, r1, r2
	str	r3, [r2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L122:
	ldr	r3, [fp, #-12]
	cmp	r3, #127
	ble	.L125
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_new_offspring, .-get_new_offspring
	.section	.rodata
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	produce_offspring
	.syntax unified
	.arm
	.fpu softvfp
	.type	produce_offspring, %function
produce_offspring:
	@ args = 0, pretend = 0, frame = 560
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #576
	str	r0, [fp, #-552]
	str	r1, [fp, #-556]
	str	r2, [fp, #-560]
	ldr	r3, .L135
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #20
	bl	my_rand
	str	r0, [fp, #-536]
	mov	r0, #20
	bl	my_rand
	str	r0, [fp, #-532]
	ldr	r3, [fp, #-536]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-552]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r3, r3, #9
	ldr	r2, .L135+4
	add	r3, r3, r2
	str	r3, [fp, #-528]
	ldr	r3, [fp, #-532]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-552]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r3, r3, #9
	ldr	r2, .L135+4
	add	r3, r3, r2
	str	r3, [fp, #-524]
	ldr	r3, [fp, #-536]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-552]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-536]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-552]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, .L135+8
	bl	printf
	ldr	r3, [fp, #-532]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-552]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-532]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-552]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, .L135+12
	bl	printf
	ldr	r3, [fp, #-536]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-552]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-536]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-552]
	add	r3, r2, r3
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-532]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-552]
	add	r3, r2, r3
	ldr	ip, [r3]
	ldr	r3, [fp, #-532]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-552]
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-552]
	str	r3, [sp, #8]
	ldr	r3, [fp, #-560]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-556]
	str	r3, [sp]
	mov	r3, r2
	mov	r2, ip
	bl	save_selected_scores
	mov	r3, #0
	str	r3, [fp, #-544]
	b	.L127
.L132:
	ldr	r1, [fp, #-552]
	ldr	r0, [fp, #-544]
	bl	in_top_rules
	mov	r3, r0
	cmp	r3, #0
	bne	.L134
	sub	r3, fp, #520
	mov	r2, r3
	ldr	r1, [fp, #-524]
	ldr	r0, [fp, #-528]
	bl	get_new_offspring
	mov	r3, #0
	str	r3, [fp, #-540]
	b	.L130
.L131:
	ldr	r3, [fp, #-540]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-516]
	ldr	r0, .L135+4
	ldr	r3, [fp, #-544]
	lsl	r1, r3, #7
	ldr	r3, [fp, #-540]
	add	r3, r1, r3
	str	r2, [r0, r3, lsl #2]
	ldr	r3, [fp, #-540]
	add	r3, r3, #1
	str	r3, [fp, #-540]
.L130:
	ldr	r3, [fp, #-540]
	cmp	r3, #127
	ble	.L131
	b	.L129
.L134:
	nop
.L129:
	ldr	r3, [fp, #-544]
	add	r3, r3, #1
	str	r3, [fp, #-544]
.L127:
	ldr	r3, [fp, #-544]
	cmp	r3, #99
	ble	.L132
	nop
	ldr	r3, .L135
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L133
	bl	__stack_chk_fail
.L133:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L136:
	.align	2
.L135:
	.word	.LC24
	.word	rules_pop
	.word	.LC16
	.word	.LC17
	.size	produce_offspring, .-produce_offspring
	.section	.rodata
	.align	2
.LC25:
	.ascii	"generation: %i\012\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 192
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #192
	ldr	r3, .L148
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-180]
	b	.L138
.L145:
	bl	initialize_rules
	mov	r3, #0
	str	r3, [fp, #-192]
	b	.L139
.L144:
	bl	gen_init_config
	mov	r3, #0
	str	r3, [fp, #-188]
	b	.L140
.L141:
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-160]
	mov	r0, #100
	bl	my_rand
	mov	r2, r0
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #3
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-164]
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	str	r3, [fp, #-188]
.L140:
	ldr	r3, [fp, #-188]
	cmp	r3, #19
	ble	.L141
	mov	r0, #100
	bl	my_rand
	str	r0, [fp, #-176]
	mov	r3, #0
	str	r3, [fp, #-184]
	b	.L142
.L143:
	ldr	r2, [fp, #-192]
	ldr	r1, [fp, #-176]
	ldr	r0, [fp, #-184]
	bl	generate_cas
	str	r0, [fp, #-172]
	sub	r3, fp, #168
	mov	r2, r3
	ldr	r1, [fp, #-172]
	ldr	r0, [fp, #-184]
	bl	top_twenty
	ldr	r3, [fp, #-184]
	add	r3, r3, #1
	str	r3, [fp, #-184]
.L142:
	ldr	r3, [fp, #-184]
	cmp	r3, #99
	ble	.L143
	ldr	r1, [fp, #-180]
	ldr	r0, [fp, #-192]
	bl	save_top_ca
	ldr	r3, .L148+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, [fp, #-192]
	ldr	r0, .L148+8
	bl	printf
	sub	r3, fp, #168
	ldr	r2, [fp, #-180]
	ldr	r1, [fp, #-192]
	mov	r0, r3
	bl	produce_offspring
	ldr	r3, [fp, #-192]
	add	r3, r3, #1
	str	r3, [fp, #-192]
.L139:
	ldr	r3, [fp, #-192]
	cmp	r3, #99
	ble	.L144
	ldr	r3, [fp, #-180]
	add	r3, r3, #1
	str	r3, [fp, #-180]
.L138:
	ldr	r3, [fp, #-180]
	cmp	r3, #29
	ble	.L145
	mov	r3, #0
	ldr	r2, .L148
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L147
	bl	__stack_chk_fail
.L147:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L149:
	.align	2
.L148:
	.word	.LC26
	.word	top_score
	.word	.LC25
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
