// File: Heptagon196[P]Gos/GosASTCompiler.cpp
// Function: Gos::AST::Mul::CompileAST(Gos::Compiler::VMCompiler&)
Compile(Mul) {
    START();
    if (tokenList.size() == 0) {
        return SUB(0);
    }
    int tmp = code.GetTmpVar();
    vm.WriteCommandClone(tmp, SUB(0));
    for (int i = 0; i < tokenList.size(); i++) {
        if (tokenList[i].type == MUL) {
            vm.WriteCommandMul(tmp, SUB(i + 1));
        } else if (tokenList[i].type == DIV) {
            vm.WriteCommandDiv(tmp, SUB(i + 1));
        } else if (tokenList[i].type == REM) {
            vm.WriteCommandRem(tmp, SUB(i + 1));
        }
    }
    return tmp;
}

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x68(%rsp)
movq %rsi, 0x60(%rsp)
movq 0x68(%rsp), %rdi
movq %rdi, 0x50(%rsp)
movl 0x2c(%rdi), %eax
movl %eax, 0x12b5a7(%rip)    # 0x3022f8
addq $0x10, %rdi
callq 0x1d1e80
cmpq $0x0, %rax
jne 0x1d6d6d
movl $0x0, 0x74(%rsp)
jmp 0x1d6f87
movq 0x50(%rsp), %rdi
addq $0x60, %rdi
callq 0x1c58d0
cmpq $0x0, %rax
jne 0x1d6da9
movq 0x50(%rsp), %rdi
addq $0x10, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x1d1e60
movq (%rax), %rdi
movq 0x60(%rsp), %rsi
movq (%rdi), %rax
callq *(%rax)
movl %eax, 0x74(%rsp)
jmp 0x1d6f87
movq 0x60(%rsp), %rdi
callq 0x1d5250
movq 0x50(%rsp), %rdi
movl %eax, 0x5c(%rsp)
movq 0x60(%rsp), %rax
movq 0xe8(%rax), %rax
movq %rax, 0x40(%rsp)
movl 0x5c(%rsp), %eax
movl %eax, 0x4c(%rsp)
addq $0x10, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x1d1e60
movq (%rax), %rdi
movq 0x60(%rsp), %rsi
movq (%rdi), %rax
callq *(%rax)
movq 0x40(%rsp), %rdi
movl 0x4c(%rsp), %esi
movl %eax, %edx
callq 0x1b11f0
movl $0x0, 0x58(%rsp)
movq 0x50(%rsp), %rdi
movslq 0x58(%rsp), %rax
movq %rax, 0x38(%rsp)
addq $0x60, %rdi
callq 0x1c58d0
movq %rax, %rcx
movq 0x38(%rsp), %rax
cmpq %rcx, %rax
jae 0x1d6f7f
movq 0x50(%rsp), %rdi
addq $0x60, %rdi
movslq 0x58(%rsp), %rsi
callq 0x1c58f0
cmpl $0x1c, (%rax)
jne 0x1d6e9b
movq 0x50(%rsp), %rdi
movq 0x60(%rsp), %rax
movq 0xe8(%rax), %rax
movq %rax, 0x28(%rsp)
movl 0x5c(%rsp), %eax
movl %eax, 0x34(%rsp)
addq $0x10, %rdi
movl 0x58(%rsp), %eax
addl $0x1, %eax
movslq %eax, %rsi
callq 0x1d1e60
movq (%rax), %rdi
movq 0x60(%rsp), %rsi
movq (%rdi), %rax
callq *(%rax)
movq 0x28(%rsp), %rdi
movl 0x34(%rsp), %esi
movl %eax, %edx
callq 0x1b13d0
jmp 0x1d6f6d
movq 0x50(%rsp), %rdi
addq $0x60, %rdi
movslq 0x58(%rsp), %rsi
callq 0x1c58f0
cmpl $0x1e, (%rax)
jne 0x1d6f03
movq 0x50(%rsp), %rdi
movq 0x60(%rsp), %rax
movq 0xe8(%rax), %rax
movq %rax, 0x18(%rsp)
movl 0x5c(%rsp), %eax
movl %eax, 0x24(%rsp)
addq $0x10, %rdi
movl 0x58(%rsp), %eax
addl $0x1, %eax
movslq %eax, %rsi
callq 0x1d1e60
movq (%rax), %rdi
movq 0x60(%rsp), %rsi
movq (%rdi), %rax
callq *(%rax)
movq 0x18(%rsp), %rdi
movl 0x24(%rsp), %esi
movl %eax, %edx
callq 0x1b1420
jmp 0x1d6f6b
movq 0x50(%rsp), %rdi
addq $0x60, %rdi
movslq 0x58(%rsp), %rsi
callq 0x1c58f0
cmpl $0x1f, (%rax)
jne 0x1d6f69
movq 0x50(%rsp), %rdi
movq 0x60(%rsp), %rax
movq 0xe8(%rax), %rax
movq %rax, 0x8(%rsp)
movl 0x5c(%rsp), %eax
movl %eax, 0x14(%rsp)
addq $0x10, %rdi
movl 0x58(%rsp), %eax
addl $0x1, %eax
movslq %eax, %rsi
callq 0x1d1e60
movq (%rax), %rdi
movq 0x60(%rsp), %rsi
movq (%rdi), %rax
callq *(%rax)
movq 0x8(%rsp), %rdi
movl 0x14(%rsp), %esi
movl %eax, %edx
callq 0x1b1470
jmp 0x1d6f6b
jmp 0x1d6f6d
jmp 0x1d6f6f
movl 0x58(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x58(%rsp)
jmp 0x1d6e07
movl 0x5c(%rsp), %eax
movl %eax, 0x74(%rsp)
movl 0x74(%rsp), %eax
addq $0x78, %rsp
retq