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

```asm
<jbg_dppriv2int>:
  endbr64
  sub    $0xc8,%rsp
  mov    %rdi,%rdx
  mov    %fs:0x28,%rax
  mov    %rax,0xb8(%rsp)
  xor    %eax,%eax
  movl   $0x1,(%rsp)
  movl   $0x0,0x4(%rsp)
  movl   $0x3,0x8(%rsp)
  movl   $0x2,0xc(%rsp)
  movl   $0x7,0x10(%rsp)
  movl   $0x6,0x14(%rsp)
  movl   $0x5,0x18(%rsp)
  movl   $0x4,0x1c(%rsp)
  movl   $0x1,0x20(%rsp)
  movl   $0x0,0x24(%rsp)
  movl   $0x3,0x28(%rsp)
  movl   $0x2,0x2c(%rsp)
  movl   $0x8,0x30(%rsp)
  movl   $0x7,0x34(%rsp)
  movl   $0x6,0x38(%rsp)
  movl   $0x5,0x3c(%rsp)
  movl   $0x4,0x40(%rsp)
  movl   $0x1,0x50(%rsp)
  movl   $0x0,0x54(%rsp)
  movl   $0x3,0x58(%rsp)
  movl   $0x2,0x5c(%rsp)
  movl   $0xa,0x60(%rsp)
  movl   $0x9,0x64(%rsp)
  movl   $0x8,0x68(%rsp)
  movl   $0x7,0x6c(%rsp)
  movl   $0x6,0x70(%rsp)
  movl   $0x5,0x74(%rsp)
  movl   $0x4,0x78(%rsp)
  movl   $0x1,0x80(%rsp)
  movl   $0x0,0x84(%rsp)
  movl   $0x3,0x88(%rsp)
  movl   $0x2,0x8c(%rsp)
  movl   $0xb,0x90(%rsp)
  movl   $0xa,0x94(%rsp)
  movl   $0x9,0x98(%rsp)
  movl   $0x8,0x9c(%rsp)
  movl   $0x7,0xa0(%rsp)
  movl   $0x6,0xa4(%rsp)
  movl   $0x5,0xa8(%rsp)
  movl   $0x4,0xac(%rsp)
  mov    $0xfffffffe,%r10d
  mov    $0x0,%r9d
  jmp    L32
L98:
  movslq %r8d,%r8
  mov    %r9d,%eax
  sar    $0x2,%eax
  cltq
  movzbl (%rsi,%rax,1),%eax
  mov    %r10d,%ecx
  and    $0x6,%ecx
  sar    %cl,%eax
  and    $0x3,%eax
  mov    %al,(%rdx,%r8,1)
  add    $0x1,%r9d
  sub    $0x2,%r10d
  cmp    $0x100,%r9d
  je     L10
L32:
  mov    $0x0,%edi
  mov    $0x0,%r8d
L99:
  mov    %r9d,%eax
  mov    %edi,%ecx
  sar    %cl,%eax
  and    $0x1,%eax
  mov    (%rsp,%rdi,4),%ecx
  shl    %cl,%eax
  or     %eax,%r8d
  add    $0x1,%rdi
  cmp    $0x8,%rdi
  jne    L99
  jmp    L98
L108:
  movslq %r8d,%r8
  lea    0x100(%r9),%eax
  sar    $0x2,%eax
  cltq
  movzbl (%rsi,%rax,1),%eax
  mov    %r10d,%ecx
  and    $0x6,%ecx
  sar    %cl,%eax
  and    $0x3,%eax
  mov    %al,0x100(%rdx,%r8,1)
  add    $0x1,%r9d
  sub    $0x2,%r10d
  cmp    $0x200,%r9d
  je     L36
L86:
  mov    $0x0,%edi
  mov    $0x0,%r8d
L75:
  mov    %r9d,%eax
  mov    %edi,%ecx
  sar    %cl,%eax
  and    $0x1,%eax
  mov    0x20(%rsp,%rdi,4),%ecx
  shl    %cl,%eax
  or     %eax,%r8d
  add    $0x1,%rdi
  cmp    $0x8,%rdi
  jne    L75
  jmp    L108
L10:
  mov    $0xfffffffe,%r10d
  mov    $0x0,%r9d
  jmp    L86
L163:
  movslq %r8d,%r8
  lea    0x300(%r9),%eax
  sar    $0x2,%eax
  cltq
  movzbl (%rsi,%rax,1),%eax
  mov    %r10d,%ecx
  and    $0x6,%ecx
  sar    %cl,%eax
  and    $0x3,%eax
  mov    %al,0x300(%rdx,%r8,1)
  add    $0x1,%r9d
  sub    $0x2,%r10d
  cmp    $0x800,%r9d
  je     L162
L93:
  mov    $0x0,%edi
  mov    $0x0,%r8d
L114:
  mov    %r9d,%eax
  mov    %edi,%ecx
  sar    %cl,%eax
  and    $0x1,%eax
  mov    0x50(%rsp,%rdi,4),%ecx
  shl    %cl,%eax
  or     %eax,%r8d
  add    $0x1,%rdi
  cmp    $0x8,%rdi
  jne    L114
  jmp    L163
L36:
  mov    $0xfffffffe,%r10d
  mov    $0x0,%r9d
  jmp    L93
L131:
  movslq %r8d,%r8
  lea    0xb00(%r9),%eax
  sar    $0x2,%eax
  cltq
  movzbl (%rsi,%rax,1),%eax
  mov    %r10d,%ecx
  and    $0x6,%ecx
  sar    %cl,%eax
  and    $0x3,%eax
  mov    %al,0xb00(%rdx,%r8,1)
  add    $0x1,%r9d
  sub    $0x2,%r10d
  cmp    $0x1000,%r9d
  je     L27
L74:
  mov    $0x0,%edi
  mov    $0x0,%r8d
L159:
  mov    %r9d,%eax
  mov    %edi,%ecx
  sar    %cl,%eax
  and    $0x1,%eax
  mov    0x80(%rsp,%rdi,4),%ecx
  shl    %cl,%eax
  or     %eax,%r8d
  add    $0x1,%rdi
  cmp    $0x8,%rdi
  jne    L159
  jmp    L131
L162:
  mov    $0xfffffffe,%r10d
  mov    $0x0,%r9d
  jmp    L74
L27:
  mov    0xb8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L76
  add    $0xc8,%rsp
  ret
L76:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void jbg_dppriv2int(char *internal, const unsigned char *dptable) {
  int i, j, k;
  int trans0[8] = {1, 0, 3, 2, 7, 6, 5, 4};
  int trans1[9] = {1, 0, 3, 2, 8, 7, 6, 5, 4};
  int trans2[11] = {1, 0, 3, 2, 10, 9, 8, 7, 6, 5, 4};
  int trans3[12] = {1, 0, 3, 2, 11, 10, 9, 8, 7, 6, 5, 4};
  for (i = 0; i < 256; i++) {
    k = 0;
    for (j = 0; j < 8; j++)
      k |= ((i >> j) & 1) << trans0[j];
    internal[k + 0] = (dptable[(i + 0) >> 2] >> ((3 - (i & 3)) << 1)) & 3;
  };
  for (i = 0; i < 512; i++) {
    k = 0;
    for (j = 0; j < 8; j++)
      k |= ((i >> j) & 1) << trans1[j];
    internal[k + 256] = (dptable[(i + 256) >> 2] >> ((3 - (i & 3)) << 1)) & 3;
  };
  for (i = 0; i < 2048; i++) {
    k = 0;
    for (j = 0; j < 8; j++)
      k |= ((i >> j) & 1) << trans2[j];
    internal[k + 768] = (dptable[(i + 768) >> 2] >> ((3 - (i & 3)) << 1)) & 3;
  };
  for (i = 0; i < 4096; i++) {
    k = 0;
    for (j = 0; j < 8; j++)
      k |= ((i >> j) & 1) << trans3[j];
    internal[k + 2816] = (dptable[(i + 2816) >> 2] >> ((3 - (i & 3)) << 1)) & 3;
  };
  return;
}
```