user: Please show me the C implementation that matches the assembly code listed below:

```asm
<jbg_int2dppriv>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xe0,%rsp
  mov    %rdi,-0xd8(%rbp)
  mov    %rsi,-0xe0(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x1,-0xc0(%rbp)
  movl   $0x0,-0xbc(%rbp)
  movl   $0x3,-0xb8(%rbp)
  movl   $0x2,-0xb4(%rbp)
  movl   $0x7,-0xb0(%rbp)
  movl   $0x6,-0xac(%rbp)
  movl   $0x5,-0xa8(%rbp)
  movl   $0x4,-0xa4(%rbp)
  movl   $0x1,-0xa0(%rbp)
  movl   $0x0,-0x9c(%rbp)
  movl   $0x3,-0x98(%rbp)
  movl   $0x2,-0x94(%rbp)
  movl   $0x8,-0x90(%rbp)
  movl   $0x7,-0x8c(%rbp)
  movl   $0x6,-0x88(%rbp)
  movl   $0x5,-0x84(%rbp)
  movl   $0x4,-0x80(%rbp)
  movl   $0x1,-0x70(%rbp)
  movl   $0x0,-0x6c(%rbp)
  movl   $0x3,-0x68(%rbp)
  movl   $0x2,-0x64(%rbp)
  movl   $0xa,-0x60(%rbp)
  movl   $0x9,-0x5c(%rbp)
  movl   $0x8,-0x58(%rbp)
  movl   $0x7,-0x54(%rbp)
  movl   $0x6,-0x50(%rbp)
  movl   $0x5,-0x4c(%rbp)
  movl   $0x4,-0x48(%rbp)
  movl   $0x1,-0x40(%rbp)
  movl   $0x0,-0x3c(%rbp)
  movl   $0x3,-0x38(%rbp)
  movl   $0x2,-0x34(%rbp)
  movl   $0xb,-0x30(%rbp)
  movl   $0xa,-0x2c(%rbp)
  movl   $0x9,-0x28(%rbp)
  movl   $0x8,-0x24(%rbp)
  movl   $0x7,-0x20(%rbp)
  movl   $0x6,-0x1c(%rbp)
  movl   $0x5,-0x18(%rbp)
  movl   $0x4,-0x14(%rbp)
  movl   $0x0,-0xcc(%rbp)
  jmp    L38
L79:
  mov    -0xcc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xcc(%rbp)
  movslq %eax,%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
L38:
  cmpl   $0x6bf,-0xcc(%rbp)
  jle    L79
  movl   $0x0,-0xcc(%rbp)
  jmp    L146
L59:
  movl   $0x0,-0xc4(%rbp)
  movl   $0x0,-0xc8(%rbp)
  jmp    L120
L126:
  mov    -0xc8(%rbp),%eax
  mov    -0xcc(%rbp),%edx
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  and    $0x1,%eax
  mov    %eax,%edx
  mov    -0xc8(%rbp),%eax
  cltq
  mov    -0xc0(%rbp,%rax,4),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,-0xc4(%rbp)
  addl   $0x1,-0xc8(%rbp)
L120:
  cmpl   $0x7,-0xc8(%rbp)
  jle    L126
  mov    -0xcc(%rbp),%eax
  sar    $0x2,%eax
  movslq %eax,%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %eax,%esi
  mov    -0xc4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  and    $0x3,%eax
  mov    %eax,%edx
  mov    -0xcc(%rbp),%eax
  not    %eax
  add    %eax,%eax
  and    $0x6,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,%esi
  mov    %esi,%ecx
  mov    -0xcc(%rbp),%eax
  sar    $0x2,%eax
  movslq %eax,%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0xcc(%rbp)
L146:
  cmpl   $0xff,-0xcc(%rbp)
  jle    L59
  movl   $0x0,-0xcc(%rbp)
  jmp    L94
L150:
  movl   $0x0,-0xc4(%rbp)
  movl   $0x0,-0xc8(%rbp)
  jmp    L148
L141:
  mov    -0xc8(%rbp),%eax
  mov    -0xcc(%rbp),%edx
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  and    $0x1,%eax
  mov    %eax,%edx
  mov    -0xc8(%rbp),%eax
  cltq
  mov    -0xa0(%rbp,%rax,4),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,-0xc4(%rbp)
  addl   $0x1,-0xc8(%rbp)
L148:
  cmpl   $0x7,-0xc8(%rbp)
  jle    L141
  mov    -0xcc(%rbp),%eax
  add    $0x100,%eax
  sar    $0x2,%eax
  movslq %eax,%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %eax,%esi
  mov    -0xc4(%rbp),%eax
  cltq
  lea    0x100(%rax),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  and    $0x3,%eax
  mov    %eax,%edx
  mov    -0xcc(%rbp),%eax
  not    %eax
  add    %eax,%eax
  and    $0x6,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,%esi
  mov    %esi,%ecx
  mov    -0xcc(%rbp),%eax
  add    $0x100,%eax
  sar    $0x2,%eax
  movslq %eax,%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0xcc(%rbp)
L94:
  cmpl   $0x1ff,-0xcc(%rbp)
  jle    L150
  movl   $0x0,-0xcc(%rbp)
  jmp    L29
L11:
  movl   $0x0,-0xc4(%rbp)
  movl   $0x0,-0xc8(%rbp)
  jmp    L129
L156:
  mov    -0xc8(%rbp),%eax
  mov    -0xcc(%rbp),%edx
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  and    $0x1,%eax
  mov    %eax,%edx
  mov    -0xc8(%rbp),%eax
  cltq
  mov    -0x70(%rbp,%rax,4),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,-0xc4(%rbp)
  addl   $0x1,-0xc8(%rbp)
L129:
  cmpl   $0x7,-0xc8(%rbp)
  jle    L156
  mov    -0xcc(%rbp),%eax
  add    $0x300,%eax
  sar    $0x2,%eax
  movslq %eax,%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %eax,%esi
  mov    -0xc4(%rbp),%eax
  cltq
  lea    0x300(%rax),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  and    $0x3,%eax
  mov    %eax,%edx
  mov    -0xcc(%rbp),%eax
  not    %eax
  add    %eax,%eax
  and    $0x6,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,%esi
  mov    %esi,%ecx
  mov    -0xcc(%rbp),%eax
  add    $0x300,%eax
  sar    $0x2,%eax
  movslq %eax,%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0xcc(%rbp)
L29:
  cmpl   $0x7ff,-0xcc(%rbp)
  jle    L11
  movl   $0x0,-0xcc(%rbp)
  jmp    L93
L110:
  movl   $0x0,-0xc4(%rbp)
  movl   $0x0,-0xc8(%rbp)
  jmp    L149
L84:
  mov    -0xc8(%rbp),%eax
  mov    -0xcc(%rbp),%edx
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  and    $0x1,%eax
  mov    %eax,%edx
  mov    -0xc8(%rbp),%eax
  cltq
  mov    -0x40(%rbp,%rax,4),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,-0xc4(%rbp)
  addl   $0x1,-0xc8(%rbp)
L149:
  cmpl   $0x7,-0xc8(%rbp)
  jle    L84
  mov    -0xcc(%rbp),%eax
  add    $0xb00,%eax
  sar    $0x2,%eax
  movslq %eax,%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %eax,%esi
  mov    -0xc4(%rbp),%eax
  cltq
  lea    0xb00(%rax),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  and    $0x3,%eax
  mov    %eax,%edx
  mov    -0xcc(%rbp),%eax
  not    %eax
  add    %eax,%eax
  and    $0x6,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,%esi
  mov    %esi,%ecx
  mov    -0xcc(%rbp),%eax
  add    $0xb00,%eax
  sar    $0x2,%eax
  movslq %eax,%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0xcc(%rbp)
L93:
  cmpl   $0xfff,-0xcc(%rbp)
  jle    L110
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L14
  call   <__stack_chk_fail@plt>
L14:
  leave
  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; j < 8; 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; j < 8; 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; j < 8; 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; j < 8; j++)
      k |= ((i >> j) & 1) << trans3[j];
    dptable[(i + 2816) >> 2] |= (internal[k + 2816] & 3) << ((3 - (i & 3)) << 1);
  };
  return;
}
```