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

```asm
<jbg_dppriv2int>:
  endbr64
  sub    $0xc8,%rsp
  mov    %rdi,%rdx
  xor    %r10d,%r10d
  movabs $0x400000005,%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0xb8(%rsp)
  xor    %eax,%eax
  mov    %rdi,0x18(%rsp)
  movabs $0x200000003,%rax
  movabs $0x600000007,%rcx
  mov    %rax,0x8(%rsp)
  movabs $0x300000000,%rax
  movabs $0x800000002,%r11
  mov    %rax,0x24(%rsp)
  mov    %rax,0x54(%rsp)
  mov    %rax,0x84(%rsp)
  movabs $0xb00000002,%rax
  mov    %rdi,0x3c(%rsp)
  movabs $0xa00000002,%rdi
  mov    %rax,0x8c(%rsp)
  movabs $0x90000000a,%rax
  mov    %rdi,0x5c(%rsp)
  movabs $0x800000009,%rdi
  mov    %rax,0x94(%rsp)
  movabs $0x700000008,%rax
  movl   $0x0,0x4(%rsp)
  mov    %rcx,0x10(%rsp)
  mov    %rcx,0x34(%rsp)
  mov    %rdi,0x64(%rsp)
  mov    %rcx,0x6c(%rsp)
  mov    %rax,0x9c(%rsp)
  mov    %r11,0x2c(%rsp)
  mov    $0xfffffffe,%r11d
  nopl   (%rax)
L57:
  xor    %edi,%edi
  mov    $0x1,%r9d
  xor    %r8d,%r8d
  jmp    L48
  nopl   (%rax)
L36:
  mov    (%rsp,%rdi,4),%r9d
L48:
  mov    %edi,%ecx
  mov    %r10d,%eax
  add    $0x1,%rdi
  sar    %cl,%eax
  mov    %r9d,%ecx
  and    $0x1,%eax
  shl    %cl,%eax
  or     %eax,%r8d
  cmp    $0x8,%rdi
  jne    L36
  mov    %r10d,%eax
  mov    %r11d,%ecx
  movslq %r8d,%r8
  add    $0x1,%r10d
  sar    $0x2,%eax
  and    $0x6,%ecx
  sub    $0x2,%r11d
  cltq
  movzbl (%rsi,%rax,1),%eax
  sar    %cl,%eax
  and    $0x3,%eax
  mov    %al,(%rdx,%r8,1)
  cmp    $0x100,%r10d
  jne    L57
  mov    $0xfffffffe,%r11d
  xor    %r10d,%r10d
  nopl   0x0(%rax,%rax,1)
L25:
  xor    %edi,%edi
  mov    $0x1,%r9d
  xor    %r8d,%r8d
  jmp    L108
  nopl   (%rax)
L7:
  mov    0x20(%rsp,%rdi,4),%r9d
L108:
  mov    %edi,%ecx
  mov    %r10d,%eax
  add    $0x1,%rdi
  sar    %cl,%eax
  mov    %r9d,%ecx
  and    $0x1,%eax
  shl    %cl,%eax
  or     %eax,%r8d
  cmp    $0x8,%rdi
  jne    L7
  lea    0x100(%r10),%eax
  mov    %r11d,%ecx
  movslq %r8d,%r8
  add    $0x1,%r10d
  sar    $0x2,%eax
  and    $0x6,%ecx
  sub    $0x2,%r11d
  cltq
  movzbl (%rsi,%rax,1),%eax
  sar    %cl,%eax
  and    $0x3,%eax
  mov    %al,0x100(%rdx,%r8,1)
  cmp    $0x200,%r10d
  jne    L25
  mov    $0xfffffffe,%r11d
  xor    %r10d,%r10d
  nopl   0x0(%rax)
L93:
  xor    %edi,%edi
  mov    $0x1,%r9d
  xor    %r8d,%r8d
  jmp    L97
  nopl   (%rax)
L111:
  mov    0x50(%rsp,%rdi,4),%r9d
L97:
  mov    %edi,%ecx
  mov    %r10d,%eax
  add    $0x1,%rdi
  sar    %cl,%eax
  mov    %r9d,%ecx
  and    $0x1,%eax
  shl    %cl,%eax
  or     %eax,%r8d
  cmp    $0x8,%rdi
  jne    L111
  lea    0x300(%r10),%eax
  mov    %r11d,%ecx
  movslq %r8d,%r8
  add    $0x1,%r10d
  sar    $0x2,%eax
  and    $0x6,%ecx
  sub    $0x2,%r11d
  cltq
  movzbl (%rsi,%rax,1),%eax
  sar    %cl,%eax
  and    $0x3,%eax
  mov    %al,0x300(%rdx,%r8,1)
  cmp    $0x800,%r10d
  jne    L93
  mov    $0xfffffffe,%r11d
  xor    %r10d,%r10d
  nopl   0x0(%rax)
L84:
  xor    %edi,%edi
  mov    $0x1,%r9d
  xor    %r8d,%r8d
  jmp    L69
  nopl   (%rax)
L19:
  mov    0x80(%rsp,%rdi,4),%r9d
L69:
  mov    %edi,%ecx
  mov    %r10d,%eax
  add    $0x1,%rdi
  sar    %cl,%eax
  mov    %r9d,%ecx
  and    $0x1,%eax
  shl    %cl,%eax
  or     %eax,%r8d
  cmp    $0x8,%rdi
  jne    L19
  lea    0xb00(%r10),%eax
  mov    %r11d,%ecx
  movslq %r8d,%r8
  add    $0x1,%r10d
  sar    $0x2,%eax
  and    $0x6,%ecx
  sub    $0x2,%r11d
  cltq
  movzbl (%rsi,%rax,1),%eax
  sar    %cl,%eax
  and    $0x3,%eax
  mov    %al,0xb00(%rdx,%r8,1)
  cmp    $0x1000,%r10d
  jne    L84
  mov    0xb8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L83
  add    $0xc8,%rsp
  ret
L83:
  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;
}
```