user: 请将以下的汇编代码转换成C语言代码:

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

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

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