// File: /workspace/github_cpp_makefile_star2_O3/jeffchan[P]blockchain-parser/BlockChain.cpp
// Function: BlockChainImpl::processTransactions(BlockChain::Block&)
void processTransactions(Block &block)
	{
		mTotalTransactionCount+=block.transactionCount;
		for (uint32_t i=0; i<block.transactionCount; i++)
		{
			BlockTransaction &t = block.transactions[i];
			Hash256 hash(t.transactionHash);
			FileLocation f(hash,t.fileIndex,t.fileOffset,t.transactionLength,t.transactionIndex);
			mTransactionMap.insert(f);
		}
		// ok.. now make sure we can locate every input transaction!
		for (uint32_t i=0; i<block.transactionCount; i++)
		{
			BlockTransaction &t = block.transactions[i];
			mTotalInputCount+=t.inputCount;
			mTotalOutputCount+=t.outputCount;
			for (uint32_t j=0; j<t.inputCount; j++)
			{
				BlockInput &input = t.inputs[j];
				if ( input.transactionIndex != 0xFFFFFFFF )
				{
					Hash256 thash(input.transactionHash);
					FileLocation key(thash,0,0,0,0);
					FileLocation *found = mTransactionMap.find(key);
					if ( found == NULL )
					{
						block.warning = true;
					}
				}
			}
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl 0x24(%rsi), %eax
addl %eax, 0x36f1304(%rdi)
testl %eax, %eax
je 0x1138e
movq %rdi, %rbx
xorl %r12d, %r12d
movq %rsi, -0x50(%rbp)
movq 0x28(%rsi), %rax
imulq $0x58, %r12, %rcx
movq 0x24(%rax,%rcx), %rdi
movq 0x2c(%rax,%rcx), %r15
movq 0x34(%rax,%rcx), %r14
movq 0x3c(%rax,%rcx), %r13
movl 0x48(%rax,%rcx), %edx
movl 0x4c(%rax,%rcx), %r8d
movl 0x44(%rax,%rcx), %r9d
movl 0x50(%rax,%rcx), %r10d
movq 0x36f12f8(%rbx), %rax
testq %rax, %rax
jne 0x111ff
movl %r10d, -0x3c(%rbp)
movl %r9d, -0x40(%rbp)
movl %r8d, -0x44(%rbp)
movl %edx, -0x30(%rbp)
movq %rdi, -0x38(%rbp)
movl $0x8583b000, %edi       # imm = 0x8583B000
callq 0x2040
xorps %xmm0, %xmm0
movl $0x8583b000, %edx       # imm = 0x8583B000
xorl %ecx, %ecx
movups %xmm0, 0x10(%rax,%rcx)
movups %xmm0, (%rax,%rcx)
movq $0x0, 0x30(%rax,%rcx)
addq $0x38, %rcx
cmpq %rcx, %rdx
jne 0x111c6
movq %rax, 0x36f12f8(%rbx)
movq -0x50(%rbp), %rsi
movq -0x38(%rbp), %rdi
movl -0x30(%rbp), %edx
movl -0x44(%rbp), %r8d
movl -0x40(%rbp), %r9d
movl -0x3c(%rbp), %r10d
movl 0x36f12f0(%rbx), %ecx
cmpq $0x26259ff, %rcx        # imm = 0x26259FF
ja 0x1139d
imulq $0x38, %rcx, %rcx
movq %rdi, (%rax,%rcx)
movq %r15, 0x8(%rax,%rcx)
movq %r14, 0x10(%rax,%rcx)
movq %r13, 0x18(%rax,%rcx)
movl %edx, 0x20(%rax,%rcx)
movl %r8d, 0x24(%rax,%rcx)
movl %r9d, 0x28(%rax,%rcx)
movl %r10d, 0x2c(%rax,%rcx)
incl 0x36f12f0(%rbx)
addq %rcx, %rax
movq %r15, %rcx
xorq %rdi, %rcx
movq %r14, %rdx
xorq %r13, %rdx
xorq %rcx, %rdx
shrq $0x20, %rdx
xorl %edi, %r15d
xorl %r15d, %r14d
xorl %r14d, %r13d
xorl %edx, %r13d
andl $0x3fffff, %r13d        # imm = 0x3FFFFF
movq 0x16f12f0(%rbx,%r13,8), %rcx
movq %rax, 0x16f12f0(%rbx,%r13,8)
testq %rcx, %rcx
je 0x11284
movq %rcx, 0x30(%rax)
incq %r12
movl 0x24(%rsi), %eax
cmpq %rax, %r12
jb 0x11164
testq %rax, %rax
je 0x1138e
movq 0x28(%rsi), %rcx
movq %rcx, -0x30(%rbp)
movl 0x36f1308(%rbx), %edx
movl 0x36f130c(%rbx), %ecx
xorl %edi, %edi
imulq $0x58, %rdi, %r9
movq -0x30(%rbp), %rsi
movl 0x4(%rsi,%r9), %r8d
addl 0x10(%rsi,%r9), %ecx
movl %ecx, -0x38(%rbp)
testq %r8, %r8
je 0x11370
addq -0x30(%rbp), %r9
movq 0x8(%r9), %r9
xorl %r10d, %r10d
movq %r10, %r11
shlq $0x5, %r11
cmpl $-0x1, 0x8(%r9,%r11)
je 0x11364
addq %r9, %r11
movq (%r11), %r12
movq (%r12), %r11
movq 0x8(%r12), %r14
movq 0x10(%r12), %rcx
movq 0x18(%r12), %r12
movq %r14, %r13
xorq %r11, %r13
movq %rcx, %r15
xorq %r12, %r15
xorq %r13, %r15
shrq $0x20, %r15
movl %r14d, %r13d
xorl %r11d, %r13d
movl %ecx, %esi
xorl %r13d, %esi
movl %r12d, %r13d
xorl %esi, %r13d
xorl %r15d, %r13d
andl $0x3fffff, %r13d        # imm = 0x3FFFFF
movq 0x16f12f0(%rbx,%r13,8), %r13
testq %r13, %r13
je 0x1135c
cmpq %r11, (%r13)
jne 0x11356
cmpq %r14, 0x8(%r13)
jne 0x11356
cmpq %rcx, 0x10(%r13)
jne 0x11356
cmpq %r12, 0x18(%r13)
je 0x11364
movq 0x30(%r13), %r13
jmp 0x11339
movq -0x50(%rbp), %rcx
movb $0x1, 0x78(%rcx)
incq %r10
cmpq %r8, %r10
jne 0x112db
addl %r8d, %edx
incq %rdi
cmpq %rax, %rdi
movl -0x38(%rbp), %ecx
jne 0x112b2
movl %edx, 0x36f1308(%rbx)
movl %ecx, 0x36f130c(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x69cc(%rip), %rdi      # 0x17d70
leaq 0x6445(%rip), %rsi      # 0x177f0
leaq 0x84d4(%rip), %rcx      # 0x19886
movl $0x175, %edx            # imm = 0x175
callq 0x20c0