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

```asm
<SDF_xml_decode_data>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  sub    $0x8,%rsp
  test   %esi,%esi
  jle    L95
  mov    %rdi,%rbx
  mov    %esi,%r15d
  lea    D31(%rip),%r12
  lea    D16(%rip),%r13
  jmp    L69
  nop
L23:
  add    $0x1,%rbx
  sub    $0x1,%r15d
L48:
  mov    %r14b,-0x1(%rbp)
  test   %r15d,%r15d
  jle    L95
L69:
  movzbl (%rbx),%r14d
  add    $0x1,%rbp
  cmp    $0x26,%r14b
  jne    L23
  mov    $0x4,%edx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  jne    L141
  mov    $0x3c,%r14d
  sub    $0x4,%r15d
  add    $0x4,%rbx
  mov    %r14b,-0x1(%rbp)
  test   %r15d,%r15d
  jg     L69
L95:
  movb   $0x0,0x0(%rbp)
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L141:
  mov    $0x4,%edx
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  je     L108
  mov    $0x5,%edx
  lea    D5(%rip),%rsi
  mov    %rbx,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  jne    L122
  add    $0x5,%rbx
  sub    $0x5,%r15d
  jmp    L48
  nopl   0x0(%rax,%rax,1)
L108:
  add    $0x4,%rbx
  sub    $0x4,%r15d
  mov    $0x3e,%r14d
  jmp    L48
  nopl   0x0(%rax,%rax,1)
L122:
  mov    $0x6,%edx
  lea    D3(%rip),%rsi
  mov    %rbx,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  je     L116
  mov    $0x6,%edx
  lea    D23(%rip),%rsi
  mov    %rbx,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  je     L86
  movzbl (%rbx),%r14d
  jmp    L23
  nopl   0x0(%rax,%rax,1)
L116:
  add    $0x6,%rbx
  sub    $0x6,%r15d
  mov    $0x27,%r14d
  jmp    L48
L86:
  add    $0x6,%rbx
  sub    $0x6,%r15d
  mov    $0x22,%r14d
  jmp    L48
```

tool_calls: name: disassemble_data
arguments: data_label: D31
data_type: string
name: disassemble_data
arguments: data_label: D16
data_type: string
name: disassemble_data
arguments: data_label: D5
data_type: string
name: disassemble_data
arguments: data_label: D3
data_type: string
name: disassemble_data
arguments: data_label: D23
data_type: string

tool: D31: &lt;

tool: D16: &gt;

tool: D5: &amp;

tool: D3: &apos;

tool: D23: &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';
}
```