user: 这段汇编代码用C语言表示是什么样的：

```asm
<tng_compress_uncompress_pos_gen>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %rdx,-0x68(%rbp)
  mov    %rcx,-0x70(%rbp)
  mov    %r8,-0x78(%rbp)
  mov    %r9,-0x80(%rbp)
  movl   $0x0,-0x44(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movl   $0x0,-0x48(%rbp)
  mov    -0x44(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <readbufferfix@plt>
  mov    %eax,-0x40(%rbp)
  addl   $0x4,-0x44(%rbp)
  cmpl   $0x50474e54,-0x40(%rbp)
  je     L480
  movl   $0x1,-0x48(%rbp)
  jmp    L115
L480:
  mov    -0x44(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <readbufferfix@plt>
  mov    %eax,-0x3c(%rbp)
  addl   $0x4,-0x44(%rbp)
  mov    -0x44(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <readbufferfix@plt>
  mov    %eax,-0x38(%rbp)
  addl   $0x4,-0x44(%rbp)
  mov    -0x44(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <readbufferfix@plt>
  mov    %eax,-0x34(%rbp)
  addl   $0x4,-0x44(%rbp)
  mov    -0x44(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <readbufferfix@plt>
  mov    %eax,-0x30(%rbp)
  addl   $0x4,-0x44(%rbp)
  mov    -0x44(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <readbufferfix@plt>
  mov    %eax,-0x2c(%rbp)
  addl   $0x4,-0x44(%rbp)
  mov    -0x44(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <readbufferfix@plt>
  mov    %eax,-0x28(%rbp)
  addl   $0x4,-0x44(%rbp)
  mov    -0x44(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <readbufferfix@plt>
  mov    -0x80(%rbp),%rdx
  mov    %rax,(%rdx)
  addl   $0x4,-0x44(%rbp)
  mov    -0x44(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <readbufferfix@plt>
  mov    -0x78(%rbp),%rdx
  mov    %rax,(%rdx)
  addl   $0x4,-0x44(%rbp)
  mov    -0x3c(%rbp),%eax
  imul   -0x38(%rbp),%eax
  mov    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x20(%rbp)
  mov    -0x44(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <readbufferfix@plt>
  mov    %eax,-0x24(%rbp)
  addl   $0x4,-0x44(%rbp)
  mov    $0x0,%eax
  call   <Ptngc_coder_init@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x3c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  lea    (%rax,%rdx,1),%ecx
  mov    -0x44(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x30(%rbp),%r9d
  mov    -0x34(%rbp),%r8d
  mov    -0x20(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  sub    $0x8,%rsp
  mov    -0x3c(%rbp),%edi
  push   %rdi
  mov    %rax,%rdi
  call   <Ptngc_unpack_array@plt>
  add    $0x10,%rsp
  mov    %eax,-0x48(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <Ptngc_coder_deinit@plt>
  cmpl   $0x0,-0x48(%rbp)
  jne    L87
  mov    -0x24(%rbp),%eax
  add    %eax,-0x44(%rbp)
  cmpl   $0x5,-0x34(%rbp)
  je     L260
  cmpl   $0x7,-0x34(%rbp)
  je     L260
  cmpl   $0xa,-0x34(%rbp)
  jne    L361
L260:
  cmpq   $0x0,-0x60(%rbp)
  je     L242
  mov    -0x80(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x78(%rbp),%rax
  mov    (%rax),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <Ptngc_i32x2_to_d@plt>
  mov    %rax,%rdx
  mov    -0x20(%rbp),%rcx
  mov    -0x3c(%rbp),%esi
  mov    -0x60(%rbp),%rax
  mov    %rcx,%r8
  mov    %rdx,%rcx
  mov    $0x1,%edx
  mov    %rax,%rdi
  call   <unquantize@plt>
  jmp    L478
L242:
  cmpq   $0x0,-0x68(%rbp)
  je     L15
  mov    -0x80(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x78(%rbp),%rax
  mov    (%rax),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <Ptngc_i32x2_to_d@plt>
  pxor   %xmm1,%xmm1
  cvtsi2ss %rax,%xmm1
  movd   %xmm1,%edx
  mov    -0x20(%rbp),%rcx
  mov    -0x3c(%rbp),%esi
  mov    -0x68(%rbp),%rax
  movd   %edx,%xmm0
  mov    $0x1,%edx
  mov    %rax,%rdi
  call   <unquantize_float@plt>
  jmp    L478
L15:
  cmpq   $0x0,-0x70(%rbp)
  je     L478
  mov    -0x3c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rcx
  mov    -0x70(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  jmp    L478
L361:
  cmpl   $0x3,-0x34(%rbp)
  je     L39
  cmpl   $0x9,-0x34(%rbp)
  jne    L197
L39:
  cmpq   $0x0,-0x60(%rbp)
  je     L304
  mov    -0x80(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x78(%rbp),%rax
  mov    (%rax),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <Ptngc_i32x2_to_d@plt>
  mov    %rax,%rdx
  mov    -0x20(%rbp),%rcx
  mov    -0x3c(%rbp),%esi
  mov    -0x60(%rbp),%rax
  mov    %rcx,%r8
  mov    %rdx,%rcx
  mov    $0x1,%edx
  mov    %rax,%rdi
  call   <unquantize_intra_differences@plt>
  jmp    L247
L304:
  cmpq   $0x0,-0x68(%rbp)
  je     L203
  mov    -0x80(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x78(%rbp),%rax
  mov    (%rax),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <Ptngc_i32x2_to_d@plt>
  pxor   %xmm2,%xmm2
  cvtsi2ss %rax,%xmm2
  movd   %xmm2,%edx
  mov    -0x20(%rbp),%rcx
  mov    -0x3c(%rbp),%esi
  mov    -0x68(%rbp),%rax
  movd   %edx,%xmm0
  mov    $0x1,%edx
  mov    %rax,%rdi
  call   <unquantize_intra_differences_float@plt>
  jmp    L247
L203:
  cmpq   $0x0,-0x70(%rbp)
  je     L247
  mov    -0x20(%rbp),%rdx
  mov    -0x3c(%rbp),%esi
  mov    -0x70(%rbp),%rax
  mov    %rdx,%rcx
  mov    $0x1,%edx
  mov    %rax,%rdi
  call   <unquantize_intra_differences_int@plt>
L247:
  mov    -0x3c(%rbp),%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <unquant_intra_differences_first_frame@plt>
  jmp    L197
L478:
  nop
L197:
  cmpl   $0x1,-0x38(%rbp)
  jle    L507
  addl   $0x4,-0x44(%rbp)
  mov    $0x0,%eax
  call   <Ptngc_coder_init@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x38(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x3c(%rbp),%eax
  mov    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  lea    (%rax,%rdx,1),%ecx
  mov    -0x3c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rax,%rdx
  mov    -0x44(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x58(%rbp),%rax
  add    %rax,%rsi
  mov    -0x28(%rbp),%r9d
  mov    -0x2c(%rbp),%r8d
  mov    -0x18(%rbp),%rax
  sub    $0x8,%rsp
  mov    -0x3c(%rbp),%edi
  push   %rdi
  mov    %rax,%rdi
  call   <Ptngc_unpack_array@plt>
  add    $0x10,%rsp
  mov    %eax,-0x48(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <Ptngc_coder_deinit@plt>
  cmpl   $0x0,-0x48(%rbp)
  jne    L208
  cmpl   $0x1,-0x2c(%rbp)
  je     L249
  cmpl   $0x2,-0x2c(%rbp)
  je     L249
  cmpl   $0x8,-0x2c(%rbp)
  jne    L375
L249:
  cmpq   $0x0,-0x60(%rbp)
  je     L139
  mov    -0x80(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x78(%rbp),%rax
  mov    (%rax),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <Ptngc_i32x2_to_d@plt>
  mov    %rax,%rcx
  mov    -0x20(%rbp),%rdi
  mov    -0x38(%rbp),%edx
  mov    -0x3c(%rbp),%esi
  mov    -0x60(%rbp),%rax
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <unquantize_inter_differences@plt>
  jmp    L126
L139:
  cmpq   $0x0,-0x68(%rbp)
  je     L212
  mov    -0x80(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x78(%rbp),%rax
  mov    (%rax),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <Ptngc_i32x2_to_d@plt>
  pxor   %xmm3,%xmm3
  cvtsi2ss %rax,%xmm3
  movd   %xmm3,%edi
  mov    -0x20(%rbp),%rcx
  mov    -0x38(%rbp),%edx
  mov    -0x3c(%rbp),%esi
  mov    -0x68(%rbp),%rax
  movd   %edi,%xmm0
  mov    %rax,%rdi
  call   <unquantize_inter_differences_float@plt>
  jmp    L126
L212:
  cmpq   $0x0,-0x70(%rbp)
  je     L126
  mov    -0x20(%rbp),%rcx
  mov    -0x38(%rbp),%edx
  mov    -0x3c(%rbp),%esi
  mov    -0x70(%rbp),%rax
  mov    %rax,%rdi
  call   <unquantize_inter_differences_int@plt>
  jmp    L126
L375:
  cmpl   $0x5,-0x2c(%rbp)
  je     L328
  cmpl   $0xa,-0x2c(%rbp)
  je     L328
  cmpl   $0x7,-0x2c(%rbp)
  jne    L317
L328:
  cmpq   $0x0,-0x60(%rbp)
  je     L169
  mov    -0x3c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  lea    (%rdx,%rax,1),%rbx
  mov    -0x80(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x78(%rbp),%rax
  mov    (%rax),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <Ptngc_i32x2_to_d@plt>
  mov    %rax,%rsi
  mov    -0x38(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x3c(%rbp),%ecx
  mov    %ecx,%eax
  add    %eax,%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x60(%rbp),%rax
  lea    (%rcx,%rax,1),%rdi
  mov    -0x3c(%rbp),%eax
  mov    %rbx,%r8
  mov    %rsi,%rcx
  mov    %eax,%esi
  call   <unquantize@plt>
  jmp    L151
L169:
  cmpq   $0x0,-0x68(%rbp)
  je     L323
  mov    -0x3c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  lea    (%rdx,%rax,1),%rbx
  mov    -0x80(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x78(%rbp),%rax
  mov    (%rax),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <Ptngc_i32x2_to_d@plt>
  pxor   %xmm4,%xmm4
  cvtsi2ss %rax,%xmm4
  movd   %xmm4,%edx
  mov    -0x38(%rbp),%eax
  lea    -0x1(%rax),%esi
  mov    -0x3c(%rbp),%ecx
  mov    %ecx,%eax
  add    %eax,%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x68(%rbp),%rax
  lea    (%rcx,%rax,1),%rdi
  mov    -0x3c(%rbp),%eax
  mov    %rbx,%rcx
  movd   %edx,%xmm0
  mov    %esi,%edx
  mov    %eax,%esi
  call   <unquantize_float@plt>
  jmp    L151
L323:
  cmpq   $0x0,-0x70(%rbp)
  je     L151
  mov    -0x38(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x3c(%rbp),%eax
  mov    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%esi
  mov    -0x3c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x3c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  mov    %esi,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  jmp    L151
L317:
  cmpl   $0x3,-0x2c(%rbp)
  je     L166
  cmpl   $0x9,-0x2c(%rbp)
  jne    L507
L166:
  cmpq   $0x0,-0x60(%rbp)
  je     L334
  mov    -0x3c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  lea    (%rdx,%rax,1),%rbx
  mov    -0x80(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x78(%rbp),%rax
  mov    (%rax),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <Ptngc_i32x2_to_d@plt>
  mov    %rax,%rsi
  mov    -0x38(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x3c(%rbp),%ecx
  mov    %ecx,%eax
  add    %eax,%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x60(%rbp),%rax
  lea    (%rcx,%rax,1),%rdi
  mov    -0x3c(%rbp),%eax
  mov    %rbx,%r8
  mov    %rsi,%rcx
  mov    %eax,%esi
  call   <unquantize_intra_differences@plt>
  jmp    L115
L334:
  cmpq   $0x0,-0x68(%rbp)
  je     L337
  mov    -0x3c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  lea    (%rdx,%rax,1),%rbx
  mov    -0x80(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x78(%rbp),%rax
  mov    (%rax),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <Ptngc_i32x2_to_d@plt>
  pxor   %xmm5,%xmm5
  cvtsi2ss %rax,%xmm5
  movd   %xmm5,%edx
  mov    -0x38(%rbp),%eax
  lea    -0x1(%rax),%esi
  mov    -0x3c(%rbp),%ecx
  mov    %ecx,%eax
  add    %eax,%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x68(%rbp),%rax
  lea    (%rcx,%rax,1),%rdi
  mov    -0x3c(%rbp),%eax
  mov    %rbx,%rcx
  movd   %edx,%xmm0
  mov    %esi,%edx
  mov    %eax,%esi
  call   <unquantize_intra_differences_float@plt>
  jmp    L115
L337:
  cmpq   $0x0,-0x70(%rbp)
  je     L507
  mov    -0x3c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x38(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x3c(%rbp),%esi
  mov    %esi,%eax
  add    %eax,%eax
  add    %esi,%eax
  cltq
  lea    0x0(,%rax,4),%rsi
  mov    -0x70(%rbp),%rax
  lea    (%rsi,%rax,1),%rdi
  mov    -0x3c(%rbp),%eax
  mov    %eax,%esi
  call   <unquantize_intra_differences_int@plt>
  jmp    L115
L87:
  nop
  jmp    L115
L507:
  nop
  jmp    L115
L208:
  nop
  jmp    L115
L126:
  nop
  jmp    L115
L151:
  nop
L115:
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x48(%rbp),%eax
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
int tng_compress_uncompress_pos_gen(char *data, double *posd, float *posf, int *posi, unsigned long *prec_hi, unsigned long *prec_lo) {
  int bufloc = 0;
  int length;
  int natoms, nframes;
  int initial_coding, initial_coding_parameter;
  int coding, coding_parameter;
  int *quant = NULL;
  struct coder *coder = NULL;
  int rval = 0;
  int magic_int;
  magic_int = (int)readbufferfix((unsigned char *)data + bufloc, 4);
  bufloc += 4;
  if (magic_int != 0x50474E54) {
    rval = 1;
    goto error;
  }
  natoms = (int)readbufferfix((unsigned char *)data + bufloc, 4);
  bufloc += 4;
  nframes = (int)readbufferfix((unsigned char *)data + bufloc, 4);
  bufloc += 4;
  initial_coding = (int)readbufferfix((unsigned char *)data + bufloc, 4);
  bufloc += 4;
  initial_coding_parameter = (int)readbufferfix((unsigned char *)data + bufloc, 4);
  bufloc += 4;
  coding = (int)readbufferfix((unsigned char *)data + bufloc, 4);
  bufloc += 4;
  coding_parameter = (int)readbufferfix((unsigned char *)data + bufloc, 4);
  bufloc += 4;
  *prec_lo = readbufferfix((unsigned char *)data + bufloc, 4);
  bufloc += 4;
  *prec_hi = readbufferfix((unsigned char *)data + bufloc, 4);
  bufloc += 4;
  quant = malloc(natoms * nframes * 3 * sizeof *quant);
  length = (int)readbufferfix((unsigned char *)data + bufloc, 4);
  bufloc += 4;
  coder = Ptngc_coder_init();
  rval = Ptngc_unpack_array(coder, (unsigned char *)data + bufloc, quant, natoms * 3, initial_coding, initial_coding_parameter, natoms);
  Ptngc_coder_deinit(coder);
  if (rval)
    goto error;
  bufloc += length;
  if ((initial_coding == 5) || (initial_coding == 7) || (initial_coding == 10)) {
    if (posd)
      unquantize(posd, natoms, 1, (Ptngc_i32x2_to_d(*prec_hi, *prec_lo)), quant);
    else if (posf)
      unquantize_float(posf, natoms, 1, (float)(Ptngc_i32x2_to_d(*prec_hi, *prec_lo)), quant);
    else if (posi)
      memcpy(posi, quant, natoms * 3 * sizeof *posi);
  } else if ((initial_coding == 3) || (initial_coding == 9)) {
    if (posd)
      unquantize_intra_differences(posd, natoms, 1, (Ptngc_i32x2_to_d(*prec_hi, *prec_lo)), quant);
    else if (posf)
      unquantize_intra_differences_float(posf, natoms, 1, (float)(Ptngc_i32x2_to_d(*prec_hi, *prec_lo)), quant);
    else if (posi)
      unquantize_intra_differences_int(posi, natoms, 1, quant);
    unquant_intra_differences_first_frame(quant, natoms);
  }
  if (nframes > 1) {
    bufloc += 4;
    coder = Ptngc_coder_init();
    rval = Ptngc_unpack_array(coder, (unsigned char *)data + bufloc, quant + natoms * 3, (nframes - 1) * natoms * 3, coding, coding_parameter, natoms);
    Ptngc_coder_deinit(coder);
    if (rval)
      goto error;
    if ((coding == 1) || (coding == 2) || (coding == 8)) {
      if (posd)
        unquantize_inter_differences(posd, natoms, nframes, (Ptngc_i32x2_to_d(*prec_hi, *prec_lo)), quant);
      else if (posf)
        unquantize_inter_differences_float(posf, natoms, nframes, (float)(Ptngc_i32x2_to_d(*prec_hi, *prec_lo)), quant);
      else if (posi)
        unquantize_inter_differences_int(posi, natoms, nframes, quant);
    } else if ((coding == 5) || (coding == 10) || (coding == 7)) {
      if (posd)
        unquantize(posd + natoms * 3, natoms, nframes - 1, (Ptngc_i32x2_to_d(*prec_hi, *prec_lo)), quant + natoms * 3);
      else if (posf)
        unquantize_float(posf + natoms * 3, natoms, nframes - 1, (float)(Ptngc_i32x2_to_d(*prec_hi, *prec_lo)), quant + natoms * 3);
      else if (posi)
        memcpy(posi + natoms * 3, quant + natoms * 3, natoms * 3 * (nframes - 1) * sizeof *posi);
    } else if ((coding == 3) || (coding == 9)) {
      if (posd)
        unquantize_intra_differences(posd + natoms * 3, natoms, nframes - 1, (Ptngc_i32x2_to_d(*prec_hi, *prec_lo)), quant + natoms * 3);
      else if (posf)
        unquantize_intra_differences_float(posf + natoms * 3, natoms, nframes - 1, (float)(Ptngc_i32x2_to_d(*prec_hi, *prec_lo)), quant + natoms * 3);
      else if (posi)
        unquantize_intra_differences_int(posi + natoms * 3, natoms, nframes - 1, quant + natoms * 3);
    }
  }
error:
  free(quant);
  return rval;
}
```