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

```asm
<ELossCL>:
  endbr64
  push   %r15
  pxor   %xmm3,%xmm3
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  comisd %xmm1,%xmm3
  movsd  %xmm0,0x18(%rsp)
  movapd %xmm3,%xmm0
  movsd  %xmm2,0x38(%rsp)
  ja     L65
  comisd %xmm2,%xmm3
  jae    L63
  movsd  %xmm1,0x8(%rsp)
  mov    %edi,%ebx
  mov    %rsi,%rbp
  mov    %rdx,%r12
  movsd  0x38(%rsp),%xmm1
  mov    %rcx,%r13
  mov    %r8d,%r15d
  mov    %r9d,%r14d
  movsd  0x18(%rsp),%xmm0
  call   <Range@plt>
  movsd  0x8(%rsp),%xmm4
  pxor   %xmm3,%xmm3
  movapd %xmm0,%xmm2
  subsd  %xmm4,%xmm2
  comisd %xmm2,%xmm3
  movsd  %xmm2,0x8(%rsp)
  jae    L63
  movsd  0x38(%rsp),%xmm7
  mov    %r14d,%r9d
  mov    %r15d,%r8d
  mov    %r13,%rcx
  movsd  D0(%rip),%xmm0
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %ebx,%edi
  movapd %xmm7,%xmm1
  divsd  D39(%rip),%xmm4
  movsd  %xmm4,0x20(%rsp)
  mulsd  %xmm7,%xmm0
  subsd  %xmm0,%xmm1
  movsd  0x18(%rsp),%xmm0
  movsd  %xmm1,0x10(%rsp)
  call   <Range@plt>
  movsd  0x8(%rsp),%xmm2
  pxor   %xmm3,%xmm3
  movsd  0x38(%rsp),%xmm7
  movsd  0x10(%rsp),%xmm1
  movsd  %xmm3,0x30(%rsp)
  subsd  %xmm2,%xmm0
  andpd  D33(%rip),%xmm0
  movsd  %xmm7,0x28(%rsp)
  comisd 0x20(%rsp),%xmm0
  jae    L22
  jmp    L21
  nopl   0x0(%rax)
L49:
  movapd %xmm1,%xmm3
  subsd  0x30(%rsp),%xmm3
  movsd  %xmm1,0x28(%rsp)
  mulsd  D0(%rip),%xmm3
  subsd  %xmm3,%xmm1
L67:
  subsd  %xmm2,%xmm0
  andpd  D33(%rip),%xmm0
  comisd 0x20(%rsp),%xmm0
  jb     L21
L22:
  movsd  0x18(%rsp),%xmm0
  mov    %r14d,%r9d
  mov    %r15d,%r8d
  mov    %r13,%rcx
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %ebx,%edi
  movsd  %xmm2,0x10(%rsp)
  movsd  %xmm1,0x8(%rsp)
  call   <Range@plt>
  movsd  0x10(%rsp),%xmm2
  movsd  0x8(%rsp),%xmm1
  comisd %xmm2,%xmm0
  ja     L49
  comisd %xmm0,%xmm2
  jbe    L21
  movsd  0x28(%rsp),%xmm3
  movsd  %xmm1,0x30(%rsp)
  subsd  %xmm1,%xmm3
  mulsd  D0(%rip),%xmm3
  addsd  %xmm3,%xmm1
  jmp    L67
  xchg   %ax,%ax
L63:
  movsd  0x38(%rsp),%xmm0
L65:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L21:
  movsd  0x38(%rsp),%xmm0
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  subsd  %xmm1,%xmm0
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: disassemble_data
arguments: label: D0
datatype: f64
name: disassemble_data
arguments: label: D39
datatype: f32[2]
name: disassemble_data
arguments: label: D33
datatype: qword[2]

tool: D0: 0.681

tool: {"D39": [0.0,3.390625]}

tool: {"D33": [0x7fffffffffffffff,0x0000000000000000]}

assistant: ```c
double ELossCL(int ZP, double MP, int ZT[], double MT[], double CT[], int NTarEl, int IsGas, double TT, double E) {
  double EIn = 0.0, ELow = 0.0, EUp = 0.0, TTStep = 0.0, R = 0.0, DR = 0.0, FFF1 = 0.681;
  if (TT < 0)
    return 0;
  if (E <= 0)
    return E;
  if ((DR = Range(ZP, MP, ZT, MT, CT, NTarEl, IsGas, E) - TT) <= 0)
    return E;
  EIn = EUp = E;
  E = E - E * FFF1;
  TTStep = TT / 100;
  R = Range(ZP, MP, ZT, MT, CT, NTarEl, IsGas, E);
  while (fabs(R - DR) >= TTStep) {
    R = Range(ZP, MP, ZT, MT, CT, NTarEl, IsGas, E);
    if (R > DR) {
      EUp = E;
      E = EUp - (EUp - ELow) * FFF1;
    } else if (R < DR) {
      ELow = E;
      E = ELow + (EUp - ELow) * FFF1;
    } else
      return (EIn - E);
  };
  return (EIn - E);
}
```