user: Demonstrate the C code that generates the assembly output below:

```asm
<str_escape_traverse_dec>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,%rbx
  mov    %rsi,(%rsp)
  mov    %rdx,%r15
  mov    %rdx,0x28(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  movl   $0x0,0x34(%rsp)
  lea    D37(%rip),%rdi
  call   <strlen@plt>
  mov    %eax,%r14d
  mov    %eax,0x24(%rsp)
  lea    D11(%rip),%rdi
  call   <strlen@plt>
  mov    %eax,0xc(%rsp)
  lea    D1(%rip),%rdi
  call   <strlen@plt>
  mov    %eax,0x20(%rsp)
  mov    (%r15),%r13d
  test   %r13d,%r13d
  jle    L12
  mov    $0x0,%r12d
  lea    D37(%rip),%r15
  movslq %r14d,%rax
  mov    %rax,0x10(%rsp)
  lea    0x34(%rsp),%rax
  mov    %rax,0x18(%rsp)
  jmp    L55
L1:
  movslq %r12d,%rdi
  add    (%rsp),%rdi
  mov    %rbx,%rsi
  call   <strcpy@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  mov    $0x1,%edx
  cmove  %edx,%eax
  add    %eax,%r12d
  sub    %eax,%r13d
  cltq
  add    %rax,%rbx
L44:
  test   %r13d,%r13d
  jle    L30
L55:
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <strstr@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L1
  mov    %rax,%r14
  sub    %rbx,%r14
  movslq %r12d,%rdi
  add    (%rsp),%rdi
  mov    %r14d,%edx
  mov    %rbx,%rsi
  call   <strncpy@plt>
  add    %r14d,%r12d
  sub    %r14d,%r13d
  mov    0x10(%rsp),%rax
  lea    0x0(%rbp,%rax,1),%rbx
  mov    0xc(%rsp),%esi
  mov    %rbx,%rdi
  call   <str_escape_isDec@plt>
  test   %rax,%rax
  js     L4
  mov    0x18(%rsp),%rbx
  mov    %rbx,%rdx
  lea    D24(%rip),%rsi
  mov    %rbp,%rdi
  call   <sscanf@plt>
  movslq %r12d,%rdi
  add    (%rsp),%rdi
  mov    $0x1,%edx
  mov    %rbx,%rsi
  call   <memcpy@plt>
  add    $0x1,%r12d
  mov    0x20(%rsp),%eax
  sub    %eax,%r13d
  movslq %eax,%rbx
  add    %rbp,%rbx
  jmp    L44
L4:
  movslq %r12d,%rdi
  add    (%rsp),%rdi
  mov    0x24(%rsp),%r14d
  mov    %r14d,%edx
  mov    %rbp,%rsi
  call   <strncpy@plt>
  add    %r14d,%r12d
  sub    %r14d,%r13d
  jmp    L44
L12:
  mov    $0x0,%r12d
L30:
  mov    0x28(%rsp),%rax
  mov    %r12d,(%rax)
  movslq %r12d,%r12
  mov    (%rsp),%rax
  movb   $0x0,(%rax,%r12,1)
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L65
  mov    $0x0,%eax
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L65:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D37
type: string
name: unpack_data
arguments: tag: D11
type: string
name: unpack_data
arguments: tag: D1
type: string
name: unpack_data
arguments: tag: D24
type: string

tool: D37: \x

tool: D11: EE

tool: D1: \xEE

tool: D24: \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;
}
```