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

```asm
<SDL_imageFilterSubUint>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %edx,-0x64(%rbp)
  mov    %ecx,-0x68(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    $0x0,%eax
  call   <SDL_imageFilterMMXdetect@plt>
  test   %rax,%rax
  je     L24
  cmpl   $0x7,-0x64(%rbp)
  jle    L24
  mov    -0x68(%rbp),%eax
  shr    $0x18,%eax
  mov    %eax,%edx
  mov    -0x68(%rbp),%eax
  shr    $0x8,%eax
  and    $0xff00,%eax
  or     %eax,%edx
  mov    -0x68(%rbp),%eax
  shl    $0x8,%eax
  and    $0xff0000,%eax
  or     %eax,%edx
  mov    -0x68(%rbp),%eax
  shl    $0x18,%eax
  or     %edx,%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x34(%rbp),%edi
  mov    -0x68(%rbp),%ecx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%rsi
  mov    -0x58(%rbp),%rax
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <SDL_imageFilterSubUintMMX@plt>
  mov    -0x64(%rbp),%eax
  and    $0x7,%eax
  test   %eax,%eax
  jle    L115
  mov    -0x64(%rbp),%eax
  and    $0xfffffff8,%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x3c(%rbp),%edx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x3c(%rbp),%edx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x28(%rbp)
  jmp    L72
L115:
  mov    $0x0,%eax
  jmp    L47
L24:
  movl   $0x0,-0x3c(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x60(%rbp),%rax
  mov    %rax,-0x28(%rbp)
L72:
  mov    -0x68(%rbp),%eax
  shr    $0x18,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x68(%rbp),%eax
  shr    $0x10,%eax
  movzbl %al,%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x68(%rbp),%eax
  shr    $0x8,%eax
  movzbl %al,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x68(%rbp),%eax
  movzbl %al,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0x44(%rbp)
  jmp    L69
L46:
  movl   $0x0,-0x40(%rbp)
  jmp    L98
L57:
  mov    -0x44(%rbp),%edx
  mov    -0x40(%rbp),%eax
  add    %eax,%edx
  mov    -0x64(%rbp),%eax
  cmp    %eax,%edx
  jae    L44
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x40(%rbp),%eax
  mov    -0x20(%rbp,%rax,4),%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x38(%rbp)
  cmpl   $0x0,-0x38(%rbp)
  jns    L12
  movl   $0x0,-0x38(%rbp)
L12:
  mov    -0x38(%rbp),%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %dl,(%rax)
  addq   $0x1,-0x30(%rbp)
  addq   $0x1,-0x28(%rbp)
L44:
  addl   $0x1,-0x40(%rbp)
L98:
  cmpl   $0x3,-0x40(%rbp)
  jbe    L57
  addl   $0x4,-0x44(%rbp)
L69:
  mov    -0x64(%rbp),%eax
  cmp    %eax,-0x44(%rbp)
  jb     L46
  mov    $0x0,%eax
L47:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L104
  call   <__stack_chk_fail@plt>
L104:
  leave
  ret
```

assistant: ```c
int SDL_imageFilterSubUint(unsigned char *Src1, unsigned char *Dest, int length, unsigned int C) {
  unsigned int i, j, istart, D;
  int iC[4];
  unsigned char *cursrc1;
  unsigned char *curdest;
  int result;
  if ((SDL_imageFilterMMXdetect()) && (length > 7)) {
    D = (((C) >> 24) | (((C)&0x00ff0000) >> 8) | (((C)&0x0000ff00) << 8) | ((C) << 24));
    SDL_imageFilterSubUintMMX(Src1, Dest, length, C, D);
    if ((length & 7) > 0) {
      istart = length & 0xfffffff8;
      cursrc1 = &Src1[istart];
      curdest = &Dest[istart];
    } else {
      return (0);
    }
  } else {
    istart = 0;
    cursrc1 = Src1;
    curdest = Dest;
  }
  iC[3] = (int)((C >> 24) & 0xff);
  iC[2] = (int)((C >> 16) & 0xff);
  iC[1] = (int)((C >> 8) & 0xff);
  iC[0] = (int)((C >> 0) & 0xff);
  for (i = istart; i < length; i += 4) {
    for (j = 0; j < 4; j++) {
      if ((i + j) < length) {
        result = (int)*cursrc1 - iC[j];
        if (result < 0)
          result = 0;
        *curdest = (unsigned char)result;
        cursrc1++;
        curdest++;
      }
    }
  }
  return (0);
}
```