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

```asm
<Code2Quality>:
  endbr64
  push   %r15
  push   %r14
  xor    %r14d,%r14d
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  movzbl (%rsi),%ebp
  mov    %rdi,0x8(%rsp)
  mov    %rsi,(%rsp)
  cmp    $0x20,%bpl
  jle    L76
  movzbl 0x1(%rsi),%ebx
  lea    -0x1(%rdx),%ecx
  mov    %ecx,0x14(%rsp)
  cmp    $0x20,%bl
  jle    L261
  mov    $0x1,%r15d
  mov    $0x1,%r10d
  xor    %r11d,%r11d
  mov    %r14d,%r12d
  lea    D10(%rip),%r13
  jmp    L398
  nopw   0x0(%rax,%rax,1)
L328:
  cmp    %bl,%r11b
  jne    L352
  cmp    $0x20,%r15d
  jle    L312
L352:
  cmp    %r15d,0x14(%rsp)
  jge    L350
  cmp    $0xff,%r15d
  jg     L230
  mov    %ebp,%edx
  movslq %r12d,%rdi
  mov    %r15d,%ecx
  add    0x8(%rsp),%rdi
  neg    %edx
  movsbl %dl,%edx
L71:
  mov    %r13,%rsi
  mov    $0x1,%r15d
  call   <sprintf@plt>
  mov    %ebp,%r11d
  mov    %ebx,%ebp
  add    %eax,%r12d
L201:
  mov    0x10(%rsp),%r10d
L309:
  mov    (%rsp),%rcx
  movslq %r10d,%rax
  movzbl (%rcx,%rax,1),%ebx
  cmp    $0x20,%bl
  jle    L184
L398:
  lea    0x1(%r10),%eax
  mov    %eax,0x10(%rsp)
  cmp    %bl,%bpl
  jne    L328
  add    $0x1,%r15d
  jmp    L201
  nopw   0x0(%rax,%rax,1)
L230:
  mov    %ebp,%r10d
  mov    %bpl,0x18(%rsp)
  mov    %r12d,%ebp
  mov    %ebx,%r12d
  neg    %r10d
  mov    0x8(%rsp),%rbx
  movsbl %r10b,%r14d
  nopw   0x0(%rax,%rax,1)
L72:
  movslq %ebp,%rdi
  mov    %r14d,%edx
  mov    %r13,%rsi
  mov    $0xff,%ecx
  add    %rbx,%rdi
  call   <sprintf@plt>
  mov    %r15d,%esi
  lea    -0xff(%r15),%r15d
  lea    0x0(%rbp,%rax,1),%edx
  mov    %edx,%ebp
  cmp    $0xff,%r15d
  jg     L72
  mov    %r12d,%ebx
  movzbl 0x18(%rsp),%ebp
  mov    %edx,%r12d
  cmp    %r15d,0x14(%rsp)
  jge    L79
  movslq %edx,%rdi
  mov    %r15d,%ecx
  add    0x8(%rsp),%rdi
  mov    %r14d,%edx
  jmp    L71
  nopl   0x0(%rax,%rax,1)
L184:
  mov    %r12d,%r14d
  cmp    0x14(%rsp),%r15d
  jg     L108
  lea    -0x1(%r15),%ebx
  test   %r15d,%r15d
  jle    L76
  mov    0x8(%rsp),%rdi
  movslq %r12d,%rax
  mov    %ebx,%edx
  movsbl %bpl,%esi
  add    $0x1,%rdx
  lea    0x1(%rbx,%r12,1),%r14d
  add    %rax,%rdi
  call   <memset@plt>
L76:
  add    $0x28,%rsp
  mov    %r14d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L350:
  lea    -0x1(%r15),%ecx
  test   %r15d,%r15d
  jle    L109
  mov    %ecx,%edx
  movslq %r12d,%rdi
  movsbl %bpl,%esi
  add    0x8(%rsp),%rdi
  add    $0x1,%rdx
  mov    %ecx,0x18(%rsp)
  call   <memset@plt>
  mov    0x18(%rsp),%ecx
  lea    0x1(%rcx,%r12,1),%r12d
L109:
  mov    %ebx,%ebp
  mov    $0x1,%r15d
  xor    %r11d,%r11d
  jmp    L201
  nopl   (%rax)
L79:
  movzbl %bpl,%eax
  movslq %edx,%r9
  add    0x8(%rsp),%r9
  movabs $0x101010101010101,%rcx
  imul   %rcx,%rax
  cmp    $0x8,%r15d
  jae    L176
  test   $0x4,%r15b
  jne    L387
  test   %r15d,%r15d
  jne    L3
L215:
  mov    %ebp,%r11d
  lea    -0xff(%rdx,%rsi,1),%r12d
  mov    %ebx,%ebp
  mov    $0x1,%r15d
  jmp    L201
  nopw   0x0(%rax,%rax,1)
L176:
  lea    0x8(%r9),%rdi
  mov    %r15d,%ecx
  mov    %rax,(%r9)
  and    $0xfffffffffffffff8,%rdi
  mov    %rax,-0x8(%r9,%rcx,1)
  sub    %rdi,%r9
  lea    (%r15,%r9,1),%ecx
  shr    $0x3,%ecx
  rep stos %rax,%es:(%rdi)
  jmp    L215
  nopw   0x0(%rax,%rax,1)
L108:
  movslq %r12d,%rax
  add    %rax,0x8(%rsp)
L326:
  mov    0x8(%rsp),%rdi
  neg    %ebp
  mov    %r15d,%ecx
  lea    D10(%rip),%rsi
  movsbl %bpl,%edx
  call   <sprintf@plt>
  add    %eax,%r14d
  jmp    L76
  nopw   0x0(%rax,%rax,1)
L3:
  mov    %al,(%r9)
  test   $0x2,%r15b
  je     L215
  mov    %r15d,%r8d
  mov    %ax,-0x2(%r9,%r8,1)
  jmp    L215
  nopl   0x0(%rax,%rax,1)
L312:
  movslq 0x10(%rsp),%r14
  mov    (%rsp),%rdx
  lea    0x2(%r10),%eax
  cmp    %bl,(%rdx,%r14,1)
  jne    L82
  add    $0x3,%r10d
  mov    $0x1,%ecx
  movslq %r10d,%rax
  nopl   0x0(%rax,%rax,1)
L22:
  mov    %eax,%r10d
  add    $0x1,%rax
  mov    %ecx,%r14d
  add    $0x1,%ecx
  cmp    %bl,-0x2(%rdx,%rax,1)
  je     L22
  cmp    $0xff,%ecx
  jg     L101
L344:
  mov    %r10d,0x10(%rsp)
  movslq %r12d,%rdi
  movsbl %r15b,%edx
  add    0x8(%rsp),%rdi
L374:
  mov    %r13,%rsi
  call   <sprintf@plt>
  mov    0x10(%rsp),%r10d
  xor    %r11d,%r11d
  add    %eax,%r12d
  jmp    L309
L261:
  mov    0x14(%rsp),%eax
  test   %eax,%eax
  jle    L5
  mov    0x8(%rsp),%rax
  mov    $0x1,%r14d
  mov    %bpl,(%rax)
  jmp    L76
L5:
  xor    %r14d,%r14d
  mov    $0x1,%r15d
  jmp    L326
L101:
  movslq %r12d,%rdi
  movsbl %r15b,%edx
  add    0x8(%rsp),%rdi
  mov    %r13,%rsi
  mov    $0xff,%ecx
  mov    %r11b,0x18(%rsp)
  sub    $0xfe,%r14d
  mov    %r10d,0x10(%rsp)
  call   <sprintf@plt>
  mov    0x10(%rsp),%r10d
  movzbl 0x18(%rsp),%r11d
  add    %eax,%r12d
  cmp    $0x100,%r14d
  jle    L248
  mov    %r11d,%eax
  mov    %bpl,0x1f(%rsp)
  mov    0x8(%rsp),%rbp
  neg    %eax
  movsbl %al,%ebx
  mov    %r12d,%eax
  mov    %r14d,%r12d
  mov    %eax,%r14d
  nopl   0x0(%rax)
L110:
  movslq %r14d,%rdi
  mov    $0xff,%ecx
  mov    %ebx,%edx
  mov    %r13,%rsi
  add    %rbp,%rdi
  sub    $0xff,%r12d
  call   <sprintf@plt>
  add    %eax,%r14d
  cmp    $0x100,%r12d
  jg     L110
  mov    %r14d,%eax
  mov    0x10(%rsp),%r10d
  movzbl 0x1f(%rsp),%ebp
  mov    %r12d,%r14d
  movzbl 0x18(%rsp),%r11d
  mov    %eax,%r12d
L248:
  cmp    %r14d,0x14(%rsp)
  jge    L69
  neg    %r11d
  movslq %r12d,%rdi
  mov    %r10d,0x10(%rsp)
  add    0x8(%rsp),%rdi
  movsbl %r11b,%edx
  mov    %r14d,%ecx
  jmp    L374
L387:
  mov    %r15d,%r8d
  mov    %eax,(%r9)
  mov    %eax,-0x4(%r9,%r8,1)
  jmp    L215
L69:
  lea    -0x1(%r15),%ebx
  test   %r15d,%r15d
  jle    L299
  mov    %ebx,%edx
  movsbl %r11b,%esi
  movslq %r12d,%rdi
  add    0x8(%rsp),%rdi
  add    $0x1,%rdx
  mov    %r10d,0x10(%rsp)
  lea    0x1(%rbx,%r12,1),%r12d
  mov    $0xffffffff,%r15d
  call   <memset@plt>
  mov    0x10(%rsp),%r10d
  xor    %r11d,%r11d
  jmp    L309
L82:
  mov    %eax,%r10d
  mov    $0x1,%ecx
  jmp    L344
L299:
  mov    %ebx,%r15d
  xor    %r11d,%r11d
  jmp    L309
```

