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

```asm
<jbg_int2dppriv>:
  endbr64
  mov    %rdi,%r8
  movq   $0x0,(%rdi)
  lea    0x8(%rdi),%rdi
  xor    %eax,%eax
  mov    %r8,%rcx
  mov    $0xfffffffc,%r9d
  mov    $0x1,%edx
  movq   $0x0,0x6b0(%rdi)
  and    $0xfffffffffffffff8,%rdi
  sub    %rdi,%rcx
  add    $0x6c0,%ecx
  shr    $0x3,%ecx
  rep stos %rax,%es:(%rdi)
  movzbl (%rsi),%eax
  and    $0x3,%eax
  shl    $0x6,%eax
  mov    %al,(%r8)
  nopl   0x0(%rax)
L227:
  lea    (%rdx,%rdx,1),%eax
  mov    %edx,%ecx
  and    $0x2,%eax
  sar    %ecx
  je     L292
  and    $0x1,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x2,%ecx
  je     L292
  shl    $0x3,%ecx
  and    $0x8,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x3,%ecx
  je     L292
  shl    $0x2,%ecx
  and    $0x4,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x4,%ecx
  je     L292
  shl    $0x7,%ecx
  movzbl %cl,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x5,%ecx
  je     L292
  shl    $0x6,%ecx
  and    $0x40,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x6,%ecx
  je     L292
  shl    $0x5,%ecx
  mov    %edx,%edi
  and    $0x20,%ecx
  or     %ecx,%eax
  mov    %eax,%ecx
  or     $0x10,%ecx
  shr    $0x7,%edi
  cmovne %ecx,%eax
L292:
  cltq
  mov    %edx,%edi
  mov    %r9d,%ecx
  movzbl (%rsi,%rax,1),%eax
  sar    $0x2,%edi
  and    $0x6,%ecx
  add    $0x1,%edx
  movslq %edi,%rdi
  sub    $0x2,%r9d
  and    $0x3,%eax
  shl    %cl,%eax
  or     %al,(%r8,%rdi,1)
  cmp    $0x100,%edx
  jne    L227
  movzbl 0x100(%rsi),%eax
  mov    $0xfffffffc,%r9d
  mov    $0x1,%edx
  shl    $0x6,%eax
  or     %al,0x40(%r8)
  nopw   0x0(%rax,%rax,1)
L330:
  lea    (%rdx,%rdx,1),%eax
  mov    %edx,%ecx
  and    $0x2,%eax
  sar    %ecx
  je     L1
  and    $0x1,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x2,%ecx
  je     L1
  shl    $0x3,%ecx
  and    $0x8,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x3,%ecx
  je     L1
  shl    $0x2,%ecx
  and    $0x4,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x4,%ecx
  je     L1
  shl    $0x8,%ecx
  and    $0x100,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x5,%ecx
  je     L1
  shl    $0x7,%ecx
  mov    %edx,%edi
  movzbl %cl,%ecx
  or     %ecx,%eax
  shr    $0x6,%edi
  je     L1
  mov    %edx,%ecx
  and    $0x40,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x7,%ecx
  je     L1
  shl    $0x5,%ecx
  mov    %edx,%edi
  and    $0x20,%ecx
  or     %ecx,%eax
  mov    %eax,%ecx
  or     $0x10,%ecx
  shr    $0x8,%edi
  cmovne %ecx,%eax
L1:
  add    $0x100,%eax
  lea    0x100(%rdx),%edi
  mov    %r9d,%ecx
  cltq
  sar    $0x2,%edi
  and    $0x6,%ecx
  add    $0x1,%edx
  movzbl (%rsi,%rax,1),%eax
  movslq %edi,%rdi
  sub    $0x2,%r9d
  and    $0x3,%eax
  shl    %cl,%eax
  or     %al,(%r8,%rdi,1)
  cmp    $0x200,%edx
  jne    L330
  movzbl 0x300(%rsi),%eax
  mov    $0xfffffffc,%r9d
  mov    $0x1,%edx
  shl    $0x6,%eax
  or     %al,0xc0(%r8)
  nopw   0x0(%rax,%rax,1)
L288:
  lea    (%rdx,%rdx,1),%eax
  mov    %edx,%ecx
  and    $0x2,%eax
  sar    %ecx
  je     L66
  and    $0x1,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x2,%ecx
  je     L66
  shl    $0x3,%ecx
  and    $0x8,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x3,%ecx
  je     L66
  shl    $0x2,%ecx
  and    $0x4,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x4,%ecx
  je     L66
  shl    $0xa,%ecx
  and    $0x400,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x5,%ecx
  je     L66
  shl    $0x9,%ecx
  and    $0x200,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x6,%ecx
  je     L66
  shl    $0x8,%ecx
  mov    %edx,%edi
  and    $0x100,%ecx
  or     %ecx,%eax
  shr    $0x7,%edi
  je     L66
  mov    %edx,%ecx
  and    $0x80,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x8,%ecx
  je     L66
  shl    $0x6,%ecx
  and    $0x40,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x9,%ecx
  je     L66
  shl    $0x5,%ecx
  mov    %edx,%edi
  and    $0x20,%ecx
  or     %ecx,%eax
  mov    %eax,%ecx
  or     $0x10,%ecx
  shr    $0xa,%edi
  cmovne %ecx,%eax
L66:
  add    $0x300,%eax
  lea    0x300(%rdx),%edi
  mov    %r9d,%ecx
  cltq
  sar    $0x2,%edi
  and    $0x6,%ecx
  add    $0x1,%edx
  movzbl (%rsi,%rax,1),%eax
  movslq %edi,%rdi
  sub    $0x2,%r9d
  and    $0x3,%eax
  shl    %cl,%eax
  or     %al,(%r8,%rdi,1)
  cmp    $0x800,%edx
  jne    L288
  movzbl 0xb00(%rsi),%eax
  mov    $0xfffffffc,%r9d
  mov    $0x1,%edx
  shl    $0x6,%eax
  or     %al,0x2c0(%r8)
  xchg   %ax,%ax
L48:
  lea    (%rdx,%rdx,1),%eax
  mov    %edx,%ecx
  and    $0x2,%eax
  sar    %ecx
  je     L25
  and    $0x1,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x2,%ecx
  je     L25
  shl    $0x3,%ecx
  and    $0x8,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x3,%ecx
  je     L25
  shl    $0x2,%ecx
  and    $0x4,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x4,%ecx
  je     L25
  shl    $0xb,%ecx
  and    $0x800,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x5,%ecx
  je     L25
  shl    $0xa,%ecx
  and    $0x400,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x6,%ecx
  je     L25
  shl    $0x9,%ecx
  and    $0x200,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x7,%ecx
  je     L25
  shl    $0x8,%ecx
  and    $0x100,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x8,%ecx
  je     L25
  shl    $0x7,%ecx
  movzbl %cl,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0x9,%ecx
  je     L25
  shl    $0x6,%ecx
  and    $0x40,%ecx
  or     %ecx,%eax
  mov    %edx,%ecx
  sar    $0xa,%ecx
  je     L25
  shl    $0x5,%ecx
  mov    %edx,%edi
  and    $0x20,%ecx
  or     %ecx,%eax
  mov    %eax,%ecx
  or     $0x10,%ecx
  shr    $0xb,%edi
  cmovne %ecx,%eax
L25:
  add    $0xb00,%eax
  lea    0xb00(%rdx),%edi
  mov    %r9d,%ecx
  cltq
  sar    $0x2,%edi
  and    $0x6,%ecx
  add    $0x1,%edx
  movzbl (%rsi,%rax,1),%eax
  movslq %edi,%rdi
  sub    $0x2,%r9d
  and    $0x3,%eax
  shl    %cl,%eax
  or     %al,(%r8,%rdi,1)
  cmp    $0x1000,%edx
  jne    L48
  ret
```

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;
}
```