// File: /workspace/github_cpp_makefile_star2_O1/luooofan[P]hblzbd_compiler/src/Pass/loop_unroll.cpp
// Function: find_loop(std::pair<IRBasicBlock*, IRBasicBlock*>)
vector<IRBasicBlock*> find_loop(pair<IRBasicBlock*, IRBasicBlock*> edge) {
  auto &u = edge.first, v = edge.second;
  vector<IRBasicBlock*> res;
  res.push_back(v);
  if (u == v) return res;
  queue<IRBasicBlock*> q;
  q.push(u);
  while (!q.empty()) {
    auto x = q.front();
    q.pop();
    if (have(x, res)) continue;
    res.push_back(x);
    for (auto& pre : x->pred_) q.push(pre);
  }
  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
movq %rsi, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq %rdx, 0x8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x8(%rdi), %rsi
testq %rsi, %rsi
je 0x64a76
movq %rdx, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x64a83
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x11b10
movq 0x10(%rsp), %rax
cmpq 0x8(%rsp), %rax
je 0x64c33
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rdi
movaps %xmm0, 0x40(%rdi)
movaps %xmm0, 0x30(%rdi)
movaps %xmm0, 0x20(%rdi)
movaps %xmm0, 0x10(%rdi)
movaps %xmm0, (%rdi)
xorl %esi, %esi
callq 0x461e8
movq 0x50(%rsp), %rax
movq 0x60(%rsp), %rcx
addq $-0x8, %rcx
cmpq %rcx, %rax
je 0x64ad8
movq 0x10(%rsp), %rcx
movq %rcx, (%rax)
addq $0x8, 0x50(%rsp)
jmp 0x64ae7
leaq 0x20(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x476c4
movq 0x30(%rsp), %rax
cmpq %rax, 0x50(%rsp)
je 0x64c29
leaq 0x70(%rsp), %r14
movq %rsp, %r15
leaq 0x20(%rsp), %r12
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x40(%rsp), %rcx
addq $-0x8, %rcx
cmpq %rcx, %rax
je 0x64b1f
addq $0x8, %rax
jmp 0x64b51
movq 0x38(%rsp), %rdi
movl $0x200, %esi            # imm = 0x200
callq 0x82a0
movq 0x48(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x48(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x38(%rsp)
leaq 0x200(%rax), %rcx
movq %rcx, 0x40(%rsp)
movq %rax, 0x30(%rsp)
movq (%rsp), %r13
movq %r14, %rdi
movq %rbx, %rsi
callq 0x68c18
movq 0x70(%rsp), %rdi
movq 0x78(%rsp), %rax
cmpq %rax, %rdi
setne %bpl
je 0x64b96
cmpq %r13, (%rdi)
je 0x64b96
leaq 0x8(%rdi), %rcx
cmpq %rax, %rcx
setne %bpl
je 0x64b96
leaq 0x8(%rcx), %rdx
cmpq %r13, (%rcx)
movq %rdx, %rcx
jne 0x64b81
testq %rdi, %rdi
je 0x64bab
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x82a0
testb %bpl, %bpl
je 0x64bc2
movq 0x30(%rsp), %rax
cmpq %rax, 0x50(%rsp)
jne 0x64b04
jmp 0x64c29
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x64bda
movq (%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x64be5
movq %rbx, %rdi
movq %r15, %rdx
callq 0x11b10
movq (%rsp), %rax
movq 0x28(%rax), %r13
movq 0x30(%rax), %rbp
cmpq %rbp, %r13
je 0x64bb0
movq 0x50(%rsp), %rax
movq 0x60(%rsp), %rcx
addq $-0x8, %rcx
cmpq %rcx, %rax
je 0x64c18
movq (%r13), %rcx
movq %rcx, (%rax)
addq $0x8, 0x50(%rsp)
jmp 0x64c23
movq %r12, %rdi
movq %r13, %rsi
callq 0x476c4
addq $0x8, %r13
jmp 0x64bf1
leaq 0x20(%rsp), %rdi
callq 0x47674
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x64c53
jmp 0x64c4c
movq %rax, %r14
jmp 0x64c60
jmp 0x64c53
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x47674
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x64c74
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x82a0
movq %r14, %rdi
callq 0x8540