user: 请从给定的汇编指令推导出C源代码:

```asm
<mul_int_string>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    %edi,%ebp
  mov    %rsi,%rbx
  mov    %rdx,%r13
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %rsi,%rdi
  call   <strlen@plt>
  mov    %eax,%r14d
  lea    0x1(%rax),%edi
  mov    $0x1,%esi
  call   <calloc@plt>
  mov    %rax,%r12
  mov    %r14d,%edx
  mov    %rbx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    $0x2,%edx
  lea    D0(%rip),%rsi
  mov    0x0(%r13),%rdi
  call   <strncpy@plt>
  lea    D0(%rip),%r14
  jmp    L52
L25:
  mov    0x0(%r13),%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%edi
  mov    $0x1,%esi
  call   <calloc@plt>
  mov    %rax,%rbx
  mov    0x0(%r13),%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%edx
  mov    0x0(%r13),%rsi
  mov    %rbx,%rdi
  call   <strncpy@plt>
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <add_digit_strings@plt>
  mov    %rbx,%rdi
  call   <free@plt>
L48:
  mov    %r12,%rdi
  call   <strlen@plt>
  lea    0x2(%rax),%esi
  mov    %r12,%rdi
  call   <realloc@plt>
  mov    %rax,%r12
  mov    %r14,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  movslq %ebp,%rax
  imul   $0x66666667,%rax,%rax
  sar    $0x22,%rax
  sar    $0x1f,%ebp
  sub    %ebp,%eax
  mov    %eax,%ebp
  je     L36
L52:
  movslq %ebp,%rbx
  imul   $0x66666667,%rbx,%rbx
  sar    $0x22,%rbx
  mov    %ebp,%eax
  sar    $0x1f,%eax
  sub    %eax,%ebx
  lea    (%rbx,%rbx,4),%eax
  add    %eax,%eax
  mov    %ebp,%ebx
  sub    %eax,%ebx
  mov    %r12,%rdi
  call   <strlen@plt>
  test   %ebx,%ebx
  je     L48
  cmp    $0x1,%ebx
  je     L25
  lea    0x2(%rax),%edi
  mov    $0x1,%esi
  call   <calloc@plt>
  mov    %rax,(%rsp)
  mov    %rsp,%rdx
  mov    %r12,%rsi
  mov    %ebx,%edi
  call   <mul_digit_string@plt>
  test   %eax,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    0x0(%r13),%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%edi
  mov    $0x1,%esi
  call   <calloc@plt>
  mov    %rax,%rbx
  mov    0x0(%r13),%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%edx
  mov    0x0(%r13),%rsi
  mov    %rbx,%rdi
  call   <strncpy@plt>
  mov    %r13,%rdx
  mov    (%rsp),%rsi
  mov    %rbx,%rdi
  call   <add_digit_strings@plt>
  mov    %rbx,%rdi
  call   <free@plt>
  mov    (%rsp),%rdi
  call   <free@plt>
  jmp    L48
L36:
  mov    %r12,%rdi
  call   <free@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  mov    $0x0,%eax
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D0
type_infered: string

tool: D0: 0

assistant: ```c
int mul_int_string(int alpha, const char *in_string, char **out_string_ptr) {
  int in_length = strlen(in_string);
  char *in_copy = calloc(in_length + 1, sizeof(char));
  strncpy(in_copy, in_string, in_length);
  strncpy(*out_string_ptr, "0", 2);
  do {
    int modulo = alpha % 10;
    int in_copy_len = strlen(in_copy);
    if (modulo) {
      if (modulo == 1) {
        char *out_current = (char *)calloc(strlen(*out_string_ptr) + 1, sizeof(char));
        strncpy(out_current, *out_string_ptr, strlen(*out_string_ptr) + 1);
        add_digit_strings(out_current, in_copy, out_string_ptr);
        free(out_current);
      } else {
        char *row = (char *)calloc(in_copy_len + 2, sizeof(char));
        int mds_ret = mul_digit_string(modulo, in_copy, &row);
        assert(mds_ret == 0);
        char *out_current = (char *)calloc(strlen(*out_string_ptr) + 1, sizeof(char));
        strncpy(out_current, *out_string_ptr, strlen(*out_string_ptr) + 1);
        add_digit_strings(out_current, row, out_string_ptr);
        free(out_current);
        free(row);
      }
    }
    in_copy = realloc(in_copy, strlen(in_copy) + 2);
    strcat(in_copy, "0");
  } while ((alpha = alpha / 10));
  free(in_copy);
  return 0;
}
```