// File: /workspace/github_cpp_makefile_star2_O3/ArthoPacini[P]blockchaincpp/./Block.hpp
// Function: Block::calculateHash[abi:cxx11]()
std::string calculateHash() 
    {
        transactionsHashesSum.clear();

        std::for_each(transactions.begin(), transactions.end(), [&](Transaction & transaction){
            transactionsHashesSum = sha256(transactionsHashesSum + transaction.getHash());
        });

        return sha256(transactionsHashesSum + previousBlockHash + std::to_string(index) + std::to_string(nounce));
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x70(%rsi), %r15
movq $0x0, 0x78(%rsi)
movq 0x70(%rsi), %rax
movb $0x0, (%rax)
movq 0x58(%rsi), %r12
movq 0x60(%rsi), %rbp
movq %rsi, 0x8(%rsp)
cmpq %rbp, %r12
je 0x6cd7
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x7202
addq $0x68, %r12
cmpq %rbp, %r12
jne 0x6cc3
leaq 0x28(%r14), %rdx
leaq 0x88(%rsp), %rdi
movq %r15, %rsi
callq 0x7117
movq (%r14), %r15
movl $0x1, %esi
cmpq $0xa, %r15
jb 0x6d48
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r15, %rcx
cmpq $0x63, %rcx
jbe 0x6d41
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x6d46
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x6d48
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x6d0b
addl $-0x3, %esi
jmp 0x6d48
addl $-0x2, %esi
jmp 0x6d48
decl %esi
movl %esi, %esi
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x68(%rsp), %rdi
xorl %edx, %edx
callq 0x33c0
movq 0x68(%rsp), %rdi
movl 0x70(%rsp), %esi
movq %r15, %rdx
callq 0x766d
leaq 0x98(%rsp), %r15
movq -0x10(%r15), %rcx
movq -0x8(%r15), %r8
movq 0x70(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r15, %rcx
je 0x6d9c
movq 0x98(%rsp), %rdi
movq 0x68(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x6dba
movl $0xf, %edi
cmpq %r12, %rsi
je 0x6db5
movq 0x78(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x6dc9
leaq 0x88(%rsp), %rdi
callq 0x3110
jmp 0x6dd7
leaq 0x68(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3390
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x6dfb
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x6e01
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x48(%r14), %r14
movl $0x1, %esi
cmpq $0xa, %r14
jb 0x6e7c
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r14, %rcx
cmpq $0x63, %rcx
jbe 0x6e75
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x6e7a
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x6e7c
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x6e3f
addl $-0x3, %esi
jmp 0x6e7c
addl $-0x2, %esi
jmp 0x6e7c
decl %esi
movl %esi, %esi
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x48(%rsp), %rdi
xorl %edx, %edx
callq 0x33c0
movq 0x48(%rsp), %rdi
movl 0x50(%rsp), %esi
movq %r14, %rdx
callq 0x766d
leaq 0x18(%rsp), %r14
movq -0x10(%r14), %rcx
movq -0x8(%r14), %r8
movq 0x50(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r14, %rcx
je 0x6ec9
movq 0x18(%rsp), %rdi
movq 0x48(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x6ee7
movl $0xf, %edi
cmpq %r13, %rsi
je 0x6ee2
movq 0x58(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x6ef3
leaq 0x8(%rsp), %rdi
callq 0x3110
jmp 0x6f01
leaq 0x48(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3390
leaq 0x38(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x6f25
movq %rsi, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x6f2b
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x3d95
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6f70
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3340
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x6f87
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3340
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x6f9e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3340
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x6fb5
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3340
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x6fd2
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3340
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x700a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3340
jmp 0x700a
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x7026
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3340
jmp 0x7026
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7046
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3340
jmp 0x7046
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x7062
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3340
jmp 0x7062
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7083
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3340
movq %rbx, %rdi
callq 0x3510