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

```asm
<_pscien>:
  endbr64
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %edx,%ebp
  push   %rbx
  mov    %esi,%ebx
  lea    0x1(%rbx),%edi
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rdx
  lea    0x14(%rsp),%rsi
  movsd  %xmm0,0x8(%rsp)
  call   <_ecvt@plt>
  mov    0x10(%rsp),%ecx
  movsd  0x8(%rsp),%xmm0
  lea    0x1(%r12),%rdx
  test   %ecx,%ecx
  je     L172
  movb   $0x2d,(%r12)
L86:
  lea    0x1(%rax),%rcx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  test   %ebx,%ebx
  jle    L38
L152:
  lea    -0x1(%rbx),%eax
  lea    0x2(%rdx),%rdi
  movb   $0x2e,0x1(%rdx)
  lea    0x3(%rdx,%rax,1),%rsi
  mov    %rdi,%rax
  jmp    L182
  nopl   (%rax)
L174:
  mov    %dl,-0x1(%rax)
  add    $0x1,%rcx
  cmp    %rax,%rsi
  je     L114
L182:
  movzbl (%rcx),%edx
  add    $0x1,%rax
  test   %dl,%dl
  jne    L174
  mov    $0x30,%edx
  mov    %dl,-0x1(%rax)
  cmp    %rax,%rsi
  jne    L182
L114:
  lea    (%rdi,%rbx,1),%rcx
L102:
  ucomisd D1(%rip),%xmm0
  mov    0x14(%rsp),%edx
  movb   $0x65,(%rcx)
  jp     L76
  jne    L76
  lea    0x2(%rcx),%rax
  test   %edx,%edx
  js     L183
L97:
  movb   $0x2b,0x1(%rcx)
L202:
  cmp    $0x63,%edx
  jle    L50
  mov    %edx,%esi
  lea    0x3(%rcx),%rax
  imul   $0x51eb851f,%rsi,%rsi
  shr    $0x25,%rsi
  lea    0x30(%rsi),%edi
  imul   $0x64,%esi,%esi
  mov    %dil,0x2(%rcx)
  sub    %esi,%edx
L50:
  mov    %edx,%ecx
  mov    $0xcccccccd,%esi
  add    $0x2,%rax
  imul   %rsi,%rcx
  shr    $0x23,%rcx
  lea    0x30(%rcx),%esi
  lea    (%rcx,%rcx,4),%ecx
  add    %ecx,%ecx
  mov    %sil,-0x2(%rax)
  sub    %ecx,%edx
  add    $0x30,%edx
  mov    %dl,-0x1(%rax)
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L111
  add    $0x20,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   (%rax)
L76:
  sub    $0x1,%edx
  lea    0x2(%rcx),%rax
  test   %edx,%edx
  jns    L97
L183:
  movb   $0x2d,0x1(%rcx)
  neg    %edx
  jmp    L202
  nopl   0x0(%rax,%rax,1)
L172:
  test   $0x2,%bpl
  je     L65
  movb   $0x2b,(%r12)
  lea    0x1(%rax),%rcx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  test   %ebx,%ebx
  jg     L152
L38:
  and    $0x8,%ebp
  je     L13
  movb   $0x2e,0x1(%rdx)
  lea    0x2(%rdx),%rcx
  jmp    L102
  cs nopw 0x0(%rax,%rax,1)
L65:
  test   $0x4,%bpl
  je     L75
  movb   $0x20,(%r12)
  jmp    L86
L13:
  lea    0x1(%rdx),%rcx
  jmp    L102
  nopl   0x0(%rax)
L75:
  mov    %r12,%rdx
  jmp    L86
L111:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D1
type: byte[8]

tool: {"D1": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

assistant: ```c
char *_pscien(double r, register char *s, int n, int flags) {
  int sign, dp;
  register char *s1;
  s1 = _ecvt(r, n + 1, &dp, &sign);
  if (sign)
    *s++ = '-';
  else if (flags & 0x0002)
    *s++ = '+';
  else if (flags & 0x0004)
    *s++ = ' ';
  *s++ = *s1++;
  if ((n > 0) || (flags & 0x0008))
    *s++ = '.';
  while (--n >= 0)
    if (*s1)
      *s++ = *s1++;
    else
      *s++ = '0';
  *s++ = 'e';
  if (r != 0)
    --dp;
  if (dp < 0) {
    *s++ = '-';
    dp = -dp;
  } else {
    *s++ = '+';
  }
  if (dp >= 100) {
    *s++ = '0' + (dp / 100);
    dp %= 100;
  }
  *s++ = '0' + (dp / 10);
  *s++ = '0' + (dp % 10);
  return s;
}
```