// File: /workspace/github_cpp_makefile_star2_O1/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 $0xd8, %rsp
movq %r9, -0x78(%rbp)
movq %r8, %r15
movq %rcx, %r12
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x18168
movq %rax, %r13
movq %r14, %rdi
movq %r12, %rsi
callq 0x18168
movq %rax, %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x18168
movq %rax, %r15
movq %rbx, -0x30(%rbp)
movq 0x8(%rbx), %rbx
xorps %xmm0, %xmm0
leaq -0x70(%rbp), %r14
movaps %xmm0, (%r14)
movq $0x0, 0x10(%r14)
movl $0x8, %edi
callq 0x42e0
movq %rax, (%r14)
movq %rax, 0x8(%r14)
leaq 0x8(%rax), %rcx
movq %rcx, 0x10(%r14)
movq %rbx, (%rax)
movq %rcx, 0x8(%r14)
movq %r13, %rdi
movq %r14, %rsi
callq 0x1d484
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x3ef26
callq 0x42b0
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rbx
incq %rbx
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
movq $0x0, 0x10(%r14)
movl $0x8, %edi
callq 0x42e0
movq %rax, (%r14)
movq %rax, 0x8(%r14)
leaq 0x8(%rax), %rcx
movq %rcx, 0x10(%r14)
movq %rbx, (%rax)
movq %rcx, 0x8(%r14)
movq %r13, %rdi
movq %r14, %rsi
callq 0x1d498
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x3ef79
callq 0x42b0
leaq -0x60(%rbp), %rbx
movq %rbx, -0x10(%rbx)
xorl %eax, %eax
movq %rax, -0x8(%rbx)
movb %al, (%rbx)
leaq -0x88(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movq %r12, %rdi
callq 0x1cec6
movq %rax, %r12
movq %r15, %rdi
callq 0x1cec6
movq %rax, %r15
movq %r12, %rdi
callq 0x2bb90
testb %al, %al
je 0x3efca
leaq -0x50(%rbp), %rdi
movq %r12, %rsi
callq 0x3d8b8
jmp 0x3efe2
movq %r12, %rdi
callq 0x2be9c
leaq -0x50(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq %rax, %rdx
callq 0xef28
leaq -0x70(%rbp), %rdi
leaq -0x50(%rbp), %r14
movq %r14, %rsi
callq 0x43a0
movq (%r14), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x3f003
callq 0x42b0
movq %r15, %rdi
callq 0x2bb90
testb %al, %al
je 0x3f01d
leaq -0x50(%rbp), %rdi
movq %r15, %rsi
callq 0x3d8b8
jmp 0x3f035
movq %r15, %rdi
callq 0x2be9c
leaq -0x50(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq %rax, %rdx
callq 0xef28
leaq -0x98(%rbp), %rdi
movq %r14, %rsi
callq 0x43a0
movq (%r14), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x3f055
callq 0x42b0
leaq -0x40(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x7632(%rip), %rsi      # 0x46696
leaq 0x762c(%rip), %rdx      # 0x46697
leaq -0x50(%rbp), %rdi
callq 0xf65c
movq 0x10(%rbp), %r15
leaq -0x70(%rbp), %rdx
leaq -0x98(%rbp), %rcx
leaq -0x50(%rbp), %r8
movq -0x30(%rbp), %rdi
movq -0x78(%rbp), %rsi
movq %r15, %r9
callq 0x3d02c
movq -0x50(%rbp), %rdi
cmpq %r14, %rdi
je 0x3f0a5
callq 0x42b0
leaq -0x50(%rbp), %rdi
movq %r14, (%rdi)
leaq 0x4f8a(%rip), %rsi      # 0x4403d
leaq 0x4f86(%rip), %rdx      # 0x44040
callq 0xf65c
leaq -0xa8(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x75c5(%rip), %rsi      # 0x46696
leaq 0x75bf(%rip), %rdx      # 0x46697
leaq -0xb8(%rbp), %rdi
callq 0xf65c
leaq -0xe8(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x75a0(%rip), %rsi      # 0x46696
leaq 0x759a(%rip), %rdx      # 0x46697
leaq -0xf8(%rbp), %rdi
callq 0xf65c
leaq -0xc8(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x757a(%rip), %rsi      # 0x46696
leaq 0x7574(%rip), %rdx      # 0x46697
leaq -0xd8(%rbp), %rdi
callq 0xf65c
leaq -0x50(%rbp), %rsi
leaq -0xb8(%rbp), %rdx
leaq -0xf8(%rbp), %rcx
leaq -0xd8(%rbp), %r8
movq -0x30(%rbp), %rdi
movq %r15, %r9
callq 0x3d02c
movq -0xd8(%rbp), %rdi
cmpq %r12, %rdi
je 0x3f165
callq 0x42b0
movq -0xf8(%rbp), %rdi
cmpq %r13, %rdi
leaq -0xa8(%rbp), %r15
je 0x3f17d
callq 0x42b0
movq -0xb8(%rbp), %rdi
cmpq %r15, %rdi
leaq -0x88(%rbp), %r15
je 0x3f195
callq 0x42b0
movq -0x50(%rbp), %rdi
cmpq %r14, %rdi
je 0x3f1a3
callq 0x42b0
movq -0x98(%rbp), %rdi
cmpq %r15, %rdi
je 0x3f1b4
callq 0x42b0
movq -0x70(%rbp), %rdi
cmpq %rbx, %rdi
je 0x3f1c2
callq 0x42b0
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3f250
jmp 0x3f250
movq %rax, %r15
movq -0xd8(%rbp), %rdi
cmpq %r12, %rdi
je 0x3f1f1
callq 0x42b0
jmp 0x3f1f1
movq %rax, %r15
movq -0xf8(%rbp), %rdi
cmpq %r13, %rdi
je 0x3f207
callq 0x42b0
jmp 0x3f207
movq %rax, %r15
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x3f228
callq 0x42b0
jmp 0x3f228
jmp 0x3f225
jmp 0x3f250
movq %rax, %r15
movq -0x50(%rbp), %rdi
cmpq %r14, %rdi
je 0x3f253
callq 0x42b0
jmp 0x3f253
jmp 0x3f250
jmp 0x3f250
jmp 0x3f250
jmp 0x3f250
jmp 0x3f242
movq %rax, %r15
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
jne 0x3f274
jmp 0x3f279
movq %rax, %r15
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0x3f26b
callq 0x42b0
movq -0x70(%rbp), %rdi
cmpq %rbx, %rdi
je 0x3f279
callq 0x42b0
movq %r15, %rdi
callq 0x4560
nop