// File: GAStudyGroup[P]GPX2/src/base/sources/ImportData.cpp
// Function: ImportData::regexManager(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void ImportData::regexManager(string input)
{
    //|[[:digit:]]+?=[\\.]?=[[:digit:]]+
    regex number("[[:digit:]]+");
    regex name("NAME(.*)");
    regex type("TYPE(.*)");
    regex comment("COMMENT(.*)");
    regex dimension("DIMENSION(.*)");
    regex edge_type("EDGE(.*)");
    regex node_comment("NODE(.*)");
    if (regex_match(input, name)) {
        flag = "name";
        //cout << "Nome\n";
    } else if (regex_match(input, type)) {
        flag = "type";
        //cout << "Tipo\n";
    } else if (regex_match(input, comment)) {
        flag = "comment";
    } else if (regex_match(input, dimension)) {
        flag = "dimension";
    } else if (regex_match(input, edge_type)) {
        flag = "edge_type";
    } else if (regex_match(input, node_comment)) {
        flag = "node_comment";
    } else if (regex_match(input, number) && flagaux == "wait for number") {
        flag = "number";
    }
}

// Assembly:
subq $0x128, %rsp            # imm = 0x128
movq %rsi, 0x10(%rsp)
movq %rdi, 0x120(%rsp)
movq %rsi, 0x118(%rsp)
movq 0x120(%rsp), %rax
movq %rax, 0x18(%rsp)
leaq 0x584c1(%rip), %rsi     # 0x748b1
leaq 0xf8(%rsp), %rdi
movl $0x10, %edx
movl %edx, 0x24(%rsp)
callq 0x1df60
movl 0x24(%rsp), %edx
leaq 0x584ad(%rip), %rsi     # 0x748be
leaq 0xd8(%rsp), %rdi
callq 0x1df60
jmp 0x1c420
leaq 0x584a0(%rip), %rsi     # 0x748c7
leaq 0xa8(%rsp), %rdi
movl $0x10, %edx
callq 0x1df60
jmp 0x1c43b
leaq 0x5848e(%rip), %rsi     # 0x748d0
leaq 0x88(%rsp), %rdi
movl $0x10, %edx
callq 0x1df60
jmp 0x1c456
leaq 0x5847f(%rip), %rsi     # 0x748dc
leaq 0x68(%rsp), %rdi
movl $0x10, %edx
callq 0x1df60
jmp 0x1c46e
leaq 0x58475(%rip), %rsi     # 0x748ea
leaq 0x48(%rsp), %rdi
movl $0x10, %edx
callq 0x1df60
jmp 0x1c486
leaq 0x58466(%rip), %rsi     # 0x748f3
leaq 0x28(%rsp), %rdi
movl $0x10, %edx
callq 0x1df60
jmp 0x1c49e
movq 0x10(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
xorl %edx, %edx
callq 0x1e010
movb %al, 0xf(%rsp)
jmp 0x1c4b8
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x1c4c5
jmp 0x1c59d
movq 0x18(%rsp), %rdi
addq $0xa0, %rdi
leaq 0x58424(%rip), %rsi     # 0x748fc
callq 0x6680
jmp 0x1c4df
jmp 0x1c754
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
jmp 0x1c7e9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
jmp 0x1c7dc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
jmp 0x1c7cf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
jmp 0x1c7c2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
jmp 0x1c7b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
jmp 0x1c7ae
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xd0(%rsp)
movl %eax, 0xcc(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x1e090
jmp 0x1c7ae
movq 0x10(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
xorl %edx, %edx
callq 0x1e010
movb %al, 0xe(%rsp)
jmp 0x1c5b7
movb 0xe(%rsp), %al
testb $0x1, %al
jne 0x1c5c1
jmp 0x1c5e0
movq 0x18(%rsp), %rdi
addq $0xa0, %rdi
leaq 0x5833c(%rip), %rsi     # 0x74910
callq 0x6680
jmp 0x1c5db
jmp 0x1c752
movq 0x10(%rsp), %rdi
leaq 0x88(%rsp), %rsi
xorl %edx, %edx
callq 0x1e010
movb %al, 0xd(%rsp)
jmp 0x1c5fa
movb 0xd(%rsp), %al
testb $0x1, %al
jne 0x1c604
jmp 0x1c623
movq 0x18(%rsp), %rdi
addq $0xa0, %rdi
leaq 0x58303(%rip), %rsi     # 0x7491a
callq 0x6680
jmp 0x1c61e
jmp 0x1c750
movq 0x10(%rsp), %rdi
leaq 0x68(%rsp), %rsi
xorl %edx, %edx
callq 0x1e010
movb %al, 0xc(%rsp)
jmp 0x1c63a
movb 0xc(%rsp), %al
testb $0x1, %al
jne 0x1c644
jmp 0x1c663
movq 0x18(%rsp), %rdi
addq $0xa0, %rdi
leaq 0x582aa(%rip), %rsi     # 0x74901
callq 0x6680
jmp 0x1c65e
jmp 0x1c74e
movq 0x10(%rsp), %rdi
leaq 0x48(%rsp), %rsi
xorl %edx, %edx
callq 0x1e010
movb %al, 0xb(%rsp)
jmp 0x1c67a
movb 0xb(%rsp), %al
testb $0x1, %al
jne 0x1c684
jmp 0x1c6a3
movq 0x18(%rsp), %rdi
addq $0xa0, %rdi
leaq 0x58274(%rip), %rsi     # 0x7490b
callq 0x6680
jmp 0x1c69e
jmp 0x1c74c
movq 0x10(%rsp), %rdi
leaq 0x28(%rsp), %rsi
xorl %edx, %edx
callq 0x1e010
movb %al, 0xa(%rsp)
jmp 0x1c6ba
movb 0xa(%rsp), %al
testb $0x1, %al
jne 0x1c6c4
jmp 0x1c6e0
movq 0x18(%rsp), %rdi
addq $0xa0, %rdi
leaq 0x5823e(%rip), %rsi     # 0x74915
callq 0x6680
jmp 0x1c6de
jmp 0x1c74a
movq 0x10(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
xorl %edx, %edx
callq 0x1e010
movb %al, 0x9(%rsp)
jmp 0x1c6fa
movb 0x9(%rsp), %al
testb $0x1, %al
jne 0x1c704
jmp 0x1c748
movq 0x18(%rsp), %rdi
addq $0xc0, %rdi
leaq 0x5820b(%rip), %rsi     # 0x74922
callq 0x1e060
movb %al, 0x8(%rsp)
jmp 0x1c722
movb 0x8(%rsp), %al
testb $0x1, %al
jne 0x1c72c
jmp 0x1c748
movq 0x18(%rsp), %rdi
addq $0xa0, %rdi
leaq 0x581ec(%rip), %rsi     # 0x7492b
callq 0x6680
jmp 0x1c746
jmp 0x1c748
jmp 0x1c74a
jmp 0x1c74c
jmp 0x1c74e
jmp 0x1c750
jmp 0x1c752
jmp 0x1c754
leaq 0x28(%rsp), %rdi
callq 0x1e090
leaq 0x48(%rsp), %rdi
callq 0x1e090
leaq 0x68(%rsp), %rdi
callq 0x1e090
leaq 0x88(%rsp), %rdi
callq 0x1e090
leaq 0xa8(%rsp), %rdi
callq 0x1e090
leaq 0xd8(%rsp), %rdi
callq 0x1e090
leaq 0xf8(%rsp), %rdi
callq 0x1e090
addq $0x128, %rsp            # imm = 0x128
retq
leaq 0x48(%rsp), %rdi
callq 0x1e090
leaq 0x68(%rsp), %rdi
callq 0x1e090
leaq 0x88(%rsp), %rdi
callq 0x1e090
leaq 0xa8(%rsp), %rdi
callq 0x1e090
leaq 0xd8(%rsp), %rdi
callq 0x1e090
leaq 0xf8(%rsp), %rdi
callq 0x1e090
movq 0xd0(%rsp), %rdi
callq 0x6850
nopw %cs:(%rax,%rax)