// File: /workspace/github_cpp_makefile_star2_O3/ArthoPacini[P]blockchaincpp/./Blockchain.hpp
// Function: Blockchain::load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void load(const std::string input_filename = "blockchain.json")
    {
        std::filesystem::path input_path = std::filesystem::path(std::filesystem::current_path() / "blockchain" / input_filename);

        if(!std::filesystem::exists(input_path))
        {
            std::cerr << "Blockchain file does not exists!" << std::endl;
            return;
        }

        nlohmann::json input_json;
        
        std::ifstream input_file(input_path);
        input_file >> input_json;

        this->difficulty = input_json["difficulty"];
        this->maxTransactionsCount = input_json["maxTransactionsCount"];

        for(const auto & block_json : input_json["blocks"])
            chain.push_back(Block(block_json));
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x358, %rsp            # imm = 0x358
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x28(%rsp), %rdi
callq 0x3480
leaq 0xbb24(%rip), %rsi      # 0x1994e
leaq 0x100(%rsp), %rdi
movl $0x2, %edx
callq 0xd856
leaq 0x150(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x100(%rsp), %rdx
callq 0xd81d
leaq 0xd8(%rsp), %rdi
movq %r14, %rsi
movl $0x2, %edx
callq 0xd8de
leaq 0x128(%rsp), %rdi
leaq 0x150(%rsp), %rsi
leaq 0xd8(%rsp), %rdx
callq 0xd81d
leaq 0xd8(%rsp), %rdi
callq 0xd95e
leaq 0x150(%rsp), %rdi
callq 0xd95e
leaq 0x100(%rsp), %rdi
callq 0xd95e
leaq 0x28(%rsp), %rdi
callq 0xd95e
leaq 0x128(%rsp), %rdi
callq 0x3150
cmpb $-0x1, %al
je 0xded1
movzbl %al, %eax
testl %eax, %eax
jne 0xdf1c
movq 0x16118(%rip), %rbx     # 0x23ff0
leaq 0xba87(%rip), %rsi      # 0x19966
movl $0x20, %edx
movq %rbx, %rdi
callq 0x33a0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x3320
movsbl %al, %esi
movq 0x160e6(%rip), %rdi     # 0x23ff0
callq 0x3030
movq %rax, %rdi
callq 0x3240
jmp 0xe138
leaq 0x8(%rsp), %r14
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
movq %r14, %rdi
callq 0x829a
movq %r14, %rdi
callq 0x829a
movq 0x128(%rsp), %rsi
leaq 0x150(%rsp), %rdi
movl $0x8, %edx
callq 0x3530
leaq 0x150(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xe1f6
leaq 0xa9d0(%rip), %rsi      # 0x18940
leaq 0x8(%rsp), %rdi
callq 0xa440
leaq 0x28(%rsp), %rsi
movq %rax, %rdi
callq 0x17107
movl 0x28(%rsp), %eax
movl %eax, (%rbx)
leaq 0xa9b7(%rip), %rsi      # 0x1894b
leaq 0x8(%rsp), %rdi
callq 0xa440
leaq 0x28(%rsp), %rsi
movq %rax, %rdi
callq 0x17107
movl 0x28(%rsp), %eax
movl %eax, 0x4(%rbx)
leaq 0xa9a7(%rip), %rsi      # 0x18960
leaq 0x8(%rsp), %rdi
callq 0xa440
movq %rax, %r14
leaq 0x100(%rsp), %r15
movq %rax, (%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r15)
movabsq $-0x8000000000000000, %r13 # imm = 0x8000000000000000
movq %r13, 0x18(%r15)
movq %r15, %rdi
callq 0x17238
leaq 0xd8(%rsp), %r12
movq %r14, (%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r12)
movq %r13, 0x18(%r12)
movq %r12, %rdi
callq 0x1729c
addq $0x8, %rbx
leaq 0x20(%rsp), %rbp
leaq 0x18(%rsp), %r14
leaq 0x28(%rsp), %r13
movq %r15, %rdi
movq %r12, %rsi
callq 0x172f4
testb %al, %al
jne 0xe111
movq %r15, %rdi
callq 0xe2ea
movq %r14, %rdi
movq %rax, %rsi
callq 0x8fac
movq %r13, %rdi
movq %r14, %rsi
callq 0xe4a6
movq %rbx, %rdi
movq %r13, %rsi
callq 0x5fb6
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0xe085
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x3340
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0xe0aa
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3340
leaq 0x80(%rsp), %rdi
callq 0x6526
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xe0d3
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3340
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xe0ef
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3340
movq %r14, %rdi
callq 0x829a
movzbl 0x18(%rsp), %esi
movq %rbp, %rdi
callq 0x99e0
movq %r15, %rdi
callq 0xe916
jmp 0xe024
leaq 0x150(%rsp), %rdi
callq 0x30c0
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x829a
movzbl (%rbx), %esi
leaq 0x10(%rsp), %rdi
callq 0x99e0
leaq 0x128(%rsp), %rdi
callq 0xd95e
addq $0x358, %rsp            # imm = 0x358
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xe1c7
movq %rax, %rbx
jmp 0xe1d7
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
callq 0xd95e
jmp 0xe173
movq %rax, %rbx
leaq 0x150(%rsp), %rdi
callq 0xd95e
jmp 0xe185
movq %rax, %rbx
leaq 0x100(%rsp), %rdi
callq 0xd95e
jmp 0xe197
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
jmp 0xe1e9
jmp 0xe1c7
movq %rax, %rbx
jmp 0xe1e1
movq %rax, %rbx
jmp 0xe1b7
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x5f0c
leaq 0x18(%rsp), %rdi
callq 0x7860
jmp 0xe1ca
jmp 0xe1c7
jmp 0xe1c7
movq %rax, %rbx
leaq 0x150(%rsp), %rdi
callq 0x30c0
leaq 0x8(%rsp), %rdi
callq 0x7860
leaq 0x128(%rsp), %rdi
callq 0xd95e
movq %rbx, %rdi
callq 0x3510