user: 请从给定的汇编指令推导出C源代码：

```asm
<jbg_int2dppriv>:
  endbr64
  sub    $0xc8,%rsp
  mov    %rdi,%rdx
  xor    %r9d,%r9d
  movabs $0x300000000,%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0xb8(%rsp)
  xor    %eax,%eax
  mov    %rdi,0x24(%rsp)
  movabs $0x600000007,%rcx
  movabs $0x400000005,%rax
  mov    %rdi,0x54(%rsp)
  mov    $0xfffffffe,%r10d
  movabs $0xa00000002,%rdi
  movabs $0x800000002,%r11
  mov    %rdi,0x5c(%rsp)
  movabs $0x800000009,%rdi
  movabs $0x200000003,%r8
  mov    %rdi,0x64(%rsp)
  mov    %rdi,0x98(%rsp)
  lea    0x8(%rdx),%rdi
  mov    %rcx,0x10(%rsp)
  and    $0xfffffffffffffff8,%rdi
  mov    %rcx,0x34(%rsp)
  mov    %rcx,0x6c(%rsp)
  mov    %rcx,0xa0(%rsp)
  mov    %rdx,%rcx
  sub    %rdi,%rcx
  mov    %rax,0x18(%rsp)
  add    $0x6c0,%ecx
  mov    %r11,0x2c(%rsp)
  movabs $0xa0000000b,%r11
  mov    %rax,0x3c(%rsp)
  shr    $0x3,%ecx
  mov    %rax,0x74(%rsp)
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  mov    %r8,0x8(%rsp)
  mov    %r8,0x88(%rsp)
  xor    %r8d,%r8d
  movl   $0x0,0x4(%rsp)
  movl   $0x0,0x84(%rsp)
  mov    %r11,0x90(%rsp)
  movq   $0x0,(%rdx)
  movq   $0x0,0x6b8(%rdx)
  rep stos %rax,%es:(%rdi)
  nopw   0x0(%rax,%rax,1)
L110:
  movslq %r8d,%r8
  mov    %r9d,%edi
  mov    %r10d,%ecx
  add    $0x1,%r9d
  movzbl (%rsi,%r8,1),%eax
  sar    $0x2,%edi
  and    $0x6,%ecx
  movslq %edi,%rdi
  and    $0x3,%eax
  shl    %cl,%eax
  or     %al,(%rdx,%rdi,1)
  cmp    $0x100,%r9d
  je     L130
  mov    %r9d,%eax
  mov    $0x1,%edi
  mov    $0x1,%ecx
  xor    %r8d,%r8d
  jmp    L169
  cs nopw 0x0(%rax,%rax,1)
L137:
  mov    (%rsp,%rdi,4),%ecx
  add    $0x1,%rdi
L169:
  and    $0x1,%eax
  shl    %cl,%eax
  mov    %edi,%ecx
  or     %eax,%r8d
  mov    %r9d,%eax
  sar    %cl,%eax
  test   %eax,%eax
  jne    L137
  sub    $0x2,%r10d
  jmp    L110
L130:
  mov    $0xfffffffe,%r10d
  xor    %r9d,%r9d
  xor    %r8d,%r8d
  nopl   0x0(%rax)
L14:
  movslq %r8d,%r8
  lea    0x100(%r9),%eax
  mov    %r10d,%ecx
  add    $0x1,%r9d
  movzbl 0x100(%rsi,%r8,1),%edi
  sar    $0x2,%eax
  and    $0x6,%ecx
  cltq
  and    $0x3,%edi
  shl    %cl,%edi
  or     %dil,(%rdx,%rax,1)
  cmp    $0x200,%r9d
  je     L155
  mov    %r9d,%eax
  mov    $0x1,%edi
  mov    $0x1,%ecx
  xor    %r8d,%r8d
  jmp    L162
  cs nopw 0x0(%rax,%rax,1)
L108:
  mov    0x20(%rsp,%rdi,4),%ecx
  add    $0x1,%rdi
L162:
  and    $0x1,%eax
  shl    %cl,%eax
  mov    %edi,%ecx
  or     %eax,%r8d
  mov    %r9d,%eax
  sar    %cl,%eax
  test   %eax,%eax
  jne    L108
  sub    $0x2,%r10d
  jmp    L14
L155:
  mov    $0xfffffffe,%r10d
  xor    %r9d,%r9d
  xor    %r8d,%r8d
  nopl   (%rax)
L19:
  movslq %r8d,%r8
  lea    0x300(%r9),%eax
  mov    %r10d,%ecx
  add    $0x1,%r9d
  movzbl 0x300(%rsi,%r8,1),%edi
  sar    $0x2,%eax
  and    $0x6,%ecx
  cltq
  and    $0x3,%edi
  shl    %cl,%edi
  or     %dil,(%rdx,%rax,1)
  cmp    $0x800,%r9d
  je     L41
  mov    %r9d,%eax
  mov    $0x1,%edi
  mov    $0x1,%ecx
  xor    %r8d,%r8d
  jmp    L77
  cs nopw 0x0(%rax,%rax,1)
L146:
  mov    0x50(%rsp,%rdi,4),%ecx
  add    $0x1,%rdi
L77:
  and    $0x1,%eax
  shl    %cl,%eax
  mov    %edi,%ecx
  or     %eax,%r8d
  mov    %r9d,%eax
  sar    %cl,%eax
  test   %eax,%eax
  jne    L146
  sub    $0x2,%r10d
  jmp    L19
L41:
  mov    $0xfffffffe,%r10d
  xor    %r9d,%r9d
  xor    %r8d,%r8d
  nopl   (%rax)
L49:
  movslq %r8d,%r8
  lea    0xb00(%r9),%eax
  mov    %r10d,%ecx
  add    $0x1,%r9d
  movzbl 0xb00(%rsi,%r8,1),%edi
  sar    $0x2,%eax
  and    $0x6,%ecx
  cltq
  and    $0x3,%edi
  shl    %cl,%edi
  or     %dil,(%rdx,%rax,1)
  cmp    $0x1000,%r9d
  je     L33
  mov    %r9d,%eax
  mov    $0x1,%edi
  mov    $0x1,%ecx
  xor    %r8d,%r8d
  jmp    L101
  cs nopw 0x0(%rax,%rax,1)
L116:
  mov    0x80(%rsp,%rdi,4),%ecx
  add    $0x1,%rdi
L101:
  and    $0x1,%eax
  shl    %cl,%eax
  mov    %edi,%ecx
  or     %eax,%r8d
  mov    %r9d,%eax
  sar    %cl,%eax
  test   %eax,%eax
  jne    L116
  sub    $0x2,%r10d
  jmp    L49
L33:
  mov    0xb8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L60
  add    $0xc8,%rsp
  ret
L60:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void jbg_int2dppriv(unsigned char *dptable, const char *internal) {
  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 < 1728; dptable[i++] = 0)
    ;
  for (i = 0; i < 256; i++) {
    k = 0;
    for (j = 0; i >> j; j++)
      k |= ((i >> j) & 1) << trans0[j];
    dptable[(i + 0) >> 2] |= (internal[k + 0] & 3) << ((3 - (i & 3)) << 1);
  };
  for (i = 0; i < 512; i++) {
    k = 0;
    for (j = 0; i >> j; j++)
      k |= ((i >> j) & 1) << trans1[j];
    dptable[(i + 256) >> 2] |= (internal[k + 256] & 3) << ((3 - (i & 3)) << 1);
  };
  for (i = 0; i < 2048; i++) {
    k = 0;
    for (j = 0; i >> j; j++)
      k |= ((i >> j) & 1) << trans2[j];
    dptable[(i + 768) >> 2] |= (internal[k + 768] & 3) << ((3 - (i & 3)) << 1);
  };
  for (i = 0; i < 4096; i++) {
    k = 0;
    for (j = 0; i >> j; j++)
      k |= ((i >> j) & 1) << trans3[j];
    dptable[(i + 2816) >> 2] |= (internal[k + 2816] & 3) << ((3 - (i & 3)) << 1);
  };
  return;
}
```