user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<base64toText>:
  endbr64
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x58,%rsp
  movdqa D19(%rip),%xmm0
  movsd  D41(%rip),%xmm1
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  movaps %xmm0,(%rsp)
  movdqa D14(%rip),%xmm0
  movaps %xmm0,0x10(%rsp)
  movdqa D65(%rip),%xmm0
  movaps %xmm0,0x20(%rsp)
  movdqa D8(%rip),%xmm0
  movaps %xmm0,0x30(%rsp)
  pxor   %xmm0,%xmm0
  cvtsi2sd %esi,%xmm0
  divsd  D63(%rip),%xmm0
  addsd  D26(%rip),%xmm0
  comisd %xmm1,%xmm0
  jae    L39
  cvttsd2si %xmm0,%rdi
  call   <malloc@plt>
  mov    %rax,%r9
  cmp    $0x2,%ebp
  jle    L59
L30:
  xor    %esi,%esi
  mov    $0x4,%r8d
  nopw   0x0(%rax,%rax,1)
L49:
  mov    (%rbx,%rsi,4),%edx
  mov    0x4(%rbx,%rsi,4),%eax
  xor    %ecx,%ecx
  movslq %r8d,%r10
  mov    0x8(%rbx,%rsi,4),%edi
  add    $0x3,%rsi
  mov    %edx,%r11d
  shl    $0x4,%edx
  sar    $0x2,%r11d
  and    $0x30,%edx
  movslq %r11d,%r11
  mov    (%rsp,%r11,1),%cl
  mov    %eax,%r11d
  shl    $0x2,%eax
  sar    $0x4,%r11d
  and    $0x3c,%eax
  add    %r11d,%edx
  movslq %edx,%rdx
  mov    (%rsp,%rdx,1),%ch
  mov    %edi,%edx
  and    $0x3f,%edi
  sar    $0x6,%edx
  add    %edx,%eax
  movzwl %cx,%ecx
  cltq
  movzbl (%rsp,%rax,1),%edx
  movzbl (%rsp,%rdi,1),%eax
  shl    $0x10,%edx
  shl    $0x18,%eax
  or     %edx,%ecx
  or     %eax,%ecx
  lea    0x2(%rsi),%eax
  mov    %ecx,-0x4(%r9,%r8,1)
  add    $0x4,%r8
  cmp    %eax,%ebp
  jg     L49
  add    %r9,%r10
L10:
  movb   $0x0,(%r10)
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L21
  add    $0x58,%rsp
  mov    %r9,%rax
  pop    %rbx
  pop    %rbp
  ret
L39:
  subsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%rdi
  btc    $0x3f,%rdi
  call   <malloc@plt>
  mov    %rax,%r9
  cmp    $0x2,%ebp
  jg     L30
L59:
  mov    %rax,%r10
  jmp    L10
L21:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D19
type: byte[16]
name: extract_symbolic_data
arguments: data_tag: D41
type: byte[8]
name: extract_symbolic_data
arguments: data_tag: D14
type: byte[16]
name: extract_symbolic_data
arguments: data_tag: D65
type: byte[16]
name: extract_symbolic_data
arguments: data_tag: D8
type: byte[16]
name: extract_symbolic_data
arguments: data_tag: D63
type: f64
name: extract_symbolic_data
arguments: data_tag: D26
type: byte[8]

tool: {"D19": [0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f,0x50]}

tool: {"D41": [0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x43]}

tool: {"D14": [0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5a,0x61,0x62,0x63,0x64,0x65,0x66]}

tool: {"D65": [0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76]}

tool: {"D8": [0x77,0x78,0x79,0x7a,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x2b,0x2f]}

tool: D63: 1.5

tool: {"D26": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

assistant: ```c
char *base64toText(uint8_t *input, int input_length) {
  char convert[] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/'};
  char *result = malloc((size_t)(input_length / 1.5 + 1));
  int posInResult = 0;
  int posInInput = 0;
  while (posInInput + 2 < input_length) {
    uint8_t toConvert = input[posInInput] >> 2;
    result[posInResult++] = convert[toConvert];
    toConvert = ((input[posInInput] & 0x3) << 4) + (input[posInInput + 1] >> 4);
    posInInput++;
    result[posInResult++] = convert[toConvert];
    toConvert = ((input[posInInput] & 0xf) << 2) + (input[posInInput + 1] >> 6);
    posInInput++;
    result[posInResult++] = convert[toConvert];
    toConvert = input[posInInput] & 0x3f;
    result[posInResult++] = convert[toConvert];
    posInInput++;
  }
  result[posInResult] = 0x0;
  return result;
}
```