// File: /workspace/github_cpp_makefile_star2_O2/istellartech[P]OpenTsiolkovsky/src/../lib/csv.h
// Function: void io::detail::parse_header_line<3u, io::trim_chars<(char)32, (char)9>, io::no_quote_escape<(char)44>>(char*, std::vector<int, std::allocator<int>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const*, unsigned int)
void parse_header_line(
                        char*line,
                        std::vector<int>&col_order,
                        const std::string*col_name,
                        ignore_column ignore_policy
                ){
                        col_order.clear();

                        bool found[column_count];
                        std::fill(found, found + column_count, false);
                        while(line){
                                char*col_begin,*col_end;
                                chop_next_column<quote_policy>(line, col_begin, col_end);

                                trim_policy::trim(col_begin, col_end);
                                quote_policy::unescape(col_begin, col_end);
                               
                                for(unsigned i=0; i<column_count; ++i)
                                        if(col_begin == col_name[i]){
                                                if(found[i]){
                                                        error::duplicated_column_in_header err;
                                                        err.set_column_name(col_begin);
                                                        throw err;
                                                }
                                                found[i] = true;
                                                col_order.push_back(i);
                                                col_begin = 0;
                                                break;
                                        }
                                if(col_begin){
                                        if(ignore_policy & ::io::ignore_extra_column)
                                                col_order.push_back(-1);
                                        else{
                                                error::extra_column_in_header err;
                                                err.set_column_name(col_begin);
                                                throw err;
                                        }
                                }
                        }
                        if(!(ignore_policy & ::io::ignore_missing_column)){
                                for(unsigned i=0; i<column_count; ++i){
                                        if(!found[i]){
                                                error::missing_column_in_header err;
                                                err.set_column_name(col_name[i].c_str());
                                                throw err;
                                        }
                                }
                        }
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x278, %rsp            # imm = 0x278
movl %ecx, 0xc(%rsp)
movq %rdx, %r12
movq %rdi, 0x20(%rsp)
movq (%rsi), %rax
cmpq %rax, 0x8(%rsi)
je 0x19b7f
movq %rax, 0x8(%rsi)
xorl %eax, %eax
cmpq $0x3, %rax
je 0x19b91
movb $0x0, 0x9(%rsp,%rax)
incq %rax
jmp 0x19b81
movq %rsi, 0x10(%rsp)
leaq 0x18(%rsp), %r13
leaq 0x28(%rsp), %rbp
testq %rdi, %rdi
je 0x19c34
leaq 0x20(%rsp), %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x18d45
movq %r13, %rdi
movq %rbp, %rsi
callq 0x18db6
movq %r12, %r14
xorl %r15d, %r15d
movq 0x18(%rsp), %rbx
cmpq $0x3, %r15
je 0x19bed
movq %rbx, %rdi
movq %r14, %rsi
callq 0x18df8
testb %al, %al
jne 0x19c04
incq %r15
addq $0x20, %r14
jmp 0x19bca
testq %rbx, %rbx
je 0x19c2a
testb $0x1, 0xc(%rsp)
je 0x19e0e
orl $-0x1, 0x30(%rsp)
jmp 0x19c1b
cmpb $0x1, 0x9(%rsp,%r15)
je 0x19d39
movb $0x1, 0x9(%rsp,%r15)
movl %r15d, 0x30(%rsp)
movq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x18e76
movq 0x20(%rsp), %rdi
jmp 0x19ba0
testb $0x2, 0xc(%rsp)
jne 0x19d27
addq $-0x20, %r12
xorl %eax, %eax
cmpq $0x3, %rax
je 0x19d27
addq $0x20, %r12
cmpb $0x0, 0x9(%rsp,%rax)
leaq 0x1(%rax), %rax
jne 0x19c45
movl $0x108, %r15d           # imm = 0x108
leaq 0x30(%rsp), %rbp
addq %r15, %rbp
movl $0x140, %edx            # imm = 0x140
movq %rbp, %rdi
xorl %esi, %esi
callq 0x5220
leaq 0x14f1e(%rip), %r13     # 0x2eba0
leaq 0x238(%rsp), %rbx
movq %r13, -0x208(%rbx)
movq (%r12), %rsi
movq %rbx, %rdi
callq 0x18e0e
movl $0x248, %edi            # imm = 0x248
callq 0x51c0
movq %rax, %r14
leaq 0x14c37(%rip), %rax     # 0x2e8e8
movq %rax, (%r14)
leaq 0x8(%r14), %rdi
leaq 0x38(%rsp), %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x52f0
addq %r14, %r15
movl $0x100, %edx            # imm = 0x100
movq %r15, %rdi
movq %rbp, %rsi
callq 0x52f0
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movups 0x30(%rbx), %xmm3
movups %xmm0, 0x208(%r14)
movups %xmm1, 0x218(%r14)
movups %xmm2, 0x228(%r14)
movups %xmm3, 0x238(%r14)
movq %r13, (%r14)
leaq 0x14dd5(%rip), %rsi     # 0x2eae8
movq 0x152b6(%rip), %rdx     # 0x2efd0
movq %r14, %rdi
callq 0x5610
jmp 0x19edc
addq $0x278, %rsp            # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x108, %r14d           # imm = 0x108
leaq 0x30(%rsp), %r13
addq %r14, %r13
movl $0x140, %edx            # imm = 0x140
movq %r13, %rdi
xorl %esi, %esi
callq 0x5220
leaq 0x14de3(%rip), %rbx     # 0x2eb40
leaq 0x238(%rsp), %r15
movq %rbx, -0x208(%r15)
movq 0x18(%rsp), %rsi
movq %r15, %rdi
callq 0x18e0e
movl $0x248, %edi            # imm = 0x248
callq 0x51c0
movq %rax, %r12
leaq 0x14b5b(%rip), %rax     # 0x2e8e8
movq %rax, (%r12)
leaq 0x8(%r12), %rdi
leaq 0x38(%rsp), %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x52f0
addq %r12, %r14
movl $0x100, %edx            # imm = 0x100
movq %r14, %rdi
movq %r13, %rsi
callq 0x52f0
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups 0x20(%r15), %xmm2
movups 0x30(%r15), %xmm3
movups %xmm0, 0x208(%r12)
movups %xmm1, 0x218(%r12)
movups %xmm2, 0x228(%r12)
movups %xmm3, 0x238(%r12)
movq %rbx, (%r12)
leaq 0x14c5e(%rip), %rsi     # 0x2ea58
movq 0x151cf(%rip), %rdx     # 0x2efd0
movq %r12, %rdi
callq 0x5610
jmp 0x19edc
movl $0x108, %r14d           # imm = 0x108
leaq 0x30(%rsp), %rbp
addq %r14, %rbp
movl $0x140, %edx            # imm = 0x140
movq %rbp, %rdi
xorl %esi, %esi
callq 0x5220
leaq 0x14d3e(%rip), %r13     # 0x2eb70
leaq 0x238(%rsp), %r15
movq %r13, -0x208(%r15)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x18e0e
movl $0x248, %edi            # imm = 0x248
callq 0x51c0
movq %rax, %r12
leaq 0x14a88(%rip), %rax     # 0x2e8e8
movq %rax, (%r12)
leaq 0x8(%r12), %rdi
leaq 0x38(%rsp), %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x52f0
addq %r12, %r14
movl $0x100, %edx            # imm = 0x100
movq %r14, %rdi
movq %rbp, %rsi
callq 0x52f0
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups 0x20(%r15), %xmm2
movups 0x30(%r15), %xmm3
movups %xmm0, 0x208(%r12)
movups %xmm1, 0x218(%r12)
movups %xmm2, 0x228(%r12)
movups %xmm3, 0x238(%r12)
movq %r13, (%r12)
leaq 0x14bd3(%rip), %rsi     # 0x2eaa0
movq 0x150fc(%rip), %rdx     # 0x2efd0
movq %r12, %rdi
callq 0x5610
jmp 0x19ee0
jmp 0x19ee0
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x56f0
movq %rbx, %rdi
callq 0x5640
nop