// File: /workspace/github_cpp_makefile_star2_O1/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 0x375ba
movl $0x30, %edi
callq 0x2f830
movq %rax, %r12
movq %rax, %rdi
callq 0x2ea50
movq %rbx, %rdi
movq %r12, %rsi
callq 0x30240
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 0x375e4
movl $0x30, %edi
callq 0x2f830
movq %rax, %r12
movq %rax, %rdi
callq 0x2f7d0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x30380
jmp 0x375aa
cmpl $0x1, %eax
je 0x3763b
testl %eax, %eax
jne 0x375aa
movl $0x10, %edi
callq 0x2eae0
movq %rax, %r12
leaq 0x24401(%rip), %rsi     # 0x5ba02
leaq 0x10(%rsp), %rdi
movq %r14, %rdx
callq 0x2f510
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %r12, %rdi
callq 0x30700
xorl %ebp, %ebp
movq 0x3a9b1(%rip), %rsi     # 0x71fd8
movq 0x3a792(%rip), %rdx     # 0x71dc0
movq %r12, %rdi
callq 0x308f0
jmp 0x37736
movl $0x30, %edi
callq 0x2f830
movq %rax, %r12
movq %rax, %rdi
callq 0x2f1e0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x30bc0
jmp 0x375aa
movq %rdx, %r15
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x37684
callq 0x2f6c0
jmp 0x37684
movq %rdx, %r15
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x376ad
movq %r12, %rdi
callq 0x2f150
jmp 0x376ad
jmp 0x37697
jmp 0x37697
movq %rdx, %r15
movq %rax, %r14
movq %r12, %rdi
callq 0x2f6c0
jmp 0x376ad
movq %rdx, %r15
movq %rax, %r14
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x376bb
callq 0x2f370
cmpl $0x1, %r15d
jne 0x37781
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 0x2431e(%rip), %rsi     # 0x5ba1d
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x30840
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x30700
xorl %ebp, %ebp
movq 0x3a8b1(%rip), %rsi     # 0x71fd8
movq 0x3a692(%rip), %rdx     # 0x71dc0
movq %rbx, %rdi
callq 0x308f0
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x37754
callq 0x2f6c0
jmp 0x37754
movq %rax, %r14
movb $0x1, %bpl
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3776f
callq 0x2f6c0
jmp 0x3776f
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x3777c
movq %rbx, %rdi
callq 0x2f150
callq 0x30750
movq %r14, %rdi
callq 0x30a20
movq %rax, %rdi
callq 0x32108
nop