// File: /workspace/github_cpp_makefile_star2_O1/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
movq %rdi, %rbx
movl 0x24(%rsi), %eax
addl %eax, 0x36f1304(%rdi)
testl %eax, %eax
movq %rsi, -0x50(%rbp)
je 0x113e3
xorl %r12d, %r12d
movq 0x28(%rsi), %rax
imulq $0x58, %r12, %rcx
movq 0x24(%rax,%rcx), %rdi
movq 0x2c(%rax,%rcx), %r14
movq 0x34(%rax,%rcx), %r15
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
cmpq $0x0, 0x36f12f8(%rbx)
jne 0x11349
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 0x11310
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), %eax
cmpq $0x26259ff, %rax        # imm = 0x26259FF
ja 0x114ea
movq 0x36f12f8(%rbx), %rcx
imulq $0x38, %rax, %rax
movq %rdi, (%rcx,%rax)
movq %r14, 0x8(%rcx,%rax)
movq %r15, 0x10(%rcx,%rax)
movq %r13, 0x18(%rcx,%rax)
movl %edx, 0x20(%rcx,%rax)
movl %r8d, 0x24(%rcx,%rax)
movl %r9d, 0x28(%rcx,%rax)
movl %r10d, 0x2c(%rcx,%rax)
incl 0x36f12f0(%rbx)
addq %rcx, %rax
movq %r14, %rcx
xorq %rdi, %rcx
movq %r15, %rdx
xorq %r13, %rdx
xorq %rcx, %rdx
shrq $0x20, %rdx
xorl %edi, %r14d
xorl %r14d, %r15d
xorl %r15d, %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 0x113d4
movq %rcx, 0x30(%rax)
incq %r12
movl 0x24(%rsi), %eax
cmpq %rax, %r12
jb 0x112b0
testl %eax, %eax
je 0x114db
movq 0x28(%rsi), %rdx
movl 0x36f1308(%rbx), %ecx
movl 0x36f130c(%rbx), %esi
movl %eax, %eax
movq %rax, -0x30(%rbp)
xorl %edi, %edi
imulq $0x58, %rdi, %r9
movl 0x4(%rdx,%r9), %r8d
addl 0x10(%rdx,%r9), %esi
movl %esi, -0x38(%rbp)
testq %r8, %r8
je 0x114bc
addq %rdx, %r9
movq 0x8(%r9), %r9
xorl %r10d, %r10d
movq %r10, %r11
shlq $0x5, %r11
cmpl $-0x1, 0x8(%r9,%r11)
je 0x114b0
addq %r9, %r11
movq (%r11), %r12
movq (%r12), %r11
movq 0x8(%r12), %r14
movq 0x10(%r12), %rsi
movq 0x18(%r12), %r12
movq %r14, %r13
xorq %r11, %r13
movq %rsi, %r15
xorq %r12, %r15
xorq %r13, %r15
shrq $0x20, %r15
movl %r14d, %r13d
xorl %r11d, %r13d
movl %esi, %eax
xorl %r13d, %eax
movl %r12d, %r13d
xorl %eax, %r13d
xorl %r15d, %r13d
andl $0x3fffff, %r13d        # imm = 0x3FFFFF
movq 0x16f12f0(%rbx,%r13,8), %r13
testq %r13, %r13
je 0x114a8
cmpq %r11, (%r13)
jne 0x114a2
cmpq %r14, 0x8(%r13)
jne 0x114a2
cmpq %rsi, 0x10(%r13)
jne 0x114a2
cmpq %r12, 0x18(%r13)
je 0x114b0
movq 0x30(%r13), %r13
jmp 0x11485
movq -0x50(%rbp), %rax
movb $0x1, 0x78(%rax)
incq %r10
cmpq %r8, %r10
jne 0x11427
addl %r8d, %ecx
incq %rdi
cmpq -0x30(%rbp), %rdi
movl -0x38(%rbp), %esi
jne 0x11403
movl %ecx, 0x36f1308(%rbx)
movl %esi, 0x36f130c(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x687f(%rip), %rdi      # 0x17d70
leaq 0x62f8(%rip), %rsi      # 0x177f0
leaq 0x8387(%rip), %rcx      # 0x19886
movl $0x175, %edx            # imm = 0x175
callq 0x20c0
nop