user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<hypotl>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  fldt   0x60(%rsp)
  fld    %st(0)
  fstpt  0x10(%rsp)
  fldt   0x70(%rsp)
  fld    %st(0)
  fstpt  0x20(%rsp)
  fxch   %st(1)
  fabs
  fstpt  (%rsp)
  mov    (%rsp),%r12
  mov    0x8(%rsp),%r13d
  fabs
  fstpt  (%rsp)
  push   %r13
  push   %r12
  call   <isfinite@plt>
  pop    %rdx
  pop    %rcx
  test   %eax,%eax
  je     L0
  push   0x8(%rsp)
  push   0x8(%rsp)
  call   <isfinite@plt>
  pop    %r11
  pop    %rbx
  test   %eax,%eax
  je     L0
  fldz
  fldt   0x10(%rsp)
  fucomip %st(1),%st
  fstp   %st(0)
  jp     L41
  je     L130
L41:
  fldz
  fldt   0x20(%rsp)
  fucomip %st(1),%st
  fstp   %st(0)
  jp     L117
  jne    L117
L89:
  mov    %r12,(%rsp)
  mov    %r13d,0x8(%rsp)
  fldt   (%rsp)
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   (%rax)
L0:
  push   %r13
  push   %r12
  call   <isinf@plt>
  pop    %rbp
  pop    %r12
  test   %rax,%rax
  je     L104
L160:
  mov    D31(%rip),%rax
  fldt   (%rax)
  fstpt  (%rsp)
L130:
  fldt   (%rsp)
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax,%rax,1)
L104:
  push   0x8(%rsp)
  push   0x8(%rsp)
  call   <isinf@plt>
  pop    %r9
  pop    %r10
  test   %rax,%rax
  jne    L160
  mov    D56(%rip),%rax
  fldt   (%rax)
  fstpt  (%rsp)
  jmp    L130
  nopl   0x0(%rax)
L117:
  push   %r13
  push   %r12
  call   <logbl@plt>
  push   0x18(%rsp)
  push   0x18(%rsp)
  mov    %eax,%ebx
  call   <logbl@plt>
  mov    %ebx,%edx
  add    $0x20,%rsp
  sub    %eax,%edx
  cmp    $0x20,%edx
  jg     L89
  cmp    $0xffffffe0,%edx
  jl     L130
  add    %eax,%ebx
  push   %r13
  sar    %ebx
  push   %r12
  mov    %ebx,%ebp
  neg    %ebp
  mov    %ebp,%edi
  call   <scalbnl@plt>
  mov    %ebp,%edi
  fstpt  0x20(%rsp)
  push   0x18(%rsp)
  push   0x18(%rsp)
  call   <scalbnl@plt>
  fldt   0x30(%rsp)
  add    $0x20,%rsp
  fmul   %st(0),%st
  fxch   %st(1)
  fmul   %st(0),%st
  faddp  %st,%st(1)
  fldz
  fucomip %st(1),%st
  ja     L155
  fsqrt
L7:
  sub    $0x10,%rsp
  fld    %st(0)
  fstpt  (%rsp)
  fstpt  0x10(%rsp)
  call   <logbl@plt>
  pop    %rdx
  mov    D55(%rip),%rdx
  add    %ebx,%eax
  pop    %rcx
  fldt   (%rsp)
  cmp    %eax,(%rdx)
  jl     L1
  mov    D15(%rip),%rdx
  cmp    %eax,(%rdx)
  jg     L131
  fstpt  0x60(%rsp)
  add    $0x38,%rsp
  mov    %ebx,%edi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  jmp    10c0 <scalbnl@plt>
  nopl   0x0(%rax)
L1:
  fstp   %st(0)
  mov    D1(%rip),%rax
  mov    (%rax),%edx
  mov    D17(%rip),%rax
  mov    %edx,(%rax)
  mov    D31(%rip),%rax
  fldt   (%rax)
  fstpt  (%rsp)
  jmp    L130
  nopl   (%rax)
L131:
  fstp   %st(0)
  fldz
  fstpt  (%rsp)
  jmp    L130
L155:
  push   %rsi
  push   %rsi
  fstpt  (%rsp)
  call   <sqrtl@plt>
  pop    %rdi
  pop    %r8
  jmp    L7
```

assistant: ```c
long double hypotl(long double x, long double y) {
  int exx;
  int eyy;
  int scale;
  long double xx = fabsl(x);
  long double yy = fabsl(y);
  if (!isfinite(xx) || !isfinite(yy)) {
    return (isinf(xx) || isinf(yy)) ? INFINITY : NAN;
  }
  if (xx == 0.0L)
    return yy;
  if (yy == 0.0L)
    return xx;
  exx = logbl(xx);
  eyy = logbl(yy);
  scale = exx - eyy;
  if (scale > 32)
    return xx;
  if (scale < -32)
    return yy;
  scale = (exx + eyy) >> 1;
  x = scalbnl(xx, -scale);
  y = scalbnl(yy, -scale);
  xx = sqrtl(x * x + y * y);
  exx = logbl(xx);
  exx += scale;
  if (exx > LDBL_MAX_EXP) {
    errno = ERANGE;
    return INFINITY;
  }
  if (exx < LDBL_MIN_EXP)
    return 0.0L;
  return (scalbnl(xx, scale));
}
```