// File: /workspace/github_cpp_makefile_star2_O1/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, 0x75e38(%rip)     # 0x11f288
movq 0x10(%rdi), %rax
cmpq %rax, 0x18(%rdi)
je 0xa957d
movq %rsi, %r15
movq 0x68(%rdi), %rcx
cmpq 0x60(%rdi), %rcx
je 0xa9584
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
leaq 0x100(%r15), %rax
movq (%rax), %rax
testq %rax, %rax
je 0xa94a2
movb 0xc(%rax), %cl
testb %cl, %cl
jne 0xa949e
movb $0x1, 0xc(%rax)
movl 0x8(%rax), %r12d
testb %cl, %cl
jne 0xa9487
movq %rdi, 0x50(%rsp)
testq %rax, %rax
jne 0xa94bf
movl 0xe0(%r15), %r12d
leal 0x1(%r12), %eax
movl %eax, 0xe0(%r15)
movq 0xe8(%r15), %r14
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x27c4e(%rip), %rsi     # 0xd1124
leaq 0x27c4b(%rip), %rdx     # 0xd1128
leaq 0x10(%rsp), %rdi
callq 0x27dc8
xorps %xmm0, %xmm0
leaq 0x60(%rsp), %rcx
movaps %xmm0, (%rcx)
movq $0x0, 0x10(%rcx)
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
movl %r12d, %edx
callq 0x99e82
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0xa9521
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x11360
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xa953d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x11360
movq 0xe8(%r15), %rdi
movl %r12d, %esi
callq 0x9a6c8
movq 0x50(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdi
movq (%rdi), %rax
movq %r15, %rsi
callq *(%rax)
movl %eax, 0x10(%rsp)
movq 0x38(%rsp), %rsi
cmpq 0x40(%rsp), %rsi
je 0xa95a3
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x38(%rsp)
jmp 0xa95b2
xorl %eax, %eax
jmp 0xa972a
movq (%rax), %rdi
movq (%rdi), %rax
movq (%rax), %rax
movq %r15, %rsi
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rax
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0xae03e
movq %r12, 0x58(%rsp)
xorl %ebp, %ebp
leaq 0x80(%rsp), %rbx
xorl %r13d, %r13d
movq 0x50(%rsp), %rdx
movq 0x68(%rdx), %rax
subq 0x60(%rdx), %rax
sarq $0x3, %rax
movabsq $0x6db6db6db6db6db7, %rcx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rcx, %rax
cmpq %r13, %rax
jbe 0xa970e
movq 0x10(%rdx), %rax
movq 0x8(%rax,%r13,8), %rdi
movq (%rdi), %rax
movq %r15, %rsi
callq *(%rax)
movl %eax, 0x10(%rsp)
movq 0x38(%rsp), %rsi
cmpq 0x40(%rsp), %rsi
je 0xa961a
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x38(%rsp)
jmp 0xa9629
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0xae03e
movq 0x50(%rsp), %rax
movq 0x60(%rax), %rax
cmpl $0x22, (%rax,%rbp)
leaq 0x13774(%rip), %rsi     # 0xbcdb1
leaq 0x13772(%rip), %rax     # 0xbcdb6
cmoveq %rax, %rsi
movq 0xe8(%r15), %r12
movq 0x30(%rsp), %rax
movl (%rax,%r13,4), %r14d
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x1374c(%rip), %rdx     # 0xbcdb5
leaq 0x1374a(%rip), %rax     # 0xbcdba
cmoveq %rax, %rdx
leaq 0x10(%rsp), %rdi
callq 0x27dc8
movq 0x30(%rsp), %rax
movl 0x4(%rax,%r13,4), %eax
movl %eax, 0x60(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x60(%rsp), %rsi
leaq 0xf(%rsp), %rcx
callq 0xace70
movq %r12, %rdi
movl %r14d, %esi
leaq 0x10(%rsp), %rdx
movq %rbx, %rcx
callq 0x9a924
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0xa96d3
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x11360
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xa96ef
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x11360
movq 0xe8(%r15), %rdi
addq $0x38, %rbp
incq %r13
movq 0x58(%rsp), %rsi
xorl %edx, %edx
callq 0x9a5f4
jmp 0xa95c4
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0xa9725
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x11360
movq 0x58(%rsp), %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa979d
movq %rax, %rbx
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0xa977f
movq 0x70(%rsp), %rsi
jmp 0xa9770
jmp 0xa979d
jmp 0xa979d
jmp 0xa979d
movq %rax, %rbx
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0xa977f
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x11360
jmp 0xa977f
jmp 0xa979d
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xa97a0
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x11360
jmp 0xa97a0
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0xa97b7
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x11360
movq %rbx, %rdi
callq 0x11580
nop