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    L41
L11:
  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     L143
L41:
  mov    $0x0,%edi
  mov    $0x0,%r8d
L83:
  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    L83
  jmp    L11
L118:
  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     L66
L84:
  mov    $0x0,%edi
  mov    $0x0,%r8d
L122:
  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    L122
  jmp    L118
L143:
  mov    $0xfffffffe,%r10d
  mov    $0x0,%r9d
  jmp    L84
L28:
  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     L82
L119:
  mov    $0x0,%edi
  mov    $0x0,%r8d
L72:
  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    L72
  jmp    L28
L66:
  mov    $0xfffffffe,%r10d
  mov    $0x0,%r9d
  jmp    L119
L109:
  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     L22
L10:
  mov    $0x0,%edi
  mov    $0x0,%r8d
L103:
  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    L103
  jmp    L109
L82:
  mov    $0xfffffffe,%r10d
  mov    $0x0,%r9d
  jmp    L10
L22:
  mov    0xb8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L161
  add    $0xc8,%rsp
  ret
L161:
  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;
}
```