user: Translate the below assembly code into C programming language:

```asm
<BSIM4RdsEndIso>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  movq   %xmm0,%r12
  movq   %xmm1,%rbp
  movq   %xmm5,%rbx
  mov    %rdx,%r13
  cmp    $0x1,%esi
  je     L230
  cmp    $0x8,%edi
  ja     L92
  mov    $0x1,%eax
  mov    %edi,%ecx
  shl    %cl,%rax
  test   $0x114,%eax
  jne    L293
  test   $0x8a,%al
  je     L92
  ucomisd D106(%rip),%xmm5
  jp     L29
  jne    L29
  movq   $0x0,(%rdx)
  jmp    L234
L230:
  cmp    $0x5,%edi
  je     L182
  jg     L178
  cmp    $0x2,%edi
  jg     L70
  test   %edi,%edi
  jg     L182
L10:
  mov    %edi,%esi
  lea    D55(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L234
L178:
  cmp    $0x6,%edi
  jne    L10
L70:
  addsd  %xmm3,%xmm2
  movsd  %xmm2,0x8(%rsp)
  ucomisd D106(%rip),%xmm2
  jp     L109
  je     L54
L109:
  movq   %rbx,%xmm6
  ucomisd D106(%rip),%xmm6
  jp     L154
  jne    L154
  movq   $0x0,0x0(%r13)
  jmp    L234
L182:
  movq   %rbx,%xmm4
  ucomisd D106(%rip),%xmm4
  jp     L184
  jne    L184
  movq   $0x0,0x0(%r13)
  jmp    L234
L184:
  movq   %rbp,%xmm4
  mulsd  %xmm4,%xmm2
  movq   %rbx,%xmm0
  movq   %r12,%xmm6
  mulsd  %xmm6,%xmm0
  divsd  %xmm0,%xmm2
  movsd  %xmm2,0x0(%r13)
  jmp    L234
L54:
  lea    D110(%rip),%rdi
  call   <puts@plt>
  jmp    L109
L154:
  movq   %rbp,%xmm0
  movq   %r12,%xmm4
  mulsd  %xmm4,%xmm0
  movq   %rbx,%xmm1
  mulsd  D115(%rip),%xmm1
  mulsd  0x8(%rsp),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,0x0(%r13)
  jmp    L234
L29:
  movq   %rbp,%xmm7
  mulsd  %xmm7,%xmm2
  movq   %rbx,%xmm0
  movq   %r12,%xmm4
  mulsd  %xmm4,%xmm0
  divsd  %xmm0,%xmm2
  movsd  %xmm2,0x0(%r13)
  jmp    L234
L293:
  addsd  %xmm3,%xmm2
  movsd  %xmm2,0x8(%rsp)
  ucomisd D106(%rip),%xmm2
  jp     L115
  je     L65
L115:
  movq   %rbx,%xmm6
  ucomisd D106(%rip),%xmm6
  jp     L179
  jne    L179
  movq   $0x0,0x0(%r13)
  jmp    L234
L65:
  lea    D110(%rip),%rdi
  call   <puts@plt>
  jmp    L115
L179:
  movq   %rbp,%xmm1
  movq   %r12,%xmm6
  mulsd  %xmm6,%xmm1
  movq   %rbx,%xmm0
  mulsd  D115(%rip),%xmm0
  mulsd  0x8(%rsp),%xmm0
  divsd  %xmm0,%xmm1
  movsd  %xmm1,0x0(%r13)
  jmp    L234
L92:
  mov    %edi,%esi
  lea    D55(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L234:
  mov    $0x0,%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D106
type: f64
name: extract_symbolic_data
arguments: label: D55
type: string
name: extract_symbolic_data
arguments: label: D110
type: string
name: extract_symbolic_data
arguments: label: D115
type: f64

tool: D106: 0

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


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

tool: D115: 3

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;
}
```