// File: /workspace/github_cpp_makefile_star2_O3/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 $0x58, %rsp
movq (%rsi), %r13
movb $0x1, %al
cmpq 0x8(%rsi), %r13
je 0x2beb
movq %rsi, %r12
movl $0x1, %ebx
leaq -0x50(%rbp), %r14
movq %rsi, -0x58(%rbp)
movq %rdi, -0x30(%rbp)
movq %r13, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0x2150
cmpq $-0x1, %rax
je 0x2b75
movq %r14, %r15
movl $0x1, %ecx
movq %r13, %rdi
leaq 0x25b5(%rip), %rsi      # 0x504d
xorl %edx, %edx
callq 0x2270
movq %rax, %r14
decq %rax
cmpq $-0x2, %rax
jae 0x2ba7
movq %r15, %rdi
movq %r13, %rsi
xorl %edx, %edx
movq %r14, %rcx
callq 0x21a0
movq -0x30(%rbp), %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0x397a
incq %r14
leaq -0x78(%rbp), %rdi
movq %r13, %rsi
movq %r14, %rdx
movq $-0x1, %rcx
callq 0x21a0
movq -0x30(%rbp), %rdi
movq %r15, %r14
movq %r15, %rsi
callq 0x3e4c
movq -0x58(%rbp), %r12
testq %rax, %rax
je 0x2c06
addq $0x28, %rax
leaq -0x78(%rbp), %rdi
movq %rax, %rsi
callq 0x2882
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x2b2c
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x2180
addq $0x20, %r13
movq %r13, %rcx
movq -0x30(%rbp), %r15
movq %rcx, %r13
cmpq 0x8(%r12), %rcx
je 0x2b7f
cmpl $-0x1, %ebx
je 0x2b7d
movq %r15, %rdi
movq %r14, %rsi
callq 0x3e4c
testq %rax, %rax
je 0x2bfa
addq $0x60, %rax
movq %r13, %rdi
movq %rax, %rsi
callq 0x2979
leaq 0x20(%r13), %rcx
incl %ebx
testb %al, %al
jne 0x2b37
jmp 0x2b7f
addq $0x20, %r13
incl %ebx
jmp 0x2b98
xorl %ebx, %ebx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x2b98
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2180
cmpq 0x8(%r12), %r13
jne 0x2a6d
movb $0x1, %al
jmp 0x2beb
leaq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
movq %rax, (%rdi)
leaq 0x2496(%rip), %rsi      # 0x504f
leaq 0x2498(%rip), %rdx      # 0x5058
callq 0x3494
leaq -0x50(%rbp), %rsi
movl %ebx, %edi
callq 0x2772
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x2be9
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2180
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x253c(%rip), %rdi      # 0x513d
callq 0x21f0
leaq 0x2530(%rip), %rdi      # 0x513d
callq 0x21f0
jmp 0x2c3d
movq %rax, %rbx
jmp 0x2c59
jmp 0x2c1b
movq %rax, %rbx
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x2c40
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x2180
jmp 0x2c40
jmp 0x2c3d
jmp 0x2c3d
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x2c59
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x2280