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

```asm
<SCE_String_Strof>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %edi,%r14d
  movsd  %xmm0,(%rsp)
  cvttsd2si %xmm0,%edi
  call   <SCE_String_lenof@plt>
  mov    %eax,%ebx
  movsd  (%rsp),%xmm4
  cvttsd2si %xmm4,%rax
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  subsd  %xmm0,%xmm4
  movsd  %xmm4,0x8(%rsp)
  mov    $0x20,%edx
  mov    $0x0,%esi
  lea    D105(%rip),%rdi
  call   <memset@plt>
  movsd  0x8(%rsp),%xmm4
  ucomisd D9(%rip),%xmm4
  jp     L110
  jne    L110
  pxor   %xmm0,%xmm0
  movsd  (%rsp),%xmm5
  mov    $0x0,%ebp
  comisd %xmm5,%xmm0
  ja     L158
L46:
  cmp    %ebp,%ebx
  jbe    L167
  sub    $0x1,%ebx
  sub    %ebp,%ebx
  mov    %ebp,%ebp
  lea    D105(%rip),%rax
  add    %rax,%rbp
L140:
  mov    %ebx,%esi
  mov    $0xa,%edi
  call   <SCE_Math_Powi@plt>
  mov    %eax,%edx
  pxor   %xmm1,%xmm1
  cvtsi2sd %rdx,%xmm1
  movsd  (%rsp),%xmm2
  movapd %xmm2,%xmm0
  divsd  %xmm1,%xmm0
  movsd  D136(%rip),%xmm1
  addsd  %xmm0,%xmm1
  cvttsd2si %xmm1,%edx
  mov    %dl,0x0(%rbp)
  cvttsd2si %xmm0,%edx
  imul   %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  subsd  %xmm0,%xmm2
  movsd  %xmm2,(%rsp)
  sub    $0x1,%ebx
  add    $0x1,%rbp
  cmp    $0xffffffff,%ebx
  jne    L140
L167:
  lea    D105(%rip),%rax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L110:
  mov    %r14d,%esi
  mov    $0xa,%edi
  call   <SCE_Math_Powi@plt>
  mov    %eax,%ebp
  lea    0x1(%r14),%r12d
  mov    %r12d,%esi
  mov    $0xa,%edi
  call   <SCE_Math_Powi@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  0x8(%rsp),%xmm0
  cvttsd2si %xmm0,%r13d
  mov    %r12d,%esi
  mov    $0xa,%edi
  call   <SCE_Math_Powi@plt>
  lea    0x5(%r13),%edx
  cmp    %eax,%edx
  jl     L26
  movsd  (%rsp),%xmm7
  addsd  D17(%rip),%xmm7
  movsd  %xmm7,(%rsp)
  mov    $0x0,%ebp
L35:
  mov    %ebp,%edi
  call   <SCE_String_lenof@plt>
  mov    %eax,%r15d
  pxor   %xmm0,%xmm0
  movsd  (%rsp),%xmm6
  mov    $0x0,%r13d
  comisd %xmm6,%xmm0
  ja     L104
L21:
  cmp    %r13d,%ebx
  jbe    L12
  lea    -0x1(%rbx),%r12d
  sub    %r13d,%r12d
  mov    %r13d,%r13d
  lea    D105(%rip),%rax
  add    %rax,%r13
L156:
  mov    %r12d,%esi
  mov    $0xa,%edi
  call   <SCE_Math_Powi@plt>
  mov    %eax,%edx
  pxor   %xmm1,%xmm1
  cvtsi2sd %rdx,%xmm1
  movsd  (%rsp),%xmm3
  movapd %xmm3,%xmm0
  divsd  %xmm1,%xmm0
  movsd  D136(%rip),%xmm1
  addsd  %xmm0,%xmm1
  cvttsd2si %xmm1,%edx
  mov    %dl,0x0(%r13)
  cvttsd2si %xmm0,%edx
  imul   %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  subsd  %xmm0,%xmm3
  movsd  %xmm3,(%rsp)
  sub    $0x1,%r12d
  add    $0x1,%r13
  cmp    $0xffffffff,%r12d
  jne    L156
  mov    %ebx,%r13d
L12:
  mov    %r13d,%eax
  lea    D105(%rip),%rdx
  movb   $0x2e,(%rdx,%rax,1)
  lea    0x1(%r13),%r12d
  cmp    %r15d,%r14d
  jbe    L98
  mov    %r14d,%edi
  sub    %r15d,%edi
  lea    0x1(%r13,%rdi,1),%esi
  mov    %r12d,%eax
  mov    %rdx,%rcx
L3:
  mov    %eax,%edx
  movb   $0x30,(%rcx,%rdx,1)
  add    $0x1,%eax
  cmp    %esi,%eax
  jne    L3
  add    %edi,%r12d
  mov    %r14d,%r15d
L98:
  lea    0x1(%rbx,%r15,1),%eax
  cmp    %eax,%r12d
  jae    L167
  add    %r15d,%ebx
  sub    %r12d,%ebx
  mov    %r12d,%r12d
  lea    D105(%rip),%rax
  add    %rax,%r12
L96:
  mov    %ebx,%esi
  mov    $0xa,%edi
  call   <SCE_Math_Powi@plt>
  mov    %eax,%ecx
  mov    %ebp,%eax
  mov    $0x0,%edx
  div    %ecx
  add    $0x30,%eax
  mov    %al,(%r12)
  mov    %edx,%ebp
  sub    $0x1,%ebx
  add    $0x1,%r12
  cmp    $0xffffffff,%ebx
  jne    L96
  jmp    L167
L26:
  pxor   %xmm0,%xmm0
  cvtsi2sd %ebp,%xmm0
  mulsd  0x8(%rsp),%xmm0
  cvttsd2si %xmm0,%ebp
  imul   $0xfffffff6,%ebp,%eax
  add    %r13d,%eax
  cmp    $0x4,%eax
  setg   %al
  movzbl %al,%eax
  add    %eax,%ebp
  jmp    L35
L104:
  movb   $0x2d,D105(%rip)
  xorpd  D6(%rip),%xmm6
  movsd  %xmm6,(%rsp)
  mov    $0x1,%r13d
  jmp    L21
L158:
  movb   $0x2d,D105(%rip)
  xorpd  D6(%rip),%xmm5
  movsd  %xmm5,(%rsp)
  mov    $0x1,%ebp
  jmp    L46
```

