// File: /workspace/github_cpp_makefile_star2_O2/tcannon686[P]obj2webgl/./obj_parser.hpp
// Function: ObjParser<std::basic_ifstream<char, std::char_traits<char>>>::parseFace()
bool parseFace()
    {
        if(accept(TokenType::FACE))
        {
            std::vector<int> vIndices;
            std::vector<int> tIndices;
            std::vector<int> nIndices;

            while(accept(TokenType::NUMBER))
            {
                int v_index = stoi(token) - 1;
                vIndices.push_back(v_index);
                
                if(accept(TokenType::INDEX_SEPARATOR))
                {
                    if(accept(TokenType::NUMBER))
                    {
                        int t_index = stoi(token) - 1;
                        tIndices.push_back(t_index);
                    }
                }

                if(accept(TokenType::INDEX_SEPARATOR))
                {
                    if(accept(TokenType::NUMBER))
                    {
                        int n_index = stoi(token) - 1;
                        nIndices.push_back(n_index);
                    }
                }
            }

            if(tIndices.size() > 0)
                assert(tIndices.size() == vIndices.size());
            if(nIndices.size() > 0)
                assert(nIndices.size() == vIndices.size());

            /* Convert to triangles. */
            for(std::size_t i = 1; i < vIndices.size() - 1; i ++)
            {
                this->vIndices.push_back(vIndices[0]);
                if(nIndices.size() > 0)
                    this->nIndices.push_back(nIndices[0]);
                if(tIndices.size() > 0)
                    this->tIndices.push_back(tIndices[0]);
                for(std::size_t j = 0; j < 2; j ++)
                {
                    this->vIndices.push_back(vIndices[i + j]);
                    if(nIndices.size() > 0)
                        this->nIndices.push_back(nIndices[i + j]);
                    if(tIndices.size() > 0)
                        this->tIndices.push_back(tIndices[i + j]);
                }
            }

            if(this->nIndices.size() > 0)
                assert(this->nIndices.size() == this->vIndices.size());
            
            if(this->tIndices.size() > 0)
                assert(this->tIndices.size() == this->vIndices.size());

            return true;
        }
        return false;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
pushq $0x4
popq %rsi
callq 0x3f3e
movl %eax, %r14d
testb %al, %al
je 0x43c4
xorps %xmm0, %xmm0
leaq -0x60(%rbp), %rax
andq $0x0, 0x10(%rax)
leaq -0xa0(%rbp), %rcx
andq $0x0, 0x10(%rcx)
movaps %xmm0, (%rax)
movaps %xmm0, (%rcx)
leaq -0x80(%rbp), %rax
movaps %xmm0, (%rax)
andq $0x0, 0x10(%rax)
movq %rbx, -0x38(%rbp)
addq $0xa0, %rbx
pushq $0xb
popq %r12
pushq $0xa
popq %r13
leaq -0x40(%rbp), %r15
movq -0x38(%rbp), %rdi
movl %r12d, %esi
callq 0x3f3e
testb %al, %al
je 0x4241
movq %rbx, %rdi
xorl %esi, %esi
movl %r13d, %edx
callq 0x4eed
decl %eax
movl %eax, -0x40(%rbp)
leaq -0x60(%rbp), %rdi
movq %r15, %rsi
callq 0x4f0e
movq -0x38(%rbp), %rdi
movl %r13d, %esi
callq 0x3f3e
testb %al, %al
je 0x41f5
movq -0x38(%rbp), %rdi
movl %r12d, %esi
callq 0x3f3e
testb %al, %al
je 0x41f5
movq %rbx, %rdi
xorl %esi, %esi
movl %r13d, %edx
callq 0x4eed
decl %eax
movl %eax, -0x3c(%rbp)
leaq -0xa0(%rbp), %rdi
leaq -0x3c(%rbp), %rsi
callq 0x4f0e
movq -0x38(%rbp), %rdi
movl %r13d, %esi
callq 0x3f3e
testb %al, %al
je 0x4181
movq -0x38(%rbp), %rdi
movl %r12d, %esi
callq 0x3f3e
testb %al, %al
je 0x4181
movq %rbx, %rdi
xorl %esi, %esi
movl %r13d, %edx
callq 0x4eed
decl %eax
movl %eax, -0x3c(%rbp)
leaq -0x80(%rbp), %rdi
leaq -0x3c(%rbp), %rsi
callq 0x4f0e
jmp 0x4181
movq -0x98(%rbp), %rax
subq -0xa0(%rbp), %rax
je 0x4262
movq -0x58(%rbp), %rcx
subq -0x60(%rbp), %rcx
cmpq %rcx, %rax
jne 0x43d9
movq -0x78(%rbp), %rax
subq -0x80(%rbp), %rax
je 0x427d
movq -0x58(%rbp), %rcx
subq -0x60(%rbp), %rcx
cmpq %rcx, %rax
jne 0x43f8
movq -0x38(%rbp), %rax
leaq 0x50(%rax), %rbx
leaq 0x68(%rax), %r15
leaq 0x80(%rax), %r12
pushq $0x1
popq %rcx
pushq $0x4
popq %r13
movb %r14b, -0x29(%rbp)
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rax
subq %rsi, %rax
sarq $0x2, %rax
decq %rax
cmpq %rax, %rcx
jae 0x4366
movq %rcx, -0xb0(%rbp)
movq %rbx, %rdi
callq 0x4f0e
movq -0x80(%rbp), %rsi
cmpq %rsi, -0x78(%rbp)
je 0x42d7
movq %r15, %rdi
callq 0x4f0e
movq -0xa0(%rbp), %rsi
cmpq %rsi, -0x98(%rbp)
je 0x42ef
movq %r12, %rdi
callq 0x4f0e
movq %r13, -0xa8(%rbp)
movq %r13, %r14
pushq $0x2
popq %r13
subq $0x1, %r13
jb 0x4348
movq -0x60(%rbp), %rsi
addq %r14, %rsi
movq %rbx, %rdi
callq 0x4f0e
movq -0x80(%rbp), %rsi
cmpq %rsi, -0x78(%rbp)
je 0x4327
addq %r14, %rsi
movq %r15, %rdi
callq 0x4f0e
movq -0xa0(%rbp), %rsi
cmpq %rsi, -0x98(%rbp)
je 0x4342
addq %r14, %rsi
movq %r12, %rdi
callq 0x4f0e
addq $0x4, %r14
jmp 0x42fd
movq -0xb0(%rbp), %rcx
incq %rcx
movq -0xa8(%rbp), %r13
addq $0x4, %r13
movb -0x29(%rbp), %r14b
jmp 0x429b
movq -0x38(%rbp), %rdx
movq 0x70(%rdx), %rax
subq 0x68(%rdx), %rax
je 0x4385
movq 0x58(%rdx), %rcx
subq 0x50(%rdx), %rcx
cmpq %rcx, %rax
jne 0x4417
movq 0x88(%rdx), %rax
subq 0x80(%rdx), %rax
je 0x43a6
movq 0x58(%rdx), %rcx
subq 0x50(%rdx), %rcx
cmpq %rcx, %rax
jne 0x4436
leaq -0x80(%rbp), %rdi
callq 0x392c
leaq -0xa0(%rbp), %rdi
callq 0x392c
leaq -0x60(%rbp), %rdi
callq 0x392c
movl %r14d, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2180(%rip), %rdi      # 0x6560
leaq 0x219c(%rip), %rsi      # 0x6583
leaq 0x21a6(%rip), %rcx      # 0x6594
movl $0x158, %edx            # imm = 0x158
callq 0x2160
leaq 0x21f1(%rip), %rdi      # 0x65f0
leaq 0x217d(%rip), %rsi      # 0x6583
leaq 0x2187(%rip), %rcx      # 0x6594
movl $0x15a, %edx            # imm = 0x15A
callq 0x2160
leaq 0x21f5(%rip), %rdi      # 0x6613
leaq 0x215e(%rip), %rsi      # 0x6583
leaq 0x2168(%rip), %rcx      # 0x6594
movl $0x16f, %edx            # imm = 0x16F
callq 0x2160
leaq 0x2205(%rip), %rdi      # 0x6642
leaq 0x213f(%rip), %rsi      # 0x6583
leaq 0x2149(%rip), %rcx      # 0x6594
movl $0x172, %edx            # imm = 0x172
callq 0x2160
jmp 0x445f
jmp 0x445f
jmp 0x445f
jmp 0x445f
jmp 0x445f
movq %rax, %rbx
leaq -0x80(%rbp), %rdi
callq 0x392c
leaq -0xa0(%rbp), %rdi
callq 0x392c
leaq -0x60(%rbp), %rdi
callq 0x392c
movq %rbx, %rdi
callq 0x23a0