// File: /workspace/github_cpp_makefile_star2_O1/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 0xb0080
leaq 0xede0(%rip), %rsi      # 0xbe1a9
leaq 0x90(%rsp), %rdi
movl $0x2, %edx
callq 0xb0100
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 0x27dc8
movq %rsp, %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x11a68
movq (%rbx), %rdi
cmpq %r14, %rdi
je 0xaf43f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x11360
leaq 0x140(%rsp), %rdi
callq 0xb0188
leaq 0x90(%rsp), %rdi
callq 0xb0188
leaq 0xc8(%rsp), %rdi
callq 0xb0188
leaq 0x38(%r13), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0xb075a
leaq 0x40(%r13), %rcx
cmpq %rcx, %rax
jne 0xaf77f
leaq 0x118(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
movl $0x2, %edx
callq 0xb0080
leaq 0x140(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0xb2d6e
leaq 0x118(%rsp), %rdi
callq 0xb0188
movq %rbx, %rdi
movq %r15, %rsi
callq 0xb07e4
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 0xb0080
leaq 0xecb9(%rip), %rsi      # 0xbe1a9
leaq 0xf0(%rsp), %rdi
movl $0x2, %edx
callq 0xb0100
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 0xb0188
leaq 0xf0(%rsp), %rbp
movq %rbp, %rdi
callq 0xb0188
movq %rsp, %rbx
movq %rbx, %rdi
callq 0xb0188
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 0xaf723
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
movq %rcx, 0x90(%rsp)
movq %rax, 0x98(%rsp)
movq %r13, %rdi
leaq 0x21c16(%rip), %rsi     # 0xd11e7
callq 0xb098c
testb %al, %al
je 0xaf574
movq %r13, %rdi
leaq 0xc8(%rsp), %rsi
callq 0xb01c0
movq 0x38(%rsp), %rax
testq %rax, %rax
je 0xaf609
movq 0x30(%rsp), %rdx
xorl %ecx, %ecx
cmpb $0xd, -0x1(%rdx,%rax)
setne %cl
addq $-0x9, %rcx
jmp 0xaf610
movq $-0x8, %rcx
addq %rax, %rcx
movl $0x8, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9b238
movq (%rsp), %rdx
movq 0x8(%rsp), %rsi
movq %r13, %rdi
callq 0x110c0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xaf64f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x11360
movq %rbp, %rdi
leaq 0xeb50(%rip), %rsi      # 0xbe1a9
movl $0x2, %edx
callq 0xb0100
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 0x27dc8
movq %rbx, %rdi
callq 0xb0188
movq %rbp, %rdi
callq 0xb0188
leaq 0x80(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x37586
movq 0xc0(%rsp), %rdi
movq %r15, %rsi
movq 0x28(%rsp), %rdx
callq 0xaf394
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xaf6fa
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x11360
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xaf716
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x11360
movq %r13, %rdi
callq 0xb0188
jmp 0xaf574
movq 0x28(%rsp), %rdi
movq 0xb8(%rsp), %rsi
callq 0xb09d4
leaq 0xc8(%rsp), %rdi
callq 0xb0188
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xaf75e
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x11360
movq 0x6e833(%rip), %rsi     # 0x11df98
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 0xaf8b3
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0xb0188
jmp 0xaf7ab
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0xb0188
jmp 0xaf7bd
movq %rax, %rbx
movq %rsp, %rdi
jmp 0xaf8be
movq %rax, %rbx
jmp 0xaf8c3
movq %rax, %rbx
jmp 0xaf8df
movq %rax, %rbx
leaq 0x118(%rsp), %rdi
jmp 0xaf8ac
jmp 0xaf86b
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xaf86e
movq 0x10(%rsp), %rsi
jmp 0xaf840
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xaf82c
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x11360
jmp 0xaf82c
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xaf86e
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x11360
jmp 0xaf86e
jmp 0xaf8b3
movq %rax, %rbx
jmp 0xaf85c
movq %rax, %rbx
movq %rsp, %rdi
callq 0xb0188
leaq 0xf0(%rsp), %rdi
callq 0xb0188
jmp 0xaf86e
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0xb0188
jmp 0xaf8b6
movq %rax, %rbx
leaq 0x140(%rsp), %rdi
callq 0xb0188
jmp 0xaf892
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0xb0188
jmp 0xaf8a4
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0xb0188
jmp 0xaf900
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0xb0188
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xaf8df
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x11360
movq 0x6e6b2(%rip), %rsi     # 0x11df98
leaq 0x140(%rsp), %rdi
callq 0x112c0
leaq 0x1c0(%rsp), %rdi
callq 0x11120
movq %rbx, %rdi
callq 0x11580