	.file	"872997.c"
	.intel_syntax noprefix
	.text
	.globl	K
	.bss
	.align 4
	.type	K, @object
	.size	K, 4
K:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Uso: ./a.out <arquivos>"
.LC1:
	.string	"r"
.LC2:
	.string	"Nao pode abrir %s.\n"
.LC3:
	.string	"%d"
.LC4:
	.string	"%s.sol"
.LC5:
	.string	"w"
.LC6:
	.string	"Top Down\nLucro Otimo = %d\n"
	.align 8
.LC8:
	.string	"Tempo Total da execucao: %.2f\n"
	.align 8
.LC9:
	.string	"Quantidade de Selecionados: %d\n"
.LC10:
	.string	"Selecionados:\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r12
	push	rbx
	sub	rsp, 288
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	DWORD PTR -260[rbp], edi
	mov	QWORD PTR -272[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -260[rbp], 2
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, rsp
	mov	r12, rax
	mov	rax, QWORD PTR -272[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -240[rbp], rax
	mov	rax, QWORD PTR -240[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -232[rbp], rax
	cmp	QWORD PTR -232[rbp], 0
	jne	.L3
	mov	rax, QWORD PTR -240[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	rdx, -256[rbp]
	mov	rax, QWORD PTR -232[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR -232[rbp]
	lea	rdx, K[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	eax, DWORD PTR -256[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -224[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -288[rbp], rdx
	mov	QWORD PTR -280[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -304[rbp], rdx
	mov	QWORD PTR -296[rbp], 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L4:
	cmp	rsp, rdx
	je	.L5
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L4
.L5:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L6
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L6:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -216[rbp], rax
	mov	eax, DWORD PTR -256[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -208[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -320[rbp], rdx
	mov	QWORD PTR -312[rbp], 0
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L7:
	cmp	rsp, rdx
	je	.L8
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L7
.L8:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L9
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L9:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -200[rbp], rax
	mov	DWORD PTR -252[rbp], 0
	mov	DWORD PTR -248[rbp], 0
	mov	DWORD PTR -244[rbp], 0
	jmp	.L10
.L12:
	lea	rdx, -248[rbp]
	mov	rax, QWORD PTR -232[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	eax, DWORD PTR -244[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -244[rbp], edx
	mov	ecx, DWORD PTR -248[rbp]
	mov	rdx, QWORD PTR -200[rbp]
	cdqe
	mov	DWORD PTR [rdx+rax*4], ecx
.L10:
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L11
	mov	eax, DWORD PTR -256[rbp]
	cmp	DWORD PTR -244[rbp], eax
	jl	.L12
.L11:
	mov	DWORD PTR -244[rbp], 0
	jmp	.L13
.L15:
	lea	rdx, -252[rbp]
	mov	rax, QWORD PTR -232[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	eax, DWORD PTR -244[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -244[rbp], edx
	mov	ecx, DWORD PTR -252[rbp]
	mov	rdx, QWORD PTR -216[rbp]
	cdqe
	mov	DWORD PTR [rdx+rax*4], ecx
.L13:
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L14
	mov	eax, DWORD PTR -256[rbp]
	cmp	DWORD PTR -244[rbp], eax
	jl	.L15
.L14:
	mov	eax, DWORD PTR -256[rbp]
	cdqe
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -192[rbp], rax
	mov	eax, DWORD PTR -256[rbp]
	cdqe
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -184[rbp], rax
	mov	DWORD PTR -252[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -256[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -200[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR K[rip]
	add	eax, edx
	add	eax, 1
	cdqe
	mov	edx, DWORD PTR -252[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -192[rbp]
	lea	rbx, [rcx+rdx]
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -256[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -200[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR K[rip]
	add	eax, edx
	add	eax, 1
	cdqe
	mov	edx, DWORD PTR -252[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -184[rbp]
	lea	rbx, [rcx+rdx]
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -252[rbp]
	add	eax, 1
	mov	DWORD PTR -252[rbp], eax
.L16:
	mov	edx, DWORD PTR -252[rbp]
	mov	eax, DWORD PTR -256[rbp]
	cmp	edx, eax
	jl	.L17
	mov	rdx, QWORD PTR -240[rbp]
	lea	rax, -144[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -144[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -176[rbp], rax
	call	clock@PLT
	mov	QWORD PTR -168[rbp], rax
	mov	eax, DWORD PTR -256[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -200[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR K[rip]
	lea	esi, [rdx+rax]
	mov	eax, DWORD PTR -256[rbp]
	lea	edi, -1[rax]
	mov	r8, QWORD PTR -184[rbp]
	mov	rcx, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR -200[rbp]
	sub	rsp, 8
	push	0
	mov	r9, r8
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, rax
	call	top_down
	add	rsp, 16
	mov	edx, eax
	mov	rax, QWORD PTR -176[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	clock@PLT
	mov	QWORD PTR -160[rbp], rax
	mov	rax, QWORD PTR -160[rbp]
	sub	rax, QWORD PTR -168[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC7[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -152[rbp], xmm0
	mov	rdx, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR -176[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	eax, DWORD PTR -256[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -200[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR K[rip]
	lea	esi, [rdx+rax]
	mov	eax, DWORD PTR -256[rbp]
	lea	edi, -1[rax]
	mov	rdx, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	call	count_picks
	mov	edx, eax
	mov	rax, QWORD PTR -176[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -256[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -200[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR K[rip]
	lea	esi, [rdx+rax]
	mov	eax, DWORD PTR -256[rbp]
	lea	edi, -1[rax]
	mov	rcx, QWORD PTR -176[rbp]
	mov	rdx, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, rax
	call	print_picks
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	DWORD PTR -252[rbp], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -252[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -252[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -252[rbp]
	add	eax, 1
	mov	DWORD PTR -252[rbp], eax
.L18:
	mov	edx, DWORD PTR -252[rbp]
	mov	eax, DWORD PTR -256[rbp]
	cmp	edx, eax
	jl	.L19
	mov	rax, QWORD PTR -192[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rsp, r12
	mov	eax, 0
	mov	rbx, QWORD PTR -40[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	top_down
	.type	top_down, @function
top_down:
.LFB7:
	.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, 72
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	QWORD PTR -48[rbp], rdx
	mov	QWORD PTR -56[rbp], rcx
	mov	QWORD PTR -64[rbp], r8
	mov	QWORD PTR -72[rbp], r9
	mov	DWORD PTR -20[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L23
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	jmp	.L24
.L23:
	cmp	DWORD PTR -36[rbp], 0
	je	.L25
	mov	eax, DWORD PTR K[rip]
	cmp	DWORD PTR -40[rbp], eax
	jge	.L26
.L25:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR K[rip]
	cmp	edx, eax
	jl	.L27
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	jmp	.L24
.L27:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	eax, 0
	jmp	.L24
.L26:
	cmp	DWORD PTR 16[rbp], 0
	je	.L28
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR K[rip]
	cmp	edx, eax
	jl	.L29
.L28:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	ebx, DWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	esi, DWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -36[rbp]
	lea	edi, -1[rdx]
	mov	r9, QWORD PTR -72[rbp]
	mov	r8, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	sub	rsp, 8
	push	rsi
	mov	esi, eax
	call	top_down
	add	rsp, 16
	add	eax, ebx
	mov	DWORD PTR -24[rbp], eax
.L29:
	mov	eax, DWORD PTR -36[rbp]
	lea	edi, -1[rax]
	mov	r9, QWORD PTR -72[rbp]
	mov	r8, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -40[rbp]
	sub	rsp, 8
	mov	esi, DWORD PTR 16[rbp]
	push	rsi
	mov	esi, eax
	call	top_down
	add	rsp, 16
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	cmp	DWORD PTR -20[rbp], eax
	cmovge	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jle	.L30
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	jmp	.L31
.L30:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], -1
.L31:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
.L24:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	top_down, .-top_down
	.globl	count_picks
	.type	count_picks, @function
count_picks:
.LFB8:
	.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	QWORD PTR -40[rbp], rcx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L33
.L35:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L34
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -24[rbp], eax
	sub	DWORD PTR -20[rbp], 1
	jmp	.L33
.L34:
	sub	DWORD PTR -20[rbp], 1
.L33:
	cmp	DWORD PTR -20[rbp], 0
	jns	.L35
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	count_picks, .-count_picks
	.section	.rodata
.LC11:
	.string	"%d\n"
	.text
	.globl	print_picks
	.type	print_picks, @function
print_picks:
.LFB9:
	.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	QWORD PTR -16[rbp], rdx
	mov	QWORD PTR -24[rbp], rcx
	mov	QWORD PTR -32[rbp], r8
	jmp	.L38
.L40:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L39
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -8[rbp], eax
	sub	DWORD PTR -4[rbp], 1
	jmp	.L38
.L39:
	sub	DWORD PTR -4[rbp], 1
.L38:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L40
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	print_picks, .-print_picks
	.section	.rodata
	.align 8
.LC7:
	.long	0
	.long	1093567616
	.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	"872997.c"
	.text
	.comm	K,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Uso: ./a.out <arquivos>\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"Nao pode abrir %s.\012\000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"%s.sol\000"
	.align	2
.LC5:
	.ascii	"w\000"
	.align	2
.LC6:
	.ascii	"Top Down\012Lucro Otimo = %d\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC7:
	.ascii	"Tempo Total da execucao: %.2f\012\000"
	.align	2
.LC8:
	.ascii	"Quantidade de Selecionados: %d\012\000"
	.align	2
.LC9:
	.ascii	"Selecionados:\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 184
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #200
	str	r0, [fp, #-192]
	str	r1, [fp, #-196]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-192]
	cmp	r3, #2
	beq	.L2
	ldr	r0, .L16+4
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	mov	r3, sp
	mov	r5, r3
	ldr	r3, [fp, #-196]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-168]
	ldr	r1, .L16+8
	ldr	r0, [fp, #-168]
	bl	fopen
	str	r0, [fp, #-164]
	ldr	r3, [fp, #-164]
	cmp	r3, #0
	bne	.L3
	ldr	r1, [fp, #-168]
	ldr	r0, .L16+12
	bl	printf
	mov	r0, #1
	bl	exit
.L3:
	sub	r3, fp, #184
	mov	r2, r3
	ldr	r1, .L16+16
	ldr	r0, [fp, #-164]
	bl	__isoc99_fscanf
	ldr	r2, .L16+20
	ldr	r1, .L16+16
	ldr	r0, [fp, #-164]
	bl	__isoc99_fscanf
	ldr	ip, [fp, #-184]
	sub	r3, ip, #1
	str	r3, [fp, #-160]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #16
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-156]
	ldr	ip, [fp, #-184]
	sub	r3, ip, #1
	str	r3, [fp, #-152]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #16
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-148]
	mov	r3, #0
	str	r3, [fp, #-180]
	mov	r3, #0
	str	r3, [fp, #-176]
	mov	r3, #0
	str	r3, [fp, #-172]
	b	.L4
.L6:
	sub	r3, fp, #176
	mov	r2, r3
	ldr	r1, .L16+16
	ldr	r0, [fp, #-164]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-172]
	add	r2, r3, #1
	str	r2, [fp, #-172]
	ldr	r1, [fp, #-176]
	ldr	r2, [fp, #-148]
	str	r1, [r2, r3, lsl #2]
.L4:
	ldr	r0, [fp, #-164]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-184]
	ldr	r2, [fp, #-172]
	cmp	r2, r3
	blt	.L6
.L5:
	mov	r3, #0
	str	r3, [fp, #-172]
	b	.L7
.L9:
	sub	r3, fp, #180
	mov	r2, r3
	ldr	r1, .L16+16
	ldr	r0, [fp, #-164]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-172]
	add	r2, r3, #1
	str	r2, [fp, #-172]
	ldr	r1, [fp, #-180]
	ldr	r2, [fp, #-156]
	str	r1, [r2, r3, lsl #2]
.L7:
	ldr	r0, [fp, #-164]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-184]
	ldr	r2, [fp, #-172]
	cmp	r2, r3
	blt	.L9
.L8:
	ldr	r3, [fp, #-184]
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-144]
	ldr	r3, [fp, #-184]
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-140]
	mov	r3, #0
	str	r3, [fp, #-180]
	b	.L10
.L11:
	ldr	r3, [fp, #-184]
	sub	r2, r3, #1
	ldr	r3, [fp, #-148]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, .L16+20
	ldr	r3, [r3]
	add	r3, r2, r3
	add	r3, r3, #1
	mov	r0, r3
	ldr	r3, [fp, #-180]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-144]
	add	r4, r2, r3
	mov	r1, #4
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-184]
	sub	r2, r3, #1
	ldr	r3, [fp, #-148]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, .L16+20
	ldr	r3, [r3]
	add	r3, r2, r3
	add	r3, r3, #1
	mov	r0, r3
	ldr	r3, [fp, #-180]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r4, r2, r3
	mov	r1, #4
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-180]
	add	r3, r3, #1
	str	r3, [fp, #-180]
.L10:
	ldr	r2, [fp, #-180]
	ldr	r3, [fp, #-184]
	cmp	r2, r3
	blt	.L11
	sub	r3, fp, #116
	ldr	r2, [fp, #-168]
	ldr	r1, .L16+24
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #116
	ldr	r1, .L16+28
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-136]
	bl	clock
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-184]
	sub	r0, r3, #1
	ldr	r3, [fp, #-184]
	sub	r2, r3, #1
	ldr	r3, [fp, #-148]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, .L16+20
	ldr	r3, [r3]
	add	r1, r2, r3
	mov	r3, #0
	str	r3, [sp, #8]
	ldr	r3, [fp, #-140]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-144]
	str	r3, [sp]
	ldr	r3, [fp, #-156]
	ldr	r2, [fp, #-148]
	bl	top_down
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L16+32
	ldr	r0, [fp, #-136]
	bl	fprintf
	bl	clock
	str	r0, [fp, #-128]
	ldr	r2, [fp, #-128]
	ldr	r3, [fp, #-132]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L16+36
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-124]
	str	r3, [fp, #-120]
	sub	r3, fp, #124
	ldmia	r3, {r2-r3}
	ldr	r1, .L16+40
	ldr	r0, [fp, #-136]
	bl	fprintf
	ldr	r3, [fp, #-184]
	sub	r0, r3, #1
	ldr	r3, [fp, #-184]
	sub	r2, r3, #1
	ldr	r3, [fp, #-148]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, .L16+20
	ldr	r3, [r3]
	add	r1, r2, r3
	ldr	r3, [fp, #-140]
	ldr	r2, [fp, #-148]
	bl	count_picks
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L16+44
	ldr	r0, [fp, #-136]
	bl	fprintf
	ldr	r3, [fp, #-136]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L16+48
	bl	fwrite
	ldr	r3, [fp, #-184]
	sub	r0, r3, #1
	ldr	r3, [fp, #-184]
	sub	r2, r3, #1
	ldr	r3, [fp, #-148]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, .L16+20
	ldr	r3, [r3]
	add	r1, r2, r3
	ldr	r3, [fp, #-136]
	str	r3, [sp]
	ldr	r3, [fp, #-140]
	ldr	r2, [fp, #-148]
	bl	print_picks
	ldr	r0, [fp, #-164]
	bl	fclose
	ldr	r0, [fp, #-136]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-180]
	b	.L12
.L13:
	ldr	r3, [fp, #-180]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-144]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-180]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-180]
	add	r3, r3, #1
	str	r3, [fp, #-180]
.L12:
	ldr	r2, [fp, #-180]
	ldr	r3, [fp, #-184]
	cmp	r2, r3
	blt	.L13
	ldr	r0, [fp, #-144]
	bl	free
	ldr	r0, [fp, #-140]
	bl	free
	mov	sp, r5
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	K
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	1093567616
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.align	2
	.global	top_down
	.syntax unified
	.arm
	.fpu softvfp
	.type	top_down, %function
top_down:
	@ args = 12, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	b	.L20
.L19:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L21
	ldr	r3, .L28
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bge	.L22
.L21:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	sub	r2, r2, r3
	ldr	r3, .L28
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L23
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-36]
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	b	.L20
.L23:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	b	.L20
.L22:
	ldr	r3, [fp, #12]
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	sub	r2, r2, r3
	ldr	r3, .L28
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L25
.L24:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r4, [r3]
	ldr	r3, [fp, #-24]
	sub	r0, r3, #1
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [sp, #8]
	ldr	r3, [fp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	bl	top_down
	mov	r3, r0
	add	r3, r4, r3
	str	r3, [fp, #-20]
.L25:
	ldr	r3, [fp, #-24]
	sub	r0, r3, #1
	ldr	r3, [fp, #12]
	str	r3, [sp, #8]
	ldr	r3, [fp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	bl	top_down
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r1, r2, r3
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	str	r3, [r1]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	ble	.L26
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	b	.L27
.L26:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
.L27:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
.L20:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L29:
	.align	2
.L28:
	.word	K
	.size	top_down, .-top_down
	.align	2
	.global	count_picks
	.syntax unified
	.arm
	.fpu softvfp
	.type	count_picks, %function
count_picks:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L31
.L33:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L32
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L31
.L32:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L31:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L33
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	count_picks, .-count_picks
	.section	.rodata
	.align	2
.LC11:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	print_picks
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_picks, %function
print_picks:
	@ args = 4, 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	b	.L36
.L38:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L37
	ldr	r2, [fp, #-8]
	ldr	r1, .L39
	ldr	r0, [fp, #4]
	bl	fprintf
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L36
.L37:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L36:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L38
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC11
	.size	print_picks, .-print_picks
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
