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

```asm
<str_escape_traverse_dec>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  push   %r14
  lea    D10(%rip),%r14
  push   %r13
  mov    %r14,%rdi
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x38,%rsp
  mov    %rdx,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movl   $0x0,0x24(%rsp)
  call   <strlen@plt>
  lea    D17(%rip),%rdi
  mov    %eax,0xc(%rsp)
  call   <strlen@plt>
  lea    D16(%rip),%rdi
  mov    %eax,0x10(%rsp)
  call   <strlen@plt>
  mov    (%rbx),%ebp
  xor    %ebx,%ebx
  mov    %eax,0x14(%rsp)
  test   %ebp,%ebp
  jg     L2
  jmp    L87
  nopl   0x0(%rax)
L57:
  mov    %rax,%rcx
  mov    %r15,%rsi
  sub    %r15,%rcx
  mov    %ecx,%edx
  mov    %rcx,(%rsp)
  call   <strncpy@plt>
  movslq 0xc(%rsp),%r8
  mov    (%rsp),%rcx
  mov    0x10(%rsp),%esi
  lea    0x0(%r13,%r8,1),%r15
  add    %ecx,%ebx
  sub    %ecx,%ebp
  mov    %r15,%rdi
  call   <str_escape_isDec@plt>
  mov    %rax,%r11
  movslq %ebx,%rax
  lea    (%r12,%rax,1),%r10
  test   %r11,%r11
  js     L74
  lea    0x24(%rsp),%r15
  mov    %r13,%rdi
  mov    %r10,(%rsp)
  add    $0x1,%ebx
  mov    %r15,%rdx
  lea    D19(%rip),%rsi
  call   <sscanf@plt>
  mov    (%rsp),%rdi
  mov    %r15,%rsi
  mov    $0x1,%edx
  call   <memcpy@plt>
  movslq 0x14(%rsp),%r8
  sub    %r8d,%ebp
  lea    0x0(%r13,%r8,1),%r15
L82:
  test   %ebp,%ebp
  jle    L80
L2:
  mov    %r15,%rdi
  mov    %r14,%rsi
  call   <strstr@plt>
  movslq %ebx,%rdi
  mov    %rax,%r13
  add    %r12,%rdi
  test   %rax,%rax
  jne    L57
  mov    %r15,%rsi
  call   <strcpy@plt>
  mov    %r15,%rdi
  call   <strlen@plt>
  movslq %eax,%rdx
  test   %eax,%eax
  jne    L79
  mov    $0x1,%edx
  mov    $0x1,%eax
L79:
  sub    %eax,%ebp
  add    %eax,%ebx
  add    %rdx,%r15
  test   %ebp,%ebp
  jg     L2
L80:
  movslq %ebx,%rax
  add    %rax,%r12
L87:
  mov    0x18(%rsp),%rax
  mov    %ebx,(%rax)
  movb   $0x0,(%r12)
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L59
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L74:
  mov    0xc(%rsp),%edx
  mov    %r13,%rsi
  mov    %r10,%rdi
  call   <strncpy@plt>
  mov    0xc(%rsp),%eax
  add    %eax,%ebx
  sub    %eax,%ebp
  jmp    L82
L59:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D10
type: string
name: read_data
arguments: tag: D17
type: string
name: read_data
arguments: tag: D16
type: string
name: read_data
arguments: tag: D19
type: string

tool: D10: \x

tool: D17: EE

tool: D16: \xEE

tool: D19: \x%02x

assistant: ```c
int str_escape_traverse_dec(char *src, char *dst, int *srcLen) {
  const char *substr = "\\x";
  int sublen, declen, totalLen;
  int stringlen = 0, tmpLen, dstLen = 0;
  char *curPointer = NULL, *prePointer = NULL;
  char *dstPointer = NULL;
  unsigned int c = 0;
  sublen = strlen(substr);
  declen = strlen("EE");
  totalLen = strlen("\\xEE");
  stringlen = *srcLen;
  prePointer = curPointer = src;
  dstPointer = dst;
  while (stringlen > 0) {
    if ((curPointer = strstr(prePointer, substr)) == NULL) {
      strcpy(dstPointer + dstLen, prePointer);
      tmpLen = strlen(prePointer);
      tmpLen = tmpLen == 0 ? 1 : tmpLen;
      dstLen += tmpLen;
      stringlen -= tmpLen;
      prePointer += tmpLen;
    } else {
      strncpy(dstPointer + dstLen, prePointer, curPointer - prePointer);
      dstLen += (curPointer - prePointer);
      stringlen -= (curPointer - prePointer);
      if (str_escape_isDec(curPointer + sublen, declen) >= 0) {
        sscanf(curPointer, "\\x%02x", &c);
        memcpy(dstPointer + dstLen, &c, sizeof(char));
        dstLen += sizeof(char);
        stringlen -= totalLen;
        curPointer += totalLen;
      } else {
        strncpy(dstPointer + dstLen, curPointer, sublen);
        dstLen += sublen;
        stringlen -= sublen;
        curPointer += sublen;
      }
      prePointer = curPointer;
    }
  }
  *srcLen = dstLen;
  *(dstPointer + dstLen) = '\0';
  return 0;
}
```