user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<maxflow_setup_backedges>:
  endbr64
  test   %edi,%edi
  jle    L223
  lea    -0x1(%rdi),%r11d
  push   %r15
  mov    %edi,%r9d
  mov    %rsi,%r15
  push   %r14
  mov    %rdx,%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  cmp    $0x2,%r11d
  jbe    L299
  mov    %rdx,%rax
  mov    %edi,%edx
  movdqa D19(%rip),%xmm0
  movdqa D12(%rip),%xmm2
  shr    $0x2,%edx
  sub    $0x1,%edx
  shl    $0x4,%rdx
  lea    0x10(%r14,%rdx,1),%rdx
  nopl   0x0(%rax)
L134:
  movdqa %xmm0,%xmm1
  add    $0x10,%rax
  paddd  %xmm2,%xmm0
  movups %xmm1,-0x10(%rax)
  cmp    %rax,%rdx
  jne    L134
  mov    %r9d,%eax
  and    $0xfffffffc,%eax
  test   $0x3,%r9b
  je     L175
L54:
  movslq %eax,%rdx
  mov    %eax,(%r14,%rdx,4)
  lea    0x0(,%rdx,4),%rcx
  lea    0x1(%rax),%edx
  cmp    %edx,%r9d
  jle    L175
  add    $0x2,%eax
  mov    %edx,0x4(%r14,%rcx,1)
  cmp    %eax,%r9d
  jle    L175
  mov    %eax,0x8(%r14,%rcx,1)
L175:
  xor    %r10d,%r10d
  nopl   (%rax)
L45:
  mov    %r10d,%eax
  test   %r10d,%r10d
  je     L329
L108:
  movslq %eax,%rdx
  lea    -0x1(%rdx),%eax
  lea    (%r14,%rdx,4),%rsi
  sar    %eax
  mov    (%rsi),%ebx
  movslq %eax,%rcx
  lea    (%r14,%rcx,4),%r8
  lea    (%rbx,%rbx,1),%edx
  mov    (%r8),%edi
  movslq %edx,%rdx
  mov    0x4(%r15,%rdx,4),%ebp
  lea    (%rdi,%rdi,1),%ecx
  movslq %ecx,%rcx
  cmp    %ebp,0x4(%r15,%rcx,4)
  jl     L358
  jne    L329
  mov    (%r15,%rdx,4),%edx
  cmp    %edx,(%r15,%rcx,4)
  jge    L329
L358:
  mov    %ebx,(%r8)
  mov    %edi,(%rsi)
  test   %eax,%eax
  jne    L108
L329:
  add    $0x1,%r10d
  cmp    %r10d,%r9d
  jne    L45
  movslq %r11d,%rax
  mov    %rax,-0x10(%rsp)
  cs nopw 0x0(%rax,%rax,1)
L95:
  mov    -0x10(%rsp),%rdi
  mov    (%r14),%eax
  mov    (%r14,%rdi,4),%edx
  mov    %edi,-0x14(%rsp)
  mov    %edx,(%r14)
  mov    %eax,(%r14,%rdi,4)
  cmp    $0x1,%edi
  jle    L318
  cmp    $0x2,%edi
  je     L323
  mov    $0x2,%r13d
  mov    $0x1,%esi
  xor    %eax,%eax
  jmp    L197
  nopl   0x0(%rax,%rax,1)
L89:
  je     L193
L224:
  mov    %ebp,(%r8)
  mov    %r9,%rdi
  movslq %esi,%rax
  mov    %ecx,(%r9)
L301:
  lea    (%rax,%rax,1),%r13d
  mov    -0x14(%rsp),%ebx
  lea    0x1(%r13),%esi
  add    $0x2,%r13d
  cmp    %esi,%ebx
  jle    L74
  cmp    %r13d,%ebx
  jle    L126
L197:
  movslq %esi,%rdx
  lea    (%r14,%rax,4),%r8
  lea    (%r14,%rdx,4),%r9
  mov    (%r8),%ecx
  mov    (%r9),%ebp
  lea    (%rcx,%rcx,1),%eax
  lea    0x0(%rbp,%rbp,1),%edx
  cltq
  movslq %edx,%rdi
  movslq %r13d,%rdx
  mov    0x4(%r15,%rax,4),%ebx
  mov    %rdi,-0x20(%rsp)
  mov    0x4(%r15,%rdi,4),%r10d
  lea    (%r14,%rdx,4),%rdi
  mov    (%rdi),%r11d
  lea    (%r11,%r11,1),%edx
  movslq %edx,%rdx
  mov    0x4(%r15,%rdx,4),%r12d
  mov    %r12d,-0x18(%rsp)
  cmp    %r10d,%ebx
  jl     L172
  je     L250
L291:
  cmp    -0x18(%rsp),%ebx
  jl     L281
  jne    L74
  mov    (%r15,%rdx,4),%ebx
  cmp    %ebx,(%r15,%rax,4)
  jge    L74
L172:
  cmp    -0x18(%rsp),%r10d
  jge    L89
