// File: /workspace/github_cpp_makefile_star2_O3/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 $0xe8, %rsp
movl 0x2c(%rdi), %eax
movl %eax, 0x76b44(%rip)     # 0x11e288
movq 0x10(%rdi), %rax
cmpq %rax, 0x18(%rdi)
je 0xa7b8c
movq %rsi, %rbx
movq %rdi, %r12
movq (%rax), %rdi
movq (%rdi), %rax
callq *(%rax)
movl %eax, %r15d
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
movq 0x10(%r12), %rax
movq 0x18(%r12), %rcx
subq %rax, %rcx
cmpq $0x9, %rcx
jb 0xa7b8f
leaq 0x100(%rbx), %rcx
movq %rcx, 0x98(%rsp)
movl $0x1, %r14d
movq %r12, 0x90(%rsp)
movl %r15d, %r13d
movq (%rax,%r14,8), %rbp
movq 0x98(%rsp), %rax
movq (%rax), %rax
testq %rax, %rax
je 0xa77cf
cmpb $0x0, 0xc(%rax)
jne 0xa77b7
movb $0x1, 0xc(%rax)
movl 0x8(%rax), %r15d
jmp 0xa77e0
movl 0xe0(%rbx), %r15d
leal 0x1(%r15), %eax
movl %eax, 0xe0(%rbx)
movq 0x30(%rsp), %rax
cmpq %rax, 0x38(%rsp)
je 0xa77f1
movq %rax, 0x38(%rsp)
movl 0x8(%rbp), %eax
decl %eax
cmpl $0x5, %eax
ja 0xa7b50
leaq 0x285b2(%rip), %rcx     # 0xcfdb8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0xe8(%rbx), %r12
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %rdi
leaq 0x14579(%rip), %rsi     # 0xbbda5
leaq 0x14579(%rip), %rdx     # 0xbbdac
callq 0x27370
movq 0x10(%rbp), %rax
movq (%rax), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *(%rax)
movl %eax, 0x4c(%rsp)
movl $0x1, %edx
leaq 0xd0(%rsp), %rbp
movq %rbp, %rdi
leaq 0x4c(%rsp), %rsi
leaq 0x2f(%rsp), %rcx
callq 0xac002
leaq 0x8(%rsp), %rdx
movq %r12, %rdi
movl %r13d, %esi
movq %rbp, %rcx
callq 0x99cd6
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0xa7b23
movq 0xe0(%rsp), %rsi
jmp 0xa7b1b
movq 0xe8(%rbx), %r12
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %rbp
movq %rbp, %rdi
leaq 0x14526(%rip), %rsi     # 0xbbde1
leaq 0x14524(%rip), %rdx     # 0xbbde6
callq 0x27370
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
movq $0x0, 0x80(%rsp)
movq %r12, %rdi
movl %r13d, %esi
movq %rbp, %rdx
leaq 0x70(%rsp), %rcx
callq 0x99cd6
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0xa7b23
movq 0x80(%rsp), %rsi
jmp 0xa7b1b
movq 0xe8(%rbx), %rdi
movq 0x10(%rbp), %rax
movq (%rax), %rcx
addq $0x40, %rcx
movl %r15d, %esi
movl %r13d, %edx
callq 0x9965c
jmp 0xa7b50
movl %r13d, 0x28(%rsp)
movq 0x10(%rbp), %rax
movq 0x18(%rbp), %rcx
subq %rax, %rcx
cmpq $0x9, %rcx
jb 0xa7997
movq 0x8(%rax), %rcx
movq 0x10(%rcx), %r12
movq 0x18(%rcx), %r13
cmpq %r13, %r12
je 0xa7997
movq (%r12), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *(%rax)
movl %eax, 0x8(%rsp)
movq 0x38(%rsp), %rsi
cmpq 0x40(%rsp), %rsi
je 0xa797b
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x38(%rsp)
jmp 0xa798a
leaq 0x30(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xad1be
addq $0x8, %r12
cmpq %r13, %r12
jne 0xa7952
movq 0x10(%rbp), %rax
movq 0xe8(%rbx), %rbp
movq (%rax), %r12
leaq 0xa0(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0xac048
movl 0x28(%rsp), %esi
addq $0x40, %r12
movq %rbp, %rdi
movq %r12, %rdx
leaq 0xa0(%rsp), %rcx
callq 0x99cd6
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0xa7b3f
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
jmp 0xa7b3a
movl %r13d, 0x28(%rsp)
movq 0x10(%rbp), %rax
cmpq %rax, 0x18(%rbp)
leaq 0x8(%rsp), %rbp
je 0xa7ab8
movq (%rax), %rax
movq 0x10(%rax), %r12
movq 0x18(%rax), %r13
cmpq %r13, %r12
je 0xa7ab8
movq (%r12), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *(%rax)
movl %eax, 0x8(%rsp)
movq 0x38(%rsp), %rsi
cmpq 0x40(%rsp), %rsi
je 0xa7a44
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x38(%rsp)
jmp 0xa7a51
leaq 0x30(%rsp), %rdi
movq %rbp, %rdx
callq 0xad1be
addq $0x8, %r12
jmp 0xa7a12
movq 0xe8(%rbx), %r12
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %rbp
movq %rbp, %rdi
leaq 0x14364(%rip), %rsi     # 0xbbddb
leaq 0x14362(%rip), %rdx     # 0xbbde0
callq 0x27370
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
movq %r12, %rdi
movl %r13d, %esi
movq %rbp, %rdx
leaq 0x50(%rsp), %rcx
callq 0x99cd6
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xa7b23
movq 0x60(%rsp), %rsi
jmp 0xa7b1b
movq 0xe8(%rbx), %r12
leaq 0x18(%rsp), %r13
movq %r13, 0x8(%rsp)
movq %rbp, %rdi
leaq 0x142da(%rip), %rsi     # 0xbbdad
leaq 0x142d9(%rip), %rdx     # 0xbbdb3
callq 0x27370
leaq 0xb8(%rsp), %r13
movq %r13, %rdi
leaq 0x30(%rsp), %rsi
callq 0xac048
movq %r12, %rdi
movl 0x28(%rsp), %esi
movq %rbp, %rdx
movq %r13, %rcx
callq 0x99cd6
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0xa7b23
movq 0xc8(%rsp), %rsi
subq %rdi, %rsi
callq 0x11360
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xa7b3f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x11360
movq 0xe8(%rbx), %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x9951e
incq %r14
movq 0x90(%rsp), %rcx
movq 0x10(%rcx), %rax
movq 0x18(%rcx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r14, %rcx
ja 0xa77a8
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0xa7b8f
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x11360
jmp 0xa7b8f
xorl %r15d, %r15d
movl %r15d, %eax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa7c66
movq %rax, %rbx
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0xa7c44
movq 0x80(%rsp), %rsi
jmp 0xa7c37
jmp 0xa7c66
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xa7c44
movq 0x60(%rsp), %rsi
jmp 0xa7c37
jmp 0xa7c66
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0xa7c69
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
jmp 0xa7c5b
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0xa7c44
movq 0xe0(%rsp), %rsi
jmp 0xa7c37
jmp 0xa7c41
jmp 0xa7c41
jmp 0xa7c66
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0xa7c44
movq 0xc8(%rsp), %rsi
subq %rdi, %rsi
callq 0x11360
jmp 0xa7c44
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xa7c69
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x11360
jmp 0xa7c69
jmp 0xa7c66
jmp 0xa7c66
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0xa7c80
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x11360
movq %rbx, %rdi
callq 0x11580