// File: /workspace/github_cpp_makefile_star2_O1/frolosofsky[P]pbft/main.cpp
// Function: Simulator::init_nodes(int, int)
void init_nodes(int f, int n) {
        _client = std::make_shared<ClientNode>();
        for(int i = 0; i < n; ++i) {
            _nodes.emplace_back(std::make_shared<PBFTNode>(i == 0 ? PBFTNode::Role::Primary : PBFTNode::Role::Replica, f));
            _nodes[i]->set_primary(_nodes[0]);
            _nodes[i]->set_success_startegy(std::make_unique<PBFT_DB>());
            _links.emplace_back(Link::make(_client, _nodes[i]));
        }
        for(size_t i = 0; i < _nodes.size() - 1; ++i) {
            for(size_t j = i + 1; j < _nodes.size(); ++j) {
                _links.emplace_back(Link::make(_nodes[i], _nodes[j]));
            }
        }

    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %edx, %r15d
movq %rdi, %rbx
movl %esi, -0x74(%rbp)
leaq -0x38(%rbp), %rdi
movq $0x0, -0x8(%rdi)
leaq -0x40(%rbp), %r14
leaq -0x50(%rbp), %rdx
movq %r14, %rsi
callq 0x3b70
movq (%r14), %rsi
movq %r14, %rdi
callq 0x3c06
movaps (%r14), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, (%r14)
movq 0x8(%rbx), %rdi
movups %xmm0, (%rbx)
testq %rdi, %rdi
je 0x36df
callq 0x2ef2
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x36ed
callq 0x2ef2
testl %r15d, %r15d
jle 0x38c0
leaq 0x10(%rbx), %r14
leaq 0x28(%rbx), %rax
movq %rax, -0x70(%rbp)
movl %r15d, %eax
shlq $0x4, %rax
movq %rax, -0x58(%rbp)
xorl %r13d, %r13d
leaq -0x40(%rbp), %r15
leaq -0x68(%rbp), %r12
xorl %eax, %eax
testq %r13, %r13
setne %al
movl %eax, -0x50(%rbp)
movq $0x0, -0x40(%rbp)
leaq -0x38(%rbp), %rdi
movq %r15, %rsi
movq %r12, %rdx
leaq -0x50(%rbp), %rcx
leaq -0x74(%rbp), %r8
callq 0x45e2
movq -0x40(%rbp), %rsi
movq %r15, %rdi
callq 0x4668
movq %r14, %rdi
movq %r15, %rsi
callq 0x3af8
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x3767
callq 0x2ef2
movq (%r14), %rax
movq (%rax,%r13), %rdi
movq (%rax), %rcx
movq %rcx, -0x40(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x38(%rbp)
testq %rax, %rax
je 0x3797
movq 0x6847(%rip), %rcx      # 0x9fd0
cmpb $0x0, (%rcx)
je 0x3793
incl 0x8(%rax)
jmp 0x3797
lock
incl 0x8(%rax)
movq %r12, %r15
movq -0x40(%rbp), %rax
movq %rax, 0x80(%rdi)
addq $0x88, %rdi
leaq -0x38(%rbp), %rsi
callq 0x43e6
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x37c3
callq 0x2ef2
movq (%r14), %rax
movq (%rax,%r13), %r12
movl $0x20, %edi
callq 0x2130
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
leaq 0x658b(%rip), %rcx      # 0x9d70
movq %rcx, (%rax)
movups %xmm0, 0x8(%rax)
movq $0x0, 0x18(%rax)
movq 0x90(%r12), %rdi
movq %rax, 0x90(%r12)
testq %rdi, %rdi
je 0x380f
movq (%rdi), %rax
callq *0x8(%rax)
movq (%rbx), %rax
movq %rax, -0x50(%rbp)
movq 0x8(%rbx), %rax
movq %rax, -0x48(%rbp)
testq %rax, %rax
movq %r15, %r12
leaq -0x40(%rbp), %r15
je 0x383f
movq 0x679f(%rip), %rcx      # 0x9fd0
cmpb $0x0, (%rcx)
je 0x383b
incl 0x8(%rax)
jmp 0x383f
lock
incl 0x8(%rax)
movq (%r14), %rax
movq (%rax,%r13), %rcx
movq %rcx, -0x68(%rbp)
movq 0x8(%rax,%r13), %rax
movq %rax, -0x60(%rbp)
testq %rax, %rax
je 0x386d
movq 0x6771(%rip), %rcx      # 0x9fd0
cmpb $0x0, (%rcx)
je 0x3869
incl 0x8(%rax)
jmp 0x386d
lock
incl 0x8(%rax)
movq %r15, %rdi
leaq -0x50(%rbp), %rsi
movq %r12, %rdx
callq 0x29e8
movq -0x70(%rbp), %rdi
movq %r15, %rsi
callq 0x3b34
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x3896
callq 0x2ef2
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x38a4
callq 0x2ef2
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0x38b2
callq 0x2ef2
addq $0x10, %r13
cmpq %r13, -0x58(%rbp)
jne 0x3718
movq 0x18(%rbx), %rax
subq 0x10(%rbx), %rax
cmpq $0x10, %rax
je 0x39f6
leaq 0x28(%rbx), %rax
movq %rax, -0x70(%rbp)
movl $0x18, %eax
movq %rax, -0x80(%rbp)
xorl %r13d, %r13d
leaq -0x40(%rbp), %r15
leaq 0x1(%r13), %rdx
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
movq %rdx, -0x58(%rbp)
cmpq %rcx, %rdx
jae 0x39d5
shlq $0x4, %r13
movq -0x80(%rbp), %r12
movq -0x58(%rbp), %r14
movq (%rax,%r13), %rcx
movq %rcx, -0x50(%rbp)
movq 0x8(%rax,%r13), %rax
movq %rax, -0x48(%rbp)
testq %rax, %rax
je 0x3941
movq 0x669d(%rip), %rcx      # 0x9fd0
cmpb $0x0, (%rcx)
je 0x393d
incl 0x8(%rax)
jmp 0x3941
lock
incl 0x8(%rax)
movq 0x10(%rbx), %rax
movq -0x8(%rax,%r12), %rcx
movq %rcx, -0x68(%rbp)
movq (%rax,%r12), %rax
movq %rax, -0x60(%rbp)
testq %rax, %rax
je 0x3970
movq 0x666e(%rip), %rcx      # 0x9fd0
cmpb $0x0, (%rcx)
je 0x396c
incl 0x8(%rax)
jmp 0x3970
lock
incl 0x8(%rax)
movq %r15, %rdi
leaq -0x50(%rbp), %rsi
leaq -0x68(%rbp), %rdx
callq 0x29e8
movq -0x70(%rbp), %rdi
movq %r15, %rsi
callq 0x3b34
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x399a
callq 0x2ef2
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x39a8
callq 0x2ef2
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0x39b6
callq 0x2ef2
incq %r14
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
addq $0x10, %r12
cmpq %rcx, %r14
jb 0x3916
movq 0x18(%rbx), %rax
subq 0x10(%rbx), %rax
sarq $0x4, %rax
decq %rax
addq $0x10, -0x80(%rbp)
movq -0x58(%rbp), %r13
cmpq %rax, %r13
jb 0x38ea
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x38(%rbp), %rdi
jmp 0x3a3a
jmp 0x3a25
jmp 0x3a12
movq %rax, %rbx
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x3a28
callq 0x2ef2
jmp 0x3a28
movq %rax, %rbx
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x3a36
callq 0x2ef2
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0x3a44
callq 0x2ef2
movq %rbx, %rdi
callq 0x21f0