// File: /workspace/github_cpp_makefile_star2_O3/Heptagon196[P]Gos/Gos.cpp
// Function: Gos::GosProject::PreprocessFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::queue<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::deque<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>>>>>&)
void Gos::GosProject::PreprocessFile(std::string scriptPath, std::queue<std::string>& imports) {
    scriptPath = Path(scriptPath).lexically_relative(".").string();
    if (vis.count(scriptPath) > 0) {
        return;
    }
    auto fin = FileSystem::Read(scriptPath);
    vis.insert(scriptPath);
    std::string line;
    Path dir = Path(scriptPath).lexically_relative(".").parent_path();
    while (std::getline(fin, line)) {
        if (line.starts_with("#import ")) {
            Path cur = dir;
            int endLen = 8;
            if (line.ends_with('\r')) {
                endLen++;
            }
            cur.append(line.substr(8, line.length() - endLen));
            std::string nxtPath = cur.lexically_relative(".").string();
            PreprocessFile(nxtPath, imports);
        }
    }
    imports.push(scriptPath);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2c8, %rsp            # imm = 0x2C8
movq %rdx, 0x28(%rsp)
movq %rsi, %r15
movq %rdi, %r13
leaq 0xc8(%rsp), %rdi
movl $0x2, %edx
callq 0xaf1c6
leaq 0xec58(%rip), %rsi      # 0xbd179
leaq 0x90(%rsp), %rdi
movl $0x2, %edx
callq 0xaf246
leaq 0x140(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
leaq 0x90(%rsp), %rdx
callq 0x11170
movq 0x140(%rsp), %rsi
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x148(%rsp), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x27370
movq %rsp, %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x11a66
movq (%rbx), %rdi
cmpq %r14, %rdi
je 0xae597
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x11360
leaq 0x140(%rsp), %rdi
callq 0xaf2ce
leaq 0x90(%rsp), %rdi
callq 0xaf2ce
leaq 0xc8(%rsp), %rdi
callq 0xaf2ce
leaq 0x38(%r13), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0xaf8aa
leaq 0x40(%r13), %rcx
cmpq %rcx, %rax
jne 0xae8d7
leaq 0x118(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
movl $0x2, %edx
callq 0xaf1c6
leaq 0x140(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0xb1e44
leaq 0x118(%rsp), %rdi
callq 0xaf2ce
movq %rbx, %rdi
movq %r15, %rsi
callq 0xaf934
leaq 0x40(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq %rsp, %rdi
movq %r15, %rsi
movl $0x2, %edx
callq 0xaf1c6
leaq 0xeb31(%rip), %rsi      # 0xbd179
leaq 0xf0(%rsp), %rdi
movl $0x2, %edx
callq 0xaf246
leaq 0x90(%rsp), %rdi
movq %rsp, %rsi
leaq 0xf0(%rsp), %rdx
callq 0x11170
movq %r13, 0xc0(%rsp)
movq %r15, 0xb8(%rsp)
leaq 0xc8(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x115c0
leaq 0x90(%rsp), %r13
movq %r13, %rdi
callq 0xaf2ce
leaq 0xf0(%rsp), %rbp
movq %rbp, %rdi
callq 0xaf2ce
movq %rsp, %rbx
movq %rbx, %rdi
callq 0xaf2ce
leaq 0x30(%rsp), %r14
leaq 0x70(%rsp), %r15
movq 0x140(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x11340
movsbl %al, %edx
movq %r12, %rdi
movq %r14, %rsi
callq 0x115b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xae87b
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
movq %rcx, 0x90(%rsp)
movq %rax, 0x98(%rsp)
movq %r13, %rdi
leaq 0x21a8e(%rip), %rsi     # 0xd01b7
callq 0xafadc
testb %al, %al
je 0xae6cc
movq %r13, %rdi
leaq 0xc8(%rsp), %rsi
callq 0xaf306
movq 0x38(%rsp), %rax
testq %rax, %rax
je 0xae761
movq 0x30(%rsp), %rdx
xorl %ecx, %ecx
cmpb $0xd, -0x1(%rdx,%rax)
setne %cl
addq $-0x9, %rcx
jmp 0xae768
movq $-0x8, %rcx
addq %rax, %rcx
movl $0x8, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9a5ee
movq (%rsp), %rdx
movq 0x8(%rsp), %rsi
movq %r13, %rdi
callq 0x110c0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xae7a7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x11360
movq %rbp, %rdi
leaq 0xe9c8(%rip), %rsi      # 0xbd179
movl $0x2, %edx
callq 0xaf246
movq %rbx, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x11170
movq (%rsp), %rsi
leaq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0x27370
movq %rbx, %rdi
callq 0xaf2ce
movq %rbp, %rdi
callq 0xaf2ce
leaq 0x80(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x36954
movq 0xc0(%rsp), %rdi
movq %r15, %rsi
movq 0x28(%rsp), %rdx
callq 0xae4ec
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xae852
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x11360
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xae86e
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x11360
movq %r13, %rdi
callq 0xaf2ce
jmp 0xae6cc
movq 0x28(%rsp), %rdi
movq 0xb8(%rsp), %rsi
callq 0xafb20
leaq 0xc8(%rsp), %rdi
callq 0xaf2ce
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xae8b6
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x11360
movq 0x6e6db(%rip), %rsi     # 0x11cf98
leaq 0x140(%rsp), %rdi
callq 0x112c0
leaq 0x1c0(%rsp), %rdi
callq 0x11120
addq $0x2c8, %rsp            # imm = 0x2C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xaea0b
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0xaf2ce
jmp 0xae903
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0xaf2ce
jmp 0xae915
movq %rax, %rbx
movq %rsp, %rdi
jmp 0xaea16
movq %rax, %rbx
jmp 0xaea1b
movq %rax, %rbx
jmp 0xaea37
movq %rax, %rbx
leaq 0x118(%rsp), %rdi
jmp 0xaea04
jmp 0xae9c3
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xae9c6
movq 0x10(%rsp), %rsi
jmp 0xae998
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xae984
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x11360
jmp 0xae984
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xae9c6
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x11360
jmp 0xae9c6
jmp 0xaea0b
movq %rax, %rbx
jmp 0xae9b4
movq %rax, %rbx
movq %rsp, %rdi
callq 0xaf2ce
leaq 0xf0(%rsp), %rdi
callq 0xaf2ce
jmp 0xae9c6
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0xaf2ce
jmp 0xaea0e
movq %rax, %rbx
leaq 0x140(%rsp), %rdi
callq 0xaf2ce
jmp 0xae9ea
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0xaf2ce
jmp 0xae9fc
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0xaf2ce
jmp 0xaea58
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0xaf2ce
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xaea37
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x11360
movq 0x6e55a(%rip), %rsi     # 0x11cf98
leaq 0x140(%rsp), %rdi
callq 0x112c0
leaq 0x1c0(%rsp), %rdi
callq 0x11120
movq %rbx, %rdi
callq 0x11580