// File: /workspace/github_cpp_makefile_star2_O3/martinda3[P]Compiler/src/JVM/JVMgenUtils.cpp
// Function: toyc::JVMgenUtils::gen_RELOP(toyc::TCtoken, toyc::JVMtargetCode*)
void JVMgenUtils::gen_RELOP(TCtoken tok, JVMtargetCode *tc) {
    label *l0 = new label(), *l1 = new label();
    if (tok.getLexeme()=="==")      tc->add(new IF_ICMPNE(l0));
    else if (tok.getLexeme()=="<>") tc->add(new IF_ICMPEQ(l0));
    else if (tok.getLexeme()=="<")  tc->add(new IF_ICMPGE(l0));
    else if (tok.getLexeme()=="<=") tc->add(new IF_ICMPGT(l0));
    else if (tok.getLexeme()==">")  tc->add(new IF_ICMPLE(l0));
    else if (tok.getLexeme()==">=") tc->add(new IF_ICMPLT(l0));
    else { // shouldn't happen
      std::cerr << "Error: gen_RELOP: internal error" << std::endl;
      exit(EXIT_FAILURE);
    }
    tc->add(new ICONST_1());
    tc->add(new GOTO(l1));
    tc->add(new codeLabel(l0->toString()+""));
    tc->add(new ICONST_0());
    tc->add(new codeLabel(l1->toString()+""));
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r12
movl $0x30, %edi
callq 0x8250
movq %rax, %r15
movq %rax, %rdi
callq 0x1cccc
movl $0x30, %edi
callq 0x8250
movq %rax, %r14
movq %rax, %rdi
callq 0x1cccc
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x17fd0
leaq 0x9b55(%rip), %rsi      # 0x2b754
movq %r13, %rdi
callq 0x80a0
movl %eax, %ebp
movq (%r13), %rdi
leaq 0x18(%rsp), %r13
cmpq %r13, %rdi
je 0x21c24
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
testl %ebp, %ebp
je 0x21d9d
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x17fd0
leaq 0x9b14(%rip), %rsi      # 0x2b757
movq %r13, %rdi
callq 0x80a0
movl %eax, %ebp
movq (%r13), %rdi
leaq 0x18(%rsp), %r13
cmpq %r13, %rdi
je 0x21c68
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
testl %ebp, %ebp
je 0x21db7
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x17fd0
leaq 0x9ad3(%rip), %rsi      # 0x2b75a
movq %r13, %rdi
callq 0x80a0
movl %eax, %ebp
movq (%r13), %rdi
leaq 0x18(%rsp), %r13
cmpq %r13, %rdi
je 0x21cac
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
testl %ebp, %ebp
je 0x21dd1
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x17fd0
leaq 0x9a91(%rip), %rsi      # 0x2b75c
movq %r13, %rdi
callq 0x80a0
movl %eax, %ebp
movq (%r13), %rdi
leaq 0x18(%rsp), %r13
cmpq %r13, %rdi
je 0x21cf0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
testl %ebp, %ebp
je 0x21deb
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x17fd0
leaq 0x9a49(%rip), %rsi      # 0x2b758
movq %r13, %rdi
callq 0x80a0
movl %eax, %ebp
movq (%r13), %rdi
leaq 0x18(%rsp), %r13
cmpq %r13, %rdi
je 0x21d34
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
testl %ebp, %ebp
je 0x21e05
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x17fd0
leaq 0x9a0c(%rip), %rsi      # 0x2b75f
movq %r13, %rdi
callq 0x80a0
movl %eax, %ebp
movq (%r13), %rdi
leaq 0x18(%rsp), %r13
cmpq %r13, %rdi
je 0x21d78
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
testl %ebp, %ebp
jne 0x22020
movl $0x18, %edi
callq 0x8250
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x1f25c
jmp 0x21e1d
movl $0x18, %edi
callq 0x8250
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x1ddac
jmp 0x21e1d
movl $0x18, %edi
callq 0x8250
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x1f46c
jmp 0x21e1d
movl $0x18, %edi
callq 0x8250
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x1defc
jmp 0x21e1d
movl $0x18, %edi
callq 0x8250
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x1dc64
jmp 0x21e1d
movl $0x18, %edi
callq 0x8250
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x1d878
addq $0x8, %r12
movq (%rbx), %rax
movq %rbx, %rdi
movq %r12, %rsi
callq *(%rax)
movl $0x10, %edi
callq 0x8250
movq %rax, %r12
movq %rax, %rdi
callq 0x1f348
addq $0x8, %r12
movq (%rbx), %rax
movq %rbx, %rdi
movq %r12, %rsi
callq *(%rax)
movl $0x18, %edi
callq 0x8250
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
callq 0x1ecf4
addq $0x8, %r12
movq (%rbx), %rax
movq %rbx, %rdi
movq %r12, %rsi
callq *(%rax)
movl $0x30, %edi
callq 0x8250
movq %rax, %r12
movq (%r15), %rax
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq *(%rax)
leaq 0x9789(%rip), %rsi      # 0x2b621
leaq 0x8(%rsp), %rdi
callq 0x8460
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21ec9
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x21ed0
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movb $0x1, %bpl
movq %r12, %rdi
callq 0x1cfa4
movq (%rbx), %rax
xorl %ebp, %ebp
movq %rbx, %rdi
movq %r12, %rsi
callq *(%rax)
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x21f1b
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x21f32
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
movl $0x10, %edi
callq 0x8250
movq %rax, %r15
movq %rax, %rdi
callq 0x1e6cc
addq $0x8, %r15
movq (%rbx), %rax
movq %rbx, %rdi
movq %r15, %rsi
callq *(%rax)
movl $0x30, %edi
callq 0x8250
movq %rax, %r15
movq (%r14), %rax
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq *(%rax)
leaq 0x96aa(%rip), %rsi      # 0x2b621
leaq 0x8(%rsp), %rdi
callq 0x8460
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21fa8
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x21faf
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movb $0x1, %bpl
movq %r15, %rdi
callq 0x1cfa4
movq (%rbx), %rax
xorl %ebp, %ebp
movq %rbx, %rdi
movq %r15, %rsi
callq *(%rax)
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x21ffa
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x22011
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x17fc9(%rip), %rdi     # 0x39ff0
leaq 0x9734(%rip), %rsi      # 0x2b762
callq 0x8240
movq %rax, %rdi
callq 0x8120
movl $0x1, %edi
callq 0x82e0
jmp 0x220ae
jmp 0x220ae
jmp 0x220ae
jmp 0x220ae
jmp 0x220ae
jmp 0x220ae
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x22113
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
jmp 0x22113
jmp 0x220d8
movq %rax, %rbx
movl $0x10, %esi
jmp 0x22118
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x22153
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
jmp 0x22153
movq %rax, %rbx
jmp 0x22153
movq %rax, %rbx
movl $0x18, %esi
jmp 0x22158
movq %rax, %rbx
movl $0x10, %esi
jmp 0x22158
movq %rax, %rbx
movl $0x30, %esi
movq %r14, %rdi
jmp 0x2215b
movq %rax, %rbx
jmp 0x22113
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x220f7
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x2210e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
testb %bpl, %bpl
je 0x22160
movl $0x30, %esi
movq %r15, %rdi
jmp 0x2215b
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x22137
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x2214e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
testb %bpl, %bpl
je 0x22160
movl $0x30, %esi
movq %r12, %rdi
callq 0x8260
movq %rbx, %rdi
callq 0x8420