// File: /workspace/github_cpp_makefile_star2_O3/xjrueda[P]fixprime/src/DataHolderFactory.cpp
// Function: fprime::DataHolderFactory::create(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
fprime::DataHolder::DataTypePtr DataHolderFactory::create(string dataTypeId) {
        try {
            fprime::DataHolder::DataTypePtr MyDataType;
            fprime::DataTypeList selectedDataType = fprime::DataHolderFactory::DataTypes.DataTypes[dataTypeId];

            if (selectedDataType != 0) {
                switch (selectedDataType) {
                    case INVALIDDATATYPE:
                    {
                        throw string("Invalid dataType call for ") + dataTypeId;
                        break;
                    }
                    case INT:
                    {
                        MyDataType.reset(new IntDataHolder);
                        break;
                    }
                    case LENGTH:
                    case SEQNUM:
                    case TAGNUM:
                    case NUMINGROUP:
                    {
                        MyDataType.reset(new UIntDataHolder);
                        break;
                    }
                    case DAYOFMONTH:
                    case FLOAT:
                    case QTY:
                    case PRICE:
                    case PRICEOFFSET:
                    case AMT:
                    case PERCENTAGE:
                    case CHAR:
                    case BOOLEAN:
                    case STRING:
                    case MULTIPLECHARVALUE:
                    case MULTIPLESTRINGVALUE:
                    case COUNTRY:
                    case CURRENCY:
                    case EXCHANGE:
                    case MONTHYEAR:
                    case UTCTIMESTAMP:
                    case UTCTIMEONLY:
                    case UTCDATEONLY:
                    case LOCALMKTDATE:
                    case TZTIMEONLY:
                    case TZTIMESTAMP:
                    case DATA:
                    case PATTERN:
                    case TENOR:
                    case RESERVED100PLUS:
                    case RESERVED1000PLUS:
                    case RESERVED4000PLUS:
                    case XMLDATA:
                    case LANGUAGE:
                    {
                        MyDataType.reset(new StringDataHolder);
                        break;
                    }
                }
                return MyDataType;

            } else
                throw runtime_error("Invalid function call for " + dataTypeId);


        } catch (exception& e) {
            throw runtime_error("at DataFunctionFactory: " + string(e.what()));
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rdx, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
leaq 0x8(%rsi), %rdi
movq %rdx, %rsi
callq 0x2e300
movl (%rax), %eax
leal -0x6(%rax), %ecx
cmpl $0x1e, %ecx
jae 0x3749e
movl $0x30, %edi
callq 0x2f830
movq %rax, %r12
movq %rax, %rdi
callq 0x2ea50
movq %rbx, %rdi
movq %r12, %rsi
callq 0x30230
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leal -0x2(%rax), %ecx
cmpl $0x4, %ecx
jae 0x374c8
movl $0x30, %edi
callq 0x2f830
movq %rax, %r12
movq %rax, %rdi
callq 0x2f7d0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x30370
jmp 0x3748e
cmpl $0x1, %eax
je 0x3751f
testl %eax, %eax
jne 0x3748e
movl $0x10, %edi
callq 0x2eae0
movq %rax, %r12
leaq 0x2351d(%rip), %rsi     # 0x5aa02
leaq 0x10(%rsp), %rdi
movq %r14, %rdx
callq 0x2f510
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %r12, %rdi
callq 0x306f0
xorl %ebp, %ebp
movq 0x39acd(%rip), %rsi     # 0x70fd8
movq 0x398ae(%rip), %rdx     # 0x70dc0
movq %r12, %rdi
callq 0x308e0
jmp 0x37617
movl $0x30, %edi
callq 0x2f830
movq %rax, %r12
movq %rax, %rdi
callq 0x2f1e0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x30bb0
jmp 0x3748e
movq %rdx, %r15
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3755d
callq 0x2f6c0
testb %bpl, %bpl
jne 0x3756a
jmp 0x3758e
movq %rdx, %r15
movq %rax, %r14
movq %r12, %rdi
callq 0x2f150
jmp 0x3758e
jmp 0x37578
jmp 0x37578
movq %rdx, %r15
movq %rax, %r14
movq %r12, %rdi
callq 0x2f6c0
jmp 0x3758e
movq %rdx, %r15
movq %rax, %r14
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x3759c
callq 0x2f370
cmpl $0x1, %r15d
jne 0x3766f
movq %r14, %rdi
callq 0x2e8b0
movq %rax, %r14
movl $0x10, %edi
callq 0x2eae0
movq %rax, %rbx
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
leaq 0x30(%rsp), %rdi
leaq 0xf(%rsp), %rdx
movq %rax, %rsi
callq 0x2e880
leaq 0x2343d(%rip), %rsi     # 0x5aa1d
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x30830
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x306f0
xorl %ebp, %ebp
movq 0x399d0(%rip), %rsi     # 0x70fd8
movq 0x397b1(%rip), %rdx     # 0x70dc0
movq %rbx, %rdi
callq 0x308e0
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3762d
callq 0x2f6c0
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x37640
callq 0x2f6c0
testb %bpl, %bpl
jne 0x37662
jmp 0x3766a
movq %rax, %r14
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x37662
callq 0x2f6c0
jmp 0x37662
movq %rax, %r14
movq %rbx, %rdi
callq 0x2f150
callq 0x30740
movq %r14, %rdi
callq 0x30a10
movq %rax, %rdi
callq 0x320e8
nop