tool_calls: name: parse_data
arguments: tag: D9
type_infered: f64
name: parse_data
arguments: tag: D136
type_infered: byte[8]
name: parse_data
arguments: tag: D17
type_infered: byte[8]
name: parse_data
arguments: tag: D6
type_infered: byte[16]

tool: D9: 0

tool: {"D136": [0x00,0x00,0x00,0x00,0x00,0x00,0x48,0x40]}

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

tool: {"D6": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

assistant: ```c
const char *SCE_String_Strof(double arg, unsigned int nd) {
  static char str[32] = {0};
  double vf = 0.0;
  int dec = 0;
  int dec1 = 0;
  unsigned int i = 0, j = 0;
  unsigned int lenof_arg = 0, lenof_dec = 0;
  unsigned int div = 0;
  lenof_arg = SCE_String_lenof(arg);
  vf = arg - (long)arg;
  memset(str, '\0', sizeof str);
  if (vf != 0.0) {
    dec = vf * SCE_Math_Powi(10, nd);
    dec1 = vf * SCE_Math_Powi(10, nd + 1);
    if (dec1 + 5 >= SCE_Math_Powi(10, nd + 1)) {
      arg++;
      dec = 0;
    } else {
      if (dec1 - (dec * 10) >= 5)
        dec++;
    }
    lenof_dec = SCE_String_lenof(dec);
    if (arg < 0) {
      str[0] = '-';
      arg = -arg;
      i++;
    }
    while (i < lenof_arg) {
      div = SCE_Math_Powi(10, lenof_arg - i - 1);
      str[i] = (arg / div) + '0';
      i++;
      arg = arg - ((int)(arg / div) * div);
    }
    str[i] = '.';
    i++;
    if (lenof_dec < nd) {
      for (j = 0; j < nd - lenof_dec; j++, i++)
        str[i] = '0';
      lenof_dec = nd;
    }
    while (i < lenof_arg + lenof_dec + 1) {
      div = SCE_Math_Powi(10, lenof_dec - i + lenof_arg);
      str[i] = (dec / div) + '0';
      i++;
      dec = dec - ((int)(dec / div) * div);
    }
  } else {
    if (arg < 0) {
      str[0] = '-';
      arg = -arg;
      i++;
    }
    while (i < lenof_arg) {
      div = SCE_Math_Powi(10, lenof_arg - i - 1);
      str[i] = (arg / div) + '0';
      i++;
      arg = arg - ((int)(arg / div) * div);
    }
  }
  return str;
}
```