user: 这段汇编代码用C语言表示是什么样的?

```asm
<base64_html_encode>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdx,%r14
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rdx
  call   <base64_encode@plt>
  mov    %eax,%r12d
  test   %eax,%eax
  js     L191
  jle    L152
  mov    (%rsp),%rax
  mov    %r12d,%r13d
  lea    -0x1(%r12),%edx
  lea    0x1(%rax,%rdx,1),%rdi
  mov    $0x0,%esi
  jmp    L206
L191:
  movq   $0x0,(%r14)
  jmp    L133
L199:
  add    $0x1,%esi
L168:
  add    $0x1,%rax
  cmp    %rdi,%rax
  je     L137
L206:
  movzbl (%rax),%edx
  mov    %edx,%ecx
  and    $0xfffffffb,%ecx
  cmp    $0x2b,%cl
  je     L199
  cmp    $0x3d,%dl
  je     L199
  jmp    L168
L137:
  test   %esi,%esi
  je     L152
  lea    (%r12,%rsi,2),%r12d
  lea    0x1(%r12),%edi
  call   <malloc@plt>
  mov    %rax,%r15
  test   %rax,%rax
  je     L38
  mov    %r13d,%r13d
  mov    %rax,%rbp
  mov    $0x0,%ebx
  jmp    L201
L152:
  mov    (%rsp),%rax
  mov    %rax,(%r14)
L133:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L158
  mov    %r12d,%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L38:
  movq   $0x0,(%r14)
  mov    $0xffffffff,%r12d
  jmp    L133
L32:
  mov    $0x3,%edx
  lea    D23(%rip),%rsi
  mov    %rbp,%rdi
  call   <memcpy@plt>
  add    $0x3,%rbp
L121:
  add    $0x1,%rbx
  cmp    %rbx,%r13
  je     L79
L201:
  mov    (%rsp),%rax
  movzbl (%rax,%rbx,1),%eax
  cmp    $0x2b,%al
  je     L32
  cmp    $0x2f,%al
  je     L177
  cmp    $0x3d,%al
  je     L96
  mov    %al,0x0(%rbp)
  lea    0x1(%rbp),%rbp
  jmp    L121
L177:
  mov    $0x3,%edx
  lea    D28(%rip),%rsi
  mov    %rbp,%rdi
  call   <memcpy@plt>
  add    $0x3,%rbp
  jmp    L121
L96:
  mov    $0x3,%edx
  lea    D14(%rip),%rsi
  mov    %rbp,%rdi
  call   <memcpy@plt>
  add    $0x3,%rbp
  jmp    L121
L79:
  movb   $0x0,0x0(%rbp)
  mov    %r15,(%r14)
  mov    (%rsp),%rdi
  call   <free@plt>
  jmp    L133
L158:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D23
type_guessed: string
name: unpack_data
arguments: data_tag: D28
type_guessed: string
name: unpack_data
arguments: data_tag: D14
type_guessed: string

tool: D23: %2B

tool: D28: %2F

tool: D14: %3D

assistant: ```c
int base64_html_encode(const void *data, int size, char **str) {
  int url_chrs;
  int new_len;
  char *b64_str;
  char *new_b64_str;
  char *s;
  int old_len;
  int i;
  old_len = base64_encode(data, size, &b64_str);
  if (old_len < 0) {
    *str = NULL;
    return old_len;
  }
  url_chrs = 0;
  for (i = 0; i < old_len; i++) {
    if ((b64_str[i] == '+') || (b64_str[i] == '/') || (b64_str[i] == '=')) {
      url_chrs++;
    }
  }
  if (url_chrs == 0) {
    *str = b64_str;
    return old_len;
  }
  new_len = old_len + (2 * url_chrs);
  new_b64_str = malloc(new_len + 1);
  if (new_b64_str == NULL) {
    *str = NULL;
    return -1;
  }
  s = new_b64_str;
  for (i = 0; i < old_len; i++) {
    if (b64_str[i] == '+') {
      memcpy(s, "%2B", 3);
      s += 3;
    } else if (b64_str[i] == '/') {
      memcpy(s, "%2F", 3);
      s += 3;
    } else if (b64_str[i] == '=') {
      memcpy(s, "%3D", 3);
      s += 3;
    } else {
      *(s++) = b64_str[i];
    }
  }
  *s = '\0';
  *str = new_b64_str;
  free(b64_str);
  return new_len;
}
```