user: What would the C source look like for the assembly code provided here?

```asm
<projgr>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %rcx,-0x40(%rbp)
  mov    %r8,-0x48(%rbp)
  mov    %r9,-0x50(%rbp)
  subq   $0x8,-0x50(%rbp)
  subq   $0x8,-0x48(%rbp)
  subq   $0x4,-0x40(%rbp)
  subq   $0x8,-0x38(%rbp)
  subq   $0x8,-0x30(%rbp)
  mov    0x10(%rbp),%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x1c(%rbp)
  movl   $0x1,-0x20(%rbp)
  jmp    L51
L121:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  je     L74
  pxor   %xmm0,%xmm0
  comisd -0x18(%rbp),%xmm0
  jbe    L87
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0x1,%eax
  jle    L74
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x10(%rbp),%xmm0
  comisd -0x18(%rbp),%xmm0
  jb     L57
  movsd  -0x10(%rbp),%xmm0
  jmp    L89
L57:
  movsd  -0x18(%rbp),%xmm0
L89:
  movsd  %xmm0,-0x18(%rbp)
  jmp    L74
L87:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0x2,%eax
  jg     L74
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x18(%rbp),%xmm0
  comisd -0x10(%rbp),%xmm0
  jb     L54
  movsd  -0x10(%rbp),%xmm0
  jmp    L71
L54:
  movsd  -0x18(%rbp),%xmm0
L71:
  movsd  %xmm0,-0x18(%rbp)
L74:
  mov    0x10(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x18(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jb     L64
  movsd  -0x18(%rbp),%xmm0
  jmp    L146
L64:
  movsd  -0x18(%rbp),%xmm0
  movq   D0(%rip),%xmm1
  xorpd  %xmm1,%xmm0
L146:
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x10(%rbp),%xmm0
  comisd -0x8(%rbp),%xmm0
  jb     L46
  movsd  -0x10(%rbp),%xmm0
  jmp    L82
L46:
  movsd  -0x8(%rbp),%xmm0
L82:
  mov    0x10(%rbp),%rax
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x20(%rbp)
L51:
  mov    -0x20(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jle    L121
  mov    $0x0,%eax
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: label: D0
type_guessed: f32[2]

tool: {"D0": [0.0,-0.0]}

assistant: ```c
int projgr(int *n, double *l, double *u, int *nbd, double *x, double *g, double *sbgnrm) {
  int i__1;
  double d__1, d__2;
  int i__;
  double gi;
  --g;
  --x;
  --nbd;
  --u;
  --l;
  *sbgnrm = 0.;
  i__1 = *n;
  for (i__ = 1; i__ <= i__1; ++i__) {
    gi = g[i__];
    if (nbd[i__] != 0) {
      if (gi < 0.) {
        if (nbd[i__] >= 2) {
          d__1 = x[i__] - u[i__];
          gi = ((d__1) >= (gi) ? (d__1) : (gi));
        }
      } else {
        if (nbd[i__] <= 2) {
          d__1 = x[i__] - l[i__];
          gi = ((d__1) <= (gi) ? (d__1) : (gi));
        }
      }
    }
    d__1 = *sbgnrm, d__2 = ((gi) >= 0 ? (gi) : -(gi));
    *sbgnrm = ((d__1) >= (d__2) ? (d__1) : (d__2));
  }
  return 0;
}
```