// File: 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
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rdx, -0xe0(%rbp)
movq %rdi, -0xf8(%rbp)
movq %rdi, %rax
movq %rax, -0xf0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xe8(%rbp)
movb $0x0, -0x19(%rbp)
callq 0xa04e0
movq -0xe8(%rbp), %rdi
movq -0xe0(%rbp), %rsi
addq $0x8, %rdi
callq 0x97dd0
movq %rax, -0xd8(%rbp)
jmp 0xb9be3
movq -0xd8(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x20(%rbp)
cmpl $0x0, -0x20(%rbp)
je 0xb9e09
movl -0x20(%rbp), %eax
movq %rax, -0x100(%rbp)
subq $0x23, %rax
ja 0xb9df6
movq -0x100(%rbp), %rax
leaq 0x48e01(%rip), %rcx     # 0x102a1c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0xb9ec1
movb $0x1, -0x52(%rbp)
movl $0x20, %edi
callq 0x99e80
movq %rax, -0x110(%rbp)
leaq -0x51(%rbp), %rdi
movq %rdi, -0x108(%rbp)
callq 0xa35e0
movq -0x108(%rbp), %rdx
leaq 0x48e62(%rip), %rsi     # 0x102aca
leaq -0x50(%rbp), %rdi
callq 0xa0510
jmp 0xb9c73
movq -0xe0(%rbp), %rdx
movq -0x110(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0xa15c0
jmp 0xb9c8c
movq -0x110(%rbp), %rdi
movb $0x0, -0x52(%rbp)
movq 0x79012(%rip), %rsi     # 0x132cb0
movq 0x7901b(%rip), %rdx     # 0x132cc0
callq 0xa2fe0
jmp 0xba01c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0xb9cd2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x50(%rbp), %rdi
callq 0xa4f00
leaq -0x51(%rbp), %rdi
callq 0x9e350
testb $0x1, -0x52(%rbp)
jne 0xb9ce3
jmp 0xb9cef
movq -0x110(%rbp), %rdi
callq 0x9b9c0
jmp 0xb9ec1
movl $0x30, %edi
callq 0x9dc00
movq %rax, -0x118(%rbp)
jmp 0xb9d07
movq -0x118(%rbp), %rdi
callq 0x9bd60
jmp 0xb9d15
movq -0x118(%rbp), %rsi
movq -0xf8(%rbp), %rdi
callq 0xa3c90
jmp 0xb9d2a
jmp 0xb9df6
movq -0x118(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x9d660
jmp 0xb9ec1
movl $0x30, %edi
callq 0x9dc00
movq %rax, -0x120(%rbp)
jmp 0xb9d5f
movq -0x120(%rbp), %rdi
callq 0x9db20
jmp 0xb9d6d
movq -0x120(%rbp), %rsi
movq -0xf8(%rbp), %rdi
callq 0xa1350
jmp 0xb9d82
jmp 0xb9df6
movq -0x120(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x9d660
jmp 0xb9ec1
movl $0x30, %edi
callq 0x9dc00
movq %rax, -0x128(%rbp)
jmp 0xb9db4
movq -0x128(%rbp), %rdi
callq 0x99c90
jmp 0xb9dc2
movq -0x128(%rbp), %rsi
movq -0xf8(%rbp), %rdi
callq 0xa0e20
jmp 0xb9dd7
jmp 0xb9df6
movq -0x128(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x9d660
jmp 0xb9ec1
movb $0x1, -0x19(%rbp)
testb $0x1, -0x19(%rbp)
jne 0xb9eb1
jmp 0xb9ea5
movb $0x1, -0x79(%rbp)
movl $0x10, %edi
callq 0x99e80
movq -0xe0(%rbp), %rdx
movq %rax, -0x130(%rbp)
leaq 0x48cb9(%rip), %rsi     # 0x102ae5
leaq -0x78(%rbp), %rdi
callq 0x9cf50
jmp 0xb9e37
movq -0x130(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0xa2430
jmp 0xb9e49
movq -0x130(%rbp), %rdi
movb $0x0, -0x79(%rbp)
movq 0x7917d(%rip), %rsi     # 0x132fd8
movq 0x78f3e(%rip), %rdx     # 0x132da0
callq 0xa2fe0
jmp 0xba01c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0xb9e8f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x78(%rbp), %rdi
callq 0xa4f00
testb $0x1, -0x79(%rbp)
jne 0xb9e97
jmp 0xb9ea3
movq -0x130(%rbp), %rdi
callq 0x9b9c0
jmp 0xb9ec1
movq -0xf8(%rbp), %rdi
callq 0xa1ae0
movq -0xf0(%rbp), %rax
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
movq -0xf8(%rbp), %rdi
callq 0xa1ae0
movl -0x2c(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0xba00b
movq -0x28(%rbp), %rdi
callq 0x99540
movq %rax, -0x88(%rbp)
movb $0x1, -0xca(%rbp)
movl $0x10, %edi
callq 0x99e80
movq %rax, -0x148(%rbp)
movq -0x88(%rbp), %rdi
movq (%rdi), %rax
movq 0x10(%rax), %rax
callq *%rax
movq %rax, -0x140(%rbp)
leaq -0xc9(%rbp), %rdi
movq %rdi, -0x138(%rbp)
callq 0xa35e0
movq -0x140(%rbp), %rsi
movq -0x138(%rbp), %rdx
leaq -0xc8(%rbp), %rdi
callq 0xa0510
jmp 0xb9f4b
leaq 0x48bae(%rip), %rsi     # 0x102b00
leaq -0xa8(%rbp), %rdi
leaq -0xc8(%rbp), %rdx
callq 0xa2cb0
jmp 0xb9f67
movq -0x148(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0xa2430
jmp 0xb9f7c
movq -0x148(%rbp), %rdi
movb $0x0, -0xca(%rbp)
movq 0x79047(%rip), %rsi     # 0x132fd8
movq 0x78e08(%rip), %rdx     # 0x132da0
callq 0xa2fe0
jmp 0xba01c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0xb9fdf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0xb9fd3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0xa8(%rbp), %rdi
callq 0xa4f00
leaq -0xc8(%rbp), %rdi
callq 0xa4f00
leaq -0xc9(%rbp), %rdi
callq 0x9e350
testb $0x1, -0xca(%rbp)
jne 0xb9ff6
jmp 0xba002
movq -0x148(%rbp), %rdi
callq 0x9b9c0
callq 0xa2520
jmp 0xba009
jmp 0xba00b
movq -0x28(%rbp), %rdi
callq 0xa3520
movq %rax, %rdi
callq 0xa6900
nopl (%rax)