LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: getbool(tagval const&)
static inline bool getbool(const tagval &v)
{
    switch(v.type)
    {
        case VAL_FLOAT: return v.f!=0;
        case VAL_INT: return v.i!=0;
        case VAL_STR: case VAL_MACRO: return getbool(v.s);
        default: return false;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
movl 0x8(%rdi), %ecx
xorl %eax, %eax
decl %ecx
cmpl $0x5, %ecx
ja 0x97ac
leaq 0xe0ee(%rip), %rdx      # 0x177d0
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq (%rdi), %rbx
movzbl (%rbx), %ecx
leal -0x2b(%rcx), %eax
cmpl $0x5, %eax
ja 0x9766
leaq 0xe0e8(%rip), %rcx      # 0x177e8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movzbl 0x1(%rbx), %ecx
cmpl $0x30, %ecx
je 0x973c
movb $0x1, %al
cmpl $0x2e, %ecx
jne 0x97ac
movsbl 0x2(%rbx), %ecx
addl $-0x30, %ecx
jmp 0x977b
xorps %xmm0, %xmm0
cmpneqss (%rdi), %xmm0
movd %xmm0, %eax
jmp 0x97a9
cmpl $0x0, (%rdi)
setne %al
jmp 0x97ac
leaq -0x18(%rbp), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2050
movq %rax, %rcx
movb $0x1, %al
testl %ecx, %ecx
jne 0x97ac
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
cmpl $0x65, %eax
je 0x9780
cmpl $0x2e, %eax
je 0x9780
jmp 0x976a
testl %ecx, %ecx
jne 0x976e
xorl %eax, %eax
jmp 0x97ac
movb $0x1, %al
jmp 0x97ac
movsbl 0x1(%rbx), %ecx
addl $-0x30, %ecx
movb $0x1, %al
cmpl $0x9, %ecx
ja 0x97ac
leaq -0x10(%rbp), %rsi
movq %rbx, %rdi
callq 0x2120
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x9798
jnp 0x97b3
cvtsd2ss %xmm0, %xmm0
xorpd %xmm1, %xmm1
cmpneqss %xmm0, %xmm1
movd %xmm1, %eax
andl $0x1, %eax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
movq -0x10(%rbp), %rax
cmpq %rbx, %rax
je 0x9798
movzbl (%rax), %eax
orl $0x20, %eax
cmpl $0x78, %eax
jne 0x9798
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2050
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
jmp 0x979c
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: executebool(char const*)
bool executebool(const char *p)
{
    tagval result;
    executeret(p, result);
    bool b = getbool(result);
    freearg(result);
    return b;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq -0x20(%rbp), %r14
movq %r14, %rsi
callq 0x9175
movq %r14, %rdi
callq 0x96c2
movl %eax, %ebx
movq (%r14), %rdi
movl 0x8(%r14), %eax
cmpl $0x5, %eax
je 0x9815
cmpl $0x3, %eax
jne 0x9824
testq %rdi, %rdi
jne 0x981f
jmp 0x9824
cmpl $0x0, -0x4(%rdi)
jne 0x9824
addq $-0x4, %rdi
callq 0x1572b
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: execfile(char const*, bool)
bool execfile(const char *cfgfile, bool msg)
{
    string s;
    copystring(s, cfgfile);
    char *buf = loadfile(path(s), NULL);
    if(!buf)
    {
        if(msg) conoutf(CON_ERROR, "could not read \"%s\"", cfgfile);
        return false;
    }
    const char *oldsourcefile = sourcefile, *oldsourcestr = sourcestr;
    sourcefile = cfgfile;
    sourcestr = buf;
    execute(buf);
    sourcefile = oldsourcefile;
    sourcestr = oldsourcestr;
    delete[] buf;
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x110, %rsp            # imm = 0x110
movl %esi, %r14d
movq %rdi, %rbx
callq 0x2080
movq %rax, %r15
incq %r15
movl $0x104, %eax            # imm = 0x104
cmpq %rax, %r15
cmovaeq %rax, %r15
leaq -0x130(%rbp), %r12
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2130
movb $0x0, -0x131(%rbp,%r15)
movq %r12, %rdi
callq 0x13c3a
movq %rax, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x14bb6
movq %rax, %r15
testq %rax, %rax
je 0x98d7
movq 0x15e36(%rip), %r14     # 0x1f6d8
movq 0x15e37(%rip), %r12     # 0x1f6e0
movq %rbx, 0x15e28(%rip)     # 0x1f6d8
movq %r15, 0x15e29(%rip)     # 0x1f6e0
movq %r15, %rdi
callq 0x9578
movq %r14, 0x15e12(%rip)     # 0x1f6d8
movq %r12, 0x15e13(%rip)     # 0x1f6e0
movq %r15, %rdi
callq 0x1572b
jmp 0x98f2
testb %r14b, %r14b
je 0x98f2
leaq 0xe608(%rip), %rsi      # 0x17eeb
movl $0x4, %edi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x3666
testq %r15, %r15
setne %al
addq $0x110, %rsp            # imm = 0x110
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: escapestring(char const*)
const char *escapestring(const char *s)
{
    static vector<char> strbuf[3];
    static int stridx = 0;
    stridx = (stridx + 1)%3;
    vector<char> &buf = strbuf[stridx];
    buf.setsize(0);
    buf.add('"');
    for(; *s; s++) switch(*s)
    {
        case '\n': buf.put("^n", 2); break;
        case '\t': buf.put("^t", 2); break;
        case '\f': buf.put("^f", 2); break;
        case '"': buf.put("^\"", 2); break;
        case '^': buf.put("^^", 2); break;
        default: buf.add(*s); break;
    }
    buf.put("\"\0", 2);
    return buf.getbuf();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movb 0x15dd9(%rip), %al      # 0x1f720
testb %al, %al
je 0x9a44
movl 0x15dd3(%rip), %eax     # 0x1f728
movl %eax, %ecx
incl %ecx
movl $0xaaaaaaab, %edx       # imm = 0xAAAAAAAB
imulq %rcx, %rdx
shrq $0x21, %rdx
leal (%rdx,%rdx,2), %ecx
negl %ecx
addl %ecx, %eax
incl %eax
movl %eax, 0x15db3(%rip)     # 0x1f728
shll $0x4, %eax
leaq 0x15d71(%rip), %rcx     # 0x1f6f0
leaq (%rcx,%rax), %r14
movl $0x0, 0xc(%rax,%rcx)
leaq -0x29(%rbp), %rsi
movb $0x22, (%rsi)
movq %r14, %rdi
callq 0x12ca0
leaq 0xe56c(%rip), %r13      # 0x17f0d
leaq 0xe568(%rip), %r15      # 0x17f10
leaq 0xe564(%rip), %r12      # 0x17f13
movzbl (%rbx), %eax
cmpl $0xb, %eax
jle 0x99ce
cmpl $0xc, %eax
je 0x99e4
cmpl $0x22, %eax
je 0x99ec
cmpl $0x5e, %eax
jne 0x9a11
movq %r14, %rdi
movq %r12, %rsi
jmp 0x99fe
cmpl $0x9, %eax
je 0x99f4
cmpl $0xa, %eax
jne 0x9a0d
movq %r14, %rdi
leaq 0xe525(%rip), %rsi      # 0x17f07
jmp 0x99fe
movq %r14, %rdi
movq %r13, %rsi
jmp 0x99fe
movq %r14, %rdi
movq %r15, %rsi
jmp 0x99fe
movq %r14, %rdi
leaq 0xe50c(%rip), %rsi      # 0x17f0a
movl $0x2, %edx
callq 0x12ce0
incq %rbx
jmp 0x99af
testl %eax, %eax
je 0x9a1e
movq %r14, %rdi
movq %rbx, %rsi
callq 0x12ca0
jmp 0x9a08
leaq 0xe1fb(%rip), %rsi      # 0x17c20
movq %r14, %rdi
movl $0x2, %edx
callq 0x12ce0
movq (%r14), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2400
jmp 0x994f
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: validateblock(char const*)
bool validateblock(const char *s)
{
    const int maxbrak = 100;
    static char brakstack[maxbrak];
    int brakdepth = 0;
    for(; *s; s++) switch(*s)
    {
        case '[': case '(': if(brakdepth >= maxbrak) return false; brakstack[brakdepth++] = *s; break;
        case ']': if(brakdepth <= 0 || brakstack[--brakdepth] != '[') return false; break;
        case ')': if(brakdepth <= 0 || brakstack[--brakdepth] != '(') return false; break;
        case '"': s = parsestring(s + 1); if(*s != '"') return false; break;
        case '/': if(s[1] == '/') return false; break;
        case '@': case '\f': return false;
    }
    return brakdepth == 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rax
xorl %ebx, %ebx
leaq 0x15bda(%rip), %r14     # 0x1f730
movb (%rax), %sil
movzbl %sil, %edx
xorl %ecx, %ecx
cmpl $0x2e, %edx
jg 0x9b82
cmpl $0x27, %edx
jle 0x9ba1
cmpl $0x28, %edx
je 0x9b91
cmpl $0x29, %edx
jne 0x9be4
testl %ebx, %ebx
jle 0x9bec
decl %ebx
cmpb $0x28, (%rbx,%r14)
je 0x9be4
jmp 0x9bec
cmpl $0x5a, %edx
jle 0x9bb8
cmpl $0x5d, %edx
je 0x9bc5
cmpl $0x5b, %edx
jne 0x9be4
cmpl $0x63, %ebx
jg 0x9bec
movslq %ebx, %rcx
incl %ebx
movb %sil, (%rcx,%r14)
jmp 0x9be4
cmpl $0x22, %edx
jne 0x9bd4
incq %rax
movq %rax, %rdi
callq 0x4f49
cmpb $0x22, (%rax)
je 0x9be4
jmp 0x9bec
cmpl $0x2f, %edx
jne 0x9bdf
cmpb $0x2f, 0x1(%rax)
jne 0x9be4
jmp 0x9bec
testl %ebx, %ebx
jle 0x9bec
decl %ebx
cmpb $0x5b, (%rbx,%r14)
je 0x9be4
jmp 0x9bec
testl %edx, %edx
je 0x9bf5
cmpl $0xc, %edx
jne 0x9be4
jmp 0x9bee
cmpl $0x40, %edx
je 0x9bee
incq %rax
jmp 0x9b56
xorl %ecx, %ecx
movl %ecx, %eax
popq %rbx
popq %r14
popq %rbp
retq
testl %ebx, %ebx
sete %cl
jmp 0x9bee
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: loopiter(ident*, identstack&, tagval const&)
void loopiter(ident *id, identstack &stack, const tagval &v)
{
    if(id->stack != &stack)
    {
        pusharg(*id, v, stack);
        id->flags &= ~IDF_UNKNOWN;
    }
    else
    {
        if(id->valtype == VAL_STR) delete[] id->val.s;
        cleancode(*id);
        id->setval(v);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rdi, %rbx
cmpq %rsi, 0x28(%rdi)
je 0x9e65
movq 0x20(%rbx), %rax
movq %rax, (%rsi)
movl 0x10(%rbx), %eax
movl %eax, 0x8(%rsi)
movq 0x28(%rbx), %rax
movq %rax, 0x10(%rsi)
movq %rsi, 0x28(%rbx)
movl 0x8(%r14), %eax
movl %eax, 0x10(%rbx)
movq (%r14), %rax
movq %rax, 0x20(%rbx)
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x9e5f
addl $0xffffff00, (%rax)     # imm = 0xFFFFFF00
movq 0x18(%rbx), %rdi
cmpl $0xff, (%rdi)
jg 0x9e57
callq 0x1572b
movq $0x0, 0x18(%rbx)
andb $-0x21, 0x38(%rbx)
jmp 0x9eaf
cmpl $0x3, 0x10(%rbx)
jne 0x9e79
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x9e79
callq 0x1572b
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x9ea1
addl $0xffffff00, (%rax)     # imm = 0xFFFFFF00
movq 0x18(%rbx), %rdi
cmpl $0xff, (%rdi)
jg 0x9e99
callq 0x1572b
movq $0x0, 0x18(%rbx)
movl 0x8(%r14), %eax
movl %eax, 0x10(%rbx)
movq (%r14), %rax
movq %rax, 0x20(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: at(tagval*, int)
void at(tagval *args, int numargs)
{
    if(!numargs) return;
    const char *start = args[0].getstr(), *end = start + strlen(start);
    for(int i = 1; i < numargs; i++)
    {
        const char *list = start;
        int pos = args[i].getint();
        for(; pos > 0; pos--) if(!parselist(list)) break; 
        if(pos > 0 || !parselist(list, start, end)) start = end = "";
    }
    commandret->setstr(newstring(start, end-start));
}

// Assembly:
testl %esi, %esi
je 0xb041
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %esi, %ebx
movq %rdi, %r13
movl 0x8(%rdi), %eax
leaq 0xd403(%rip), %r14      # 0x1826f
decl %eax
cmpl $0x5, %eax
ja 0xaee9
leaq 0xc9f6(%rip), %rcx      # 0x17870
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%r13), %r14
jmp 0xaee9
movss (%r13), %xmm0
callq 0x4d4c
movq %rax, %r14
jmp 0xaee9
movl (%r13), %edx
movl 0x148f1(%rip), %eax     # 0x1f794
incl %eax
andl $0x3, %eax
movl %eax, 0x148e6(%rip)     # 0x1f794
movl %eax, %ecx
shll $0x8, %ecx
leal (%rcx,%rax,4), %eax
leaq 0x148e3(%rip), %r15     # 0x1f7a0
addq %r15, %rax
leaq -0x30(%rbp), %rdi
movq %rax, (%rdi)
leaq 0xcfd3(%rip), %rsi      # 0x17ea1
xorl %eax, %eax
callq 0x12e1e
movl 0x148b9(%rip), %eax     # 0x1f794
movq %rax, %rcx
shlq $0x8, %rcx
leaq (%rcx,%rax,4), %r14
addq %r15, %r14
movq %r14, -0x30(%rbp)
movq %r14, %rdi
callq 0x2080
movq %rax, %r15
addq %r14, %r15
movq %r15, -0x38(%rbp)
cmpl $0x2, %ebx
jl 0xafe6
movl %ebx, %eax
movq %rax, -0x48(%rbp)
movl $0x1, %ebx
leaq 0x14ca6(%rip), %r14     # 0x1fbc0
leaq 0x14ca7(%rip), %r15     # 0x1fbc8
leaq -0x50(%rbp), %r12
movq %r13, -0x40(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x50(%rbp)
movq %rbx, %rax
shlq $0x4, %rax
movl 0x8(%r13,%rax), %ecx
decl %ecx
cmpl $0x5, %ecx
ja 0xafa4
addq -0x40(%rbp), %rax
leaq 0xc939(%rip), %rdx      # 0x17888
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq (%rax), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2050
movq %rax, %r13
jmp 0xaf73
cvttss2si (%rax), %r13d
jmp 0xaf73
movl (%rax), %r13d
testl %r13d, %r13d
jle 0xafa4
incl %r13d
movq %r12, %rdi
leaq 0x14c4b(%rip), %rsi     # 0x1fbd0
leaq 0x14c4c(%rip), %rdx     # 0x1fbd8
movq %r14, %rcx
movq %r15, %r8
callq 0xa8fd
testb %al, %al
je 0xafbe
decl %r13d
cmpl $0x2, %r13d
jge 0xaf7b
movq %r12, %rdi
leaq -0x30(%rbp), %rsi
leaq -0x38(%rbp), %rdx
movq %r14, %rcx
movq %r15, %r8
callq 0xa8fd
testb %al, %al
jne 0xafcd
leaq 0xd2aa(%rip), %rax      # 0x1826f
movq %rax, -0x38(%rbp)
movq %rax, -0x30(%rbp)
incq %rbx
cmpq -0x48(%rbp), %rbx
movq -0x40(%rbp), %r13
jne 0xaf29
movq -0x30(%rbp), %r14
movq -0x38(%rbp), %r15
movq 0x1421b(%rip), %r13     # 0x1f208
subq %r14, %r15
incq %r15
movq %r15, %rdi
callq 0x15705
movq %rax, %rbx
movq %r14, %rdi
callq 0x2080
movq %rax, %r12
incq %r12
cmpq %r15, %r12
cmovaeq %r15, %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x2130
movb $0x0, -0x1(%rbx,%r12)
movl $0x3, 0x8(%r13)
movq %rbx, (%r13)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: sublist(char const*, int*, int*, int*)
void sublist(const char *s, int *skip, int *count, int *numargs)
{
    int offset = max(*skip, 0), len = *numargs >= 3 ? max(*count, 0) : -1;
    loopi(offset) if(!parselist(s)) break;
    if(len < 0) { if(offset > 0) skiplist(s); commandret->setstr(newstring(s)); return; }
    const char *list = s, *start, *end, *qstart, *qend = s;
    if(len > 0 && parselist(s, start, end, list, qend)) while(--len > 0 && parselist(s, start, end, qstart, qend));
    commandret->setstr(newstring(list, qend - list)); 
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, -0x30(%rbp)
movl (%rsi), %esi
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpl $0x3, (%rcx)
jl 0xb117
movl (%rdx), %eax
xorl %ebx, %ebx
testl %eax, %eax
cmovgl %eax, %ebx
movq %rsi, -0x40(%rbp)
testl %esi, %esi
jle 0xb164
movq -0x40(%rbp), %rax
leal -0x1(%rax), %r14d
leaq 0x14a92(%rip), %r15     # 0x1fbc0
leaq 0x14a93(%rip), %r12     # 0x1fbc8
leaq -0x30(%rbp), %r13
movq %r13, %rdi
leaq 0x14a8d(%rip), %rsi     # 0x1fbd0
leaq 0x14a8e(%rip), %rdx     # 0x1fbd8
movq %r15, %rcx
movq %r12, %r8
callq 0xa8fd
addl $-0x1, %r14d
setb %cl
testb %al, %al
je 0xb164
testb %cl, %cl
jne 0xb139
testl %ebx, %ebx
js 0xb223
movq -0x30(%rbp), %rax
movq %rax, -0x48(%rbp)
movq %rax, -0x38(%rbp)
je 0xb1c9
leaq -0x30(%rbp), %rdi
leaq -0x58(%rbp), %rsi
leaq -0x50(%rbp), %rdx
leaq -0x48(%rbp), %rcx
leaq -0x38(%rbp), %r8
callq 0xa8fd
testb %al, %al
je 0xb1c9
incl %ebx
leaq -0x58(%rbp), %r14
leaq -0x50(%rbp), %r15
leaq -0x60(%rbp), %r12
leaq -0x38(%rbp), %r13
decl %ebx
cmpl $0x2, %ebx
jl 0xb1c9
leaq -0x30(%rbp), %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
movq %r13, %r8
callq 0xa8fd
testb %al, %al
jne 0xb1a9
movq 0x14038(%rip), %r13     # 0x1f208
movq -0x48(%rbp), %rbx
movq -0x38(%rbp), %r14
subq %rbx, %r14
incq %r14
movq %r14, %rdi
callq 0x15705
movq %rax, %r15
movq %rbx, %rdi
callq 0x2080
movq %rax, %r12
incq %r12
cmpq %r14, %r12
cmovaeq %r14, %r12
movq %r15, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x2130
movb $0x0, -0x1(%r15,%r12)
movl $0x3, 0x8(%r13)
movq %r15, (%r13)
jmp 0xb2c6
movq -0x30(%rbp), %r14
cmpl $0x0, -0x40(%rbp)
jle 0xb28a
leaq 0xd037(%rip), %rsi      # 0x1826b
movq %r14, %rdi
callq 0x2070
leaq (%r14,%rax), %rbx
cmpb $0x2f, (%r14,%rax)
jne 0xb28d
cmpb $0x2f, 0x1(%rbx)
jne 0xb28d
leaq 0xc9e5(%rip), %r14      # 0x17c39
leaq 0xd010(%rip), %r15      # 0x1826b
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2030
movq %rax, %r12
addq %rbx, %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x2070
leaq (%r12,%rax), %rbx
cmpb $0x2f, (%rax,%r12)
jne 0xb28d
cmpb $0x2f, 0x1(%rbx)
je 0xb25b
jmp 0xb28d
movq %r14, %rbx
movq 0x13f74(%rip), %r12     # 0x1f208
movq %rbx, %rdi
callq 0x2080
leaq 0x1(%rax), %r14
movq %r14, %rdi
callq 0x15705
movq %rax, %r15
movq %rax, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x2130
movl $0x3, 0x8(%r12)
movq %r15, (%r12)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: listfind(ident*, char const*, unsigned int const*)
void listfind(ident *id, const char *list, const uint *body)
{
    if(id->type!=ID_ALIAS) { intret(-1); return; }
    identstack stack;
    int n = -1;
    for(const char *s = list, *start, *end; parselist(s, start, end);)
    {
        ++n;
        char *val = newstring(start, end-start);
        setiter(*id, val, stack);
        if(executebool(body)) { intret(n); goto found; }
    }
    intret(-1);
found:
    if(n >= 0) poparg(*id);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, -0x38(%rbp)
cmpl $0x4, (%rdi)
jne 0xb496
movq %rdi, %rbx
leaq -0x50(%rbp), %rax
movq %rsi, (%rax)
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
leaq -0x50(%rbp), %rdi
leaq -0x48(%rbp), %rsi
leaq -0x40(%rbp), %rdx
leaq 0x14859(%rip), %rcx     # 0x1fbc0
leaq 0x1485a(%rip), %r8      # 0x1fbc8
callq 0xa8fd
testb %al, %al
je 0xb4ac
movl %r14d, -0x2c(%rbp)
movq -0x48(%rbp), %r13
movq -0x40(%rbp), %r15
subq %r13, %r15
incq %r15
movq %r15, %rdi
callq 0x15705
movq %rax, %r12
movq %r13, %rdi
callq 0x2080
movq %rax, %r14
incq %r14
cmpq %r15, %r14
jb 0xb3ae
movq %r15, %r14
movq %r12, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x2130
movb $0x0, -0x1(%r12,%r14)
movq 0x28(%rbx), %rax
leaq -0x68(%rbp), %rdx
cmpq %rdx, %rax
je 0xb422
movq 0x20(%rbx), %rcx
movq %rcx, -0x68(%rbp)
movl 0x10(%rbx), %ecx
movl %ecx, -0x60(%rbp)
movq %rax, -0x58(%rbp)
movq %rdx, 0x28(%rbx)
movl $0x3, 0x10(%rbx)
movq %r12, 0x20(%rbx)
movq 0x18(%rbx), %rax
testq %rax, %rax
movl -0x2c(%rbp), %r14d
je 0xb41c
addl $0xffffff00, (%rax)     # imm = 0xFFFFFF00
movq 0x18(%rbx), %rdi
cmpl $0xff, (%rdi)
jg 0xb414
callq 0x1572b
movq $0x0, 0x18(%rbx)
andb $-0x21, 0x38(%rbx)
jmp 0xb46f
cmpl $0x3, 0x10(%rbx)
movl -0x2c(%rbp), %r14d
jne 0xb43c
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0xb443
callq 0x1572b
jmp 0xb443
movl $0x3, 0x10(%rbx)
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0xb46b
addl $0xffffff00, (%rax)     # imm = 0xFFFFFF00
movq 0x18(%rbx), %rdi
cmpl $0xff, (%rdi)
jg 0xb463
callq 0x1572b
movq $0x0, 0x18(%rbx)
movq %r12, 0x20(%rbx)
movq -0x38(%rbp), %rdi
callq 0x966f
incl %r14d
testb %al, %al
je 0xb354
movq 0x13d7e(%rip), %rax     # 0x1f208
movl $0x1, 0x8(%rax)
movl %r14d, (%rax)
jmp 0xb4c0
movq 0x13d6b(%rip), %rax     # 0x1f208
movl $0x1, 0x8(%rax)
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
jmp 0xb520
movq 0x13d55(%rip), %rax     # 0x1f208
movl $0x1, 0x8(%rax)
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
testl %r14d, %r14d
js 0xb520
movq 0x28(%rbx), %r14
testq %r14, %r14
je 0xb520
cmpl $0x3, 0x10(%rbx)
jne 0xb4e2
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0xb4e2
callq 0x1572b
movl 0x8(%r14), %eax
movl %eax, 0x10(%rbx)
movq (%r14), %rax
movq %rax, 0x20(%rbx)
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0xb518
addl $0xffffff00, (%rax)     # imm = 0xFFFFFF00
movq 0x18(%rbx), %rdi
cmpl $0xff, (%rdi)
jg 0xb510
callq 0x1572b
movq $0x0, 0x18(%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x28(%rbx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: looplist(ident*, char const*, unsigned int const*)
void looplist(ident *id, const char *list, const uint *body)
{
    if(id->type!=ID_ALIAS) return;
    identstack stack;
    int n = 0;
    for(const char *s = list, *start, *end; parselist(s, start, end); n++)
    {
        char *val = newstring(start, end-start);
        setiter(*id, val, stack);
        execute(body);
    }
    if(n) poparg(*id);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, -0x48(%rbp)
cmpl $0x4, (%rdi)
jne 0xb6f6
movq %rdi, %rbx
leaq -0x50(%rbp), %rdi
movq %rsi, (%rdi)
leaq 0x14662(%rip), %rcx     # 0x1fbc0
leaq 0x14663(%rip), %r8      # 0x1fbc8
leaq -0x40(%rbp), %rsi
leaq -0x38(%rbp), %rdx
callq 0xa8fd
testb %al, %al
je 0xb6f6
movb %al, -0x29(%rbp)
movq -0x40(%rbp), %r12
movq -0x38(%rbp), %r13
subq %r12, %r13
incq %r13
movq %r13, %rdi
callq 0x15705
movq %rax, %r15
movq %r12, %rdi
callq 0x2080
movq %rax, %r14
incq %r14
cmpq %r13, %r14
jb 0xb5ac
movq %r13, %r14
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x2130
movb $0x0, -0x1(%r15,%r14)
movq 0x28(%rbx), %rax
leaq -0x68(%rbp), %rdx
cmpq %rdx, %rax
je 0xb61c
movq 0x20(%rbx), %rcx
movq %rcx, -0x68(%rbp)
movl 0x10(%rbx), %ecx
movl %ecx, -0x60(%rbp)
movq %rax, -0x58(%rbp)
movq %rdx, 0x28(%rbx)
movl $0x3, 0x10(%rbx)
movq %r15, 0x20(%rbx)
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0xb616
addl $0xffffff00, (%rax)     # imm = 0xFFFFFF00
movq 0x18(%rbx), %rdi
cmpl $0xff, (%rdi)
jg 0xb60e
callq 0x1572b
movq $0x0, 0x18(%rbx)
andb $-0x21, 0x38(%rbx)
jmp 0xb665
cmpl $0x3, 0x10(%rbx)
jne 0xb632
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0xb639
callq 0x1572b
jmp 0xb639
movl $0x3, 0x10(%rbx)
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0xb661
addl $0xffffff00, (%rax)     # imm = 0xFFFFFF00
movq 0x18(%rbx), %rdi
cmpl $0xff, (%rdi)
jg 0xb659
callq 0x1572b
movq $0x0, 0x18(%rbx)
movq %r15, 0x20(%rbx)
movq -0x48(%rbp), %rdi
callq 0x94f5
leaq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rsi
leaq -0x38(%rbp), %rdx
leaq 0x1453f(%rip), %rcx     # 0x1fbc0
leaq 0x14540(%rip), %r8      # 0x1fbc8
callq 0xa8fd
testb %al, %al
jne 0xb57d
cmpb $0x0, -0x29(%rbp)
je 0xb6f6
movq 0x28(%rbx), %r14
testq %r14, %r14
je 0xb6f6
cmpl $0x3, 0x10(%rbx)
jne 0xb6b8
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0xb6b8
callq 0x1572b
movl 0x8(%r14), %eax
movl %eax, 0x10(%rbx)
movq (%r14), %rax
movq %rax, 0x20(%rbx)
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0xb6ee
addl $0xffffff00, (%rax)     # imm = 0xFFFFFF00
movq 0x18(%rbx), %rdi
cmpl $0xff, (%rdi)
jg 0xb6e6
callq 0x1572b
movq $0x0, 0x18(%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x28(%rbx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: prettylist(char const*, char const*)
void prettylist(const char *s, const char *conj)
{
    vector<char> p;
    const char *start, *end;
    for(int len = listlen(s), n = 0; parselist(s, start, end); n++)
    {
        p.put(start, end - start);
        if(n+1 < len)
        {
            if(len > 2 || !conj[0]) p.add(',');
            if(n+2 == len && conj[0])
            {
                p.add(' ');
                p.put(conj, strlen(conj));
            }
            p.add(' ');
        }
    } 
    p.add('\0');
    result(p.getbuf());
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, -0x48(%rbp)
movq %rdi, -0x60(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
leaq -0x30(%rbp), %rax
movq %rdi, (%rax)
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
leaq 0x13e2c(%rip), %r15     # 0x1fbd0
leaq 0x13e2d(%rip), %r12     # 0x1fbd8
leaq 0x13e0e(%rip), %r13     # 0x1fbc0
leaq 0x13e0f(%rip), %rbx     # 0x1fbc8
leaq -0x30(%rbp), %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
movq %rbx, %r8
callq 0xa8fd
incl %r14d
testb %al, %al
jne 0xbdb9
leaq 0x13de4(%rip), %rcx     # 0x1fbc0
leaq 0x13de5(%rip), %r8      # 0x1fbc8
leaq -0x60(%rbp), %rdi
leaq -0x58(%rbp), %rsi
leaq -0x50(%rbp), %rdx
callq 0xa8fd
testb %al, %al
je 0xbec1
movl $0x2, %r15d
leaq -0x40(%rbp), %rbx
leaq -0x30(%rbp), %r12
leaq 0x13daf(%rip), %r13     # 0x1fbc0
movq -0x58(%rbp), %rsi
movl -0x50(%rbp), %edx
subl %esi, %edx
movq %rbx, %rdi
callq 0x12ce0
leal -0x1(%r15), %eax
cmpl %r14d, %eax
jae 0xbe9b
cmpl $0x2, %r14d
ja 0xbe3a
movq -0x48(%rbp), %rax
cmpb $0x0, (%rax)
jne 0xbe49
movb $0x2c, -0x30(%rbp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x12ca0
cmpl %r15d, %r14d
jne 0xbe8c
movq -0x48(%rbp), %rax
cmpb $0x0, (%rax)
je 0xbe8c
movb $0x20, -0x30(%rbp)
movq %rbx, %rdi
movq %r12, %r13
movq %r12, %rsi
callq 0x12ca0
movq -0x48(%rbp), %r12
movq %r12, %rdi
callq 0x2080
movq %rbx, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0x12ce0
movq %r13, %r12
leaq 0x13d34(%rip), %r13     # 0x1fbc0
movb $0x20, -0x30(%rbp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x12ca0
leaq -0x60(%rbp), %rdi
leaq -0x58(%rbp), %rsi
leaq -0x50(%rbp), %rdx
movq %r13, %rcx
leaq 0x13d17(%rip), %r8      # 0x1fbc8
callq 0xa8fd
incl %r15d
testb %al, %al
jne 0xbe11
leaq -0x30(%rbp), %rsi
movb $0x0, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0x12ca0
movq -0x40(%rbp), %rbx
movq 0x1332c(%rip), %r12     # 0x1f208
movq %rbx, %rdi
callq 0x2080
movq %rax, %r14
incq %r14
movq %r14, %rdi
callq 0x15705
movq %rax, %r15
movq %rax, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x2130
movl $0x3, 0x8(%r12)
movq %r15, (%r12)
movl $0x0, -0x34(%rbp)
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0xbf25
callq 0x1572b
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xbf3e
jmp 0xbf3e
jmp 0xbf3e
jmp 0xbf3e
jmp 0xbf3e
movq %rax, %rbx
movl $0x0, -0x34(%rbp)
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0xbf56
callq 0x1572b
movq %rbx, %rdi
callq 0x23a0
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: listincludes(char const*, char const*, int)
int listincludes(const char *list, const char *needle, int needlelen)
{
    int offset = 0;
    for(const char *s = list, *start, *end; parselist(s, start, end);)
    {
        int len = end - start;
        if(needlelen == len && !strncmp(needle, start, len)) return offset;
        offset++;
    }
    return -1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebx
movq %rsi, -0x40(%rbp)
leaq -0x48(%rbp), %rax
movq %rdi, (%rax)
leaq 0x13c3d(%rip), %rcx     # 0x1fbc0
leaq 0x13c3e(%rip), %r8      # 0x1fbc8
leaq -0x38(%rbp), %rsi
leaq -0x30(%rbp), %rdx
movq %rax, %rdi
callq 0xa8fd
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
testb %al, %al
je 0xbffb
xorl %r13d, %r13d
leaq -0x48(%rbp), %r15
leaq -0x38(%rbp), %r14
leaq -0x30(%rbp), %r12
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rsi
subq %rsi, %rax
cmpl %ebx, %eax
jne 0xbfd2
movslq %eax, %rdx
movq -0x40(%rbp), %rdi
callq 0x20a0
testl %eax, %eax
je 0xbffb
incl %r13d
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
leaq 0x13bdb(%rip), %rcx     # 0x1fbc0
leaq 0x13bdc(%rip), %r8      # 0x1fbc8
callq 0xa8fd
testb %al, %al
jne 0xbfb3
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movl %r13d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: listdel(char const*, char const*)
char *listdel(const char *s, const char *del)
{
    vector<char> p;
    for(const char *start, *end, *qstart, *qend; parselist(s, start, end, qstart, qend);)
    {
        if(listincludes(del, start, end-start) < 0)
        {
            if(!p.empty()) p.add(' ');
            p.put(qstart, qend-qstart);
        }
    }
    p.add('\0');
    return newstring(p.getbuf(), p.length()-1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
leaq -0x68(%rbp), %rax
movq %rdi, (%rax)
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
leaq -0x48(%rbp), %rsi
leaq -0x60(%rbp), %rdx
leaq -0x58(%rbp), %rcx
leaq -0x50(%rbp), %r8
movq %rax, %rdi
callq 0xa8fd
testb %al, %al
je 0xc0ea
leaq -0x48(%rbp), %r13
leaq -0x60(%rbp), %r15
leaq -0x58(%rbp), %r14
leaq -0x50(%rbp), %r12
movq -0x48(%rbp), %rsi
movl -0x60(%rbp), %edx
subl %esi, %edx
movq %rbx, %rdi
callq 0xbf5e
testl %eax, %eax
jns 0xc0d1
cmpl $0x0, -0x34(%rbp)
je 0xc0bf
movb $0x20, -0x29(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x29(%rbp), %rsi
callq 0x12ca0
movq -0x58(%rbp), %rsi
movl -0x50(%rbp), %edx
subl %esi, %edx
leaq -0x40(%rbp), %rdi
callq 0x12ce0
leaq -0x68(%rbp), %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r14, %rcx
movq %r12, %r8
callq 0xa8fd
testb %al, %al
jne 0xc093
leaq -0x48(%rbp), %rsi
movb $0x0, (%rsi)
leaq -0x40(%rbp), %rdi
callq 0x12ca0
movq -0x40(%rbp), %rbx
movslq -0x34(%rbp), %r15
movq %r15, %rdi
callq 0x15705
movq %rax, %r14
movq %rbx, %rdi
callq 0x2080
movq %rax, %r12
incq %r12
cmpq %r15, %r12
cmovaeq %r15, %r12
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x2130
movb $0x0, -0x1(%r14,%r12)
movl $0x0, -0x34(%rbp)
testq %rbx, %rbx
je 0xc14a
movq %rbx, %rdi
callq 0x1572b
movq %r14, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xc162
jmp 0xc162
jmp 0xc162
movq %rax, %rbx
movl $0x0, -0x34(%rbp)
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0xc17a
callq 0x1572b
movq %rbx, %rdi
callq 0x23a0
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: strreplace(char const*, char const*, char const*)
char *strreplace(const char *s, const char *oldval, const char *newval)
{
    vector<char> buf;

    int oldlen = strlen(oldval);
    if(!oldlen) return newstring(s);
    for(;;)
    {
        const char *found = strstr(s, oldval);
        if(found)
        {
            while(s < found) buf.add(*s++);
            for(const char *n = newval; *n; n++) buf.add(*n);
            s = found + oldlen;
        }
        else
        {
            while(*s) buf.add(*s++);
            buf.add('\0');
            return newstring(buf.getbuf(), buf.length());
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, -0x50(%rbp)
movq %rdi, %r15
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
movq %rsi, -0x60(%rbp)
movq %rsi, %rdi
callq 0x2080
testl %eax, %eax
je 0xe013
cltq
movq %rax, -0x48(%rbp)
leaq -0x40(%rbp), %r12
movq %r15, %rdi
movq -0x60(%rbp), %rsi
callq 0x2040
movq %rax, %r13
testq %rax, %rax
je 0xdf61
cmpq %r13, %r15
jae 0xdfbd
leaq 0x1(%r15), %rbx
movq %r12, %rdi
movq %r15, %rsi
callq 0x12ca0
movq %rbx, %r15
jmp 0xdf32
leaq 0x1(%r15), %rbx
movq %r12, %rdi
movq %r15, %rsi
callq 0x12ca0
movq %rbx, %r15
cmpb $0x0, (%r15)
jne 0xdf4f
movb $0x0, -0x29(%rbp)
movq %r12, %rdi
leaq -0x29(%rbp), %rsi
callq 0x12ca0
movq -0x40(%rbp), %rbx
movslq -0x34(%rbp), %r14
incq %r14
movq %r14, %rdi
callq 0x15705
movq %rax, -0x58(%rbp)
movq %rbx, %rdi
callq 0x2080
movq %rbx, %rsi
movq %rax, %rbx
incq %rbx
cmpq %r14, %rbx
cmovaeq %r14, %rbx
movq -0x58(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2130
movb $0x0, -0x1(%r14,%rbx)
jmp 0xdfe3
movq -0x50(%rbp), %rbx
cmpb $0x0, (%rbx)
je 0xdfdb
movq %r12, %rdi
movq %rbx, %rsi
callq 0x12ca0
cmpb $0x0, 0x1(%rbx)
leaq 0x1(%rbx), %rbx
jne 0xdfc6
movq -0x48(%rbp), %rax
leaq (%rax,%r13), %r15
testq %r13, %r13
jne 0xdf1e
movq -0x40(%rbp), %rdi
movl $0x0, -0x34(%rbp)
testq %rdi, %rdi
je 0xe001
callq 0x1572b
movq %r14, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
callq 0x2080
movq %rax, %rbx
incq %rbx
movq %rbx, %rdi
callq 0x15705
movq %rax, %rdi
movq %r15, %rsi
movq %rbx, %rdx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2130
jmp 0xe04f
jmp 0xe04f
jmp 0xe04f
jmp 0xe04f
jmp 0xe04f
movq %rax, %rbx
movl $0x0, -0x34(%rbp)
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0xe067
callq 0x1572b
movq %rbx, %rdi
callq 0x23a0
nop
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: debugalias()
static void debugalias()
{
    if(!dbgalias) return;
    int total = 0, depth = 0;
    for(identlink *l = aliasstack; l != &noalias; l = l->next) total++;
    for(identlink *l = aliasstack; l != &noalias; l = l->next)
    {
        ident *id = l->id;
        ++depth;
        if(depth < dbgalias) conoutf(CON_ERROR, "  %d) %s", total-depth+1, id->name);
        else if(l->next == &noalias) conoutf(CON_ERROR, depth == dbgalias ? "  %d) %s" : "  ..%d) %s", total-depth+1, id->name);
    }
}

// Assembly:
cmpl $0x0, 0x11626(%rip)     # 0x1f6c0
je 0xe136
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x1115b(%rip), %r14     # 0x1f210
leaq 0x1115c(%rip), %r15     # 0x1f218
cmpq %r15, %r14
je 0xe128
xorl %ebx, %ebx
movq %r14, %rax
incl %ebx
movq 0x8(%rax), %rax
cmpq %r15, %rax
jne 0xe0c6
cmpq %r15, %r14
je 0xe128
movl $0x1, %r12d
leaq 0xa0a1(%rip), %r13      # 0x18184
movq (%r14), %rax
movl 0x115d4(%rip), %ecx     # 0x1f6c0
movq %r13, %rsi
cmpl %ecx, %r12d
jl 0xe108
cmpq %r15, 0x8(%r14)
jne 0xe11a
cmpl %ecx, %r12d
leaq 0xa089(%rip), %rsi      # 0x1818d
cmoveq %r13, %rsi
movq 0x8(%rax), %rcx
movl $0x4, %edi
movl %ebx, %edx
xorl %eax, %eax
callq 0x3666
movq 0x8(%r14), %r14
decl %ebx
incl %r12d
cmpq %r15, %r14
jne 0xe0e3
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: setarg(ident&, tagval&)
static inline void setarg(ident &id, tagval &v)
{
    if(aliasstack->usedargs&(1<<id.index))
    {
        if(id.valtype == VAL_STR) delete[] id.val.s;
        id.setval(v);
        cleancode(id);
    }
    else
    {
        pusharg(id, v, aliasstack->argstack[id.index]);
        aliasstack->usedargs |= 1<<id.index;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x110c5(%rip), %rax     # 0x1f210
movl 0x10(%rax), %edx
movslq 0x3c(%rdi), %rcx
btl %ecx, %edx
jae 0xe1a7
cmpl $0x3, 0x10(%rbx)
jne 0xe16b
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0xe16b
callq 0x1572b
movl 0x8(%r14), %eax
movl %eax, 0x10(%rbx)
movq (%r14), %rax
movq %rax, 0x20(%rbx)
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0xe216
addl $0xffffff00, (%rax)     # imm = 0xFFFFFF00
movq 0x18(%rbx), %rdi
cmpl $0xff, (%rdi)
jg 0xe19d
callq 0x1572b
movq $0x0, 0x18(%rbx)
jmp 0xe216
movq 0x18(%rax), %rax
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rax
movq 0x20(%rbx), %rcx
movq %rcx, (%rax)
movl 0x10(%rbx), %ecx
movl %ecx, 0x8(%rax)
movq 0x28(%rbx), %rcx
movq %rcx, 0x10(%rax)
movq %rax, 0x28(%rbx)
movl 0x8(%r14), %eax
movl %eax, 0x10(%rbx)
movq (%r14), %rax
movq %rax, 0x20(%rbx)
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0xe202
addl $0xffffff00, (%rax)     # imm = 0xFFFFFF00
movq 0x18(%rbx), %rdi
cmpl $0xff, (%rdi)
jg 0xe1fa
callq 0x1572b
movq $0x0, 0x18(%rbx)
movb 0x3c(%rbx), %cl
movl $0x1, %eax
shll %cl, %eax
movq 0x10ffd(%rip), %rcx     # 0x1f210
orl %eax, 0x10(%rcx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: compileblock(vector<unsigned int>&)
static inline void compileblock(vector<uint> &code)
{
    int start = code.length();
    code.add(CODE_BLOCK);
    code.add(CODE_OFFSET|((start+2)<<8));
    code.add(CODE_EXIT);
    code[start] |= uint(code.length() - (start + 1))<<8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movslq 0xc(%rdi), %r14
leaq -0x1c(%rbp), %rsi
movl $0x9, (%rsi)
callq 0x13178
movl %r14d, %eax
shll $0x8, %eax
addl $0x201, %eax            # imm = 0x201
leaq -0x18(%rbp), %rsi
movl %eax, (%rsi)
movq %rbx, %rdi
callq 0x13178
leaq -0x14(%rbp), %rsi
movl $0x4, (%rsi)
movq %rbx, %rdi
callq 0x13178
movl %r14d, %eax
notl %eax
addl 0xc(%rbx), %eax
shll $0x8, %eax
movq (%rbx), %rcx
orl %eax, (%rcx,%r14,4)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: debugcodeline(char const*, char const*, ...)
static void debugcodeline(const char *p, const char *fmt, ...)
{
    if(nodebug) return;

    va_list args;
    va_start(args, fmt);
    conoutfv(CON_ERROR, debugline(p, fmt), args);
    va_end(args);

    debugalias();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xd0, %rsp
testb %al, %al
je 0x107e8
movaps %xmm0, -0xc0(%rbp)
movaps %xmm1, -0xb0(%rbp)
movaps %xmm2, -0xa0(%rbp)
movaps %xmm3, -0x90(%rbp)
movaps %xmm4, -0x80(%rbp)
movaps %xmm5, -0x70(%rbp)
movaps %xmm6, -0x60(%rbp)
movaps %xmm7, -0x50(%rbp)
movq %rdx, -0xe0(%rbp)
movq %rcx, -0xd8(%rbp)
movq %r8, -0xd0(%rbp)
movq %r9, -0xc8(%rbp)
cmpl $0x0, 0xeebd(%rip)      # 0x1f6c8
jne 0x108eb
movq %rsi, %rbx
leaq -0xf0(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, -0x40(%rbp)
movq 0xeea4(%rip), %r12      # 0x1f6e0
testq %r12, %r12
je 0x108d5
movq %rdi, %r15
movl $0x1, %r14d
movq %r12, %rdi
movl $0xa, %esi
callq 0x2060
testq %rax, %rax
jne 0x1086b
movq %r12, %rdi
callq 0x2080
addq %r12, %rax
cmpq %r15, %r12
seta %cl
cmpq %r15, %rax
setb %dl
orb %cl, %dl
je 0x1088b
cmpb $0x0, (%rax)
je 0x108d5
incq %rax
incl %r14d
movq %rax, %r12
jmp 0x1084e
movq 0xee46(%rip), %rdx      # 0x1f6d8
leaq 0xf417(%rip), %r15      # 0x1fcb0
leaq -0x28(%rbp), %rdi
testq %rdx, %rdx
je 0x108bb
movq %r15, (%rdi)
leaq 0x7965(%rip), %rsi      # 0x18211
movl %r14d, %ecx
movq %rbx, %r8
xorl %eax, %eax
callq 0x12e1e
jmp 0x108d2
movq %r15, (%rdi)
leaq 0x794f(%rip), %rsi      # 0x18214
movl %r14d, %edx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x12e1e
movq %r15, %rbx
leaq -0x40(%rbp), %rdx
movl $0x4, %edi
movq %rbx, %rsi
callq 0x35db
callq 0xe093
addq $0xd0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: cutword(char const*&, int&)
static inline char *cutword(const char *&p, int &len)
{
    const char *word = p;
    p = parseword(p);
    len = p-word;
    if(!len) return NULL;
    return newstring(word, len);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, -0x38(%rbp)
movq %rdi, -0x30(%rbp)
movq (%rdi), %rcx
xorl %r14d, %r14d
leaq 0x6e63(%rip), %r12      # 0x17c4a
leaq 0x6cc6(%rip), %r15      # 0x17ab4
leaq 0xee4b(%rip), %rbx      # 0x1fc40
movq %rcx, -0x40(%rbp)
movq %rcx, %r13
movq %rcx, %rdi
movq %r12, %rsi
callq 0x2030
leaq (%rax,%r13), %rcx
movb (%r13,%rax), %dl
movzbl %dl, %eax
cmpl $0x2e, %eax
jle 0x10e38
cmpl $0x5a, %eax
jle 0x10e5f
cmpl $0x5b, %eax
je 0x10e4e
cmpl $0x5d, %eax
jne 0x10e95
testl %r14d, %r14d
jle 0x10e9d
decl %r14d
cmpb $0x5b, (%r14,%rbx)
je 0x10e95
jmp 0x10e9d
cmpl $0x1f, %eax
jle 0x10e7d
addl $-0x20, %eax
cmpl $0x9, %eax
ja 0x10e95
movslq (%r15,%rax,4), %rax
addq %r15, %rax
jmpq *%rax
cmpl $0x63, %r14d
jg 0x10e9d
movslq %r14d, %rax
incl %r14d
movb %dl, (%rax,%rbx)
jmp 0x10e95
cmpl $0x2f, %eax
jne 0x10e90
cmpb $0x2f, 0x1(%rcx)
jne 0x10e95
jmp 0x10e9d
testl %r14d, %r14d
jle 0x10e9d
decl %r14d
cmpb $0x28, (%r14,%rbx)
je 0x10e95
jmp 0x10e9d
leal -0x9(%rax), %edx
cmpl $0x2, %edx
jb 0x10e9d
testl %eax, %eax
je 0x10e9d
cmpl $0xd, %eax
jne 0x10e95
jmp 0x10e9d
cmpl $0x3b, %eax
je 0x10e9d
incq %rcx
jmp 0x10df9
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x40(%rbp), %rbx
subq %rbx, %rcx
movq -0x38(%rbp), %rax
movl %ecx, (%rax)
testl %ecx, %ecx
je 0x10ef1
movslq %ecx, %r15
incq %r15
movq %r15, %rdi
callq 0x15705
movq %rax, %r14
movq %rbx, %rdi
callq 0x2080
movq %rax, %r12
incq %r12
cmpq %r15, %r12
cmovaeq %r15, %r12
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x2130
movb $0x0, -0x1(%r14,%r12)
jmp 0x10ef4
xorl %r14d, %r14d
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/./command.h
// Function: parsefloat(char const*)
static inline float parsefloat(const char *s)
{
    // not all platforms (windows) can parse hexadecimal integers via strtod
    char *end;
    double val = strtod(s, &end);
    return val || end==s || (*end!='x' && *end!='X') ? float(val) : float(parseint(s));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq -0x10(%rbp), %rsi
callq 0x2120
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x113df
jnp 0x113ea
cvtsd2ss %xmm0, %xmm0
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq -0x10(%rbp), %rax
cmpq %rbx, %rax
je 0x113df
movzbl (%rax), %eax
orl $0x20, %eax
cmpl $0x78, %eax
jne 0x113df
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2050
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
jmp 0x113e3
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: forcearg(tagval&, int)
static inline void forcearg(tagval &v, int type)
{
    switch(type)
    {
        case RET_STR: if(v.type != VAL_STR) forcestr(v); break;
        case RET_INT: if(v.type != VAL_INT) forceint(v); break;
        case RET_FLOAT: if(v.type != VAL_FLOAT) forcefloat(v); break;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpl $0x40, %esi
je 0x1145e
cmpl $0x80, %esi
je 0x1144c
cmpl $0xc0, %esi
jne 0x114c2
cmpl $0x3, 0x8(%rbx)
je 0x114c2
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x92fb
cmpl $0x2, 0x8(%rbx)
je 0x114c2
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x11542
movl 0x8(%rbx), %eax
xorl %r14d, %r14d
leal -0x1(%rax), %ecx
cmpl $0x5, %ecx
ja 0x1148e
leaq 0x6685(%rip), %rdx      # 0x17af8
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq (%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2050
movq %rax, %r14
movl 0x8(%rbx), %eax
movq (%rbx), %rdi
cmpl $0x5, %eax
je 0x114a9
cmpl $0x3, %eax
jne 0x114b8
testq %rdi, %rdi
jne 0x114b3
jmp 0x114b8
cvttss2si (%rbx), %r14d
jmp 0x114b8
cmpl $0x0, -0x4(%rdi)
jne 0x114b8
addq $-0x4, %rdi
callq 0x1572b
movl $0x1, 0x8(%rbx)
movl %r14d, (%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: forceint(tagval&)
static inline int forceint(tagval &v)
{
    int i = 0;
    switch(v.type)
    {
        case VAL_FLOAT: i = v.f; break;
        case VAL_STR: i = parseint(v.s); break;
        case VAL_MACRO: i = parseint(v.s); break;
        case VAL_INT: return v.i;
    }
    freearg(v);
    v.setint(i);
    return i;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl 0x8(%rdi), %eax
xorl %r14d, %r14d
leal -0x1(%rax), %ecx
cmpl $0x5, %ecx
ja 0x11501
leaq 0x662a(%rip), %rdx      # 0x17b10
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq (%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2050
movq %rax, %r14
movl 0x8(%rbx), %eax
movq (%rbx), %rdi
cmpl $0x5, %eax
je 0x11521
cmpl $0x3, %eax
jne 0x11530
testq %rdi, %rdi
jne 0x1152b
jmp 0x11530
cvttss2si (%rbx), %r14d
jmp 0x11530
movl (%rbx), %r14d
jmp 0x1153a
cmpl $0x0, -0x4(%rdi)
jne 0x11530
addq $-0x4, %rdi
callq 0x1572b
movl $0x1, 0x8(%rbx)
movl %r14d, (%rbx)
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: forcefloat(tagval&)
static inline float forcefloat(tagval &v)
{
    float f = 0.0f;
    switch(v.type)
    {
        case VAL_INT: f = v.i; break;
        case VAL_STR: f = parsefloat(v.s); break;
        case VAL_MACRO: f = parsefloat(v.s); break;
        case VAL_FLOAT: return v.f;
    }
    freearg(v);
    v.setfloat(f);
    return f;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl 0x8(%rdi), %eax
xorpd %xmm0, %xmm0
leal -0x1(%rax), %ecx
cmpl $0x5, %ecx
ja 0x11591
leaq 0x65c2(%rip), %rdx      # 0x17b28
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq (%rbx), %r14
leaq -0x18(%rbp), %rsi
movq %r14, %rdi
callq 0x2120
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x1158a
jnp 0x115e1
cvtsd2ss %xmm0, %xmm0
movl 0x8(%rbx), %eax
movq (%rbx), %rdi
cmpl $0x5, %eax
je 0x115b4
cmpl $0x3, %eax
jne 0x115cd
testq %rdi, %rdi
jne 0x115be
jmp 0x115cd
xorps %xmm0, %xmm0
cvtsi2ssl (%rbx), %xmm0
jmp 0x115cd
movss (%rbx), %xmm0
jmp 0x115d8
cmpl $0x0, -0x4(%rdi)
jne 0x115cd
addq $-0x4, %rdi
movss %xmm0, -0x1c(%rbp)
callq 0x1572b
movss -0x1c(%rbp), %xmm0
movl $0x2, 0x8(%rbx)
movss %xmm0, (%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq -0x18(%rbp), %rax
cmpq %r14, %rax
je 0x1158a
movzbl (%rax), %eax
orl $0x20, %eax
cmpl $0x78, %eax
jne 0x1158a
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2050
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
jmp 0x1158e
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/command.cpp
// Function: conc(vector<char>&, tagval*, int, bool, char const*, int)
static char *conc(vector<char> &buf, tagval *v, int n, bool space, const char *prefix = NULL, int prefixlen = 0)
{
    if(prefix)
    {
        buf.put(prefix, prefixlen);
        if(space && n) buf.add(' ');
    }
    loopi(n)
    {
        const char *s = "";
        int len = 0;
        switch(v[i].type)
        {
            case VAL_INT: s = intstr(v[i].i); break;
            case VAL_FLOAT: s = floatstr(v[i].f); break;
            case VAL_STR: s = v[i].s; break;
            case VAL_MACRO: s = v[i].s; len = v[i].code[-1]>>8; goto haslen;
        }
        len = int(strlen(s));
    haslen:
        buf.put(s, len);
        if(i == n-1) break;
        if(space) buf.add(' ');
    }
    buf.add('\0');
    return buf.getbuf();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
testl %edx, %edx
jle 0x12388
movl %edx, %r14d
movq %rsi, %r15
decl %r14d
shlq $0x4, %r14
xorl %r12d, %r12d
movl 0x8(%r15,%r12), %eax
decl %eax
leaq 0x5fb6(%rip), %r13      # 0x1826f
cmpl $0x5, %eax
ja 0x12347
leaq 0x5927(%rip), %rcx      # 0x17bf0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
leaq 0x5f98(%rip), %r13      # 0x1826f
jmpq *%rax
movl (%r15,%r12), %edx
movl 0xd4b1(%rip), %eax      # 0x1f794
incl %eax
andl $0x3, %eax
movl %eax, 0xd4a6(%rip)      # 0x1f794
movl %eax, %ecx
shll $0x8, %ecx
leal (%rcx,%rax,4), %eax
leaq 0xd4a3(%rip), %rcx      # 0x1f7a0
addq %rcx, %rax
movq %rax, -0x38(%rbp)
leaq -0x38(%rbp), %rdi
leaq 0x5b92(%rip), %rsi      # 0x17ea1
xorl %eax, %eax
callq 0x12e1e
movl 0xd478(%rip), %eax      # 0x1f794
movq %rax, %rcx
shlq $0x8, %rcx
leaq (%rcx,%rax,4), %r13
leaq 0xd472(%rip), %rax      # 0x1f7a0
addq %rax, %r13
jmp 0x12347
movq (%r15,%r12), %r13
jmp 0x12347
movss (%r15,%r12), %xmm0
callq 0x4d4c
movq %rax, %r13
movq %r13, %rdi
callq 0x2080
movq %rax, %rdx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x12ce0
cmpq %r12, %r14
je 0x12388
movb $0x20, -0x29(%rbp)
movq %rbx, %rdi
leaq -0x29(%rbp), %rsi
callq 0x12ca0
addq $0x10, %r12
jmp 0x122ab
movq (%r15,%r12), %r13
movl -0x4(%r13), %edx
shrl $0x8, %edx
jmp 0x12352
leaq -0x2a(%rbp), %rsi
movb $0x0, (%rsi)
movq %rbx, %rdi
callq 0x12ca0
movq (%rbx), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Fohlen[P]cubescript-standalone/./tools.h
// Function: vector<unsigned char>::growbuf(int)
void growbuf(int sz)
    {
        int olen = alen;
        if(!alen) alen = max(MINSIZE, sz);
        else while(alen < sz) alen *= 2;
        if(alen <= olen) return;
        uchar *newbuf = new uchar[alen*sizeof(T)];
        if(olen > 0)
        {
            memcpy(newbuf, (void *)buf, olen*sizeof(T));
            delete[] (uchar *)buf;
        }
        buf = (T *)newbuf;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movl 0x8(%rdi), %r14d
testq %r14, %r14
je 0x160f5
cmpl %esi, %r14d
jge 0x1613e
movl %r14d, %eax
addl %eax, %eax
cmpl %esi, %eax
jl 0x160ed
jmp 0x16100
cmpl $0x9, %esi
movl $0x8, %eax
cmovgel %esi, %eax
movl %eax, 0x8(%rbx)
cmpl %r14d, %eax
jle 0x1613e
movslq %eax, %rdi
callq 0x2260
testq %rax, %rax
je 0x16147
movq %rax, %r15
testl %r14d, %r14d
jle 0x1613b
movq (%rbx), %r12
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x2130
testq %r12, %r12
je 0x1613b
movq %r12, %rdi
callq 0x2210
movq %r15, (%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x20c0