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

```asm
<SDL_imageFilterAddByte>:
  endbr64
  push   %r14
  xor    %eax,%eax
  push   %r13
  mov    %ecx,%r13d
  push   %r12
  mov    %rsi,%r12
  movzbl %r13b,%r14d
  push   %rbp
  mov    %edx,%ebp
  push   %rbx
  mov    %rdi,%rbx
  call   <SDL_imageFilterMMXdetect@plt>
  test   %rax,%rax
  je     L51
  cmp    $0x7,%ebp
  jg     L6
L51:
  xor    %ecx,%ecx
L94:
  cmp    %ebp,%ecx
  jae    L52
  lea    0x1(%rbx),%rdx
  mov    %r12,%rax
  mov    %ebp,%esi
  movzbl %r13b,%r13d
  sub    %rdx,%rax
  sub    %ecx,%esi
  cmp    $0xe,%rax
  jbe    L184
  lea    -0x1(%rsi),%eax
  cmp    $0xe,%eax
  jbe    L184
  movd   %r13d,%xmm4
  mov    %esi,%edx
  movdqa D4(%rip),%xmm3
  xor    %eax,%eax
  punpcklwd %xmm4,%xmm4
  shr    $0x4,%edx
  pxor   %xmm6,%xmm6
  pxor   %xmm5,%xmm5
  pshufd $0x0,%xmm4,%xmm4
  shl    $0x4,%rdx
  nopl   0x0(%rax,%rax,1)
L103:
  movdqu (%rbx,%rax,1),%xmm2
  movdqa %xmm2,%xmm1
  punpckhbw %xmm6,%xmm2
  punpcklbw %xmm6,%xmm1
  paddw  %xmm4,%xmm2
  paddw  %xmm4,%xmm1
  movdqa %xmm1,%xmm0
  psubusw %xmm3,%xmm0
  pcmpeqw %xmm5,%xmm0
  pand   %xmm0,%xmm1
  pandn  %xmm3,%xmm0
  por    %xmm1,%xmm0
  movdqa %xmm2,%xmm1
  psubusw %xmm3,%xmm1
  pand   %xmm3,%xmm0
  pcmpeqw %xmm5,%xmm1
  pand   %xmm1,%xmm2
  pandn  %xmm3,%xmm1
  por    %xmm2,%xmm1
  pand   %xmm3,%xmm1
  packuswb %xmm1,%xmm0
  movups %xmm0,(%r12,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rdx
  jne    L103
  mov    %esi,%edi
  lea    0x1(%rcx),%eax
  and    $0xfffffff0,%edi
  mov    %edi,%edx
  add    %rdx,%rbx
  add    %r12,%rdx
  cmp    %edi,%esi
  je     L52
  movzbl (%rbx),%esi
  mov    $0xff,%r8d
  add    %r14d,%esi
  cmp    %r8d,%esi
  cmovg  %r8d,%esi
  add    %edi,%eax
  mov    %sil,(%rdx)
  cmp    %eax,%ebp
  jbe    L52
  movzbl 0x1(%rbx),%ecx
  mov    $0xff,%esi
  add    %r14d,%ecx
  cmp    %esi,%ecx
  cmovg  %esi,%ecx
  mov    %cl,0x1(%rdx)
  lea    0x1(%rax),%ecx
  cmp    %ebp,%ecx
  jae    L52
  movzbl 0x2(%rbx),%ecx
  add    %r14d,%ecx
  cmp    %esi,%ecx
  cmovg  %esi,%ecx
  mov    %cl,0x2(%rdx)
  lea    0x2(%rax),%ecx
  cmp    %ecx,%ebp
  jbe    L52
  movzbl 0x3(%rbx),%ecx
  add    %r14d,%ecx
  cmp    %esi,%ecx
  cmovg  %esi,%ecx
  mov    %cl,0x3(%rdx)
  lea    0x3(%rax),%ecx
  cmp    %ecx,%ebp
  jbe    L52
  movzbl 0x4(%rbx),%ecx
  add    %r14d,%ecx
  cmp    %esi,%ecx
  cmovg  %esi,%ecx
  mov    %cl,0x4(%rdx)
  lea    0x4(%rax),%ecx
  cmp    %ecx,%ebp
  jbe    L52
  movzbl 0x5(%rbx),%ecx
  add    %r14d,%ecx
  cmp    %esi,%ecx
  cmovg  %esi,%ecx
  mov    %cl,0x5(%rdx)
  lea    0x5(%rax),%ecx
  cmp    %ecx,%ebp
  jbe    L52
  movzbl 0x6(%rbx),%ecx
  add    %r14d,%ecx
  cmp    %esi,%ecx
  cmovg  %esi,%ecx
  mov    %cl,0x6(%rdx)
  lea    0x6(%rax),%ecx
  cmp    %ecx,%ebp
  jbe    L52
  movzbl 0x7(%rbx),%ecx
  add    %r14d,%ecx
  cmp    %esi,%ecx
  cmovg  %esi,%ecx
  mov    %cl,0x7(%rdx)
  lea    0x7(%rax),%ecx
  cmp    %ecx,%ebp
  jbe    L52
  movzbl 0x8(%rbx),%ecx
  add    %r14d,%ecx
  cmp    %esi,%ecx
  cmovg  %esi,%ecx
  mov    %cl,0x8(%rdx)
  lea    0x8(%rax),%ecx
  cmp    %ecx,%ebp
  jbe    L52
  movzbl 0x9(%rbx),%ecx
  add    %r14d,%ecx
  cmp    %esi,%ecx
  cmovg  %esi,%ecx
  mov    %cl,0x9(%rdx)
  lea    0x9(%rax),%ecx
  cmp    %ecx,%ebp
  jbe    L52
  movzbl 0xa(%rbx),%ecx
  add    %r14d,%ecx
  cmp    %esi,%ecx
  cmovg  %esi,%ecx
  mov    %cl,0xa(%rdx)
  lea    0xa(%rax),%ecx
  cmp    %ecx,%ebp
  jbe    L52
  movzbl 0xb(%rbx),%ecx
  add    %r14d,%ecx
  cmp    %esi,%ecx
  cmovg  %esi,%ecx
  mov    %cl,0xb(%rdx)
  lea    0xb(%rax),%ecx
  cmp    %ecx,%ebp
  jbe    L52
  movzbl 0xc(%rbx),%ecx
  add    %r14d,%ecx
  cmp    %esi,%ecx
  cmovg  %esi,%ecx
  mov    %cl,0xc(%rdx)
  lea    0xc(%rax),%ecx
  cmp    %ecx,%ebp
  jbe    L52
  movzbl 0xd(%rbx),%ecx
  add    %r14d,%ecx
  cmp    %esi,%ecx
  cmovg  %esi,%ecx
  add    $0xd,%eax
  mov    %cl,0xd(%rdx)
  cmp    %eax,%ebp
  jbe    L52
  movzbl 0xe(%rbx),%eax
  mov    $0xff,%ecx
  add    %r14d,%eax
  cmp    %ecx,%eax
  cmovg  %ecx,%eax
  mov    %al,0xe(%rdx)
L52:
  pop    %rbx
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   (%rax)
L6:
  mov    %r14d,%ecx
  mov    %ebp,%edx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <SDL_imageFilterAddByteMMX@plt>
  test   $0x7,%bpl
  je     L52
  mov    %ebp,%ecx
  and    $0xfffffff8,%ecx
  mov    %ecx,%eax
  add    %rax,%rbx
  add    %rax,%r12
  jmp    L94
  nopl   0x0(%rax,%rax,1)
L184:
  sub    $0x1,%ebp
  xor    %edx,%edx
  sub    %ecx,%ebp
  nopw   0x0(%rax,%rax,1)
L43:
  movzbl (%rbx,%rdx,1),%eax
  mov    $0xff,%ecx
  add    %r14d,%eax
  cmp    %ecx,%eax
  cmovg  %ecx,%eax
  mov    %al,(%r12,%rdx,1)
  mov    %rdx,%rax
  add    $0x1,%rdx
  cmp    %rax,%rbp
  jne    L43
  pop    %rbx
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

tool_calls: name: parse_data
arguments: data_label: D4
type_infered: byte[16]

tool: {"D4": [0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00]}

assistant: ```c
int SDL_imageFilterAddByte(unsigned char *Src1, unsigned char *Dest, int length, unsigned char C) {
  unsigned int i, istart;
  int iC;
  unsigned char *cursrc1, *curdest;
  int result;
  if ((SDL_imageFilterMMXdetect()) && (length > 7)) {
    SDL_imageFilterAddByteMMX(Src1, Dest, length, C);
    if ((length & 7) > 0) {
      istart = length & 0xfffffff8;
      cursrc1 = &Src1[istart];
      curdest = &Dest[istart];
    } else {
      return (0);
    }
  } else {
    istart = 0;
    cursrc1 = Src1;
    curdest = Dest;
  }
  iC = (int)C;
  for (i = istart; i < length; i++) {
    result = (int)*cursrc1 + iC;
    if (result > 255)
      result = 255;
    *curdest = (unsigned char)result;
    cursrc1++;
    curdest++;
  }
  return (0);
}
```