	.file	"88735.c"
	.intel_syntax noprefix
	.text
	.globl	geracaoAtual
	.bss
	.align 8
	.type	geracaoAtual, @object
	.size	geracaoAtual, 8
geracaoAtual:
	.zero	8
	.globl	proximaGeracao
	.align 8
	.type	proximaGeracao, @object
	.size	proximaGeracao, 8
proximaGeracao:
	.zero	8
	.globl	organismoFitnesses
	.align 8
	.type	organismoFitnesses, @object
	.size	organismoFitnesses, 8
organismoFitnesses:
	.zero	8
	.globl	organismoFitnessesProx
	.align 8
	.type	organismoFitnessesProx, @object
	.size	organismoFitnessesProx, 8
organismoFitnessesProx:
	.zero	8
	.globl	itens
	.align 8
	.type	itens, @object
	.size	itens, 8
itens:
	.zero	8
	.globl	totalFitnesses
	.align 4
	.type	totalFitnesses, @object
	.size	totalFitnesses, 4
totalFitnesses:
	.zero	4
	.globl	numGenes
	.align 4
	.type	numGenes, @object
	.size	numGenes, 4
numGenes:
	.zero	4
	.globl	tamMochila
	.align 4
	.type	tamMochila, @object
	.size	tamMochila, 4
tamMochila:
	.zero	4
	.section	.rodata
.LC0:
	.string	" P = %d V = %d\n"
	.text
	.globl	imprimirAtual
	.type	imprimirAtual, @function
