// File: marxn[P]pupp/src/parser/constval.cpp
// Function: DefaultValueFactory::GetValue()
ConstValue * DefaultValueFactory::GetValue()
{
        ConstValue * result = NULL;
        switch(this->Type)
        {
                case Integer:
                        result = new IntegerValue(0);
                break;
                case String:
                        result = new StringValue("");
                break;
                case Boolean:
                        result = new BooleanValue(false);
                break;
                case Decimal:
                        result = new DecimalValue("0");
                break;
                case Map:
                        result = new MapValue();
                break;
                case Func:
                        result = new FuncValue(NULL, NULL);
                break;
                default:
                        result = new NullValue;
        }
        return result;
}

// Assembly:
subq $0xc8, %rsp
movq %rdi, 0xc0(%rsp)
movq 0xc0(%rsp), %rax
movq $0x0, 0xb8(%rsp)
movl (%rax), %eax
decl %eax
movl %eax, %ecx
movq %rcx, 0x50(%rsp)
subl $0x7, %eax
ja 0x9d7d
movq 0x50(%rsp), %rax
leaq 0x555fd(%rip), %rcx     # 0x5f050
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x18, %edi
callq 0x62f0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x48(%rsp)
xorl %eax, %eax
movl %eax, %esi
callq 0x7eb0
jmp 0x9a7c
movq 0x48(%rsp), %rax
movq %rax, 0xb8(%rsp)
jmp 0x9da6
movq 0x48(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
movl $0x18, %esi
callq 0x6300
jmp 0x9dd9
movl $0x30, %edi
callq 0x62f0
movq %rax, 0x38(%rsp)
movb $0x1, 0x86(%rsp)
leaq 0x87(%rsp), %rdi
movq %rdi, 0x40(%rsp)
callq 0x6560
movq 0x40(%rsp), %rdx
leaq 0x55533(%rip), %rsi     # 0x5f01e
leaq 0x88(%rsp), %rdi
callq 0x7240
jmp 0x9afa
movq 0x38(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x7c00
jmp 0x9b0e
movq 0x38(%rsp), %rax
movb $0x0, 0x86(%rsp)
movq %rax, 0xb8(%rsp)
leaq 0x88(%rsp), %rdi
callq 0x61e0
leaq 0x87(%rsp), %rdi
callq 0x6350
jmp 0x9da6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
jmp 0x9b79
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
leaq 0x88(%rsp), %rdi
callq 0x61e0
leaq 0x87(%rsp), %rdi
callq 0x6350
testb $0x1, 0x86(%rsp)
jne 0x9b92
jmp 0x9ba1
movq 0x38(%rsp), %rdi
movl $0x30, %esi
callq 0x6300
jmp 0x9dd9
movl $0x10, %edi
callq 0x62f0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x30(%rsp)
xorl %esi, %esi
callq 0x8c00
jmp 0x9bc4
movq 0x30(%rsp), %rax
movq %rax, 0xb8(%rsp)
jmp 0x9da6
movq 0x30(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
movl $0x10, %esi
callq 0x6300
jmp 0x9dd9
movl $0x28, %edi
callq 0x62f0
movq %rax, 0x20(%rsp)
movb $0x1, 0x5e(%rsp)
leaq 0x5f(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x6560
movq 0x28(%rsp), %rdx
leaq 0x5a476(%rip), %rsi     # 0x640a3
leaq 0x60(%rsp), %rdi
callq 0x7240
jmp 0x9c39
movq 0x20(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x8220
jmp 0x9c4a
movq 0x20(%rsp), %rax
movb $0x0, 0x5e(%rsp)
movq %rax, 0xb8(%rsp)
leaq 0x60(%rsp), %rdi
callq 0x61e0
leaq 0x5f(%rsp), %rdi
callq 0x6350
jmp 0x9da6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
jmp 0x9ca9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
leaq 0x60(%rsp), %rdi
callq 0x61e0
leaq 0x5f(%rsp), %rdi
callq 0x6350
testb $0x1, 0x5e(%rsp)
jne 0x9cbc
jmp 0x9ccb
movq 0x20(%rsp), %rdi
movl $0x28, %esi
callq 0x6300
jmp 0x9dd9
movl $0x40, %edi
callq 0x62f0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x18(%rsp)
callq 0x91d0
jmp 0x9cec
movq 0x18(%rsp), %rax
movq %rax, 0xb8(%rsp)
jmp 0x9da6
movq 0x18(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
movl $0x40, %esi
callq 0x6300
jmp 0x9dd9
movl $0x20, %edi
callq 0x62f0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x10(%rsp)
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x310f0
jmp 0x9d49
movq 0x10(%rsp), %rax
movq %rax, 0xb8(%rsp)
jmp 0x9da6
movq 0x10(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
movl $0x20, %esi
callq 0x6300
jmp 0x9dd9
movl $0x10, %edi
callq 0x62f0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x8(%rsp)
callq 0x7aa0
jmp 0x9d99
movq 0x8(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0xb8(%rsp), %rax
addq $0xc8, %rsp
retq
movq 0x8(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
movl $0x10, %esi
callq 0x6300
movq 0xb0(%rsp), %rdi
callq 0x6550
nopw %cs:(%rax,%rax)