L281:
  mov    %r11d,(%r8)
  movslq %r13d,%rax
  mov    %ecx,(%rdi)
  jmp    L301
  nopl   0x0(%rax,%rax,1)
L250:
  mov    -0x20(%rsp),%r12
  mov    (%r15,%r12,4),%r12d
  cmp    %r12d,(%r15,%rax,4)
  jl     L172
  jmp    L291
  nopl   0x0(%rax)
L193:
  mov    -0x20(%rsp),%rbx
  mov    (%r15,%rdx,4),%eax
  cmp    %eax,(%r15,%rbx,4)
  jge    L224
  mov    %r11d,(%r8)
  movslq %r13d,%rax
  mov    %ecx,(%rdi)
  jmp    L301
L126:
  movslq %esi,%rax
  shl    $0x2,%rax
L222:
  add    %r14,%rax
  mov    (%rdi),%esi
  mov    (%rax),%r8d
  lea    (%rsi,%rsi,1),%ecx
  lea    (%r8,%r8,1),%edx
  movslq %ecx,%rcx
  movslq %edx,%rdx
  mov    0x4(%r15,%rdx,4),%ebx
  cmp    %ebx,0x4(%r15,%rcx,4)
  jl     L158
  jne    L74
  mov    (%r15,%rdx,4),%ebx
  cmp    %ebx,(%r15,%rcx,4)
  jge    L74
  nopl   0x0(%rax)
L158:
  mov    %r8d,(%rdi)
  mov    %esi,(%rax)
L74:
  subq   $0x1,-0x10(%rsp)
  jmp    L95
L318:
  mov    -0x10(%rsp),%eax
  test   %eax,%eax
  jne    L74
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L323:
  mov    %r14,%rdi
  mov    $0x4,%eax
  jmp    L222
L223:
  ret
L299:
  xor    %eax,%eax
  jmp    L54
```

tool_calls: name: disassemble_data
arguments: label: D19
datatype: byte[16]
name: disassemble_data
arguments: label: D12
datatype: byte[16]

tool: {"D19": [0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x03,0x00,0x00,0x00]}

tool: {"D12": [0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00]}

assistant: ```c
void maxflow_setup_backedges(int ne, const int *edges, int *backedges) {
  int i, n;
  for (i = 0; i < ne; i++)
    backedges[i] = i;
  n = 0;
  while (n < ne) {
    n++;
    i = n - 1;
    while (i > 0) {
      int p = (((i)-1) / 2);
      if (((edges[2 * (backedges[p]) + 1] < edges[2 * (backedges[i]) + 1]) || (edges[2 * (backedges[p]) + 1] == edges[2 * (backedges[i]) + 1] && edges[2 * (backedges[p])] < edges[2 * (backedges[i])]))) {
        do {
          int swaptmp = (backedges[p]);
          (backedges[p]) = (backedges[i]);
          (backedges[i]) = swaptmp;
        } while (0);
        i = p;
      } else
        break;
    }
  }
  while (n > 0) {
    n--;
    do {
      int swaptmp = (backedges[0]);
      (backedges[0]) = (backedges[n]);
      (backedges[n]) = swaptmp;
    } while (0);
    i = 0;
    while (1) {
      int lc, rc;
      lc = (2 * (i) + 1);
      rc = (2 * (i) + 2);
      if (lc >= n)
        break;
      if (rc >= n) {
        if (((edges[2 * (backedges[i]) + 1] < edges[2 * (backedges[lc]) + 1]) || (edges[2 * (backedges[i]) + 1] == edges[2 * (backedges[lc]) + 1] && edges[2 * (backedges[i])] < edges[2 * (backedges[lc])])))
          do {
            int swaptmp = (backedges[i]);
            (backedges[i]) = (backedges[lc]);
            (backedges[lc]) = swaptmp;
          } while (0);
        break;
      } else {
        if (((edges[2 * (backedges[i]) + 1] < edges[2 * (backedges[lc]) + 1]) || (edges[2 * (backedges[i]) + 1] == edges[2 * (backedges[lc]) + 1] && edges[2 * (backedges[i])] < edges[2 * (backedges[lc])])) || ((edges[2 * (backedges[i]) + 1] < edges[2 * (backedges[rc]) + 1]) || (edges[2 * (backedges[i]) + 1] == edges[2 * (backedges[rc]) + 1] && edges[2 * (backedges[i])] < edges[2 * (backedges[rc])]))) {
          if (((edges[2 * (backedges[lc]) + 1] < edges[2 * (backedges[rc]) + 1]) || (edges[2 * (backedges[lc]) + 1] == edges[2 * (backedges[rc]) + 1] && edges[2 * (backedges[lc])] < edges[2 * (backedges[rc])]))) {
            do {
              int swaptmp = (backedges[i]);
              (backedges[i]) = (backedges[rc]);
              (backedges[rc]) = swaptmp;
            } while (0);
            i = rc;
          } else {
            do {
              int swaptmp = (backedges[i]);
              (backedges[i]) = (backedges[lc]);
              (backedges[lc]) = swaptmp;
            } while (0);
            i = lc;
          }
        } else {
          break;
        }
      }
    }
  }
}
```