imprimirAtual:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	rdx, QWORD PTR geracaoAtual[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rcx, QWORD PTR geracaoAtual[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L3
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	imprimirAtual, .-imprimirAtual
	.globl	imprimirProx
	.type	imprimirProx, @function
imprimirProx:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L5
.L6:
	mov	rdx, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rcx, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L5:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L6
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	imprimirProx, .-imprimirProx
	.globl	compara
	.type	compara, @function
compara:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	add	rax, 1
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	je	.L8
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR numGenes[rip]
	movsx	rdx, edx
	add	rdx, 1
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -16[rbp]
	add	rdx, rcx
	mov	edx, DWORD PTR [rdx]
	sub	eax, edx
	jmp	.L9
.L8:
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR numGenes[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -16[rbp]
	add	rdx, rcx
	mov	edx, DWORD PTR [rdx]
	sub	eax, edx
.L9:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	compara, .-compara
	.section	.rodata
.LC1:
	.string	"%d %d"
.LC2:
	.string	"Erro na Alocacao 1"
.LC3:
	.string	"Erro na Alocacao 2"
.LC4:
	.string	"Erro na Alocacao 3"
.LC5:
	.string	"Erro na Alocacao 4"
.LC6:
	.string	"Erro na Alocacao 5"
.LC7:
	.string	"Erro na Alocacao 6"
	.text
	.globl	alocarMemoria
	.type	alocarMemoria, @function
alocarMemoria:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	lea	rdx, tamMochila[rip]
	lea	rsi, numGenes[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edi, 800
	call	malloc@PLT
	mov	QWORD PTR geracaoAtual[rip], rax
	mov	rax, QWORD PTR geracaoAtual[rip]
	test	rax, rax
	jne	.L11
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L11:
	mov	edi, 800
	call	malloc@PLT
	mov	QWORD PTR proximaGeracao[rip], rax
	mov	rax, QWORD PTR proximaGeracao[rip]
	test	rax, rax
	jne	.L12
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L12:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L13
.L16:
	mov	eax, DWORD PTR numGenes[rip]
	add	eax, 2
	cdqe
	sal	rax, 2
	mov	rcx, QWORD PTR geracaoAtual[rip]
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rdx, QWORD PTR geracaoAtual[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L14
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L14:
	mov	eax, DWORD PTR numGenes[rip]
	add	eax, 2
	cdqe
	sal	rax, 2
	mov	rcx, QWORD PTR proximaGeracao[rip]
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rdx, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L15
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L15:
	add	DWORD PTR -24[rbp], 1
.L13:
	cmp	DWORD PTR -24[rbp], 99
	jle	.L16
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR itens[rip], rax
	mov	rax, QWORD PTR itens[rip]
	test	rax, rax
	jne	.L17
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L17:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L18
.L20:
	mov	rdx, QWORD PTR itens[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	lea	rbx, [rdx+rax]
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR itens[rip]
	test	rax, rax
	jne	.L19
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L19:
	mov	rdx, QWORD PTR itens[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR itens[rip]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rdx, QWORD PTR [rdx]
	lea	rcx, 4[rdx]
	mov	rdx, rax
	mov	rsi, rcx
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -20[rbp], 1
.L18:
	mov	eax, DWORD PTR numGenes[rip]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L20
	nop
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	alocarMemoria, .-alocarMemoria
	.globl	iniciarOrganismos
	.type	iniciarOrganismos, @function
iniciarOrganismos:
.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 -8[rbp], 0
	jmp	.L22
.L26:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L23
.L25:
	call	rand@PLT
	mov	rcx, QWORD PTR geracaoAtual[rip]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	ecx, eax
	sar	ecx, 31
	shr	ecx, 31
	add	eax, ecx
	and	eax, 1
	sub	eax, ecx
	mov	DWORD PTR [rdx], eax
	mov	rdx, QWORD PTR geracaoAtual[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rcx, QWORD PTR itens[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	add	edx, eax
	mov	eax, DWORD PTR tamMochila[rip]
	cmp	edx, eax
	jle	.L24
	mov	rdx, QWORD PTR geracaoAtual[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
.L24:
	mov	rdx, QWORD PTR geracaoAtual[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR geracaoAtual[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rsi, QWORD PTR itens[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	imul	edx, eax
	mov	rsi, QWORD PTR geracaoAtual[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	sal	rax, 2
	add	rax, rsi
	add	edx, ecx
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR geracaoAtual[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR geracaoAtual[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rsi, QWORD PTR itens[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	rax, QWORD PTR [rax]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	imul	edx, eax
	mov	rsi, QWORD PTR geracaoAtual[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rsi
	add	edx, ecx
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -4[rbp], 1
.L23:
	mov	eax, DWORD PTR numGenes[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L25
	add	DWORD PTR -8[rbp], 1
.L22:
	cmp	DWORD PTR -8[rbp], 99
	jle	.L26
	mov	rax, QWORD PTR geracaoAtual[rip]
	lea	rcx, compara[rip]
	mov	edx, 8
	mov	esi, 100
	mov	rdi, rax
	call	qsort@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	iniciarOrganismos, .-iniciarOrganismos
	.globl	produzirProximaGeracao
	.type	produzirProximaGeracao, @function
produzirProximaGeracao:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, eax, 50
	mov	DWORD PTR -20[rbp], eax
	jmp	.L28
.L36:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -12[rbp], edx
	mov	edx, DWORD PTR -12[rbp]
	imul	edx, edx, 100
	sub	eax, edx
	mov	DWORD PTR -12[rbp], eax
.L29:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -8[rbp], edx
	mov	edx, DWORD PTR -8[rbp]
	imul	edx, edx, 100
	sub	eax, edx
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	je	.L29
	call	rand@PLT
	mov	edx, DWORD PTR numGenes[rip]
	lea	ecx, -30[rdx]
	cdq
	idiv	ecx
	mov	eax, edx
	add	eax, 15
	mov	DWORD PTR -4[rbp], eax
	mov	rdx, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	DWORD PTR -16[rbp], 0
	jmp	.L30
.L33:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jge	.L31
	mov	rdx, QWORD PTR geracaoAtual[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rcx, QWORD PTR proximaGeracao[rip]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	jmp	.L32
.L31:
	mov	rdx, QWORD PTR geracaoAtual[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rcx, QWORD PTR proximaGeracao[rip]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
.L32:
	mov	rdx, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rsi, QWORD PTR itens[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	imul	edx, eax
	mov	rsi, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	sal	rax, 2
	add	rax, rsi
	add	edx, ecx
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rsi, QWORD PTR itens[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	rax, QWORD PTR [rax]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	imul	edx, eax
	mov	rsi, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rsi
	add	edx, ecx
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -16[rbp], 1
.L30:
	mov	eax, DWORD PTR numGenes[rip]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L33
	call	rand@PLT
	mov	ecx, DWORD PTR numGenes[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -16[rbp], edx
	call	rand@PLT
	mov	ecx, eax
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 3
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 2
	sub	ecx, eax
	mov	edx, ecx
	test	edx, edx
	jne	.L34
	mov	rdx, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	sete	cl
	mov	rdx, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	movzx	eax, cl
	mov	DWORD PTR [rdx], eax
	mov	rdx, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rsi, QWORD PTR itens[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	imul	edx, eax
	mov	rsi, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	sal	rax, 2
	add	rax, rsi
	add	edx, ecx
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rsi, QWORD PTR itens[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	rax, QWORD PTR [rax]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	imul	edx, eax
	mov	rsi, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rsi
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rsi
	add	edx, ecx
	mov	DWORD PTR [rax], edx
.L34:
	mov	rdx, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR tamMochila[rip]
	cmp	edx, eax
	jle	.L35
	mov	rdx, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], -1
.L35:
	add	DWORD PTR -20[rbp], 1
.L28:
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1
	imul	eax, eax, 50
	cmp	DWORD PTR -20[rbp], eax
	jl	.L36
	mov	rax, QWORD PTR proximaGeracao[rip]
	lea	rcx, compara[rip]
	mov	edx, 8
	mov	esi, 100
	mov	rdi, rax
	call	qsort@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	produzirProximaGeracao, .-produzirProximaGeracao
	.globl	selecionarOrganismo
	.type	selecionarOrganismo, @function
selecionarOrganismo:
.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, 32
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -24[rbp], 99
	jmp	.L38
.L44:
	mov	rdx, QWORD PTR geracaoAtual[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rcx, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jge	.L39
	mov	rdx, QWORD PTR geracaoAtual[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 1
	mov	DWORD PTR -16[rbp], 0
	jmp	.L40
.L43:
	mov	rdx, QWORD PTR geracaoAtual[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rcx, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jne	.L41
	mov	rdx, QWORD PTR geracaoAtual[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rcx, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR numGenes[rip]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jne	.L41
	mov	DWORD PTR -12[rbp], 0
	jmp	.L42
.L41:
	add	DWORD PTR -16[rbp], 1
.L40:
	cmp	DWORD PTR -16[rbp], 99
	jle	.L43
.L42:
	cmp	DWORD PTR -12[rbp], 0
	je	.L39
	mov	rdx, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rcx, QWORD PTR geracaoAtual[rip]
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	mov	rdx, QWORD PTR proximaGeracao[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	add	DWORD PTR -20[rbp], 1
.L39:
	sub	DWORD PTR -24[rbp], 1
.L38:
	cmp	DWORD PTR -24[rbp], 0
	jns	.L44
	mov	rax, QWORD PTR geracaoAtual[rip]
	lea	rcx, compara[rip]
	mov	edx, 8
	mov	esi, 100
	mov	rdi, rax
	call	qsort@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	selecionarOrganismo, .-selecionarOrganismo
	.globl	avaliarOrganismos
	.type	avaliarOrganismos, @function
avaliarOrganismos:
.LFB13:
	.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 totalFitnesses[rip], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L46
.L49:
	mov	DWORD PTR -4[rbp], 0
	mov	edx, DWORD PTR totalFitnesses[rip]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	mov	DWORD PTR totalFitnesses[rip], eax
	mov	eax, DWORD PTR numGenes[rip]
	cmp	DWORD PTR -4[rbp], eax
	jne	.L47
	mov	eax, 1
	jmp	.L48
.L47:
	add	DWORD PTR -8[rbp], 1
.L46:
	cmp	DWORD PTR -8[rbp], 99
	jle	.L49
	mov	eax, 0
.L48:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	avaliarOrganismos, .-avaliarOrganismos
	.globl	threadProduzirProximaGeracao
	.type	threadProduzirProximaGeracao, @function
threadProduzirProximaGeracao:
.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	produzirProximaGeracao
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE14:
	.size	threadProduzirProximaGeracao, .-threadProduzirProximaGeracao
	.section	.rodata
	.align 8
.LC8:
	.string	"ERROR; return code from pthread_create() is %d\n"
	.align 8
.LC9:
	.string	"ERROR; return code from pthread_join() is %d\n"
.LC10:
	.string	"=== GERACAO %d ===\n"
	.text
	.globl	fazerExecucao
	.type	fazerExecucao, @function
fazerExecucao:
.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, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -100[rbp], 1
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	lea	rax, -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_attr_setdetachstate@PLT
	call	iniciarOrganismos
	mov	edi, 100
	call	imprimirAtual
	jmp	.L52
.L59:
	mov	DWORD PTR -96[rbp], 0
	jmp	.L53
.L55:
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	mov	edx, DWORD PTR -96[rbp]
	mov	DWORD PTR -88[rbp+rax*4], edx
	lea	rdx, -88[rbp]
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	lea	rcx, -80[rbp]
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	sal	rax, 3
	lea	rdi, [rcx+rax]
	lea	rax, -64[rbp]
	mov	rcx, rdx
	lea	rdx, threadProduzirProximaGeracao[rip]
	mov	rsi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 0
	je	.L54
	mov	eax, DWORD PTR -92[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L54:
	add	DWORD PTR -96[rbp], 1
.L53:
	cmp	DWORD PTR -96[rbp], 1
	jle	.L55
	mov	DWORD PTR -96[rbp], 0
	jmp	.L56
.L58:
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	mov	rax, QWORD PTR -80[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 0
	je	.L57
	mov	eax, DWORD PTR -92[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L57:
	add	DWORD PTR -96[rbp], 1
.L56:
	cmp	DWORD PTR -96[rbp], 1
	jle	.L58
	call	selecionarOrganismo
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	imprimirAtual
	mov	edi, 0
	call	imprimirProx
	add	DWORD PTR -100[rbp], 1
.L52:
	cmp	DWORD PTR -100[rbp], 99
	jle	.L59
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_attr_destroy@PLT
	mov	eax, DWORD PTR -100[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	fazerExecucao, .-fazerExecucao
	.globl	main
	.type	main, @function
main:
.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 -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	call	alocarMemoria
	call	fazerExecucao
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	main, .-main
	.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	"88735.c"
	.text
	.comm	geracaoAtual,4,4
	.comm	proximaGeracao,4,4
	.comm	organismoFitnesses,4,4
	.comm	organismoFitnessesProx,4,4
	.comm	itens,4,4
	.comm	totalFitnesses,4,4
	.comm	numGenes,4,4
	.comm	tamMochila,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	" P = %d V = %d\012\000"
	.text
	.align	2
	.global	imprimirAtual
	.syntax unified
	.arm
	.fpu softvfp
	.type	imprimirAtual, %function
imprimirAtual:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, .L4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L4+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, .L4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L4+4
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L4+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L3
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	geracaoAtual
	.word	numGenes
	.word	.LC0
	.size	imprimirAtual, .-imprimirAtual
	.align	2
	.global	imprimirProx
	.syntax unified
	.arm
	.fpu softvfp
	.type	imprimirProx, %function
imprimirProx:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L7
.L8:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L9+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L8
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	proximaGeracao
	.word	numGenes
	.word	.LC0
	.size	imprimirProx, .-imprimirProx
	.align	2
	.global	compara
	.syntax unified
	.arm
	.fpu softvfp
	.type	compara, %function
compara:
	@ 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]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L14
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L14
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r1, [fp, #-8]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L12
	ldr	r3, .L14
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L14
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r1, [fp, #-12]
	add	r3, r1, r3
	ldr	r3, [r3]
	sub	r3, r2, r3
	b	.L13
.L12:
	ldr	r3, .L14
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L14
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-12]
	add	r3, r1, r3
	ldr	r3, [r3]
	sub	r3, r2, r3
.L13:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L15:
	.align	2
.L14:
	.word	numGenes
	.size	compara, .-compara
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d %d\000"
	.align	2
.LC2:
	.ascii	"Erro na Alocacao 1\000"
	.align	2
.LC3:
	.ascii	"Erro na Alocacao 2\000"
	.align	2
.LC4:
	.ascii	"Erro na Alocacao 3\000"
	.align	2
.LC5:
	.ascii	"Erro na Alocacao 4\000"
	.align	2
.LC6:
	.ascii	"Erro na Alocacao 5\000"
	.align	2
.LC7:
	.ascii	"Erro na Alocacao 6\000"
	.text
	.align	2
	.global	alocarMemoria
	.syntax unified
	.arm
	.fpu softvfp
	.type	alocarMemoria, %function
alocarMemoria:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	ldr	r2, .L27
	ldr	r1, .L27+4
	ldr	r0, .L27+8
	bl	__isoc99_scanf
	mov	r0, #400
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L27+12
	str	r2, [r3]
	ldr	r3, .L27+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L17
	ldr	r0, .L27+16
	bl	puts
	mvn	r0, #0
	bl	exit
.L17:
	mov	r0, #400
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L27+20
	str	r2, [r3]
	ldr	r3, .L27+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L18
	ldr	r0, .L27+24
	bl	puts
	mvn	r0, #0
	bl	exit
.L18:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L19
.L22:
	ldr	r3, .L27+4
	ldr	r3, [r3]
	add	r3, r3, #2
	lsl	r1, r3, #2
	ldr	r3, .L27+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L27+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L20
	ldr	r0, .L27+28
	bl	puts
	mvn	r0, #0
	bl	exit
.L20:
	ldr	r3, .L27+4
	ldr	r3, [r3]
	add	r3, r3, #2
	lsl	r1, r3, #2
	ldr	r3, .L27+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L27+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L21
	ldr	r0, .L27+32
	bl	puts
	mvn	r0, #0
	bl	exit
.L21:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L19:
	ldr	r3, [fp, #-20]
	cmp	r3, #99
	ble	.L22
	ldr	r3, .L27+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L27+36
	str	r2, [r3]
	ldr	r3, .L27+36
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L23
	ldr	r0, .L27+40
	bl	puts
	mvn	r0, #0
	bl	exit
.L23:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L24
.L26:
	ldr	r3, .L27+36
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L27+36
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L25
	ldr	r0, .L27+44
	bl	puts
	mvn	r0, #0
	bl	exit
.L25:
	ldr	r3, .L27+36
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r1, r3, #4
	ldr	r3, .L27+36
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L27+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L24:
	ldr	r3, .L27+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L26
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L28:
	.align	2
.L27:
	.word	tamMochila
	.word	numGenes
	.word	.LC1
	.word	geracaoAtual
	.word	.LC2
	.word	proximaGeracao
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	itens
	.word	.LC6
	.word	.LC7
	.size	alocarMemoria, .-alocarMemoria
	.align	2
	.global	iniciarOrganismos
	.syntax unified
	.arm
	.fpu softvfp
	.type	iniciarOrganismos, %function
iniciarOrganismos:
	@ 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	.L30
.L34:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L31
.L33:
	bl	rand
	mov	r3, r0
	ldr	r2, .L35
	ldr	r1, [r2]
	ldr	r2, [fp, #-12]
	lsl	r2, r2, #2
	add	r2, r1, r2
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	lsl	r2, r2, #2
	add	r2, r1, r2
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	str	r3, [r2]
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L35+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L35+8
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r2, r2, r3
	ldr	r3, .L35+12
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L32
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
.L32:
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L35+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L35+8
	ldr	r0, [r2]
	ldr	r2, [fp, #-8]
	lsl	r2, r2, #2
	add	r2, r0, r2
	ldr	r2, [r2]
	ldr	r2, [r2]
	mul	r2, r3, r2
	ldr	r3, .L35
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r0, [r3]
	ldr	r3, .L35+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L35+4
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L35+8
	ldr	r0, [r2]
	ldr	r2, [fp, #-8]
	lsl	r2, r2, #2
	add	r2, r0, r2
	ldr	r2, [r2]
	add	r2, r2, #4
	ldr	r2, [r2]
	mul	r2, r3, r2
	ldr	r3, .L35
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r0, [r3]
	ldr	r3, .L35+4
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L31:
	ldr	r3, .L35+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L33
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L30:
	ldr	r3, [fp, #-12]
	cmp	r3, #99
	ble	.L34
	ldr	r3, .L35
	ldr	r0, [r3]
	ldr	r3, .L35+16
	mov	r2, #4
	mov	r1, #100
	bl	qsort
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	geracaoAtual
	.word	numGenes
	.word	itens
	.word	tamMochila
	.word	compara
	.size	iniciarOrganismos, .-iniciarOrganismos
	.global	__aeabi_idivmod
	.align	2
	.global	produzirProximaGeracao
	.syntax unified
	.arm
	.fpu softvfp
	.type	produzirProximaGeracao, %function
produzirProximaGeracao:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L38
.L46:
	bl	rand
	mov	r2, r0
	ldr	r3, .L47
	smull	r1, r3, r2, r3
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r3, r2, r3
	str	r3, [fp, #-16]
.L39:
	bl	rand
	mov	r2, r0
	ldr	r3, .L47
	smull	r1, r3, r2, r3
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	beq	.L39
	bl	rand
	mov	r2, r0
	ldr	r3, .L47+4
	ldr	r3, [r3]
	sub	r3, r3, #30
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	add	r3, r3, #15
	str	r3, [fp, #-8]
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L47+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L47+4
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L40
.L43:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L41
	ldr	r3, .L47+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L47+8
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	b	.L42
.L41:
	ldr	r3, .L47+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L47+8
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
.L42:
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L47+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L47+16
	ldr	r0, [r2]
	ldr	r2, [fp, #-20]
	lsl	r2, r2, #2
	add	r2, r0, r2
	ldr	r2, [r2]
	ldr	r2, [r2]
	mul	r2, r3, r2
	ldr	r3, .L47+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r0, [r3]
	ldr	r3, .L47+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L47+4
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L47+16
	ldr	r0, [r2]
	ldr	r2, [fp, #-20]
	lsl	r2, r2, #2
	add	r2, r0, r2
	ldr	r2, [r2]
	add	r2, r2, #4
	ldr	r2, [r2]
	mul	r2, r3, r2
	ldr	r3, .L47+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r0, [r3]
	ldr	r3, .L47+4
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L40:
	ldr	r3, .L47+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L43
	bl	rand
	mov	r2, r0
	ldr	r3, .L47+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-20]
	bl	rand
	mov	r1, r0
	ldr	r3, .L47+20
	smull	r2, r3, r1, r3
	asr	r2, r3, #3
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L44
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r1, r3, #255
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L47+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L47+16
	ldr	r0, [r2]
	ldr	r2, [fp, #-20]
	lsl	r2, r2, #2
	add	r2, r0, r2
	ldr	r2, [r2]
	ldr	r2, [r2]
	mul	r2, r3, r2
	ldr	r3, .L47+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r0, [r3]
	ldr	r3, .L47+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L47+4
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L47+16
	ldr	r0, [r2]
	ldr	r2, [fp, #-20]
	lsl	r2, r2, #2
	add	r2, r0, r2
	ldr	r2, [r2]
	add	r2, r2, #4
	ldr	r2, [r2]
	mul	r2, r3, r2
	ldr	r3, .L47+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r0, [r3]
	ldr	r3, .L47+4
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
.L44:
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L47+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L47+24
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L45
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L47+4
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
.L45:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L38:
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	cmp	r3, r2
	blt	.L46
	ldr	r3, .L47+8
	ldr	r0, [r3]
	ldr	r3, .L47+28
	mov	r2, #4
	mov	r1, #100
	bl	qsort
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	1374389535
	.word	numGenes
	.word	proximaGeracao
	.word	geracaoAtual
	.word	itens
	.word	1717986919
	.word	tamMochila
	.word	compara
	.size	produzirProximaGeracao, .-produzirProximaGeracao
	.align	2
	.global	selecionarOrganismo
	.syntax unified
	.arm
	.fpu softvfp
	.type	selecionarOrganismo, %function
selecionarOrganismo:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #99
	str	r3, [fp, #-24]
	b	.L50
.L56:
	ldr	r3, .L57
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L57+4
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L57+8
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, .L57+4
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L51
	ldr	r3, .L57
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3, #1
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L52
.L55:
	ldr	r3, .L57
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L57+4
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L57+8
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, .L57+4
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L53
	ldr	r3, .L57
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L57+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L57+8
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, .L57+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L53
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L54
.L53:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L52:
	ldr	r3, [fp, #-16]
	cmp	r3, #99
	ble	.L55
.L54:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L51
	ldr	r3, .L57+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L57
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, .L57+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L51:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
.L50:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L56
	ldr	r3, .L57
	ldr	r0, [r3]
	ldr	r3, .L57+12
	mov	r2, #4
	mov	r1, #100
	bl	qsort
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	geracaoAtual
	.word	numGenes
	.word	proximaGeracao
	.word	compara
	.size	selecionarOrganismo, .-selecionarOrganismo
	.align	2
	.global	avaliarOrganismos
	.syntax unified
	.arm
	.fpu softvfp
	.type	avaliarOrganismos, %function
avaliarOrganismos:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	ldr	r3, .L64
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L60
.L63:
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L64
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L64
	str	r3, [r2]
	ldr	r3, .L64+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L61
	mov	r3, #1
	b	.L62
.L61:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L60:
	ldr	r3, [fp, #-12]
	cmp	r3, #99
	ble	.L63
	mov	r3, #0
.L62:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L65:
	.align	2
.L64:
	.word	totalFitnesses
	.word	numGenes
	.size	avaliarOrganismos, .-avaliarOrganismos
	.align	2
	.global	threadProduzirProximaGeracao
	.syntax unified
	.arm
	.fpu softvfp
	.type	threadProduzirProximaGeracao, %function
threadProduzirProximaGeracao:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	produzirProximaGeracao
	mov	r0, #0
	bl	pthread_exit
	.size	threadProduzirProximaGeracao, .-threadProduzirProximaGeracao
	.section	.rodata
	.align	2
.LC8:
	.ascii	"ERROR; return code from pthread_create() is %d\012\000"
	.align	2
.LC9:
	.ascii	"ERROR; return code from pthread_join() is %d\012\000"
	.align	2
.LC10:
	.ascii	"=== GERACAO %d ===\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fazerExecucao
	.syntax unified
	.arm
	.fpu softvfp
	.type	fazerExecucao, %function
fazerExecucao:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	ldr	r3, .L78
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-72]
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_init
	sub	r3, fp, #44
	mov	r1, #0
	mov	r0, r3
	bl	pthread_attr_setdetachstate
	bl	iniciarOrganismos
	mov	r0, #100
	bl	imprimirAtual
	b	.L68
.L75:
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L69
.L71:
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-68]
	str	r2, [r3, #-56]
	sub	r2, fp, #52
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	add	r0, r2, r3
	sub	r2, fp, #60
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	add	r3, r2, r3
	sub	r1, fp, #44
	ldr	r2, .L78+4
	bl	pthread_create
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L70
	ldr	r1, [fp, #-64]
	ldr	r0, .L78+8
	bl	printf
	mvn	r0, #0
	bl	exit
.L70:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L69:
	ldr	r3, [fp, #-68]
	cmp	r3, #1
	ble	.L71
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L72
.L74:
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-48]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L73
	ldr	r1, [fp, #-64]
	ldr	r0, .L78+12
	bl	printf
	mvn	r0, #0
	bl	exit
.L73:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L72:
	ldr	r3, [fp, #-68]
	cmp	r3, #1
	ble	.L74
	bl	selecionarOrganismo
	ldr	r1, [fp, #-72]
	ldr	r0, .L78+16
	bl	printf
	mov	r0, #1
	bl	imprimirAtual
	mov	r0, #0
	bl	imprimirProx
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L68:
	ldr	r3, [fp, #-72]
	cmp	r3, #99
	ble	.L75
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_destroy
	ldr	r3, [fp, #-72]
	ldr	r2, .L78
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L77
	bl	__stack_chk_fail
.L77:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L79:
	.align	2
.L78:
	.word	.LC11
	.word	threadProduzirProximaGeracao
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	fazerExecucao, .-fazerExecucao
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	alocarMemoria
	bl	fazerExecucao
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
