// File: /workspace/github_cpp_makefile_star2_O1/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 0x1c6a8
movl $0x30, %edi
callq 0x8250
movq %rax, %r14
movq %rax, %rdi
callq 0x1c6a8
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x179b0
leaq 0xa179(%rip), %rsi      # 0x2b754
movq %r13, %rdi
callq 0x80a0
movl %eax, %ebp
movq (%r13), %rdi
leaq 0x18(%rsp), %r13
cmpq %r13, %rdi
je 0x21600
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
testl %ebp, %ebp
je 0x21779
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x179b0
leaq 0xa138(%rip), %rsi      # 0x2b757
movq %r13, %rdi
callq 0x80a0
movl %eax, %ebp
movq (%r13), %rdi
leaq 0x18(%rsp), %r13
cmpq %r13, %rdi
je 0x21644
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
testl %ebp, %ebp
je 0x21793
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x179b0
leaq 0xa0f7(%rip), %rsi      # 0x2b75a
movq %r13, %rdi
callq 0x80a0
movl %eax, %ebp
movq (%r13), %rdi
leaq 0x18(%rsp), %r13
cmpq %r13, %rdi
je 0x21688
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
testl %ebp, %ebp
je 0x217ad
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x179b0
leaq 0xa0b5(%rip), %rsi      # 0x2b75c
movq %r13, %rdi
callq 0x80a0
movl %eax, %ebp
movq (%r13), %rdi
leaq 0x18(%rsp), %r13
cmpq %r13, %rdi
je 0x216cc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
testl %ebp, %ebp
je 0x217c7
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x179b0
leaq 0xa06d(%rip), %rsi      # 0x2b758
movq %r13, %rdi
callq 0x80a0
movl %eax, %ebp
movq (%r13), %rdi
leaq 0x18(%rsp), %r13
cmpq %r13, %rdi
je 0x21710
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
testl %ebp, %ebp
je 0x217e1
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x179b0
leaq 0xa030(%rip), %rsi      # 0x2b75f
movq %r13, %rdi
callq 0x80a0
movl %eax, %ebp
movq (%r13), %rdi
leaq 0x18(%rsp), %r13
cmpq %r13, %rdi
je 0x21754
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
testl %ebp, %ebp
jne 0x219fc
movl $0x18, %edi
callq 0x8250
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x1ec3c
jmp 0x217f9
movl $0x18, %edi
callq 0x8250
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x1d790
jmp 0x217f9
movl $0x18, %edi
callq 0x8250
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x1ee4c
jmp 0x217f9
movl $0x18, %edi
callq 0x8250
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x1d8e0
jmp 0x217f9
movl $0x18, %edi
callq 0x8250
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x1d648
jmp 0x217f9
movl $0x18, %edi
callq 0x8250
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x1d25c
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 0x1ed28
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 0x1e6d4
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 0x9dad(%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 0x218a5
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x218ac
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 0x1c988
movq (%rbx), %rax
xorl %ebp, %ebp
movq %rbx, %rdi
movq %r12, %rsi
callq *(%rax)
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x218f7
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x2190e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
movl $0x10, %edi
callq 0x8250
movq %rax, %r15
movq %rax, %rdi
callq 0x1e0b0
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 0x9cce(%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 0x21984
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x2198b
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 0x1c988
movq (%rbx), %rax
xorl %ebp, %ebp
movq %rbx, %rdi
movq %r15, %rsi
callq *(%rax)
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x219d6
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x219ed
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 0x185ed(%rip), %rdi     # 0x39ff0
leaq 0x9d58(%rip), %rsi      # 0x2b762
callq 0x8240
movq %rax, %rdi
callq 0x8120
movl $0x1, %edi
callq 0x82e0
jmp 0x21a63
jmp 0x21a63
jmp 0x21a63
jmp 0x21a63
jmp 0x21a63
jmp 0x21a63
movq %rax, %rbx
movb $0x1, %bpl
jmp 0x21aac
movq %rax, %rbx
movb $0x1, %bpl
jmp 0x21ac3
movq %rax, %rbx
movl $0x10, %esi
jmp 0x21acd
movq %rax, %rbx
movb $0x1, %bpl
jmp 0x21aec
movq %rax, %rbx
movb $0x1, %bpl
jmp 0x21b03
movq %rax, %rbx
movl $0x18, %esi
jmp 0x21b0d
movq %rax, %rbx
movl $0x10, %esi
jmp 0x21b0d
movq %rax, %rbx
movl $0x30, %esi
movq %r14, %rdi
jmp 0x21b10
movq %rax, %rbx
jmp 0x21ac8
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x21aac
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x21ac3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
testb %bpl, %bpl
je 0x21b15
movl $0x30, %esi
movq %r15, %rdi
jmp 0x21b10
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x21aec
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x8260
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x21b03
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
testb %bpl, %bpl
je 0x21b15
movl $0x30, %esi
movq %r12, %rdi
callq 0x8260
movq %rbx, %rdi
callq 0x8420
nop