tool_calls: name: retrieve_data
arguments: tag: D10
type: string

tool: D10: %c%c

assistant: ```c
int Code2Quality(char *buf, char *str, int n) {
  char prech, ch, pprech = 0;
  int i, count = 1, len = 0, countch = 1;
  n--;
  if ((prech = *str) < 33)
    return len;
  for (i = 1; (ch = *(str + i)) > 32;) {
    if (prech == ch)
      count++;
    else {
      if (ch == pprech) {
        if (count < 33) {
          i++;
          while (ch == *(str + i++))
            countch++;
          if (countch < 256)
            len += sprintf(buf + len, "%c%c", count, countch);
          else {
            len += sprintf(buf + len, "%c%c", count, 255);
            countch -= 255;
            while (countch > 256) {
              len += sprintf(buf + len, "%c%c", -pprech, 255);
              countch -= 255;
            }
            if (countch > n)
              len += sprintf(buf + len, "%c%c", -pprech, countch);
            else
              while (count-- > 0)
                *(buf + len++) = pprech;
          }
          pprech = 0;
          countch = 1;
          continue;
        }
      }
      if (count > n) {
        if (count < 256)
          len += sprintf(buf + len, "%c%c", -prech, count);
        else {
          do {
            len += sprintf(buf + len, "%c%c", -prech, 255);
            count -= 255;
          } while (count > 255);
          if (count > n)
            len += sprintf(buf + len, "%c%c", -prech, count);
          else
            while (count-- > 0)
              *(buf + len++) = prech;
        }
        pprech = prech;
      } else {
        while (count-- > 0)
          *(buf + len++) = prech;
        pprech = 0;
      }
      count = 1;
      prech = ch;
    }
    i++;
  }
  if (count > n)
    len += sprintf(buf + len, "%c%c", -prech, count);
  else
    while (count-- > 0)
      *(buf + len++) = prech;
  return len;
}
```