user: 请将以下的汇编代码转换成C语言代码：

```asm
<advect>:
  endbr64
  push   %r15
  mov    %edi,%r15d
  push   %r14
  push   %r13
  mov    %r8,%r13
  push   %r12
  mov    %r9,%r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  mov    %rcx,%rbx
  sub    $0x28,%rsp
  mov    %edi,0xc(%rsp)
  mov    %rdx,%rdi
  movss  %xmm0,0x1c(%rsp)
  mov    %esi,0x18(%rsp)
  mov    %rdx,0x10(%rsp)
  call   <assert@plt>
  mov    %rbx,%rdi
  call   <assert@plt>
  mov    %r13,%rdi
  call   <assert@plt>
  mov    %r12,%rdi
  call   <assert@plt>
  pxor   %xmm4,%xmm4
  movss  0x1c(%rsp),%xmm0
  cvtsi2ss %r15d,%xmm4
  mulss  %xmm4,%xmm0
  test   %r15d,%r15d
  jle    L6
  lea    0x2(%r15),%r11d
  movss  D1(%rip),%xmm5
  movss  D18(%rip),%xmm6
  movslq %r11d,%r14
  shl    $0x2,%r14
  addss  %xmm5,%xmm4
  lea    (%r12,%r14,1),%r9
  lea    0x1(%r15),%r12d
  add    %r14,%rbp
  lea    0x0(%r13,%r14,1),%r8
  mov    %r12,%r15
  mov    $0x1,%r13d
  nopl   0x0(%rax,%rax,1)
L28:
  pxor   %xmm7,%xmm7
  mov    $0x1,%ecx
  cvtsi2ss %r13d,%xmm7
  xchg   %ax,%ax
L18:
  movss  (%r8,%rcx,4),%xmm1
  movss  (%r9,%rcx,4),%xmm3
  pxor   %xmm2,%xmm2
  movaps %xmm6,%xmm8
  cvtsi2ss %ecx,%xmm2
  mulss  %xmm0,%xmm1
  mulss  %xmm0,%xmm3
  subss  %xmm1,%xmm2
  movaps %xmm7,%xmm1
  subss  %xmm3,%xmm1
  movaps %xmm5,%xmm3
  maxss  %xmm2,%xmm3
  movaps %xmm3,%xmm2
  movaps %xmm4,%xmm3
  minss  %xmm2,%xmm3
  cvttss2si %xmm3,%edx
  movaps %xmm3,%xmm2
  movaps %xmm5,%xmm3
  maxss  %xmm1,%xmm3
  movaps %xmm3,%xmm1
  movaps %xmm4,%xmm3
  lea    0x1(%rdx),%r10d
  minss  %xmm1,%xmm3
  cvttss2si %xmm3,%eax
  movaps %xmm3,%xmm1
  pxor   %xmm3,%xmm3
  cvtsi2ss %edx,%xmm3
  subss  %xmm3,%xmm2
  pxor   %xmm3,%xmm3
  cvtsi2ss %eax,%xmm3
  imul   %r11d,%eax
  subss  %xmm3,%xmm1
  lea    (%rax,%r11,1),%esi
  lea    (%rsi,%rdx,1),%edi
  add    %eax,%edx
  add    %r10d,%esi
  add    %r10d,%eax
  movslq %edi,%rdi
  movslq %edx,%rdx
  movslq %esi,%rsi
  cltq
  subss  %xmm1,%xmm8
  movss  (%rbx,%rdi,4),%xmm3
  movss  (%rbx,%rdx,4),%xmm9
  mulss  %xmm1,%xmm3
  mulss  %xmm8,%xmm9
  mulss  (%rbx,%rsi,4),%xmm1
  mulss  (%rbx,%rax,4),%xmm8
  addss  %xmm9,%xmm3
  movaps %xmm6,%xmm9
  subss  %xmm2,%xmm9
  addss  %xmm8,%xmm1
  mulss  %xmm9,%xmm3
  mulss  %xmm2,%xmm1
  addss  %xmm3,%xmm1
  movss  %xmm1,0x0(%rbp,%rcx,4)
  add    $0x1,%rcx
  cmp    %r12,%rcx
  jne    L18
  add    $0x1,%r13d
  add    %r14,%rbp
  add    %r14,%r8
  add    %r14,%r9
  cmp    %r15d,%r13d
  jne    L28
L6:
  mov    0x10(%rsp),%rdx
  mov    0x18(%rsp),%esi
  mov    0xc(%rsp),%edi
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1070 <set_bnd@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D1
type_infered: byte[4]
name: disassemble_data
arguments: tag: D18
type_infered: byte[4]

tool: {"D1": [0x00,0x00,0x00,0x3f]}

tool: {"D18": [0x00,0x00,0x80,0x3f]}

assistant: ```c
void advect(int N, int b, float *d, float *d0, float *u, float *v, float dt) {
  assert(d);
  assert(d0);
  assert(u);
  assert(v);
  int i, j, i0, j0, i1, j1;
  float x, y, s0, t0, s1, t1, dt0;
  dt0 = dt * N;
  for (j = 1; j <= N; j++)
    for (i = 1; i <= N; i++) {
      x = i - dt0 * u[((i) + (N + 2) * (j))];
      y = j - dt0 * v[((i) + (N + 2) * (j))];
      if (x < 0.5f)
        x = 0.5f;
      if (x > N + 0.5f)
        x = N + 0.5f;
      i0 = (int)x;
      i1 = i0 + 1;
      if (y < 0.5f)
        y = 0.5f;
      if (y > N + 0.5f)
        y = N + 0.5f;
      j0 = (int)y;
      j1 = j0 + 1;
      s1 = x - i0;
      s0 = 1 - s1;
      t1 = y - j0;
      t0 = 1 - t1;
      d[((i) + (N + 2) * (j))] = s0 * (t0 * d0[((i0) + (N + 2) * (j0))] + t1 * d0[((i0) + (N + 2) * (j1))]) + s1 * (t0 * d0[((i1) + (N + 2) * (j0))] + t1 * d0[((i1) + (N + 2) * (j1))]);
    }
  set_bnd(N, b, d);
}
```