// File: /workspace/github_cpp_makefile_star2_O3/istellartech[P]OpenTsiolkovsky/src/../lib/csv.h
// Function: void io::detail::parse_header_line<2u, 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, 0x1c(%rsp)
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, 0x28(%rsp)
movq (%rsi), %rax
cmpq %rax, 0x8(%rsi)
je 0x1dbff
movq %rax, 0x8(%r15)
movw $0x0, 0xe(%rsp)
testq %rdi, %rdi
je 0x1dd09
leaq 0x10(%rsp), %r13
leaq 0x20(%rsp), %rbx
leaq 0x28(%rsp), %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x1e109
movq 0x10(%rsp), %rcx
movq 0x20(%rsp), %rax
movzbl (%rcx), %edx
cmpl $0x9, %edx
je 0x1dc40
cmpl $0x20, %edx
jne 0x1dc57
cmpq %rax, %rcx
je 0x1dc57
incq %rcx
movq %rcx, 0x10(%rsp)
jmp 0x1dc33
decq %rax
movq %rax, 0x20(%rsp)
movzbl -0x1(%rax), %edx
cmpl $0x20, %edx
je 0x1dc65
cmpl $0x9, %edx
jne 0x1dc6a
cmpq %rcx, %rax
jne 0x1dc4f
movb $0x0, (%rax)
movb $0x1, %r12b
xorl %ebp, %ebp
movq 0x10(%rsp), %rsi
movq %rbp, %rdi
shlq $0x5, %rdi
addq %r14, %rdi
callq 0x5120
testl %eax, %eax
je 0x1dcca
movl $0x1, %ebp
testb $0x1, %r12b
movl $0x0, %r12d
jne 0x1dc72
movq 0x10(%rsp), %rbp
testq %rbp, %rbp
je 0x1dcfd
testb $0x1, 0x1c(%rsp)
je 0x1de0f
movl $0xffffffff, 0x30(%rsp) # imm = 0xFFFFFFFF
movq 0x8(%r15), %rsi
cmpq 0x10(%r15), %rsi
je 0x1dcf0
movl $0xffffffff, (%rsi)     # imm = 0xFFFFFFFF
jmp 0x1dce6
cmpb $0x1, 0xe(%rsp,%rbp)
je 0x1dd38
movb $0x1, 0xe(%rsp,%rbp)
movl %ebp, 0x30(%rsp)
movq 0x8(%r15), %rsi
cmpq 0x10(%r15), %rsi
je 0x1dcf0
movl %ebp, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r15)
jmp 0x1dcfd
movq %r15, %rdi
leaq 0x30(%rsp), %rdx
callq 0x1e1a0
cmpq $0x0, 0x28(%rsp)
jne 0x1dc19
testb $0x2, 0x1c(%rsp)
jne 0x1dd26
cmpb $0x1, 0xe(%rsp)
jne 0x1dee4
cmpb $0x0, 0xf(%rsp)
je 0x1dee8
addq $0x278, %rsp            # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x108, %ebx            # imm = 0x108
leaq 0x30(%rsp), %r13
addq %rbx, %r13
movl $0x100, %edx            # imm = 0x100
movq %r13, %rdi
xorl %esi, %esi
callq 0x5230
leaq 0x13ddd(%rip), %r12     # 0x31b38
leaq 0x238(%rsp), %r14
movq %r12, -0x208(%r14)
movq 0x10(%rsp), %rsi
movl $0x3f, %edx
movq %r14, %rdi
callq 0x5200
movb $0x0, 0x3f(%r14)
movl $0x248, %edi            # imm = 0x248
callq 0x51e0
movq %rax, %r15
leaq 0x13b4b(%rip), %rax     # 0x318e0
movq %rax, (%r15)
leaq 0x8(%r15), %rdi
leaq 0x38(%rsp), %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x52f0
addq %r15, %rbx
movl $0x100, %edx            # imm = 0x100
movq %rbx, %rdi
movq %r13, %rsi
callq 0x52f0
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups 0x20(%r14), %xmm2
movups 0x30(%r14), %xmm3
movups %xmm0, 0x208(%r15)
movups %xmm1, 0x218(%r15)
movups %xmm2, 0x228(%r15)
movups %xmm3, 0x238(%r15)
movq %r12, (%r15)
leaq 0x13c55(%rip), %rsi     # 0x31a50
movq 0x141ce(%rip), %rdx     # 0x31fd0
movq %r15, %rdi
callq 0x5620
jmp 0x1dfc4
movl $0x108, %ebx            # imm = 0x108
leaq 0x30(%rsp), %r13
addq %rbx, %r13
movl $0x100, %edx            # imm = 0x100
movq %r13, %rdi
xorl %esi, %esi
callq 0x5230
leaq 0x13d36(%rip), %r12     # 0x31b68
leaq 0x238(%rsp), %r14
movq %r12, -0x208(%r14)
movl $0x3f, %edx
movq %r14, %rdi
movq %rbp, %rsi
callq 0x5200
movb $0x0, 0x3f(%r14)
movl $0x248, %edi            # imm = 0x248
callq 0x51e0
movq %rax, %r15
leaq 0x13a76(%rip), %rax     # 0x318e0
movq %rax, (%r15)
leaq 0x8(%r15), %rdi
leaq 0x38(%rsp), %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x52f0
addq %r15, %rbx
movl $0x100, %edx            # imm = 0x100
movq %rbx, %rdi
movq %r13, %rsi
callq 0x52f0
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups 0x20(%r14), %xmm2
movups 0x30(%r14), %xmm3
movups %xmm0, 0x208(%r15)
movups %xmm1, 0x218(%r15)
movups %xmm2, 0x228(%r15)
movups %xmm3, 0x238(%r15)
movq %r12, (%r15)
leaq 0x13bc8(%rip), %rsi     # 0x31a98
movq 0x140f9(%rip), %rdx     # 0x31fd0
movq %r15, %rdi
callq 0x5620
jmp 0x1dfc4
xorl %ebp, %ebp
jmp 0x1deed
movl $0x1, %ebp
movl $0x108, %ebx            # imm = 0x108
leaq 0x30(%rsp), %r12
leaq (%r12,%rbx), %r15
movl $0x100, %edx            # imm = 0x100
movq %r15, %rdi
xorl %esi, %esi
callq 0x5230
leaq 0x13c87(%rip), %r13     # 0x31b98
movq %r13, (%r12)
leaq 0x238(%rsp), %r12
shll $0x5, %ebp
movq (%r14,%rbp), %rsi
movl $0x3f, %edx
movq %r12, %rdi
callq 0x5200
movb $0x0, 0x3f(%r12)
movl $0x248, %edi            # imm = 0x248
callq 0x51e0
movq %rax, %r14
leaq 0x13995(%rip), %rax     # 0x318e0
movq %rax, (%r14)
leaq 0x8(%r14), %rdi
leaq 0x38(%rsp), %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x52f0
addq %r14, %rbx
movl $0x100, %edx            # imm = 0x100
movq %rbx, %rdi
movq %r15, %rsi
callq 0x52f0
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups 0x20(%r12), %xmm2
movups 0x30(%r12), %xmm3
movups %xmm0, 0x208(%r14)
movups %xmm1, 0x218(%r14)
movups %xmm2, 0x228(%r14)
movups %xmm3, 0x238(%r14)
movq %r13, (%r14)
leaq 0x13b2b(%rip), %rsi     # 0x31ae0
movq 0x14014(%rip), %rdx     # 0x31fd0
movq %r14, %rdi
callq 0x5620
jmp 0x1dfc8
jmp 0x1dfc8
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x56d8
movq %rbx, %rdi
callq 0x5650
nop