// File: /workspace/github_cpp_makefile_star2_O1/j84guo[P]cake/cake.cpp
// Function: parseTargets(std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Target, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, Target>>>&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
bool parseTargets(TargetMap& nodes, vector<string>& lines)
{
    unsigned int lineNo = 1;
    auto it = lines.begin();

    while (it != lines.end()) {
        if (it->find_first_not_of(' ') == string::npos) {
            ++it; ++lineNo;
            continue;
        }

        auto pos = it->find(":");
        if ((pos == string::npos) || !pos) {
            lineError(lineNo, "no target");
            return false;
        }

        string name = it->substr(0, pos);
        nodes.emplace(name, name);
        parseAdjacent(it->substr(pos + 1), nodes.at(name));

        while (++it != lines.end() && ++lineNo) {
            if (!parseTask(*it, nodes.at(name).tasks))
                break;
        }
    }

    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq (%rsi), %r15
cmpq 0x8(%rsi), %r15
sete -0x29(%rbp)
je 0x2bee
movq %rsi, %r14
movl $0x1, %r13d
leaq -0x58(%rbp), %r12
movq %rsi, -0x60(%rbp)
movq %rdi, -0x38(%rbp)
movq %r15, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0x2150
cmpq $-0x1, %rax
je 0x2b86
movq %r12, %rbx
movl $0x1, %ecx
movq %r15, %rdi
leaq 0x25b2(%rip), %rsi      # 0x504d
xorl %edx, %edx
callq 0x2270
movq %rax, %r12
decq %rax
movq %rax, -0x68(%rbp)
cmpq $-0x2, %rax
jae 0x2b8f
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %r12, %rcx
callq 0x21a0
movq -0x38(%rbp), %rdi
movq %rbx, %rsi
movq %rbx, %rdx
callq 0x39a4
incq %r12
leaq -0x88(%rbp), %rdi
movq %r15, %rsi
movq %r12, %rdx
movq $-0x1, %rcx
callq 0x21a0
movq -0x38(%rbp), %rdi
movq %rbx, %r12
movq %rbx, %rsi
callq 0x3e76
movq -0x60(%rbp), %r14
testq %rax, %rax
je 0x2c0e
addq $0x28, %rax
leaq -0x88(%rbp), %rdi
movq %rax, %rsi
callq 0x2882
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x2b3c
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x2180
addq $0x20, %r15
movq %r15, %rcx
movq -0x38(%rbp), %rbx
movq %rcx, %r15
cmpq 0x8(%r14), %rcx
je 0x2bc0
cmpl $-0x1, %r13d
je 0x2bbd
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3e76
testq %rax, %rax
je 0x2c02
addq $0x60, %rax
movq %r15, %rdi
movq %rax, %rsi
callq 0x2979
leaq 0x20(%r15), %rcx
incl %r13d
testb %al, %al
jne 0x2b47
jmp 0x2bc0
addq $0x20, %r15
incl %r13d
jmp 0x2be0
leaq -0x48(%rbp), %rax
movq %rax, -0x58(%rbp)
movq %rbx, %r12
movq %rbx, %rdi
leaq 0x24ab(%rip), %rsi      # 0x504f
leaq 0x24ad(%rip), %rdx      # 0x5058
callq 0x34a2
movl %r13d, %edi
movq %r12, %rsi
callq 0x2772
jmp 0x2bc0
xorl %r13d, %r13d
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x2bd9
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x2180
cmpq $-0x2, -0x68(%rbp)
jae 0x2bee
cmpq 0x8(%r14), %r15
sete -0x29(%rbp)
jne 0x2a70
movb -0x29(%rbp), %al
andb $0x1, %al
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2534(%rip), %rdi      # 0x513d
callq 0x21f0
leaq 0x2528(%rip), %rdi      # 0x513d
callq 0x21f0
jmp 0x2c48
movq %rax, %rbx
jmp 0x2c64
jmp 0x2c23
movq %rax, %rbx
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x2c4b
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x2180
jmp 0x2c4b
jmp 0x2c48
jmp 0x2c48
movq %rax, %rbx
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x2c64
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x2280