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

```asm
<BSIM4RdsEndIso>:
  endbr64
  sub    $0x38,%rsp
  cmp    $0x1,%esi
  je     L10
  cmp    $0x8,%edi
  ja     L41
  mov    $0x1,%eax
  mov    %edi,%ecx
  shl    %cl,%rax
  test   $0x114,%eax
  jne    L23
  test   $0x8a,%al
  je     L41
L76:
  ucomisd D49(%rip),%xmm5
  jp     L96
  jne    L96
L152:
  movq   $0x0,(%rdx)
  xor    %eax,%eax
  add    $0x38,%rsp
  ret
  nopl   (%rax)
L10:
  cmp    $0x5,%edi
  je     L76
  jg     L74
  cmp    $0x2,%edi
  jle    L145
L23:
  addsd  %xmm2,%xmm3
  pxor   %xmm2,%xmm2
  ucomisd %xmm2,%xmm3
  jp     L0
  je     L25
L0:
  ucomisd %xmm2,%xmm5
  jp     L115
  je     L152
L115:
  mulsd  D10(%rip),%xmm5
  xor    %eax,%eax
  mulsd  %xmm0,%xmm1
  mulsd  %xmm3,%xmm5
  divsd  %xmm5,%xmm1
  movsd  %xmm1,(%rdx)
  add    $0x38,%rsp
  ret
  nopw   0x0(%rax,%rax,1)
L145:
  test   %edi,%edi
  jg     L76
L41:
  mov    %edi,%esi
  xor    %eax,%eax
  lea    D8(%rip),%rdi
  call   <printf@plt>
L108:
  xor    %eax,%eax
  add    $0x38,%rsp
  ret
  nopl   0x0(%rax,%rax,1)
L74:
  cmp    $0x6,%edi
  je     L23
  mov    %edi,%esi
  xor    %eax,%eax
  lea    D8(%rip),%rdi
  call   <printf@plt>
  jmp    L108
  nopw   0x0(%rax,%rax,1)
L96:
  mulsd  %xmm1,%xmm2
  xor    %eax,%eax
  mulsd  %xmm0,%xmm5
  divsd  %xmm5,%xmm2
  movsd  %xmm2,(%rdx)
  add    $0x38,%rsp
  ret
  nopw   0x0(%rax,%rax,1)
L25:
  lea    D31(%rip),%rdi
  mov    %rdx,0x20(%rsp)
  movsd  %xmm2,0x28(%rsp)
  movsd  %xmm5,0x18(%rsp)
  movsd  %xmm1,0x10(%rsp)
  movsd  %xmm0,0x8(%rsp)
  movsd  %xmm3,(%rsp)
  call   <puts@plt>
  movsd  0x28(%rsp),%xmm2
  mov    0x20(%rsp),%rdx
  movsd  0x18(%rsp),%xmm5
  movsd  0x10(%rsp),%xmm1
  movsd  0x8(%rsp),%xmm0
  movsd  (%rsp),%xmm3
  jmp    L0
```

tool_calls: name: read_data
arguments: label: D49
type_infered: f64
name: read_data
arguments: label: D10
type_infered: f64
name: read_data
arguments: label: D8
type_infered: string
name: read_data
arguments: label: D31
type_infered: string

tool: D49: 0

tool: D10: 3

tool: D8: Warning: Specified RGEO = %d not matched


tool: D31: (DMCG + DMCI) can not be equal to zero

assistant: ```c
int BSIM4RdsEndIso(Weffcj, Rsh, DMCG, DMCI, DMDG, nuEnd, rgeo, Type, Rend)
double Weffcj, Rsh, DMCG, DMCI, DMDG;
int rgeo, Type;
double nuEnd, *Rend;
{
  if (Type == 1) {
    switch (rgeo) {
    case 1:
    case 2:
    case 5:
      if (nuEnd == 0.0)
        *Rend = 0.0;
      else
        *Rend = Rsh * DMCG / (Weffcj * nuEnd);
      break;
    case 3:
    case 4:
    case 6:
      if ((DMCG + DMCI) == 0.0)
        printf("(DMCG + DMCI) can not be equal to zero\n");
      if (nuEnd == 0.0)
        *Rend = 0.0;
      else
        *Rend = Rsh * Weffcj / (3.0 * nuEnd * (DMCG + DMCI));
      break;
    default:
      printf("Warning: Specified RGEO = %d not matched\n", rgeo);
    }
  } else {
    switch (rgeo) {
    case 1:
    case 3:
    case 7:
      if (nuEnd == 0.0)
        *Rend = 0.0;
      else
        *Rend = Rsh * DMCG / (Weffcj * nuEnd);
      break;
    case 2:
    case 4:
    case 8:
      if ((DMCG + DMCI) == 0.0)
        printf("(DMCG + DMCI) can not be equal to zero\n");
      if (nuEnd == 0.0)
        *Rend = 0.0;
      else
        *Rend = Rsh * Weffcj / (3.0 * nuEnd * (DMCG + DMCI));
      break;
    default:
      printf("Warning: Specified RGEO = %d not matched\n", rgeo);
    }
  }
  return 0;
}
```