// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: compileval(vector<unsigned int>&, int, char*, int)
static inline void compileval(vector<uint> &code, int wordtype, char *word, int wordlen)
{
    switch(wordtype)
    {
        case VAL_STR: compilestr(code, word, wordlen, true); break;
        case VAL_ANY: compilestr(code, word, wordlen); break;
        case VAL_FLOAT: compilefloat(code, word); break;
        case VAL_INT: compileint(code, word); break;
        case VAL_CODE: 
        {
            int start = code.length();
            code.add(CODE_BLOCK);
            code.add(CODE_OFFSET|((start+2)<<8));
            const char *p = word;
            compilestatements(code, p, VAL_ANY);
            code.add(CODE_EXIT|RET_STR);
            code[start] |= uint(code.length() - (start + 1))<<8;
            break;
        }
        case VAL_IDENT: compileident(code, word); break;
        default:
            break;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
decl %esi
cmpl $0x6, %esi
ja 0x11203
movl %ecx, %r15d
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x6baa(%rip), %rax      # 0x17adc
movslq (%rax,%rsi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
testq %r14, %r14
je 0x11150
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2050
movq %rax, %r14
addl $0x800000, %eax         # imm = 0x800000
cmpl $0xffffff, %eax         # imm = 0xFFFFFF
jbe 0x11153
leaq -0x30(%rbp), %r15
movl $0x45, (%r15)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x13178
movl %r14d, (%r15)
leaq -0x30(%rbp), %rsi
jmp 0x111fb
movl %r15d, %eax
shll $0x8, %eax
orl $0x7, %eax
leaq -0x30(%rbp), %r12
movl %eax, (%r12)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x13178
movslq %r15d, %r13
movl %r15d, %edx
sarl $0x2, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13236
andl $0x3, %r15d
movl $0x0, (%r12)
addq %r14, %r13
subq %r15, %r13
leaq -0x30(%rbp), %r14
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x2130
jmp 0x111e8
testq %r14, %r14
je 0x11130
movq %r14, %rdi
movl $0x20, %esi
callq 0x3e12
jmp 0x11137
testq %r14, %r14
je 0x11167
leaq -0x30(%rbp), %rsi
movq %r14, %rdi
callq 0x2120
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x1101e
jnp 0x1116c
cvtsd2ss %xmm0, %xmm0
jmp 0x1119b
cmpl $0x3, %r15d
jle 0x110ff
movl %r15d, %eax
shll $0x8, %eax
orl $0xc5, %eax
leaq -0x30(%rbp), %r12
movl %eax, (%r12)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x13178
movl %r15d, %r13d
shrl $0x2, %r15d
movq %rbx, %rdi
movq %r14, %rsi
movl %r15d, %edx
callq 0x13236
movl %r13d, %edx
andl $0x3, %edx
movl $0x0, (%r12)
addq %r13, %r14
subq %rdx, %r14
leaq -0x30(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x2130
movq %rbx, %rdi
movq %r15, %rsi
jmp 0x111fe
movslq 0xc(%rbx), %r12
leaq -0x30(%rbp), %r15
movl $0x9, (%r15)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x13178
movl %r12d, %eax
shll $0x8, %eax
addl $0x201, %eax            # imm = 0x201
movl %eax, (%r15)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x13178
movq %r14, (%r15)
leaq -0x30(%rbp), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0xe21b
leaq -0x34(%rbp), %rsi
movl $0xc4, (%rsi)
movq %rbx, %rdi
callq 0x13178
movl %r12d, %eax
notl %eax
addl 0xc(%rbx), %eax
shll $0x8, %eax
movq (%rbx), %rcx
orl %eax, (%rcx,%r12,4)
jmp 0x11203
testl %r15d, %r15d
jle 0x111f0
movl %r15d, %edx
movl $0xc6, %eax
movl $0x8, %ecx
xorl %esi, %esi
movzbl (%r14,%rsi), %edi
shll %cl, %edi
incq %rsi
orl %edi, %eax
addl $0x8, %ecx
cmpq %rsi, %rdx
jne 0x11117
jmp 0x111f5
movq 0xe559(%rip), %rax      # 0x1f690
movl 0x3c(%rax), %eax
xorl %ecx, %ecx
cmpl $0x19, %eax
setl %cl
shll $0x8, %eax
leal (%rax,%rcx,2), %eax
addl $0xd, %eax
jmp 0x111f5
xorl %r14d, %r14d
shll $0x8, %r14d
orl $0x46, %r14d
leaq -0x30(%rbp), %rsi
movl %r14d, (%rsi)
jmp 0x111fb
xorps %xmm0, %xmm0
jmp 0x1119b
movq -0x30(%rbp), %rax
cmpq %r14, %rax
je 0x1101e
movzbl (%rax), %eax
orl $0x20, %eax
cmpl $0x78, %eax
jne 0x1101e
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2050
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
movss 0x6ad5(%rip), %xmm1     # 0x17c78
ucomiss %xmm0, %xmm1
jb 0x111cd
ucomiss 0x6acd(%rip), %xmm0     # 0x17c7c
jb 0x111cd
cvttps2dq %xmm0, %xmm1
cvtdq2ps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x111cd
jp 0x111cd
cvttss2si %xmm0, %eax
shll $0x8, %eax
orl $0x86, %eax
jmp 0x111f5
leaq -0x30(%rbp), %r14
movss %xmm0, (%r14)
leaq -0x34(%rbp), %rsi
movl $0x85, (%rsi)
movq %rbx, %rdi
callq 0x13178
movq %rbx, %rdi
movq %r14, %rsi
jmp 0x111fe
movl $0xc6, %eax
leaq -0x30(%rbp), %rsi
movl %eax, (%rsi)
movq %rbx, %rdi
callq 0x13178
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq