// File: /workspace/github_cpp_makefile_star2_O2/Heptagon196[P]Gos/GosASTCompiler.cpp
// Function: Gos::AST::Equality::CompileAST(Gos::Compiler::VMCompiler&)
Compile(Equality) {
    START();
    if (tokenList.size() == 0) {
        return SUB(0);
    }
    std::vector<int> bools;
    int tmp = code.GetTmpVar();
    GosVM::RTConstNum num;
    num.data.i64 = 1;
    vm.WriteCommandNew("bool", tmp, {});
    vm.WriteCommandNot(tmp);
    bools.push_back(SUB(0));
    for (int i = 0; i < tokenList.size(); i++) {
        bools.push_back(SUB(i + 1));
        const char* op = "__eq";
        if (tokenList[i].type == NE) {
            op = "__ne";
        }
        vm.WriteCommandCall(bools[i], op, { bools[i + 1] });
        vm.WriteCommandAnd(tmp, 0);
    }
    return tmp;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl 0x2c(%rdi), %eax
movl %eax, 0x8128a(%rip)     # 0x107278
movq 0x10(%rdi), %rax
cmpq %rax, 0x18(%rdi)
je 0x861c0
movq %rsi, %rbx
movq 0x68(%rdi), %rcx
cmpq 0x60(%rdi), %rcx
je 0x861d4
movq %rdi, 0x10(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
movq %rbx, %rdi
callq 0x85044
movl %eax, %ebp
movq 0xe8(%rbx), %r15
leaq 0x24b00(%rip), %rsi     # 0xaab38
leaq 0x40(%rsp), %rdi
leaq 0xa(%rsp), %rdx
callq 0x664f4
leaq 0x60(%rsp), %rcx
xorps %xmm0, %xmm0
movaps %xmm0, (%rcx)
andq $0x0, 0x10(%rcx)
leaq 0x40(%rsp), %rsi
movq %r15, %rdi
movl %ebp, %edx
callq 0x78c3c
leaq 0x60(%rsp), %rdi
callq 0x89956
leaq 0x40(%rsp), %rdi
callq 0x209be
movq 0xe8(%rbx), %rdi
movl %ebp, 0xc(%rsp)
movl %ebp, %esi
callq 0x79064
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movq (%rdi), %rax
movq %rbx, 0x18(%rsp)
movq %rbx, %rsi
callq *(%rax)
leaq 0x40(%rsp), %rsi
movl %eax, (%rsi)
leaq 0x20(%rsp), %rdi
callq 0x89a6c
xorl %r15d, %r15d
leaq 0x40(%rsp), %r13
leaq 0x80(%rsp), %r12
xorl %ebx, %ebx
movq 0x10(%rsp), %rsi
movq 0x68(%rsi), %rax
subq 0x60(%rsi), %rax
cqto
pushq $0x38
popq %rcx
idivq %rcx
cmpq %rbx, %rax
jbe 0x861b0
movq 0x10(%rsi), %rax
movq 0x8(%rax,%rbx,8), %rdi
movq (%rdi), %rax
movq 0x18(%rsp), %rsi
callq *(%rax)
movl %eax, 0x40(%rsp)
leaq 0x20(%rsp), %rdi
movq %r13, %rsi
callq 0x89a6c
movq 0x10(%rsp), %rax
movq 0x60(%rax), %rax
cmpl $0x22, (%rax,%r15)
leaq 0xfc89(%rip), %rsi      # 0x95da8
leaq 0xfc87(%rip), %rax      # 0x95dad
cmoveq %rax, %rsi
movq %r13, %rdi
movq 0x18(%rsp), %rax
movq 0xe8(%rax), %r14
movq 0x20(%rsp), %rax
movl (%rax,%rbx,4), %ebp
leaq 0xa(%rsp), %rdx
callq 0x664f4
movq 0x20(%rsp), %rax
movl 0x4(%rax,%rbx,4), %eax
movl %eax, 0x60(%rsp)
movq %r12, %rdi
leaq 0x60(%rsp), %rsi
pushq $0x1
popq %rdx
leaq 0xb(%rsp), %rcx
callq 0x88976
movq %r14, %rdi
movl %ebp, %esi
movq %r13, %rdx
movq %r12, %rcx
callq 0x791c0
movq %r12, %rdi
callq 0x89956
movq %r13, %rdi
callq 0x209be
movq 0x18(%rsp), %rax
movq 0xe8(%rax), %rdi
addq $0x38, %r15
incq %rbx
movl 0xc(%rsp), %esi
xorl %edx, %edx
callq 0x79004
jmp 0x860c8
leaq 0x20(%rsp), %rdi
callq 0x89956
movl 0xc(%rsp), %eax
jmp 0x861c2
xorl %eax, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rax), %rdi
movq (%rdi), %rax
movq (%rax), %rax
movq %rbx, %rsi
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rax
jmp 0x86228
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
jmp 0x86210
jmp 0x86228
jmp 0x86228
jmp 0x86228
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x89956
jmp 0x8621c
jmp 0x86228
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x209be
jmp 0x8622b
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x89956
movq %rbx, %rdi
callq 0x11570
nop