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

```asm
<SDF_xml_decode_data>:
  endbr64
  test   %esi,%esi
  jle    L75
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbx
  mov    %esi,%r13d
  lea    0x1(%rdx),%rbp
  lea    D16(%rip),%r14
  lea    D35(%rip),%r15
  jmp    L43
L68:
  mov    $0x4,%edx
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  jne    L45
  mov    %rbp,%rdx
  add    $0x4,%rbx
  sub    $0x4,%r13d
  mov    $0x3e,%r12d
  jmp    L22
L45:
  mov    $0x5,%edx
  lea    D36(%rip),%rsi
  mov    %rbx,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  jne    L5
  mov    %rbp,%rdx
  add    $0x5,%rbx
  sub    $0x5,%r13d
  jmp    L22
L5:
  mov    $0x6,%edx
  lea    D1(%rip),%rsi
  mov    %rbx,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  jne    L17
  mov    %rbp,%rdx
  add    $0x6,%rbx
  sub    $0x6,%r13d
  mov    $0x27,%r12d
  jmp    L22
L17:
  mov    $0x6,%edx
  lea    D8(%rip),%rsi
  mov    %rbx,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  je     L114
L32:
  mov    %rbp,%rdx
  movzbl (%rbx),%r12d
  sub    $0x1,%r13d
  lea    0x1(%rbx),%rbx
L22:
  mov    %r12b,-0x1(%rbp)
  add    $0x1,%rbp
  test   %r13d,%r13d
  jle    L86
L43:
  movzbl (%rbx),%r12d
  cmp    $0x26,%r12b
  jne    L32
  mov    $0x4,%edx
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  jne    L68
  mov    %rbp,%rdx
  add    $0x4,%rbx
  sub    $0x4,%r13d
  mov    $0x3c,%r12d
  jmp    L22
L114:
  mov    %rbp,%rdx
  add    $0x6,%rbx
  sub    $0x6,%r13d
  mov    $0x22,%r12d
  jmp    L22
L86:
  movb   $0x0,(%rdx)
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L75:
  movb   $0x0,(%rdx)
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D16
datatype: string
name: retrieve_data
arguments: data_label: D35
datatype: string
name: retrieve_data
arguments: data_label: D36
datatype: string
name: retrieve_data
arguments: data_label: D1
datatype: string
name: retrieve_data
arguments: data_label: D8
datatype: string

tool: D16: &lt;

tool: D35: &gt;

tool: D36: &amp;

tool: D1: &apos;

tool: D8: &quot;

assistant: ```c
void SDF_xml_decode_data(char *s, int len, char *t) {
  while (len > 0) {
    if (*s == '&') {
      {
        if (memcmp(s, ("&lt;"), sizeof("&lt;") - 1) == 0) {
          *t++ = ('<');
          s += sizeof("&lt;") - 1;
          len -= sizeof("&lt;") - 1;
          continue;
        }
      }
      {
        if (memcmp(s, ("&gt;"), sizeof("&gt;") - 1) == 0) {
          *t++ = ('>');
          s += sizeof("&gt;") - 1;
          len -= sizeof("&gt;") - 1;
          continue;
        }
      }
      {
        if (memcmp(s, ("&amp;"), sizeof("&amp;") - 1) == 0) {
          *t++ = ('&');
          s += sizeof("&amp;") - 1;
          len -= sizeof("&amp;") - 1;
          continue;
        }
      }
      {
        if (memcmp(s, ("&apos;"), sizeof("&apos;") - 1) == 0) {
          *t++ = ('\'');
          s += sizeof("&apos;") - 1;
          len -= sizeof("&apos;") - 1;
          continue;
        }
      }
      {
        if (memcmp(s, ("&quot;"), sizeof("&quot;") - 1) == 0) {
          *t++ = ('"');
          s += sizeof("&quot;") - 1;
          len -= sizeof("&quot;") - 1;
          continue;
        }
      }
    }
    *t++ = *s++;
    --len;
  }
  *t = '\0';
}
```