// File: /workspace/github_cpp_makefile_star2_O3/acliusBackHome[P]kamaya/dist/IR.cpp
// Function: IR::relopEmit(ParseTree&, unsigned long, unsigned long, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long)
void IR::relopEmit(ParseTree &tree, size_t p0, size_t p1, size_t p3,
                   const string &relop, size_t node_id) {
  ParseNode &B = tree.node(p0);
  const ParseNode &E1 = tree.node(p1);
  const ParseNode &E2 = tree.node(p3);
  B.set_true_list(makelist(getNextinstr()));
  B.set_false_list(makelist(getNextinstr() + 1));
  string arg1, arg2;
  const ParseExpression &left = E1.get_expression();
  const ParseExpression &right = E2.get_expression();
  if (left.is_const()) {
    arg1 = getConstValueStr(left);
  } else {
    arg1 = address2pointer(left.get_address());
  }
  if (right.is_const()) {
    arg2 = getConstValueStr(right);
  } else {
    arg2 = address2pointer(right.get_address());
  }
  gen(relop, arg1, arg2, "_", node_id);
  gen("jmp", "_", "_", "_", node_id);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %r9, -0x70(%rbp)
movq %r8, %r15
movq %rcx, %r12
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x18200
movq %rax, %r13
movq %r14, %rdi
movq %r12, %rsi
callq 0x18200
movq %rax, %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x18200
movq %rax, %r15
movq 0x8(%rbx), %r14
movl $0x8, %edi
callq 0x42e0
leaq -0x68(%rbp), %rsi
movq %rax, (%rsi)
leaq 0x8(%rax), %rcx
movq %rcx, 0x10(%rsi)
movq %r14, (%rax)
movq %rcx, 0x8(%rsi)
movq %r13, %rdi
callq 0x1d508
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0x3e582
callq 0x42b0
movq 0x8(%rbx), %r14
incq %r14
movl $0x8, %edi
callq 0x42e0
leaq -0x68(%rbp), %rsi
movq %rax, (%rsi)
leaq 0x8(%rax), %rcx
movq %rcx, 0x10(%rsi)
movq %r14, (%rax)
movq %rcx, 0x8(%rsi)
movq %r13, %rdi
callq 0x1d51c
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0x3e5bf
callq 0x42b0
leaq -0x58(%rbp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x80(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movq %r12, %rdi
callq 0x1cf4a
movq %rax, %r12
movq %r15, %rdi
callq 0x1cf4a
movq %rax, %r15
movq %r12, %rdi
callq 0x2b2f4
testb %al, %al
je 0x3e60d
leaq -0x48(%rbp), %rdi
movq %r12, %rsi
callq 0x3cf1e
jmp 0x3e624
movq %r12, %rdi
callq 0x2b60a
leaq -0x48(%rbp), %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0xf118
leaq -0x68(%rbp), %rdi
leaq -0x48(%rbp), %r14
movq %r14, %rsi
callq 0x43a0
movq (%r14), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x3e645
callq 0x42b0
movq %r15, %rdi
callq 0x2b2f4
testb %al, %al
je 0x3e65f
leaq -0x48(%rbp), %rdi
movq %r15, %rsi
callq 0x3cf1e
jmp 0x3e676
movq %r15, %rdi
callq 0x2b60a
leaq -0x48(%rbp), %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0xf118
leaq -0x90(%rbp), %rdi
movq %r14, %rsi
callq 0x43a0
movq (%r14), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x3e696
callq 0x42b0
leaq -0x38(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x6ff1(%rip), %rsi      # 0x45696
leaq 0x6feb(%rip), %rdx      # 0x45697
leaq -0x48(%rbp), %rdi
callq 0xf868
movq 0x10(%rbp), %r15
leaq -0x68(%rbp), %rdx
leaq -0x90(%rbp), %rcx
leaq -0x48(%rbp), %r8
movq %rbx, %rdi
movq -0x70(%rbp), %rsi
movq %r15, %r9
callq 0x3c6c0
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x3e6e5
callq 0x42b0
leaq -0x48(%rbp), %rdi
movq %r14, (%rdi)
leaq 0x494a(%rip), %rsi      # 0x4303d
leaq 0x4946(%rip), %rdx      # 0x43040
callq 0xf868
leaq -0xa0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x6f85(%rip), %rsi      # 0x45696
leaq 0x6f7f(%rip), %rdx      # 0x45697
leaq -0xb0(%rbp), %rdi
callq 0xf868
leaq -0xe0(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x6f60(%rip), %rsi      # 0x45696
leaq 0x6f5a(%rip), %rdx      # 0x45697
leaq -0xf0(%rbp), %rdi
callq 0xf868
leaq -0xc0(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x6f3a(%rip), %rsi      # 0x45696
leaq 0x6f34(%rip), %rdx      # 0x45697
leaq -0xd0(%rbp), %rdi
callq 0xf868
leaq -0x48(%rbp), %rsi
leaq -0xb0(%rbp), %rdx
leaq -0xf0(%rbp), %rcx
leaq -0xd0(%rbp), %r8
movq %rbx, %rdi
movq %r15, %r9
callq 0x3c6c0
movq -0xd0(%rbp), %rdi
cmpq %r12, %rdi
je 0x3e7a4
callq 0x42b0
movq -0xf0(%rbp), %rdi
cmpq %r13, %rdi
leaq -0xa0(%rbp), %rbx
je 0x3e7bc
callq 0x42b0
movq -0xb0(%rbp), %rdi
cmpq %rbx, %rdi
leaq -0x58(%rbp), %rbx
leaq -0x80(%rbp), %r15
je 0x3e7d5
callq 0x42b0
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x3e7e3
callq 0x42b0
movq -0x90(%rbp), %rdi
cmpq %r15, %rdi
je 0x3e7f4
callq 0x42b0
movq -0x68(%rbp), %rdi
cmpq %rbx, %rdi
je 0x3e802
callq 0x42b0
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3e890
jmp 0x3e890
movq %rax, %rbx
movq -0xd0(%rbp), %rdi
cmpq %r12, %rdi
je 0x3e831
callq 0x42b0
jmp 0x3e831
movq %rax, %rbx
movq -0xf0(%rbp), %rdi
cmpq %r13, %rdi
je 0x3e847
callq 0x42b0
jmp 0x3e847
movq %rax, %rbx
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x3e868
callq 0x42b0
jmp 0x3e868
jmp 0x3e865
jmp 0x3e890
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x3e893
callq 0x42b0
jmp 0x3e893
jmp 0x3e890
jmp 0x3e890
jmp 0x3e890
jmp 0x3e890
jmp 0x3e882
movq %rax, %rbx
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
jne 0x3e8b5
jmp 0x3e8ba
movq %rax, %rbx
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x3e8a8
callq 0x42b0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x3e8ba
callq 0x42b0
movq %rbx, %rdi
callq 0x4560