user: What is the c source code of the assembly code below?

```asm
<isAdditiveNumber>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x2c(%rbp)
  movl   $0x0,-0x28(%rbp)
  movq   $0x0,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x40(%rbp)
  jmp    L13
L30:
  mov    -0x40(%rbp),%eax
  add    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x40(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x48(%rbp),%rcx
  mov    -0x8(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x40(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x3c(%rbp)
  jmp    L15
L38:
  mov    -0x3c(%rbp),%eax
  sub    -0x40(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x20(%rbp)
  mov    -0x3c(%rbp),%eax
  sub    -0x40(%rbp),%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x1(%rax),%rcx
  mov    -0x48(%rbp),%rax
  add    %rax,%rcx
  mov    -0x20(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    -0x3c(%rbp),%eax
  sub    -0x40(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x3c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x8(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  movl   $0x0,-0x30(%rbp)
L88:
  mov    -0x20(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <add_two_number@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x24(%rbp)
  mov    -0x18(%rbp),%rax
  cmp    -0x8(%rbp),%rax
  je     L16
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
L16:
  mov    -0x20(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x10(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  je     L102
  mov    -0x2c(%rbp),%eax
  sub    -0x34(%rbp),%eax
  cmp    %eax,-0x24(%rbp)
  jg     L102
  movl   $0x0,-0x38(%rbp)
  jmp    L52
L97:
  addl   $0x1,-0x38(%rbp)
L52:
  mov    -0x38(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jge    L157
  mov    -0x38(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x34(%rbp),%ecx
  mov    -0x38(%rbp),%eax
  add    %ecx,%eax
  movslq %eax,%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  je     L97
L157:
  mov    -0x38(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L152
  movl   $0x1,-0x30(%rbp)
  mov    -0x24(%rbp),%eax
  add    %eax,-0x34(%rbp)
  mov    -0x34(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L88
  jmp    L102
L152:
  nop
L102:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  cmpl   $0x0,-0x30(%rbp)
  je     L9
  mov    -0x34(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jne    L9
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x1,%eax
  jmp    L116
L9:
  addl   $0x1,-0x3c(%rbp)
L15:
  mov    -0x2c(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x3c(%rbp),%eax
  sub    -0x40(%rbp),%eax
  cmp    %eax,%edx
  jg     L38
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  addl   $0x1,-0x40(%rbp)
L13:
  mov    -0x2c(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  cmp    %eax,-0x40(%rbp)
  jl     L30
  mov    $0x0,%eax
L116:
  leave
  ret
```

assistant: ```c
bool isAdditiveNumber(char *num) {
  int len = strlen(num);
  int len_sum;
  int i, j, k, h;
  bool ret = false;
  char *first, *second, *sum;
  first = second = sum = NULL;
  for (i = 0; i < len / 2; i++) {
    first = (char *)malloc(i + 1 + 1);
    strncpy(first, num, i + 1);
    first[i + 1] = '\0';
    for (j = i + 1; j - i <= len - j - 1; j++) {
      second = (char *)malloc(j - i + 1);
      strncpy(second, num + i + 1, j - i);
      second[j - i] = '\0';
      h = j + 1;
      char *first2 = first;
      bool flag = false;
      ;
      do {
        sum = add_two_number(first2, second);
        len_sum = strlen(sum);
        if (first2 != first)
          free(first2);
        first2 = second;
        second = sum;
        if (sum[0] == '0' || len_sum > len - h)
          break;
        for (k = 0; k < len_sum && sum[k] == num[h + k]; k++)
          ;
        if (k < len_sum)
          break;
        flag = true;
        h = h + len_sum;
      } while (h < len);
      free(first2);
      free(second);
      if (flag && h == len) {
        free(first);
        return true;
      }
    }
    free(first);
  }
  return false;
}
```