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

```asm
<rxml_decode_string>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  movzbl (%rdi),%eax
  test   %al,%al
  je     L19
  lea    0x1(%rdi),%rbp
  lea    D9(%rip),%r12
  lea    D54(%rip),%r13
  lea    D28(%rip),%r14
  jmp    L232
  nopl   0x0(%rax,%rax,1)
L202:
  mov    %al,-0x1(%rbp)
  add    $0x1,%rbx
  mov    %rbp,%rdx
L18:
  movzbl (%rbx),%eax
  add    $0x1,%rbp
  test   %al,%al
  je     L263
L232:
  cmp    $0x26,%al
  jne    L202
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %rax,%r15
  cmp    $0x3,%eax
  jg     L32
L264:
  lea    0x4(%rsp),%rdx
  lea    0x2(%rbx),%rdi
  mov    %r12,%rsi
  call   <sscanf@plt>
  test   %eax,%eax
  je     L105
  mov    0x4(%rsp),%eax
  mov    %rbp,%rdx
  mov    %al,-0x1(%rbp)
  cmpb   $0x3b,0x3(%rbx)
  je     L190
  cmpb   $0x3b,0x4(%rbx)
  movzbl 0x5(%rbx),%eax
  je     L9
  cmp    $0x3b,%al
  jne    L105
  movzbl 0x6(%rbx),%eax
  add    $0x6,%rbx
  add    $0x1,%rbp
  test   %al,%al
  jne    L232
L263:
  movb   $0x0,(%rdx)
  mov    $0x1,%eax
L219:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L189
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L32:
  mov    $0x4,%edx
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L226
  movb   $0x3e,-0x1(%rbp)
  mov    %rbp,%rdx
  add    $0x4,%rbx
  jmp    L18
  nopl   (%rax)
L226:
  mov    $0x4,%edx
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L163
  movb   $0x3c,-0x1(%rbp)
  mov    %rbp,%rdx
  add    $0x4,%rbx
  jmp    L18
  nopl   (%rax)
L163:
  cmp    $0x4,%r15d
  je     L264
  mov    $0x5,%edx
  lea    D45(%rip),%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L184
  movb   $0x26,-0x1(%rbp)
  mov    %rbp,%rdx
  add    $0x5,%rbx
  jmp    L18
  nopl   0x0(%rax,%rax,1)
L184:
  cmp    $0x5,%r15d
  je     L264
  mov    $0x6,%edx
  lea    D53(%rip),%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L14
  movb   $0x22,-0x1(%rbp)
  mov    %rbp,%rdx
  add    $0x6,%rbx
  jmp    L18
  nopl   0x0(%rax,%rax,1)
L14:
  mov    $0x6,%edx
  lea    D36(%rip),%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L264
  movb   $0x27,-0x1(%rbp)
  mov    %rbp,%rdx
  add    $0x6,%rbx
  jmp    L18
  nopl   (%rax)
L190:
  add    $0x4,%rbx
  jmp    L18
  nopl   0x0(%rax)
L9:
  add    $0x5,%rbx
  jmp    L18
  nopl   0x0(%rax)
L105:
  xor    %eax,%eax
  jmp    L219
L19:
  mov    %rdi,%rdx
  jmp    L263
L189:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D9
type: string
name: extract_symbolic_data
arguments: label: D54
type: string
name: extract_symbolic_data
arguments: label: D28
type: string
name: extract_symbolic_data
arguments: label: D45
type: string
name: extract_symbolic_data
arguments: label: D53
type: string
name: extract_symbolic_data
arguments: label: D36
type: string

tool: D9: %d;

tool: D54: &gt;

tool: D28: &lt;

tool: D45: &amp;

tool: D53: &quot;

tool: D36: &apos;

assistant: ```c
int rxml_decode_string(char *string) {
  char *src, *dst;
  int len;
  int cval;
  src = dst = string;
  while (*src) {
    if ((*src) == '&') {
      len = (int)strlen(src);
      if ((len > 3) && (strncmp(src, "&gt;", 4) == 0)) {
        *dst++ = '>';
        src += 4;
      } else if ((len > 3) && (strncmp(src, "&lt;", 4) == 0)) {
        *dst++ = '<';
        src += 4;
      } else if ((len > 4) && (strncmp(src, "&amp;", 5) == 0)) {
        *dst++ = '&';
        src += 5;
      } else if ((len > 5) && (strncmp(src, "&quot;", 6) == 0)) {
        *dst++ = '"';
        src += 6;
      } else if ((len > 5) && (strncmp(src, "&apos;", 6) == 0)) {
        *dst++ = '\'';
        src += 6;
      } else {
        if (!sscanf((char *)&src[2], "%d;", &cval))
          return 0;
        *dst++ = cval;
        if (src[3] == ';') {
          src += 4;
        } else if (src[4] == ';') {
          src += 5;
        } else if (src[5] == ';') {
          src += 6;
        } else {
          return 0;
        }
      }
    } else {
      *dst++ = *src++;
    }
  }
  *dst = '\0';
  return 1;
}
```