// File: /workspace/github_cpp_makefile_star2_O1/Heptagon196[P]Gos/GosASTCompiler.cpp
// Function: Gos::AST::PostFix::CompileAST(Gos::Compiler::VMCompiler&)
Compile(PostFix) {
    START();
    int prv = SUB(0);
    std::vector<int> params;
    for (int i = 1; i < nodes.size(); i++) {
        GosAST* rt = nodes[i];
        int tmp = code.GetTmpVar();
        params.clear();
        switch (rt->branch) {
            case 1:
                vm.WriteCommandCall(prv, "__index", { rt->SUB(0) });
                vm.WriteCommandRef(tmp, 0);
                break;
            case 2:
                if (rt->nodes.size() > 0) {
                    GosAST* argsList = rt->nodes[0];
                    for (auto* expr : argsList->nodes) {
                        params.push_back(expr->CompileAST(code));
                    }
                }
                vm.WriteCommandCall(prv, "__call", params);
                vm.WriteCommandRef(tmp, 0);
                break;
            case 3:
                vm.WriteCommandGetField(tmp, prv, rt->nodes[0]->token.str);
                break;
            case 4:
                if (rt->nodes.size() > 1) {
                    GosAST* argsList = rt->nodes[1];
                    for (auto* expr : argsList->nodes) {
                        params.push_back(expr->CompileAST(code));
                    }
                }
                vm.WriteCommandCall(prv, rt->nodes[0]->token.str, params);
                vm.WriteCommandRef(tmp, 0);
                break;
            case 5:
                vm.WriteCommandCall(prv, "__dec", {});
                vm.WriteCommandRef(tmp, 0);
                break;
            case 6:
                vm.WriteCommandCall(prv, "__inc", {});
                vm.WriteCommandRef(tmp, 0);
                break;
        }
        prv = tmp;
    }
    return prv;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movl 0x2c(%rdi), %eax
movl %eax, 0x76e16(%rip)     # 0x11f288
movq 0x10(%rdi), %rax
cmpq %rax, 0x18(%rdi)
je 0xa88e4
movq %rsi, %r14
movq %rdi, %r12
movq (%rax), %rdi
movq (%rdi), %rax
callq *(%rax)
movl %eax, %ebx
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
movq 0x10(%r12), %rax
movq 0x18(%r12), %rcx
subq %rax, %rcx
cmpq $0x9, %rcx
jb 0xa88cb
leaq 0x100(%r14), %rcx
movq %rcx, 0xa8(%rsp)
leaq 0xe8(%r14), %rcx
movq %rcx, 0x38(%rsp)
movl $0x1, %r15d
movq %r12, 0xa0(%rsp)
movl %ebx, 0xc(%rsp)
movq (%rax,%r15,8), %rbp
movq 0xa8(%rsp), %rax
movq (%rax), %rax
testq %rax, %rax
je 0xa850b
movb 0xc(%rax), %cl
testb %cl, %cl
jne 0xa8507
movb $0x1, 0xc(%rax)
movl 0x8(%rax), %ebx
testb %cl, %cl
jne 0xa84f1
testq %rax, %rax
jne 0xa8521
movl 0xe0(%r14), %ebx
leal 0x1(%rbx), %eax
movl %eax, 0xe0(%r14)
movq 0x40(%rsp), %rax
cmpq %rax, 0x48(%rsp)
je 0xa8532
movq %rax, 0x48(%rsp)
movl 0x8(%rbp), %eax
decl %eax
cmpl $0x5, %eax
ja 0xa88a6
leaq 0x288a1(%rip), %rcx     # 0xd0de8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x38(%rsp), %rax
movq (%rax), %r12
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x14867(%rip), %rsi     # 0xbcdd5
leaq 0x14867(%rip), %rdx     # 0xbcddc
callq 0x27dc8
movq 0x10(%rbp), %rax
movq (%rax), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *(%rax)
movl %eax, 0x5c(%rsp)
movl $0x1, %edx
leaq 0xe0(%rsp), %rbp
movq %rbp, %rdi
leaq 0x5c(%rsp), %rsi
leaq 0x37(%rsp), %rcx
callq 0xace70
leaq 0x10(%rsp), %rdx
movq %r12, %rdi
movl 0xc(%rsp), %esi
movq %rbp, %rcx
callq 0x9a924
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0xa8879
movq 0xf0(%rsp), %rsi
jmp 0xa8871
movq 0x38(%rsp), %rax
movq (%rax), %r12
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x10(%rsp), %rbp
movq %rbp, %rdi
leaq 0x14812(%rip), %rsi     # 0xbce11
leaq 0x14810(%rip), %rdx     # 0xbce16
callq 0x27dc8
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
movq $0x0, 0x90(%rsp)
movq %r12, %rdi
movl 0xc(%rsp), %esi
movq %rbp, %rdx
leaq 0x80(%rsp), %rcx
callq 0x9a924
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0xa8879
movq 0x90(%rsp), %rsi
jmp 0xa8871
movq 0xe8(%r14), %rdi
movq 0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x40, %rcx
movl %ebx, %esi
movl 0xc(%rsp), %edx
callq 0x9a296
jmp 0xa88a6
movq 0x10(%rbp), %rax
movq 0x18(%rbp), %rcx
subq %rax, %rcx
cmpq $0x9, %rcx
jb 0xa87ab
movq 0x8(%rax), %rax
movq 0x10(%rax), %r12
movq 0x18(%rax), %r13
cmpq %r13, %r12
je 0xa87ab
movq (%r12), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *(%rax)
movl %eax, 0x10(%rsp)
movq 0x48(%rsp), %rsi
cmpq 0x50(%rsp), %rsi
je 0xa86cc
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x48(%rsp)
jmp 0xa86db
leaq 0x40(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0xae03e
addq $0x8, %r12
jmp 0xa869a
movq 0x10(%rbp), %rax
cmpq %rax, 0x18(%rbp)
je 0xa8808
movq (%rax), %rax
movq 0x10(%rax), %r12
movq 0x18(%rax), %rbp
cmpq %rbp, %r12
je 0xa8808
movq (%r12), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *(%rax)
movl %eax, 0x10(%rsp)
movq 0x48(%rsp), %rsi
cmpq 0x50(%rsp), %rsi
je 0xa872c
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x48(%rsp)
jmp 0xa873b
leaq 0x40(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0xae03e
addq $0x8, %r12
jmp 0xa86fa
movq 0x38(%rsp), %rax
movq (%rax), %r12
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x10(%rsp), %rbp
movq %rbp, %rdi
leaq 0x146a9(%rip), %rsi     # 0xbce0b
leaq 0x146a7(%rip), %rdx     # 0xbce10
callq 0x27dc8
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
movq $0x0, 0x70(%rsp)
movq %r12, %rdi
movl 0xc(%rsp), %esi
movq %rbp, %rdx
leaq 0x60(%rsp), %rcx
callq 0x9a924
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0xa8879
movq 0x70(%rsp), %rsi
jmp 0xa8871
movq 0x38(%rsp), %rax
movq (%rax), %r12
movq 0x10(%rbp), %rax
movq (%rax), %rbp
leaq 0xb0(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0xaceb6
addq $0x40, %rbp
movq %r12, %rdi
movl 0xc(%rsp), %esi
movq %rbp, %rdx
leaq 0xb0(%rsp), %rcx
callq 0x9a924
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0xa8895
movq 0xc0(%rsp), %rsi
subq %rdi, %rsi
jmp 0xa8890
movq 0x38(%rsp), %rax
movq (%rax), %r12
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x10(%rsp), %rbp
movq %rbp, %rdi
leaq 0x145b4(%rip), %rsi     # 0xbcddd
leaq 0x145b3(%rip), %rdx     # 0xbcde3
callq 0x27dc8
leaq 0xc8(%rsp), %r13
movq %r13, %rdi
leaq 0x40(%rsp), %rsi
callq 0xaceb6
movq %r12, %rdi
movl 0xc(%rsp), %esi
movq %rbp, %rdx
movq %r13, %rcx
callq 0x9a924
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0xa8879
movq 0xd8(%rsp), %rsi
subq %rdi, %rsi
callq 0x11360
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xa8895
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x11360
movq 0x38(%rsp), %rax
movq (%rax), %rdi
movl %ebx, %esi
xorl %edx, %edx
callq 0x9a158
incq %r15
movq 0xa0(%rsp), %r12
movq 0x10(%r12), %rax
movq 0x18(%r12), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
ja 0xa84e1
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xa88e6
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x11360
jmp 0xa88e6
xorl %ebx, %ebx
movl %ebx, %eax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa89de
leaq 0x20(%rsp), %r13
movq %rax, %rbx
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0xa89c1
movq 0x90(%rsp), %rsi
jmp 0xa89af
jmp 0xa89de
leaq 0x20(%rsp), %r13
movq %rax, %rbx
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0xa89c1
movq 0x70(%rsp), %rsi
jmp 0xa89af
jmp 0xa89de
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0xa89e1
movq 0xc0(%rsp), %rsi
subq %rdi, %rsi
jmp 0xa89d3
leaq 0x20(%rsp), %r13
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0xa89c1
movq 0xf0(%rsp), %rsi
jmp 0xa89af
jmp 0xa89b9
jmp 0xa89b9
jmp 0xa89de
leaq 0x20(%rsp), %r13
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0xa89c1
movq 0xd8(%rsp), %rsi
subq %rdi, %rsi
callq 0x11360
jmp 0xa89c1
leaq 0x20(%rsp), %r13
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0xa89e1
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x11360
jmp 0xa89e1
jmp 0xa89de
jmp 0xa89de
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xa89f8
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x11360
movq %rbx, %rdi
callq 0x11580