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

```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     L192
  lea    0x1(%rdi),%rbp
  lea    D29(%rip),%r12
  lea    D49(%rip),%r13
  lea    D17(%rip),%r14
  jmp    L119
  nopl   0x0(%rax,%rax,1)
L84:
  mov    %al,-0x1(%rbp)
  add    $0x1,%rbx
  mov    %rbp,%rdx
L143:
  movzbl (%rbx),%eax
  add    $0x1,%rbp
  test   %al,%al
  je     L148
L119:
  cmp    $0x26,%al
  jne    L84
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %rax,%r15
  cmp    $0x3,%eax
  jg     L5
L166:
  lea    0x4(%rsp),%rdx
  lea    0x2(%rbx),%rdi
  mov    %r12,%rsi
  call   <sscanf@plt>
  test   %eax,%eax
  je     L191
  mov    0x4(%rsp),%eax
  mov    %rbp,%rdx
  mov    %al,-0x1(%rbp)
  cmpb   $0x3b,0x3(%rbx)
  je     L268
  cmpb   $0x3b,0x4(%rbx)
  movzbl 0x5(%rbx),%eax
  je     L172
  cmp    $0x3b,%al
  jne    L191
  movzbl 0x6(%rbx),%eax
  add    $0x6,%rbx
  add    $0x1,%rbp
  test   %al,%al
  jne    L119
L148:
  movb   $0x0,(%rdx)
  mov    $0x1,%eax
L90:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L200
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L5:
  mov    $0x4,%edx
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L145
  movb   $0x3e,-0x1(%rbp)
  mov    %rbp,%rdx
  add    $0x4,%rbx
  jmp    L143
  nopl   (%rax)
L145:
  mov    $0x4,%edx
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L265
  movb   $0x3c,-0x1(%rbp)
  mov    %rbp,%rdx
  add    $0x4,%rbx
  jmp    L143
  nopl   (%rax)
L265:
  cmp    $0x4,%r15d
  je     L166
  mov    $0x5,%edx
  lea    D12(%rip),%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L85
  movb   $0x26,-0x1(%rbp)
  mov    %rbp,%rdx
  add    $0x5,%rbx
  jmp    L143
  nopl   0x0(%rax,%rax,1)
L85:
  cmp    $0x5,%r15d
  je     L166
  mov    $0x6,%edx
  lea    D46(%rip),%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L57
  movb   $0x22,-0x1(%rbp)
  mov    %rbp,%rdx
  add    $0x6,%rbx
  jmp    L143
  nopl   0x0(%rax,%rax,1)
L57:
  mov    $0x6,%edx
  lea    D57(%rip),%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L166
  movb   $0x27,-0x1(%rbp)
  mov    %rbp,%rdx
  add    $0x6,%rbx
  jmp    L143
  nopl   (%rax)
L268:
  add    $0x4,%rbx
  jmp    L143
  nopl   0x0(%rax)
L172:
  add    $0x5,%rbx
  jmp    L143
  nopl   0x0(%rax)
L191:
  xor    %eax,%eax
  jmp    L90
L192:
  mov    %rdi,%rdx
  jmp    L148
L200:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D29
datatype: string
name: unpack_data
arguments: label: D49
datatype: string
name: unpack_data
arguments: label: D17
datatype: string
name: unpack_data
arguments: label: D12
datatype: string
name: unpack_data
arguments: label: D46
datatype: string
name: unpack_data
arguments: label: D57
datatype: string

tool: D29: %d;

tool: D49: &gt;

tool: D17: &lt;

tool: D12: &amp;

tool: D46: &quot;

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