// File: /workspace/github_c_makefile_star2_O0/ToniWestbrook[P]paladin/uniprot.c
// Function: addUniprotList
int addUniprotList(worker_t * passWorker, int passSize, int passFull) {
	int entryIdx, alnIdx, addPriIdx, addSecIdx, parseIdx;
	int refID, alignType, primaryCount, totalAlign, entryQuality;
	UniprotList * globalLists;
	int * globalCount, * currentIdx;
	char * uniprotEntry;

	// Create lists
	uniprotPriEntryLists = realloc(uniprotPriEntryLists, (uniprotPriListCount + 1) * sizeof(UniprotList));
	memset(uniprotPriEntryLists + uniprotPriListCount, 0, sizeof(UniprotList));
	uniprotSecEntryLists = realloc(uniprotSecEntryLists, (uniprotSecListCount + 1) * sizeof(UniprotList));
	memset(uniprotSecEntryLists + uniprotSecListCount, 0, sizeof(UniprotList));

	// Calculate potential total list size
	for (entryIdx = 0, totalAlign = 0 ; entryIdx < passSize ; entryIdx++) {
		// Only add active sequences
		if (!passWorker->regs[entryIdx].active) continue;

		for (alnIdx = 0, primaryCount = 0 ; alnIdx < passWorker->regs[entryIdx].n ; alnIdx++) {
			switch (alignType = getAlignmentType(passWorker, entryIdx, alnIdx)) {
			case MEM_ALIGN_PRIMARY:
				uniprotPriEntryLists[uniprotPriListCount].entryCount++;
				// Count non-linear as total alignments
				if (primaryCount++) totalAlign++;
				break;
			case MEM_ALIGN_SECONDARY:
				uniprotSecEntryLists[uniprotSecListCount].entryCount++; break;
			}
		}	

		totalAlign++;
	}

	// Set counts and allocate entries
	uniprotPriEntryLists[uniprotPriListCount].unalignedCount = totalAlign - uniprotPriEntryLists[uniprotPriListCount].entryCount;
	uniprotSecEntryLists[uniprotSecListCount].unalignedCount = totalAlign - uniprotSecEntryLists[uniprotSecListCount].entryCount;;
	uniprotPriEntryLists[uniprotPriListCount].entries = calloc(uniprotPriEntryLists[uniprotPriListCount].entryCount, sizeof(UniprotEntry));
	uniprotSecEntryLists[uniprotSecListCount].entries = calloc(uniprotSecEntryLists[uniprotSecListCount].entryCount, sizeof(UniprotEntry));

	// Populate list
	for (addPriIdx = 0, addSecIdx = 0, entryIdx = 0 ; entryIdx < passSize && passFull ; entryIdx++) {
		// Only add active sequences
		if (!passWorker->regs[entryIdx].active) continue;

		for (alnIdx = 0 ; alnIdx < passWorker->regs[entryIdx].n ; alnIdx++) {
			// Only add successful alignments
			if ((alignType = getAlignmentType(passWorker, entryIdx, alnIdx)) < MEM_ALIGN_PRIMARY) continue;

			globalLists = getGlobalLists(alignType == MEM_ALIGN_PRIMARY);
			globalCount = getGlobalCount(alignType == MEM_ALIGN_PRIMARY);
			currentIdx = (alignType == MEM_ALIGN_PRIMARY) ? &addPriIdx : &addSecIdx;

			// Extract ID and entry
			refID = passWorker->regs[entryIdx].a[alnIdx].rid;
			uniprotEntry = passWorker->bns->anns[refID].name;

			// Strip sequence and frame info for nucleotide references
			if (passWorker->opt->indexInfo.nucleotide) {
				for (parseIdx = 2 ; (parseIdx > 0) && (*uniprotEntry != 0) ; uniprotEntry++) {
					if (*uniprotEntry == ':') parseIdx--;
				}
			}

			// Strip initial IDs (if present) and description
			for (parseIdx = 0 ; (uniprotEntry[parseIdx] != 0) && (uniprotEntry[parseIdx] != ' ') ; parseIdx++) {
				if (uniprotEntry[parseIdx] == '|') {
					uniprotEntry += parseIdx + 1;
					parseIdx = 0;
				}
			}

			uniprotEntry[parseIdx] = 0;	

			// Full ID and quality
			globalLists[*globalCount].entries[*currentIdx].id = malloc(strlen(uniprotEntry) + 1);
			sprintf(globalLists[*globalCount].entries[*currentIdx].id, "%s", uniprotEntry);
			globalLists[*globalCount].entries[*currentIdx].numOccurrence = 1;

            entryQuality = passWorker->regs[entryIdx].a[alnIdx].mapq;
			globalLists[*globalCount].entries[*currentIdx].totalQuality = entryQuality;
            if (entryQuality > globalLists[*globalCount].entries[*currentIdx].maxQuality) {
                globalLists[*globalCount].entries[*currentIdx].maxQuality = entryQuality;
            }

			// Gene/organism
			for (parseIdx = 0 ; parseIdx < strlen(uniprotEntry) ; parseIdx++) {
				if (*(uniprotEntry + parseIdx) == '_') {
					globalLists[*globalCount].entries[*currentIdx].gene = malloc(parseIdx + 1);
					sprintf(globalLists[*globalCount].entries[*currentIdx].gene, "%.*s", parseIdx, uniprotEntry);
					globalLists[*globalCount].entries[*currentIdx].organism = malloc(strlen(uniprotEntry + parseIdx) + 1);
					sprintf(globalLists[*globalCount].entries[*currentIdx].organism, "%s", uniprotEntry + parseIdx + 1);
					parseIdx = -1;
					break;
				}
			}

			// If underscore missing, we may be dealing with clustered ID with deleted representative
			if (parseIdx > -1) {
				globalLists[*globalCount].entries[*currentIdx].gene = malloc(strlen(uniprotEntry) + 1);
				sprintf(globalLists[*globalCount].entries[*currentIdx].gene, "%s", uniprotEntry);
				globalLists[*globalCount].entries[*currentIdx].organism = malloc(8);
				sprintf(globalLists[*globalCount].entries[*currentIdx].organism, "Unknown");
			}

			(*currentIdx)++;
		}
	}

	uniprotPriListCount++;
	uniprotSecListCount++;

	return uniprotPriListCount - 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq 0x3364c(%rip), %rdi     # 0x40e48
movl 0x33656(%rip), %eax     # 0x40e58
addl $0x1, %eax
movslq %eax, %rsi
shlq $0x4, %rsi
callq 0x35f0
movq %rax, 0x33630(%rip)     # 0x40e48
movq 0x33629(%rip), %rdi     # 0x40e48
movslq 0x33632(%rip), %rax     # 0x40e58
shlq $0x4, %rax
addq %rax, %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x3130
movq 0x33610(%rip), %rdi     # 0x40e50
movl 0x33616(%rip), %eax     # 0x40e5c
addl $0x1, %eax
movslq %eax, %rsi
shlq $0x4, %rsi
callq 0x35f0
movq %rax, 0x335f4(%rip)     # 0x40e50
movq 0x335ed(%rip), %rdi     # 0x40e50
movslq 0x335f2(%rip), %rax     # 0x40e5c
shlq $0x4, %rax
addq %rax, %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x3130
movl $0x0, -0x14(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x14(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0xd988
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0x14(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
cmpl $0x0, 0x10(%rax)
jne 0xd8b5
jmp 0xd97a
movl $0x0, -0x18(%rbp)
movl $0x0, -0x30(%rbp)
movslq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movq 0x38(%rcx), %rcx
movslq -0x14(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
cmpq (%rcx), %rax
jae 0xd971
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
callq 0x1b220
movl %eax, -0x2c(%rbp)
movl %eax, %ecx
movl %ecx, -0x5c(%rbp)
testl %eax, %eax
je 0xd90a
jmp 0xd900
movl -0x5c(%rbp), %eax
subl $0x1, %eax
je 0xd943
jmp 0xd961
movq 0x33537(%rip), %rax     # 0x40e48
movslq 0x33540(%rip), %rcx     # 0x40e58
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x8(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x8(%rax)
movl -0x30(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x30(%rbp)
cmpl $0x0, %eax
je 0xd941
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0xd961
movq 0x33506(%rip), %rax     # 0x40e50
movslq 0x3350b(%rip), %rcx     # 0x40e5c
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x8(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x8(%rax)
jmp 0xd963
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0xd8c3
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xd88b
movl -0x34(%rbp), %ecx
movq 0x334b6(%rip), %rax     # 0x40e48
movslq 0x334bf(%rip), %rdx     # 0x40e58
shlq $0x4, %rdx
addq %rdx, %rax
subl 0x8(%rax), %ecx
movq 0x3349e(%rip), %rax     # 0x40e48
movslq 0x334a7(%rip), %rdx     # 0x40e58
shlq $0x4, %rdx
addq %rdx, %rax
movl %ecx, 0xc(%rax)
movl -0x34(%rbp), %ecx
movq 0x3348b(%rip), %rax     # 0x40e50
movslq 0x33490(%rip), %rdx     # 0x40e5c
shlq $0x4, %rdx
addq %rdx, %rax
subl 0x8(%rax), %ecx
movq 0x33473(%rip), %rax     # 0x40e50
movslq 0x33478(%rip), %rdx     # 0x40e5c
shlq $0x4, %rdx
addq %rdx, %rax
movl %ecx, 0xc(%rax)
movq 0x33453(%rip), %rax     # 0x40e48
movslq 0x3345c(%rip), %rcx     # 0x40e58
shlq $0x4, %rcx
addq %rcx, %rax
movslq 0x8(%rax), %rdi
movl $0x28, %esi
callq 0x31a0
movq %rax, %rcx
movq 0x3342d(%rip), %rax     # 0x40e48
movslq 0x33436(%rip), %rdx     # 0x40e58
shlq $0x4, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
movq 0x3341d(%rip), %rax     # 0x40e50
movslq 0x33422(%rip), %rcx     # 0x40e5c
shlq $0x4, %rcx
addq %rcx, %rax
movslq 0x8(%rax), %rdi
movl $0x28, %esi
callq 0x31a0
movq %rax, %rcx
movq 0x333f7(%rip), %rax     # 0x40e50
movslq 0x333fc(%rip), %rdx     # 0x40e5c
shlq $0x4, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
movl $0x0, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %ecx
xorl %eax, %eax
cmpl -0xc(%rbp), %ecx
movb %al, -0x5d(%rbp)
jge 0xda96
cmpl $0x0, -0x10(%rbp)
setne %al
movb %al, -0x5d(%rbp)
movb -0x5d(%rbp), %al
testb $0x1, %al
jne 0xdaa2
jmp 0xe022
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0x14(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
cmpl $0x0, 0x10(%rax)
jne 0xdac0
jmp 0xe014
movl $0x0, -0x18(%rbp)
movslq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movq 0x38(%rcx), %rcx
movslq -0x14(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
cmpq (%rcx), %rax
jae 0xe012
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
callq 0x1b220
movl %eax, -0x2c(%rbp)
cmpl $0x0, %eax
jge 0xdb03
jmp 0xe004
cmpl $0x0, -0x2c(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %edi
callq 0xbdc0
movq %rax, -0x40(%rbp)
cmpl $0x0, -0x2c(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %edi
callq 0xbdf0
movq %rax, -0x48(%rbp)
cmpl $0x0, -0x2c(%rbp)
jne 0xdb3d
leaq -0x1c(%rbp), %rax
movq %rax, -0x68(%rbp)
jmp 0xdb47
leaq -0x20(%rbp), %rax
movq %rax, -0x68(%rbp)
jmp 0xdb47
movq -0x68(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0x14(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movslq -0x18(%rbp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
movl %eax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movslq -0x28(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
cmpl $0x0, 0x50(%rax)
je 0xdbf5
movl $0x2, -0x24(%rbp)
xorl %eax, %eax
cmpl $0x0, -0x24(%rbp)
movb %al, -0x69(%rbp)
jle 0xdbc5
movq -0x58(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x69(%rbp)
movb -0x69(%rbp), %al
testb $0x1, %al
jne 0xdbce
jmp 0xdbf3
movq -0x58(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3a, %eax
jne 0xdbe3
movl -0x24(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xdbe5
movq -0x58(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x58(%rbp)
jmp 0xdbaa
jmp 0xdbf5
movl $0x0, -0x24(%rbp)
movq -0x58(%rbp), %rax
movslq -0x24(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x6a(%rbp)
je 0xdc27
movq -0x58(%rbp), %rax
movslq -0x24(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x20, %eax
setne %al
movb %al, -0x6a(%rbp)
movb -0x6a(%rbp), %al
testb $0x1, %al
jne 0xdc30
jmp 0xdc69
movq -0x58(%rbp), %rax
movslq -0x24(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x7c, %eax
jne 0xdc5c
movl -0x24(%rbp), %ecx
addl $0x1, %ecx
movq -0x58(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movl $0x0, -0x24(%rbp)
jmp 0xdc5e
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xdbfc
movq -0x58(%rbp), %rax
movslq -0x24(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x58(%rbp), %rdi
callq 0x30f0
movq %rax, %rdi
addq $0x1, %rdi
callq 0x3450
movq %rax, %rcx
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rdx
movslq (%rdx), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq (%rax), %rax
movq -0x50(%rbp), %rdx
movslq (%rdx), %rdx
imulq $0x28, %rdx, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x50(%rbp), %rcx
movslq (%rcx), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq -0x58(%rbp), %rdx
leaq 0x2c246(%rip), %rsi     # 0x39f2a
movb $0x0, %al
callq 0x3070
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x50(%rbp), %rcx
movslq (%rcx), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0x18(%rax)
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0x14(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movslq -0x18(%rbp), %rcx
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movl 0x4c(%rax), %eax
movl %eax, -0x38(%rbp)
movl -0x38(%rbp), %ecx
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rdx
movslq (%rdx), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq (%rax), %rax
movq -0x50(%rbp), %rdx
movslq (%rdx), %rdx
imulq $0x28, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x1c(%rax)
movl -0x38(%rbp), %eax
movq -0x40(%rbp), %rcx
movq -0x48(%rbp), %rdx
movslq (%rdx), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
movq (%rcx), %rcx
movq -0x50(%rbp), %rdx
movslq (%rdx), %rdx
imulq $0x28, %rdx, %rdx
addq %rdx, %rcx
cmpl 0x20(%rcx), %eax
jle 0xddba
movl -0x38(%rbp), %ecx
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rdx
movslq (%rdx), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq (%rax), %rax
movq -0x50(%rbp), %rdx
movslq (%rdx), %rdx
imulq $0x28, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x20(%rax)
movl $0x0, -0x24(%rbp)
movslq -0x24(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x58(%rbp), %rdi
callq 0x30f0
movq %rax, %rcx
movq -0x78(%rbp), %rax
cmpq %rcx, %rax
jae 0xdf0e
movq -0x58(%rbp), %rax
movslq -0x24(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x5f, %eax
jne 0xdefe
movl -0x24(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rdi
callq 0x3450
movq %rax, %rcx
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rdx
movslq (%rdx), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq (%rax), %rax
movq -0x50(%rbp), %rdx
movslq (%rdx), %rdx
imulq $0x28, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x8(%rax)
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x50(%rbp), %rcx
movslq (%rcx), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rdi
movl -0x24(%rbp), %edx
movq -0x58(%rbp), %rcx
leaq 0x2b8d1(%rip), %rsi     # 0x39735
movb $0x0, %al
callq 0x3070
movq -0x58(%rbp), %rdi
movslq -0x24(%rbp), %rax
addq %rax, %rdi
callq 0x30f0
movq %rax, %rdi
addq $0x1, %rdi
callq 0x3450
movq %rax, %rcx
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rdx
movslq (%rdx), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq (%rax), %rax
movq -0x50(%rbp), %rdx
movslq (%rdx), %rdx
imulq $0x28, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x10(%rax)
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x50(%rbp), %rcx
movslq (%rcx), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rdi
movq -0x58(%rbp), %rdx
movslq -0x24(%rbp), %rax
addq %rax, %rdx
addq $0x1, %rdx
leaq 0x2c03c(%rip), %rsi     # 0x39f2a
movb $0x0, %al
callq 0x3070
movl $0xffffffff, -0x24(%rbp) # imm = 0xFFFFFFFF
jmp 0xdf0e
jmp 0xdf00
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xddc1
cmpl $-0x1, -0x24(%rbp)
jle 0xdff9
movq -0x58(%rbp), %rdi
callq 0x30f0
movq %rax, %rdi
addq $0x1, %rdi
callq 0x3450
movq %rax, %rcx
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rdx
movslq (%rdx), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq (%rax), %rax
movq -0x50(%rbp), %rdx
movslq (%rdx), %rdx
imulq $0x28, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x8(%rax)
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x50(%rbp), %rcx
movslq (%rcx), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rdi
movq -0x58(%rbp), %rdx
leaq 0x2bfa1(%rip), %rsi     # 0x39f2a
movb $0x0, %al
callq 0x3070
movl $0x8, %edi
callq 0x3450
movq %rax, %rcx
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rdx
movslq (%rdx), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq (%rax), %rax
movq -0x50(%rbp), %rdx
movslq (%rdx), %rdx
imulq $0x28, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x10(%rax)
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x50(%rbp), %rcx
movslq (%rcx), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rdi
leaq 0x2b748(%rip), %rsi     # 0x3973a
movb $0x0, %al
callq 0x3070
movq -0x50(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0xdac7
jmp 0xe014
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xda7f
movl 0x32e30(%rip), %eax     # 0x40e58
addl $0x1, %eax
movl %eax, 0x32e27(%rip)     # 0x40e58
movl 0x32e25(%rip), %eax     # 0x40e5c
addl $0x1, %eax
movl %eax, 0x32e1c(%rip)     # 0x40e5c
movl 0x32e12(%rip), %eax     # 0x40e58
subl $0x1, %eax
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)