// File: /workspace/github_cpp_makefile_star2_O1/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 0x7c9d
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x81cc
addq $0x68, %r12
cmpq %rbp, %r12
jne 0x7c89
leaq 0x28(%r14), %rdx
leaq 0x88(%rsp), %rdi
movq %r15, %rsi
callq 0x80e1
movq (%r14), %r15
movl $0x1, %esi
cmpq $0xa, %r15
jb 0x7d0e
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r15, %rcx
cmpq $0x63, %rcx
jbe 0x7d07
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x7d0c
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x7d0e
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x7cd1
addl $-0x3, %esi
jmp 0x7d0e
addl $-0x2, %esi
jmp 0x7d0e
decl %esi
movl %esi, %esi
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x48(%rsp), %rdi
xorl %edx, %edx
callq 0x43c0
movq 0x48(%rsp), %rdi
movl 0x50(%rsp), %esi
movq %r15, %rdx
callq 0x8637
leaq 0x98(%rsp), %r15
movq -0x10(%r15), %rcx
movq -0x8(%r15), %r8
movq 0x50(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r15, %rcx
je 0x7d62
movq 0x98(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x7d7d
movl $0xf, %esi
cmpq %r12, 0x48(%rsp)
je 0x7d78
movq 0x58(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x7d91
movq 0x48(%rsp), %rsi
leaq 0x88(%rsp), %rdi
callq 0x4110
jmp 0x7d9f
leaq 0x48(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4390
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x7dc3
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x7dc9
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 0x7e44
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r14, %rcx
cmpq $0x63, %rcx
jbe 0x7e3d
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x7e42
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x7e44
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x7e07
addl $-0x3, %esi
jmp 0x7e44
addl $-0x2, %esi
jmp 0x7e44
decl %esi
movl %esi, %esi
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x28(%rsp), %rdi
xorl %edx, %edx
callq 0x43c0
movq 0x28(%rsp), %rdi
movl 0x30(%rsp), %esi
movq %r14, %rdx
callq 0x8637
leaq 0x18(%rsp), %r14
movq -0x10(%r14), %rcx
movq -0x8(%r14), %r8
movq 0x30(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r14, %rcx
je 0x7e91
movq 0x18(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x7eac
movl $0xf, %esi
cmpq %r13, 0x28(%rsp)
je 0x7ea7
movq 0x38(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x7ebd
movq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x4110
jmp 0x7ecb
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4390
leaq 0x78(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x7eef
movq %rsi, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x7ef5
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x68(%rsp), %rsi
movq %rbx, %rdi
callq 0x4cff
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7f3a
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x7f51
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x7f68
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x7f7f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x7f9c
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x4340
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7fd4
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x7fd4
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x7ff0
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x7ff0
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8010
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x8010
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x802c
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x802c
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x804d
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x4340
movq %rbx, %rdi
callq 0x4510