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

```asm
<run_program_vectorially>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %esi,-0x6c(%rbp)
  mov    %rdx,-0x78(%rbp)
  mov    %rcx,-0x80(%rbp)
  mov    %r8,-0x88(%rbp)
  mov    %r9,-0x90(%rbp)
  mov    0x10(%rbp),%rax
  mov    %rax,-0x98(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x58(%rbp)
  jmp    L72
L33:
  movl   $0x0,-0x54(%rbp)
  jmp    L35
L14:
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x6c(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x48(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L79:
  cmp    %rdx,%rsp
  je     L38
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L79
L38:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L85
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L85:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  mov    -0x98(%rbp),%r9
  mov    -0x90(%rbp),%r8
  mov    -0x88(%rbp),%rcx
  mov    -0x80(%rbp),%rdx
  mov    -0x78(%rbp),%rsi
  mov    -0x40(%rbp),%rax
  mov    -0x58(%rbp),%edi
  push   %rdi
  mov    -0x54(%rbp),%edi
  push   %rdi
  mov    %rax,%rdi
  call   <run_program_vectorially_at@plt>
  add    $0x10,%rsp
  mov    %eax,-0x4c(%rbp)
  mov    -0x4c(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  mov    -0x4c(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  je     L54
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  call   <fail@plt>
L54:
  movl   $0x0,-0x50(%rbp)
  jmp    L27
L71:
  mov    -0x40(%rbp),%rax
  mov    -0x50(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%edi
  mov    -0x90(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x88(%rbp),%rax
  mov    (%rax),%esi
  mov    -0x58(%rbp),%r9d
  mov    -0x54(%rbp),%r10d
  mov    -0x6c(%rbp),%ecx
  mov    -0x68(%rbp),%rax
  sub    $0x8,%rsp
  mov    -0x50(%rbp),%r8d
  push   %r8
  movd   %edi,%xmm0
  mov    %r10d,%r8d
  mov    %rax,%rdi
  call   <setsample_0@plt>
  add    $0x10,%rsp
  addl   $0x1,-0x50(%rbp)
L27:
  mov    -0x50(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L71
  mov    %rbx,%rsp
  addl   $0x1,-0x54(%rbp)
L35:
  mov    -0x88(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x54(%rbp)
  jl     L14
  addl   $0x1,-0x58(%rbp)
L72:
  mov    -0x90(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x58(%rbp)
  jl     L33
  mov    -0x6c(%rbp),%eax
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L8
  call   <__stack_chk_fail@plt>
L8:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D1
type_guessed: string

tool: D1: r != pdmax

assistant: ```c
int run_program_vectorially(float *out, int pdmax, struct plambda_program *p, float **val, int *w, int *h, int *pd) {
  for (int j = 0; j < *h; j++)
    for (int i = 0; i < *w; i++) {
      float result[pdmax];
      int r = run_program_vectorially_at(result, p, val, w, h, pd, i, j);
      assert(r == pdmax);
      if (r != pdmax)
        fail("r != pdmax");
      for (int l = 0; l < r; l++)
        setsample_0(out, *w, *h, pdmax, i, j, l, result[l]);
    }
  return pdmax;
}
```