// File: /workspace/github_cpp_makefile_star2_O1/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 0x4480
leaq 0xb9a2(%rip), %rsi      # 0x1a94e
leaq 0x100(%rsp), %rdi
movl $0x2, %edx
callq 0xe9e4
leaq 0x150(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x100(%rsp), %rdx
callq 0xe9ab
leaq 0xd8(%rsp), %rdi
movq %r14, %rsi
movl $0x2, %edx
callq 0xea6c
leaq 0x128(%rsp), %rdi
leaq 0x150(%rsp), %rsi
leaq 0xd8(%rsp), %rdx
callq 0xe9ab
leaq 0xd8(%rsp), %rdi
callq 0xeaec
leaq 0x150(%rsp), %rdi
callq 0xeaec
leaq 0x100(%rsp), %rdi
callq 0xeaec
leaq 0x28(%rsp), %rdi
callq 0xeaec
leaq 0x128(%rsp), %rdi
callq 0x4150
cmpb $-0x1, %al
je 0xf053
movzbl %al, %eax
testl %eax, %eax
jne 0xf09e
movq 0x15f96(%rip), %rbx     # 0x24ff0
leaq 0xb905(%rip), %rsi      # 0x1a966
movl $0x20, %edx
movq %rbx, %rdi
callq 0x43a0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x4320
movsbl %al, %esi
movq 0x15f64(%rip), %rdi     # 0x24ff0
callq 0x4030
movq %rax, %rdi
callq 0x4240
jmp 0xf295
leaq 0x8(%rsp), %r14
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
movq %r14, %rdi
callq 0x9364
movq %r14, %rdi
callq 0x9364
movq 0x128(%rsp), %rsi
leaq 0x150(%rsp), %rdi
movl $0x8, %edx
callq 0x4530
leaq 0x150(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xf353
leaq 0xa84e(%rip), %rsi      # 0x19940
leaq 0x8(%rsp), %rdi
callq 0xb53e
leaq 0x28(%rsp), %rsi
movq %rax, %rdi
callq 0x185e1
movl 0x28(%rsp), %eax
movl %eax, (%rbx)
leaq 0xa835(%rip), %rsi      # 0x1994b
leaq 0x8(%rsp), %rdi
callq 0xb53e
leaq 0x28(%rsp), %rsi
movq %rax, %rdi
callq 0x185e1
movl 0x28(%rsp), %eax
movl %eax, 0x4(%rbx)
leaq 0xa825(%rip), %rsi      # 0x19960
leaq 0x8(%rsp), %rdi
callq 0xb53e
movq %rax, %r14
leaq 0x100(%rsp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0xf448
leaq 0xd8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0xf49a
addq $0x8, %rbx
leaq 0x20(%rsp), %rbp
leaq 0x18(%rsp), %r14
leaq 0x28(%rsp), %r13
movq %r15, %rdi
movq %r12, %rsi
callq 0x187bc
testb %al, %al
jne 0xf26e
movq %r15, %rdi
callq 0xf4ec
movq %r14, %rdi
movq %rax, %rsi
callq 0xa06c
movq %r13, %rdi
movq %r14, %rsi
callq 0xf6ac
movq %rbx, %rdi
movq %r13, %rsi
callq 0x6f86
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0xf1e2
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0xf207
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x4340
leaq 0x80(%rsp), %rdi
callq 0x74f2
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xf230
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xf24c
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4340
movq %r14, %rdi
callq 0x9364
movzbl 0x18(%rsp), %esi
movq %rbp, %rdi
callq 0xaab2
movq %r15, %rdi
callq 0xfafc
jmp 0xf181
leaq 0x150(%rsp), %rdi
callq 0x40c0
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x9364
movzbl (%rbx), %esi
leaq 0x10(%rsp), %rdi
callq 0xaab2
leaq 0x128(%rsp), %rdi
callq 0xeaec
addq $0x358, %rsp            # imm = 0x358
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xf324
movq %rax, %rbx
jmp 0xf334
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
callq 0xeaec
jmp 0xf2d0
movq %rax, %rbx
leaq 0x150(%rsp), %rdi
callq 0xeaec
jmp 0xf2e2
movq %rax, %rbx
leaq 0x100(%rsp), %rdi
callq 0xeaec
jmp 0xf2f4
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
jmp 0xf346
jmp 0xf324
movq %rax, %rbx
jmp 0xf33e
movq %rax, %rbx
jmp 0xf314
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x6edc
leaq 0x18(%rsp), %rdi
callq 0x8834
jmp 0xf327
jmp 0xf324
jmp 0xf324
movq %rax, %rbx
leaq 0x150(%rsp), %rdi
callq 0x40c0
leaq 0x8(%rsp), %rdi
callq 0x8834
leaq 0x128(%rsp), %rdi
callq 0xeaec
movq %rbx, %rdi
callq 0x4510