// File: Heptagon196[P]Gos/GosASTCompiler.cpp
// Function: Gos::AST::LambdaDef::CompileAST(Gos::Compiler::VMCompiler&)
Compile(LambdaDef) {
    START();

    int start = 0;
    std::stringstream ss;
    ss << compilingFileName << ":" << compilingLine << "_#" << (lambdaCount++);
    std::string lambdaName = ss.str();
    std::vector<std::pair<std::string, int>> captureVarNames;
    std::vector<int> captureType;
    std::vector<std::string> captureTypeName;
    std::vector<int> capturedID;
    std::vector<std::string> argTypes;
    std::vector<std::string> argNames;
    std::vector<std::string> ctorTypes;
    if (branch & 1) {
        std::string errorInfo;
        for (GosAST* ast : nodes[start]->nodes) {
            int id = code.currentScope->GetVarID(ast->token.str, errorInfo);
            std::string varType = "";
            if (errorInfo.size() > 0) {
                for (int i = 0; i < compilingClassVars.size(); i++) {
                    if (compilingClassVars[i] == ast->token.str) {
                        int& cache = GetFieldCache(code.currentScope, ast->token.str);
                        if (cache != -1) {
                            id = cache;
                        } else {
                            id = code.GetTmpVar();
                            vm.WriteCommandGetField(id, 1, ast->token.str);
                            cache = id;
                        }
                        varType = compilingClassVarTypes[i];
                        errorInfo = "";
                        break;
                    }
                }
                if (errorInfo.size() > 0) {
                    std::cerr << errorInfo << std::endl;
                }
            } else {
                varType = code.currentScope->GetVarType(ast->token.str);
            }
            captureVarNames.push_back({ ast->token.str, id });
            captureType.push_back(ast->branch);
            capturedID.push_back(captureVarNames[captureVarNames.size() - 1].second);
            captureTypeName.push_back(varType);
        }
        start++;
    }
    if (branch & 2) {
        for (auto* ast : nodes[start]->nodes) {
            argNames.push_back(ast->nodes[0]->token.str);
            argTypes.push_back(ast->nodes[1]->token.str);
        }
        start++;
    }

    auto jmpFromStartTo = vm.WriteCommandJmp();
    int startPos = vm.GetProgress();

    vm.WriteCommandDefClass(lambdaName, {});

    for (int i = 0; i < captureVarNames.size(); i++) {
        vm.WriteCommandDefVar(captureTypeName[i], captureVarNames[i].first);
        ctorTypes.push_back(captureTypeName[i]);
    }

    code.MoveToNew();
    int pcBack = pc;

    auto jmpCall = vm.WriteCommandDefFunc("__call", nodes[start++]->token.str, argTypes);
    auto setMemSize = vm.WriteAlloc();

    pc = 1;

    vm.WriteCommandArg(pc++, 0);
    for (int i = 0; i < argNames.size(); i++) {
        int id = pc++;
        vm.WriteCommandArg(id, i + 1);
        code.currentScope->varID[argNames[i]] = id;
        code.currentScope->varType[argNames[i]] = argTypes[i];
    }

    for (int i = 0; i < captureVarNames.size(); i++) {
        int id = pc++;
        vm.WriteCommandGetField(id, 1, captureVarNames[i].first);
        code.currentScope->varID[captureVarNames[i].first] = id;
        code.currentScope->varType[captureVarNames[i].first] = captureTypeName[i];
    }

    SUB(start++);

    jmpCall(vm.GetProgress());

    setMemSize(pc);
    pc = pcBack;
    code.MoveBack();

    code.lambdaDefStartPos.push_back(startPos);
    code.lambdaDefJumpout.push_back(vm.WriteCommandJmp());
    jmpFromStartTo(vm.GetProgress());

    int tmp = code.GetTmpVar();
    vm.WriteCommandNew(lambdaName, tmp, capturedID);

    for (int i = 0; i < captureVarNames.size(); i++) {
        int id = pc++;
        vm.WriteCommandGetField(id, tmp, captureVarNames[i].first);
        if (captureType[i] == 0) {
            if (captureTypeName[i] == "unknown") {
                vm.WriteCommandClone(id, captureVarNames[i].second);
            } else {
                vm.WriteCommandMov(id, captureVarNames[i].second);
            }
        } else {
            vm.WriteCommandRef(id, captureVarNames[i].second);
        }
    }

    return tmp;
}

