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

```asm
<PAKE_setup>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x80(%rbp)
  mov    %rdx,-0x88(%rbp)
  mov    %rcx,-0x78(%rbp)
  mov    %r8,-0x68(%rbp)
  mov    %r9,-0x70(%rbp)
  mov    0x10(%rbp),%rax
  mov    %rax,-0x48(%rbp)
  mov    0x18(%rbp),%rax
  mov    %rax,-0x50(%rbp)
  mov    0x20(%rbp),%rax
  mov    %rax,-0x90(%rbp)
  mov    0x28(%rbp),%r15
  mov    0x30(%rbp),%rax
  mov    %rax,-0x98(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movb   $0x0,-0x3a(%rbp)
  mov    D0(%rip),%rax
  mov    (%rax),%r14d
  movslq %r14d,%rax
  add    $0xf,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L326:
  cmp    %rdx,%rsp
  je     L156
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L326
L156:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L114
  orq    $0x0,-0x8(%rsp,%rax,1)
L114:
  mov    %rsp,-0x60(%rbp)
  mov    $0x0,%eax
  call   <BN_CTX_new@plt>
  mov    %rax,%r12
  test   %rax,%rax
  je     L41
  mov    %rax,%rdi
  call   <BN_CTX_start@plt>
  mov    $0x0,%eax
  call   <BN_new@plt>
  mov    %rax,%rbx
  mov    $0x0,%eax
  call   <BN_new@plt>
  mov    %rax,%r13
  test   %rbx,%rbx
  je     L324
  test   %rax,%rax
  je     L324
  mov    %r12,%rdx
  mov    %rbx,%rsi
  mov    -0x58(%rbp),%rdi
  call   <EC_GROUP_get_order@plt>
  test   %eax,%eax
  je     L324
  mov    %rbx,%rdi
  call   <BN_num_bits@plt>
  cmp    $0x1c0,%eax
  jg     L324
  lea    -0x39(%rbp),%rdi
  call   <SHA512_Init@plt>
  test   %eax,%eax
  je     L324
  lea    -0x3a(%rbp),%rsi
  lea    -0x39(%rbp),%rdi
  mov    $0x1,%edx
  mov    $0x0,%eax
  call   <SHA512_Update@plt>
  test   %eax,%eax
  je     L324
  mov    -0x68(%rbp),%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%edx
  lea    -0x39(%rbp),%rdi
  mov    -0x68(%rbp),%rsi
  mov    $0x0,%eax
  call   <SHA512_Update@plt>
  test   %eax,%eax
  je     L324
  mov    -0x70(%rbp),%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%edx
  lea    -0x39(%rbp),%rdi
  mov    -0x70(%rbp),%rsi
  mov    $0x0,%eax
  call   <SHA512_Update@plt>
  test   %eax,%eax
  je     L324
  mov    -0x78(%rbp),%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%edx
  lea    -0x39(%rbp),%rdi
  mov    -0x78(%rbp),%rsi
  mov    $0x0,%eax
  call   <SHA512_Update@plt>
  test   %eax,%eax
  je     L324
  lea    -0x39(%rbp),%rsi
  mov    -0x60(%rbp),%rdi
  call   <SHA512_Final@plt>
  test   %eax,%eax
  je     L324
  mov    %r13,%rdx
  mov    %r14d,%esi
  mov    -0x60(%rbp),%rdi
  call   <BN_bin2bn@plt>
  test   %eax,%eax
  je     L324
  mov    %r12,%rcx
  mov    %rbx,%rdx
  mov    %r13,%rsi
  mov    -0x48(%rbp),%rdi
  call   <BN_nnmod@plt>
  test   %eax,%eax
  je     L324
  movb   $0x1,-0x3a(%rbp)
  lea    -0x39(%rbp),%rdi
  call   <SHA512_Init@plt>
  test   %eax,%eax
  je     L324
  lea    -0x3a(%rbp),%rsi
  lea    -0x39(%rbp),%rdi
  mov    $0x1,%edx
  mov    $0x0,%eax
  call   <SHA512_Update@plt>
  test   %eax,%eax
  je     L324
  mov    -0x68(%rbp),%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%edx
  lea    -0x39(%rbp),%rdi
  mov    -0x68(%rbp),%rsi
  mov    $0x0,%eax
  call   <SHA512_Update@plt>
  test   %eax,%eax
  je     L324
  mov    -0x70(%rbp),%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%edx
  lea    -0x39(%rbp),%rdi
  mov    -0x70(%rbp),%rsi
  mov    $0x0,%eax
  call   <SHA512_Update@plt>
  test   %eax,%eax
  je     L324
  mov    -0x78(%rbp),%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%edx
  lea    -0x39(%rbp),%rdi
  mov    -0x78(%rbp),%rsi
  mov    $0x0,%eax
  call   <SHA512_Update@plt>
  test   %eax,%eax
  je     L324
  lea    -0x39(%rbp),%rsi
  mov    -0x60(%rbp),%rdi
  call   <SHA512_Final@plt>
  test   %eax,%eax
  je     L324
  mov    %r13,%rdx
  mov    %r14d,%esi
  mov    -0x60(%rbp),%rdi
  call   <BN_bin2bn@plt>
  test   %eax,%eax
  je     L324
  mov    %r12,%rcx
  mov    %rbx,%rdx
  mov    %r13,%rsi
  mov    -0x50(%rbp),%rdi
  call   <BN_nnmod@plt>
  test   %eax,%eax
  je     L324
  mov    -0x98(%rbp),%rax
  test   %rax,%rax
  je     L234
  mov    %r12,%r9
  mov    -0x48(%rbp),%r8
  mov    -0x88(%rbp),%rcx
  mov    $0x0,%edx
  mov    %rax,%rsi
  mov    -0x58(%rbp),%rdi
  call   <EC_POINT_mul@plt>
  test   %eax,%eax
  je     L324
L234:
  test   %r15,%r15
  je     L273
  mov    %r12,%r9
  mov    -0x48(%rbp),%r8
  mov    -0x80(%rbp),%rcx
  mov    $0x0,%edx
  mov    %r15,%rsi
  mov    -0x58(%rbp),%rdi
  call   <EC_POINT_mul@plt>
  test   %eax,%eax
  je     L324
  mov    %r12,%rdx
  mov    %r15,%rsi
  mov    -0x58(%rbp),%rdi
  call   <EC_POINT_invert@plt>
  test   %eax,%eax
  je     L324
L273:
  mov    -0x90(%rbp),%rax
  test   %rax,%rax
  je     L54
  mov    %r12,%r9
  mov    $0x0,%r8d
  mov    $0x0,%ecx
  mov    -0x50(%rbp),%rdx
  mov    %rax,%rsi
  mov    -0x58(%rbp),%rdi
  call   <EC_POINT_mul@plt>
  test   %eax,%eax
  setne  %r15b
  movzbl %r15b,%r15d
  je     L309
L161:
  mov    %r14d,%esi
  mov    -0x60(%rbp),%rdi
  call   <bzero@plt>
  lea    -0x39(%rbp),%rdi
  mov    $0x1,%esi
  call   <bzero@plt>
  jmp    L260
L41:
  mov    %rax,%r13
  mov    %rax,%rbx
L324:
  mov    $0x0,%r15d
L309:
  mov    -0x48(%rbp),%rdi
  call   <BN_clear@plt>
  mov    -0x50(%rbp),%rdi
  call   <BN_clear@plt>
  mov    %r14d,%esi
  mov    -0x60(%rbp),%rdi
  call   <bzero@plt>
  lea    -0x39(%rbp),%rdi
  mov    $0x1,%esi
  call   <bzero@plt>
  test   %rbx,%rbx
  je     L106
L260:
  mov    %rbx,%rdi
  call   <BN_free@plt>
L106:
  test   %r13,%r13
  je     L197
  mov    %r13,%rdi
  call   <BN_clear_free@plt>
L197:
  test   %r12,%r12
  je     L18
  mov    %r12,%rdi
  call   <BN_CTX_end@plt>
  mov    %r12,%rdi
  call   <BN_CTX_free@plt>
L18:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L52
  mov    %r15d,%eax
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L54:
  mov    $0x1,%r15d
  jmp    L161
L52:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int PAKE_setup(const EC_GROUP *group, const EC_POINT *U, const EC_POINT *V, const char *password, const char *server_name, const char *client_name, BIGNUM *pi_0, BIGNUM *pi_1, EC_POINT *L, EC_POINT *U_minus_pi_0, EC_POINT *V_pi_0) {
  int ret = 0;
  unsigned char side = 0;
  SHA512_CTX sha;
  unsigned char md[SHA512_DIGEST_LENGTH];
  BIGNUM *order = NULL, *tmp = NULL;
  BN_CTX *ctx = NULL;
  if (!(ctx = BN_CTX_new()))
    goto err;
  BN_CTX_start(ctx);
  order = BN_new();
  tmp = BN_new();
  if (!order || !tmp)
    goto err;
  if (!EC_GROUP_get_order(group, order, ctx))
    goto err;
  if (BN_num_bits(order) > 512 - 64)
    goto err;
  if (!SHA512_Init(&sha))
    goto err;
  if (!SHA512_Update(&sha, &side, 1))
    goto err;
  if (!SHA512_Update(&sha, server_name, 1 + strlen(server_name)))
    goto err;
  if (!SHA512_Update(&sha, client_name, 1 + strlen(client_name)))
    goto err;
  if (!SHA512_Update(&sha, password, 1 + strlen(password)))
    goto err;
  if (!SHA512_Final(md, &sha))
    goto err;
  if (!BN_bin2bn(md, sizeof(md), tmp))
    goto err;
  if (!BN_nnmod(pi_0, tmp, order, ctx))
    goto err;
  side = 1;
  if (!SHA512_Init(&sha))
    goto err;
  if (!SHA512_Update(&sha, &side, 1))
    goto err;
  if (!SHA512_Update(&sha, server_name, 1 + strlen(server_name)))
    goto err;
  if (!SHA512_Update(&sha, client_name, 1 + strlen(client_name)))
    goto err;
  if (!SHA512_Update(&sha, password, 1 + strlen(password)))
    goto err;
  if (!SHA512_Final(md, &sha))
    goto err;
  if (!BN_bin2bn(md, sizeof(md), tmp))
    goto err;
  if (!BN_nnmod(pi_1, tmp, order, ctx))
    goto err;
  if (V_pi_0 && !EC_POINT_mul(group, V_pi_0, NULL, V, pi_0, ctx))
    goto err;
  if (U_minus_pi_0 && (!EC_POINT_mul(group, U_minus_pi_0, NULL, U, pi_0, ctx) || !EC_POINT_invert(group, U_minus_pi_0, ctx)))
    goto err;
  if (L && !EC_POINT_mul(group, L, pi_1, NULL, NULL, ctx))
    goto err;
  ret = 1;
err:
  if (!ret) {
    BN_clear(pi_0);
    BN_clear(pi_1);
  }
  bzero(md, sizeof(md));
  bzero(&sha, sizeof(sha));
  if (order)
    BN_free(order);
  if (tmp)
    BN_clear_free(tmp);
  if (ctx) {
    BN_CTX_end(ctx);
    BN_CTX_free(ctx);
  }
  return ret;
}
```