// Assembly:
subq $0x5d8, %rsp            # imm = 0x5D8
movq %rdi, 0x5c8(%rsp)
movq %rsi, 0x5c0(%rsp)
movq 0x5c8(%rsp), %rdi
movq %rdi, 0x178(%rsp)
movl 0x2c(%rdi), %eax
movl %eax, 0x1280a8(%rip)    # 0x3022f8
addq $0x10, %rdi
callq 0x1d1e80
cmpq $0x0, %rax
jne 0x1da26f
movl $0x0, 0x5d4(%rsp)
jmp 0x1db549
movl $0x0, 0x5bc(%rsp)
leaq 0x430(%rsp), %rdi
callq 0x131b0
leaq 0x440(%rsp), %rdi
leaq 0x127fda(%rip), %rsi    # 0x302270
callq 0x131a0
movq %rax, 0x170(%rsp)
jmp 0x1da2a5
movq 0x170(%rsp), %rdi
leaq 0x313a9(%rip), %rsi     # 0x20b65d
callq 0x13380
movq %rax, 0x168(%rsp)
jmp 0x1da2c3
movq 0x168(%rsp), %rdi
movl 0x128027(%rip), %esi    # 0x3022f8
callq 0x131d0
movq %rax, 0x160(%rsp)
jmp 0x1da2e0
movq 0x160(%rsp), %rdi
leaq 0x47d51(%rip), %rsi     # 0x222040
callq 0x13380
movq %rax, 0x158(%rsp)
jmp 0x1da2fe
movq 0x158(%rsp), %rdi
movl 0x1280a8(%rip), %esi    # 0x3023b4
movl %esi, %eax
incl %eax
movl %eax, 0x12809e(%rip)    # 0x3023b4
callq 0x131d0
jmp 0x1da31d
leaq 0x400(%rsp), %rdi
leaq 0x430(%rsp), %rsi
callq 0x13340
jmp 0x1da334
leaq 0x3e8(%rsp), %rdi
callq 0x1dd570
leaq 0x3d0(%rsp), %rdi
callq 0x1dd1b0
leaq 0x3b8(%rsp), %rdi
callq 0x1b4f70
leaq 0x3a0(%rsp), %rdi
callq 0x1dd1b0
leaq 0x388(%rsp), %rdi
callq 0x1b4f70
leaq 0x370(%rsp), %rdi
callq 0x1b4f70
leaq 0x358(%rsp), %rdi
callq 0x1b4f70
movq 0x178(%rsp), %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x1da88d
leaq 0x338(%rsp), %rdi
callq 0x7ace0
movq 0x178(%rsp), %rdi
addq $0x10, %rdi
movslq 0x5bc(%rsp), %rsi
callq 0x1d1e60
movq (%rax), %rax
addq $0x10, %rax
movq %rax, 0x330(%rsp)
movq 0x330(%rsp), %rdi
callq 0x1d1b70
movq %rax, 0x328(%rsp)
movq 0x330(%rsp), %rdi
callq 0x1d1ba0
movq %rax, 0x320(%rsp)
leaq 0x328(%rsp), %rdi
leaq 0x320(%rsp), %rsi
callq 0x1d1bd0
xorb $-0x1, %al
testb $0x1, %al
jne 0x1da425
jmp 0x1da85b
leaq 0x328(%rsp), %rdi
callq 0x1d1c10
movq (%rax), %rax
movq %rax, 0x318(%rsp)
movq 0x5c0(%rsp), %rax
movq 0xd0(%rax), %rdi
movq 0x318(%rsp), %rsi
addq $0x40, %rsi
leaq 0x338(%rsp), %rdx
callq 0x1d4d90
movl %eax, 0x154(%rsp)
jmp 0x1da46e
movl 0x154(%rsp), %eax
movl %eax, 0x314(%rsp)
leaq 0x2ef(%rsp), %rdi
movq %rdi, 0x148(%rsp)
callq 0x13570
movq 0x148(%rsp), %rdx
leaq 0x46826(%rip), %rsi     # 0x220cc6
leaq 0x2f0(%rsp), %rdi
callq 0x165520
jmp 0x1da4af
leaq 0x2ef(%rsp), %rdi
callq 0x136a0
leaq 0x338(%rsp), %rdi
callq 0x55060
cmpq $0x0, %rax
jbe 0x1da709
movl $0x0, 0x2e8(%rsp)
movslq 0x2e8(%rsp), %rax
movq %rax, 0x140(%rsp)
leaq 0x127dbb(%rip), %rdi    # 0x3022b0
callq 0x6f4b0
movq %rax, %rcx
movq 0x140(%rsp), %rax
cmpq %rcx, %rax
jae 0x1da6be
movslq 0x2e8(%rsp), %rsi
leaq 0x127d93(%rip), %rdi    # 0x3022b0
callq 0x1dd580
movq %rax, %rdi
movq 0x318(%rsp), %rsi
addq $0x28, %rsi
addq $0x18, %rsi
callq 0x111710
testb $0x1, %al
jne 0x1da543
jmp 0x1da6a6
movq 0x5c0(%rsp), %rax
movq 0xd0(%rax), %rdi
movq 0x318(%rsp), %rsi
addq $0x40, %rsi
callq 0x1d5980
movq %rax, 0x138(%rsp)
jmp 0x1da56d
movq 0x138(%rsp), %rax
movq %rax, 0x2e0(%rsp)
movq 0x2e0(%rsp), %rax
cmpl $-0x1, (%rax)
je 0x1da615
movq 0x2e0(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x314(%rsp)
jmp 0x1da668
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x428(%rsp)
movl %eax, 0x424(%rsp)
jmp 0x1db53a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x428(%rsp)
movl %eax, 0x424(%rsp)
jmp 0x1da87b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x428(%rsp)
movl %eax, 0x424(%rsp)
leaq 0x2ef(%rsp), %rdi
callq 0x136a0
jmp 0x1da87b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x428(%rsp)
movl %eax, 0x424(%rsp)
jmp 0x1da84c
movq 0x5c0(%rsp), %rdi
callq 0x1d5250
movl %eax, 0x314(%rsp)
movq 0x5c0(%rsp), %rax
movq 0xe8(%rax), %rdi
movl 0x314(%rsp), %esi
movq 0x318(%rsp), %rcx
addq $0x40, %rcx
movl $0x1, %edx
callq 0x1b1290
jmp 0x1da657
movl 0x314(%rsp), %ecx
movq 0x2e0(%rsp), %rax
movl %ecx, (%rax)
movslq 0x2e8(%rsp), %rsi
leaq 0x127c51(%rip), %rdi    # 0x3022c8
callq 0x1dd580
movq %rax, %rsi
leaq 0x2f0(%rsp), %rdi
callq 0x1187a0
jmp 0x1da68e
leaq 0x46631(%rip), %rsi     # 0x220cc6
leaq 0x338(%rsp), %rdi
callq 0x1652e0
jmp 0x1da6a4
jmp 0x1da6be
jmp 0x1da6a8
movl 0x2e8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2e8(%rsp)
jmp 0x1da4de
leaq 0x338(%rsp), %rdi
callq 0x55060
cmpq $0x0, %rax
jbe 0x1da707
movq 0x126918(%rip), %rdi    # 0x300ff0
leaq 0x338(%rsp), %rsi
callq 0x131a0
movq %rax, 0x130(%rsp)
jmp 0x1da6ef
movq 0x130(%rsp), %rdi
movq 0x1268e2(%rip), %rsi    # 0x300fe0
callq 0x135d0
jmp 0x1da705
jmp 0x1da707
jmp 0x1da755
movq 0x5c0(%rsp), %rax
movq 0xd0(%rax), %rsi
movq 0x318(%rsp), %rdx
addq $0x40, %rdx
leaq 0x2c0(%rsp), %rdi
callq 0x1d4f70
jmp 0x1da733
leaq 0x2f0(%rsp), %rdi
leaq 0x2c0(%rsp), %rsi
callq 0x7b460
leaq 0x2c0(%rsp), %rdi
callq 0x52f50
movq 0x318(%rsp), %rsi
addq $0x40, %rsi
leaq 0x298(%rsp), %rdi
leaq 0x314(%rsp), %rdx
callq 0x1dd5d0
jmp 0x1da778
leaq 0x3e8(%rsp), %rdi
leaq 0x298(%rsp), %rsi
callq 0x1dd5a0
jmp 0x1da78f
leaq 0x298(%rsp), %rdi
callq 0x1dd610
movq 0x318(%rsp), %rsi
addq $0x8, %rsi
leaq 0x3d0(%rsp), %rdi
callq 0x1dd620
jmp 0x1da7b7
leaq 0x3e8(%rsp), %rdi
movq %rdi, 0x128(%rsp)
callq 0x1dd6b0
movq 0x128(%rsp), %rdi
movq %rax, %rsi
decq %rsi
callq 0x1dd690
movq %rax, %rsi
addq $0x20, %rsi
leaq 0x3a0(%rsp), %rdi
callq 0x1dd620
jmp 0x1da7f5
leaq 0x3b8(%rsp), %rdi
leaq 0x2f0(%rsp), %rsi
callq 0x1b4f80
jmp 0x1da80c
leaq 0x2f0(%rsp), %rdi
callq 0x52f50
leaq 0x328(%rsp), %rdi
callq 0x1d1c20
jmp 0x1da405
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x428(%rsp)
movl %eax, 0x424(%rsp)
leaq 0x298(%rsp), %rdi
callq 0x1dd610
leaq 0x2f0(%rsp), %rdi
callq 0x52f50
jmp 0x1da87b
movl 0x5bc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x5bc(%rsp)
leaq 0x338(%rsp), %rdi
callq 0x52f50
jmp 0x1da88d
leaq 0x338(%rsp), %rdi
callq 0x52f50
jmp 0x1db4d2
movq 0x178(%rsp), %rax
movl 0x8(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x1da9c3
movq 0x178(%rsp), %rdi
addq $0x10, %rdi
movslq 0x5bc(%rsp), %rsi
callq 0x1d1e60
movq (%rax), %rax
addq $0x10, %rax
movq %rax, 0x290(%rsp)
movq 0x290(%rsp), %rdi
callq 0x1d1b70
movq %rax, 0x288(%rsp)
movq 0x290(%rsp), %rdi
callq 0x1d1ba0
movq %rax, 0x280(%rsp)
leaq 0x288(%rsp), %rdi
leaq 0x280(%rsp), %rsi
callq 0x1d1bd0
xorb $-0x1, %al
testb $0x1, %al
jne 0x1da916
jmp 0x1da9b2
leaq 0x288(%rsp), %rdi
callq 0x1d1c10
movq (%rax), %rax
movq %rax, 0x278(%rsp)
movq 0x278(%rsp), %rdi
addq $0x10, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x1d1e60
movq (%rax), %rsi
addq $0x40, %rsi
leaq 0x370(%rsp), %rdi
callq 0x1b4f80
jmp 0x1da959
movq 0x278(%rsp), %rdi
addq $0x10, %rdi
movl $0x1, %esi
callq 0x1d1e60
movq (%rax), %rsi
addq $0x40, %rsi
leaq 0x388(%rsp), %rdi
callq 0x1b4f80
jmp 0x1da985
jmp 0x1da987
leaq 0x288(%rsp), %rdi
callq 0x1d1c20
jmp 0x1da8f6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x428(%rsp)
movl %eax, 0x424(%rsp)
jmp 0x1db4d2
movl 0x5bc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x5bc(%rsp)
movq 0x5c0(%rsp), %rax
movq 0xe8(%rax), %rsi
leaq 0x258(%rsp), %rdi
callq 0x1b1630
jmp 0x1da9e1
movq 0x5c0(%rsp), %rax
movq 0xe8(%rax), %rdi
callq 0x1b1b80
movl %eax, 0x124(%rsp)
jmp 0x1da9fe
movl 0x124(%rsp), %eax
movl %eax, 0x254(%rsp)
movq 0x5c0(%rsp), %rax
movq 0xe8(%rax), %rax
movq %rax, 0x110(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x230(%rsp)
movq $0x0, 0x240(%rsp)
leaq 0x230(%rsp), %rdi
movq %rdi, 0x118(%rsp)
callq 0x1b4f70
movq 0x110(%rsp), %rdi
movq 0x118(%rsp), %rdx
leaq 0x400(%rsp), %rsi
callq 0x1b0670
jmp 0x1daa6e
leaq 0x230(%rsp), %rdi
callq 0x6ed80
movl $0x0, 0x22c(%rsp)
movslq 0x22c(%rsp), %rax
movq %rax, 0x108(%rsp)
leaq 0x3e8(%rsp), %rdi
callq 0x1dd6b0
movq %rax, %rcx
movq 0x108(%rsp), %rax
cmpq %rcx, %rax
jae 0x1dab98
movq 0x5c0(%rsp), %rax
movq 0xe8(%rax), %rax
movq %rax, 0xf8(%rsp)
movslq 0x22c(%rsp), %rsi
leaq 0x3b8(%rsp), %rdi
callq 0x1dd580
movq %rax, 0x100(%rsp)
movslq 0x22c(%rsp), %rsi
leaq 0x3e8(%rsp), %rdi
callq 0x1dd690
movq 0xf8(%rsp), %rdi
movq 0x100(%rsp), %rsi
movq %rax, %rdx
callq 0x1b07a0
jmp 0x1dab1a
movslq 0x22c(%rsp), %rsi
leaq 0x3b8(%rsp), %rdi
callq 0x1dd580
movq %rax, %rsi
leaq 0x358(%rsp), %rdi
callq 0x1b4f80
jmp 0x1dab41
jmp 0x1dab43
movl 0x22c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x22c(%rsp)
jmp 0x1daa86
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x428(%rsp)
movl %eax, 0x424(%rsp)
jmp 0x1db4c5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x428(%rsp)
movl %eax, 0x424(%rsp)
leaq 0x230(%rsp), %rdi
callq 0x6ed80
jmp 0x1db4c5
movq 0x5c0(%rsp), %rdi
callq 0x1d50f0
jmp 0x1daba7
movq 0x5c0(%rsp), %rax
movl 0xe0(%rax), %eax
movl %eax, 0x228(%rsp)
movq 0x5c0(%rsp), %rax
movq 0xe8(%rax), %rax
movq %rax, 0xe8(%rsp)
leaq 0x1e7(%rsp), %rdi
movq %rdi, 0xf0(%rsp)
callq 0x13570
movq 0xf0(%rsp), %rdx
leaq 0x30b3d(%rip), %rsi     # 0x20b734
leaq 0x1e8(%rsp), %rdi
callq 0x165520
jmp 0x1dac06
movq 0x178(%rsp), %rdi
addq $0x10, %rdi
movslq 0x5bc(%rsp), %rsi
movl %esi, %eax
incl %eax
movl %eax, 0x5bc(%rsp)
callq 0x1d1e60
movq 0xe8(%rsp), %rsi
movq (%rax), %rcx
addq $0x40, %rcx
leaq 0x208(%rsp), %rdi
leaq 0x1e8(%rsp), %rdx
leaq 0x388(%rsp), %r8
callq 0x1b0880
jmp 0x1dac58
leaq 0x1e8(%rsp), %rdi
callq 0x52f50
leaq 0x1e7(%rsp), %rdi
callq 0x136a0
movq 0x5c0(%rsp), %rax
movq 0xe8(%rax), %rsi
leaq 0x1c0(%rsp), %rdi
callq 0x1b1ba0
jmp 0x1dac90
movq 0x5c0(%rsp), %rax
movl $0x1, 0xe0(%rax)
movq 0x5c0(%rsp), %rax
movq 0xe8(%rax), %rdi
movl 0xe0(%rax), %esi
movl %esi, %ecx
incl %ecx
movl %ecx, 0xe0(%rax)
xorl %edx, %edx
callq 0x1b1240
jmp 0x1dacca
movl $0x0, 0x1bc(%rsp)
movslq 0x1bc(%rsp), %rax
movq %rax, 0xe0(%rsp)
leaq 0x370(%rsp), %rdi
callq 0x6f4b0
movq %rax, %rcx
movq 0xe0(%rsp), %rax
cmpq %rcx, %rax
jae 0x1daec5
movq 0x5c0(%rsp), %rcx
movl 0xe0(%rcx), %eax
movl %eax, %edx
incl %edx
movl %edx, 0xe0(%rcx)
movl %eax, 0x1b8(%rsp)
movq 0x5c0(%rsp), %rax
movq 0xe8(%rax), %rdi
movl 0x1b8(%rsp), %esi
movl 0x1bc(%rsp), %edx
incl %edx
callq 0x1b1240
jmp 0x1dad4b
movl 0x1b8(%rsp), %eax
movl %eax, 0xcc(%rsp)
movq 0x5c0(%rsp), %rax
movq 0xd0(%rax), %rax
addq $0x28, %rax
movq %rax, 0xd0(%rsp)
movslq 0x1bc(%rsp), %rsi
leaq 0x370(%rsp), %rdi
callq 0x1dd580
movq 0xd0(%rsp), %rdi
movq %rax, %rsi
callq 0x1b4880
movq %rax, 0xd8(%rsp)
jmp 0x1dada3
movq 0xd8(%rsp), %rax
movl 0xcc(%rsp), %ecx
movl %ecx, (%rax)
movslq 0x1bc(%rsp), %rsi
leaq 0x388(%rsp), %rdi
callq 0x1dd580
movq %rax, 0xb0(%rsp)
movq 0x5c0(%rsp), %rax
movq 0xd0(%rax), %rax
addq $0x60, %rax
movq %rax, 0xb8(%rsp)
movslq 0x1bc(%rsp), %rsi
leaq 0x370(%rsp), %rdi
callq 0x1dd580
movq 0xb8(%rsp), %rdi
movq %rax, %rsi
callq 0x1dcf70
movq %rax, 0xc0(%rsp)
jmp 0x1dae1b
movq 0xb0(%rsp), %rsi
movq 0xc0(%rsp), %rdi
callq 0x1187a0
jmp 0x1dae32
jmp 0x1dae34
movl 0x1bc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1bc(%rsp)
jmp 0x1dacd5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x428(%rsp)
movl %eax, 0x424(%rsp)
jmp 0x1dae81
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x428(%rsp)
movl %eax, 0x424(%rsp)
leaq 0x1e8(%rsp), %rdi
callq 0x52f50
leaq 0x1e7(%rsp), %rdi
callq 0x136a0
jmp 0x1db4c5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x428(%rsp)
movl %eax, 0x424(%rsp)
jmp 0x1db4b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x428(%rsp)
movl %eax, 0x424(%rsp)
jmp 0x1db4ab
movl $0x0, 0x1b4(%rsp)
movslq 0x1b4(%rsp), %rax
movq %rax, 0xa8(%rsp)
leaq 0x3e8(%rsp), %rdi
callq 0x1dd6b0
movq %rax, %rcx
movq 0xa8(%rsp), %rax
cmpq %rcx, %rax
jae 0x1db065
movq 0x5c0(%rsp), %rcx
movl 0xe0(%rcx), %eax
movl %eax, %edx
incl %edx
movl %edx, 0xe0(%rcx)
movl %eax, 0x1b0(%rsp)
movq 0x5c0(%rsp), %rax
movq 0xe8(%rax), %rax
movq %rax, 0x98(%rsp)
movl 0x1b0(%rsp), %eax
movl %eax, 0xa4(%rsp)
movslq 0x1b4(%rsp), %rsi
leaq 0x3e8(%rsp), %rdi
callq 0x1dd690
movq 0x98(%rsp), %rdi
movl 0xa4(%rsp), %esi
movq %rax, %rcx
movl $0x1, %edx
callq 0x1b1290
jmp 0x1daf78
movl 0x1b0(%rsp), %eax
movl %eax, 0x84(%rsp)
movq 0x5c0(%rsp), %rax
movq 0xd0(%rax), %rax
addq $0x28, %rax
movq %rax, 0x88(%rsp)
movslq 0x1b4(%rsp), %rsi
leaq 0x3e8(%rsp), %rdi
callq 0x1dd690
movq 0x88(%rsp), %rdi
movq %rax, %rsi
callq 0x1b4880
movq %rax, 0x90(%rsp)
jmp 0x1dafd0
movq 0x90(%rsp), %rax
movl 0x84(%rsp), %ecx
movl %ecx, (%rax)
movslq 0x1b4(%rsp), %rsi
leaq 0x3b8(%rsp), %rdi
callq 0x1dd580
movq %rax, 0x68(%rsp)
movq 0x5c0(%rsp), %rax
movq 0xd0(%rax), %rax
addq $0x60, %rax
movq %rax, 0x70(%rsp)
movslq 0x1b4(%rsp), %rsi
leaq 0x3e8(%rsp), %rdi
callq 0x1dd690
movq 0x70(%rsp), %rdi
movq %rax, %rsi
callq 0x1dcf70
movq %rax, 0x78(%rsp)
jmp 0x1db03c
movq 0x68(%rsp), %rsi
movq 0x78(%rsp), %rdi
callq 0x1187a0
jmp 0x1db04d
jmp 0x1db04f
movl 0x1b4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1b4(%rsp)
jmp 0x1daed0
movq 0x178(%rsp), %rdi
addq $0x10, %rdi
movslq 0x5bc(%rsp), %rsi
movl %esi, %eax
incl %eax
movl %eax, 0x5bc(%rsp)
callq 0x1d1e60
movq (%rax), %rdi
movq 0x5c0(%rsp), %rsi
movq (%rdi), %rax
movq (%rax), %rax
callq *%rax
jmp 0x1db09e
movq 0x5c0(%rsp), %rax
movq 0xe8(%rax), %rdi
callq 0x1b1b80
movl %eax, 0x64(%rsp)
jmp 0x1db0b8
movl 0x64(%rsp), %esi
leaq 0x208(%rsp), %rdi
callq 0x1d1c40
jmp 0x1db0cb
movq 0x5c0(%rsp), %rax
movl 0xe0(%rax), %esi
leaq 0x1c0(%rsp), %rdi
callq 0x1d1c40
jmp 0x1db0e8
movl 0x228(%rsp), %ecx
movq 0x5c0(%rsp), %rax
movl %ecx, 0xe0(%rax)
movq 0x5c0(%rsp), %rdi
callq 0x1d5230
movq 0x5c0(%rsp), %rdi
addq $0x128, %rdi            # imm = 0x128
leaq 0x254(%rsp), %rsi
callq 0x1dd620
jmp 0x1db128
movq 0x5c0(%rsp), %rax
movq %rax, %rcx
addq $0x140, %rcx            # imm = 0x140
movq %rcx, 0x58(%rsp)
movq 0xe8(%rax), %rsi
leaq 0x190(%rsp), %rdi
callq 0x1b1630
jmp 0x1db155
movq 0x58(%rsp), %rdi
leaq 0x190(%rsp), %rsi
callq 0x1dd6d0
jmp 0x1db169
leaq 0x190(%rsp), %rdi
callq 0x1d1c80
movq 0x5c0(%rsp), %rax
movq 0xe8(%rax), %rdi
callq 0x1b1b80
movl %eax, 0x54(%rsp)
jmp 0x1db190
movl 0x54(%rsp), %esi
leaq 0x258(%rsp), %rdi
callq 0x1d1c40
jmp 0x1db1a3
movq 0x5c0(%rsp), %rdi
callq 0x1d5250
movl %eax, 0x18c(%rsp)
movq 0x5c0(%rsp), %rax
movq 0xe8(%rax), %rdi
movl 0x18c(%rsp), %edx
leaq 0x400(%rsp), %rsi
leaq 0x3a0(%rsp), %rcx
callq 0x1b0f40
jmp 0x1db1e4
movl $0x0, 0x188(%rsp)
movslq 0x188(%rsp), %rax
movq %rax, 0x48(%rsp)
leaq 0x3e8(%rsp), %rdi
callq 0x1dd6b0
movq %rax, %rcx
movq 0x48(%rsp), %rax
cmpq %rcx, %rax
jae 0x1db3fc
movq 0x5c0(%rsp), %rcx
movl 0xe0(%rcx), %eax
movl %eax, %edx
incl %edx
movl %edx, 0xe0(%rcx)
movl %eax, 0x184(%rsp)
movq 0x5c0(%rsp), %rax
movq 0xe8(%rax), %rax
movq %rax, 0x38(%rsp)
movl 0x184(%rsp), %eax
movl %eax, 0x40(%rsp)
movl 0x18c(%rsp), %eax
movl %eax, 0x44(%rsp)
movslq 0x188(%rsp), %rsi
leaq 0x3e8(%rsp), %rdi
callq 0x1dd690
movq 0x38(%rsp), %rdi
movl 0x40(%rsp), %esi
movl 0x44(%rsp), %edx
movq %rax, %rcx
callq 0x1b1290
jmp 0x1db28f
movslq 0x188(%rsp), %rsi
leaq 0x3d0(%rsp), %rdi
callq 0x1b5c70
cmpl $0x0, (%rax)
jne 0x1db39b
movslq 0x188(%rsp), %rsi
leaq 0x3b8(%rsp), %rdi
callq 0x1dd580
movq %rax, %rdi
leaq 0x46d5c(%rip), %rsi     # 0x222028
callq 0x56430
movb %al, 0x37(%rsp)
jmp 0x1db2d7
movb 0x37(%rsp), %al
testb $0x1, %al
jne 0x1db2e1
jmp 0x1db350
movq 0x5c0(%rsp), %rax
movq 0xe8(%rax), %rax
movq %rax, 0x28(%rsp)
movl 0x184(%rsp), %eax
movl %eax, 0x30(%rsp)
movslq 0x188(%rsp), %rsi
leaq 0x3e8(%rsp), %rdi
callq 0x1dd690
movq 0x28(%rsp), %rdi
movl 0x30(%rsp), %esi
movl 0x20(%rax), %edx
callq 0x1b11f0
jmp 0x1db328
jmp 0x1db399
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x428(%rsp)
movl %eax, 0x424(%rsp)
leaq 0x190(%rsp), %rdi
callq 0x1d1c80
jmp 0x1db4ab
movq 0x5c0(%rsp), %rax
movq 0xe8(%rax), %rax
movq %rax, 0x18(%rsp)
movl 0x184(%rsp), %eax
movl %eax, 0x24(%rsp)
movslq 0x188(%rsp), %rsi
leaq 0x3e8(%rsp), %rdi
callq 0x1dd690
movq 0x18(%rsp), %rdi
movl 0x24(%rsp), %esi
movl 0x20(%rax), %edx
callq 0x1b1150
jmp 0x1db397
jmp 0x1db399
jmp 0x1db3e4
movq 0x5c0(%rsp), %rax
movq 0xe8(%rax), %rax
movq %rax, 0x8(%rsp)
movl 0x184(%rsp), %eax
movl %eax, 0x14(%rsp)
movslq 0x188(%rsp), %rsi
leaq 0x3e8(%rsp), %rdi
callq 0x1dd690
movq 0x8(%rsp), %rdi
movl 0x14(%rsp), %esi
movl 0x20(%rax), %edx
callq 0x1b11a0
jmp 0x1db3e2
jmp 0x1db3e4
jmp 0x1db3e6
movl 0x188(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x188(%rsp)
jmp 0x1db1ef
movl 0x18c(%rsp), %eax
movl %eax, 0x5d4(%rsp)
leaq 0x1c0(%rsp), %rdi
callq 0x1d1c80
leaq 0x208(%rsp), %rdi
callq 0x1d1c80
leaq 0x258(%rsp), %rdi
callq 0x1d1c80
leaq 0x358(%rsp), %rdi
callq 0x6ed80
leaq 0x370(%rsp), %rdi
callq 0x6ed80
leaq 0x388(%rsp), %rdi
callq 0x6ed80
leaq 0x3a0(%rsp), %rdi
callq 0x1dd280
leaq 0x3b8(%rsp), %rdi
callq 0x6ed80
leaq 0x3d0(%rsp), %rdi
callq 0x1dd280
leaq 0x3e8(%rsp), %rdi
callq 0x1dd700
leaq 0x400(%rsp), %rdi
callq 0x52f50
leaq 0x430(%rsp), %rdi
callq 0x13240
jmp 0x1db549
leaq 0x1c0(%rsp), %rdi
callq 0x1d1c80
leaq 0x208(%rsp), %rdi
callq 0x1d1c80
leaq 0x258(%rsp), %rdi
callq 0x1d1c80
leaq 0x358(%rsp), %rdi
callq 0x6ed80
leaq 0x370(%rsp), %rdi
callq 0x6ed80
leaq 0x388(%rsp), %rdi
callq 0x6ed80
leaq 0x3a0(%rsp), %rdi
callq 0x1dd280
leaq 0x3b8(%rsp), %rdi
callq 0x6ed80
leaq 0x3d0(%rsp), %rdi
callq 0x1dd280
leaq 0x3e8(%rsp), %rdi
callq 0x1dd700
leaq 0x400(%rsp), %rdi
callq 0x52f50
leaq 0x430(%rsp), %rdi
callq 0x13240
jmp 0x1db558
movl 0x5d4(%rsp), %eax
addq $0x5d8, %rsp            # imm = 0x5D8
retq
movq 0x428(%rsp), %rdi
callq 0x133f0
nopw %cs:(%rax,%rax)