user: 这段汇编代码用C语言表示是什么样的：

```asm
<main>:
  endbr64
  push   %r15
  lea    D238(%rip),%rdi
  push   %r14
  lea    D192(%rip),%r14
  push   %r13
  lea    D216(%rip),%r13
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  push   %rbx
  lea    D198(%rip),%rbx
  sub    $0xa8,%rsp
  movdqa D96(%rip),%xmm0
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rbp
  movaps %xmm0,0x10(%rsp)
  movdqa D19(%rip),%xmm0
  movaps %xmm0,0x20(%rsp)
  movdqa D46(%rip),%xmm0
  movaps %xmm0,0x30(%rsp)
  movdqa D15(%rip),%xmm0
  movaps %xmm0,0x40(%rsp)
  call   <puts@plt>
  lea    0x50(%rsp),%rax
  mov    %rax,0x8(%rsp)
  nop
L118:
  lea    0x1(%r12),%eax
  xor    %r15d,%r15d
  mov    %eax,0x4(%rsp)
  mov    %rbp,%rax
  mov    %r12d,%ebp
  mov    %rax,%r12
  nopl   (%rax)
L159:
  mov    %r15,%rax
  lea    D233(%rip),%rdi
  mov    (%r12,%r15,4),%esi
  push   %r15
  and    $0x3,%eax
  mov    %ebp,%r9d
  movsbl (%rdi,%rax,1),%edx
  mov    0xc(%rsp),%edi
  movsbl 0x0(%r13,%rax,1),%r8d
  push   %rdi
  lea    D63(%rip),%rdi
  movsbl (%rdi,%rax,1),%ecx
  mov    %r14,%rdi
  xor    %eax,%eax
  push   %rcx
  mov    %esi,%ecx
  push   %r15
  add    $0x1,%r15
  call   <printf@plt>
  add    $0x20,%rsp
  cmp    $0x10,%r15
  jne    L159
  mov    %r12,%rax
  mov    %ebp,%r12d
  xor    %r15d,%r15d
  mov    %r12d,0x4(%rsp)
  mov    0x8(%rsp),%r12
  mov    %rax,%rbp
L128:
  mov    0x10(%rsp),%esi
  mov    0x14(%rsp),%ecx
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %ecx,%r9d
  mov    %esi,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  mov    0x18(%rsp),%esi
  mov    0x1c(%rsp),%ecx
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  mov    0x20(%rsp),%esi
  mov    0x24(%rsp),%ecx
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  mov    0x28(%rsp),%esi
  mov    0x2c(%rsp),%ecx
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  mov    0x30(%rsp),%esi
  mov    0x34(%rsp),%ecx
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  mov    0x38(%rsp),%esi
  mov    0x3c(%rsp),%ecx
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  mov    0x40(%rsp),%esi
  mov    0x44(%rsp),%ecx
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  mov    0x48(%rsp),%esi
  mov    0x4c(%rsp),%ecx
  xor    %eax,%eax
  mov    %rbx,%rdi
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  cmp    $0x3,%r15d
  je     L122
  movd   0x24(%rsp),%xmm5
  movd   0x14(%rsp),%xmm6
  mov    %r12,%rsi
  mov    $0x40,%edx
  movd   0x28(%rsp),%xmm0
  movd   0x18(%rsp),%xmm2
  mov    %rbp,%rdi
  add    $0x1,%r15d
  movd   0x44(%rsp),%xmm7
  movd   0x38(%rsp),%xmm1
  punpckldq %xmm5,%xmm0
  punpckldq %xmm6,%xmm2
  movd   0x34(%rsp),%xmm5
  movd   0x1c(%rsp),%xmm6
  punpcklqdq %xmm0,%xmm2
  movd   0x48(%rsp),%xmm0
  movd   0x20(%rsp),%xmm3
  punpckldq %xmm5,%xmm1
  movd   0x40(%rsp),%xmm4
  movd   0x4c(%rsp),%xmm5
  movaps %xmm2,0x60(%rsp)
  punpckldq %xmm7,%xmm0
  movd   0x2c(%rsp),%xmm7
  punpckldq %xmm6,%xmm3
  movd   0x3c(%rsp),%xmm6
  punpcklqdq %xmm0,%xmm1
  movd   0x10(%rsp),%xmm0
  punpckldq %xmm5,%xmm4
  movaps %xmm1,0x70(%rsp)
  punpckldq %xmm7,%xmm0
  punpcklqdq %xmm3,%xmm0
  movd   0x30(%rsp),%xmm3
  movaps %xmm0,0x80(%rsp)
  punpckldq %xmm6,%xmm3
  punpcklqdq %xmm4,%xmm3
  movaps %xmm3,0x50(%rsp)
  call   <memcpy@plt>
  jmp    L128
  nopl   (%rax)
L122:
  mov    0x4(%rsp),%r12d
  add    $0x2,%r12d
  cmp    $0x10,%r12d
  jne    L118
  lea    D180(%rip),%rdi
  xor    %r15d,%r15d
  call   <puts@plt>
  nopw   0x0(%rax,%rax,1)
L48:
  mov    %r15,%rax
  mov    0x0(%rbp,%r15,4),%edx
  mov    %r15d,%esi
  mov    %r15d,%r8d
  and    $0x3,%eax
  lea    D35(%rip),%rdi
  add    $0x1,%r15
  movsbl 0x0(%r13,%rax,1),%ecx
  xor    %eax,%eax
  call   <printf@plt>
  cmp    $0x10,%r15
  jne    L48
  lea    D25(%rip),%rdi
  call   <puts@plt>
  lea    D71(%rip),%rdi
  call   <puts@plt>
  lea    0x50(%rsp),%rax
  mov    %rax,0x8(%rsp)
  nopl   0x0(%rax)
L108:
  lea    0x1(%r12),%eax
  xor    %r15d,%r15d
  mov    %eax,0x4(%rsp)
  mov    %rbp,%rax
  mov    %r12d,%ebp
  mov    %rax,%r12
  nopl   (%rax)
L95:
  mov    (%r12,%r15,4),%esi
  push   %r15
  mov    %r15,%rax
  lea    D233(%rip),%rdx
  mov    0xc(%rsp),%edi
  and    $0x3,%eax
  mov    %ebp,%r9d
  movsbl (%rdx,%rax,1),%edx
  movsbl 0x0(%r13,%rax,1),%r8d
  push   %rdi
  lea    D63(%rip),%rdi
  movsbl (%rdi,%rax,1),%ecx
  mov    %r14,%rdi
  xor    %eax,%eax
  push   %rcx
  mov    %esi,%ecx
  push   %r15
  add    $0x1,%r15
  call   <printf@plt>
  add    $0x20,%rsp
  cmp    $0x10,%r15
  jne    L95
  mov    %r12,%rax
  mov    %ebp,%r12d
  xor    %r15d,%r15d
  mov    %r12d,0x4(%rsp)
  mov    0x8(%rsp),%r12
  mov    %rax,%rbp
L93:
  mov    0x10(%rsp),%esi
  mov    0x14(%rsp),%ecx
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %ecx,%r9d
  mov    %esi,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  mov    0x18(%rsp),%esi
  mov    0x1c(%rsp),%ecx
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  mov    0x20(%rsp),%esi
  mov    0x24(%rsp),%ecx
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  mov    0x28(%rsp),%esi
  mov    0x2c(%rsp),%ecx
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  mov    0x30(%rsp),%esi
  mov    0x34(%rsp),%ecx
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  mov    0x38(%rsp),%esi
  mov    0x3c(%rsp),%ecx
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  mov    0x40(%rsp),%esi
  mov    0x44(%rsp),%ecx
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  mov    0x48(%rsp),%esi
  mov    0x4c(%rsp),%ecx
  xor    %eax,%eax
  mov    %rbx,%rdi
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  cmp    $0x3,%r15d
  je     L8
  movd   0x24(%rsp),%xmm7
  movd   0x28(%rsp),%xmm0
  mov    %r12,%rsi
  mov    $0x40,%edx
  movd   0x18(%rsp),%xmm2
  movd   0x44(%rsp),%xmm5
  mov    %rbp,%rdi
  add    $0x1,%r15d
  punpckldq %xmm7,%xmm0
  movd   0x14(%rsp),%xmm7
  movd   0x34(%rsp),%xmm6
  movd   0x38(%rsp),%xmm1
  movd   0x20(%rsp),%xmm3
  punpckldq %xmm7,%xmm2
  movd   0x1c(%rsp),%xmm7
  movd   0x40(%rsp),%xmm4
  punpcklqdq %xmm0,%xmm2
  movd   0x48(%rsp),%xmm0
  punpckldq %xmm6,%xmm1
  movd   0x4c(%rsp),%xmm6
  punpckldq %xmm7,%xmm3
  movd   0x3c(%rsp),%xmm7
  movaps %xmm2,0x60(%rsp)
  punpckldq %xmm5,%xmm0
  movd   0x2c(%rsp),%xmm5
  punpckldq %xmm6,%xmm4
  punpcklqdq %xmm0,%xmm1
  movd   0x10(%rsp),%xmm0
  movaps %xmm1,0x70(%rsp)
  punpckldq %xmm5,%xmm0
  punpcklqdq %xmm3,%xmm0
  movd   0x30(%rsp),%xmm3
  movaps %xmm0,0x80(%rsp)
  punpckldq %xmm7,%xmm3
  punpcklqdq %xmm4,%xmm3
  movaps %xmm3,0x50(%rsp)
  call   <memcpy@plt>
  jmp    L93
  nopl   (%rax)
L8:
  mov    0x4(%rsp),%r12d
  add    $0x2,%r12d
  cmp    $0x18,%r12d
  jne    L108
  lea    D28(%rip),%rdi
  xor    %r15d,%r15d
  call   <puts@plt>
  lea    D75(%rip),%rdi
  call   <puts@plt>
  xchg   %ax,%ax
L13:
  mov    %r15,%rax
  mov    0x0(%rbp,%r15,4),%edx
  mov    %r15d,%esi
  mov    %r15d,%r8d
  and    $0x3,%eax
  lea    D35(%rip),%rdi
  add    $0x1,%r15
  movsbl 0x0(%r13,%rax,1),%ecx
  xor    %eax,%eax
  call   <printf@plt>
  cmp    $0x10,%r15
  jne    L13
  lea    D25(%rip),%rdi
  call   <puts@plt>
  lea    D152(%rip),%rdi
  call   <puts@plt>
  lea    0x50(%rsp),%rax
  mov    %rax,0x8(%rsp)
  nopl   0x0(%rax)
L45:
  lea    0x1(%r12),%eax
  xor    %r15d,%r15d
  mov    %eax,0x4(%rsp)
  mov    %rbp,%rax
  mov    %r12d,%ebp
  mov    %rax,%r12
  nopl   (%rax)
L92:
  mov    (%r12,%r15,4),%esi
  push   %r15
  mov    %r15,%rax
  lea    D233(%rip),%rdx
  mov    0xc(%rsp),%edi
  and    $0x3,%eax
  mov    %ebp,%r9d
  movsbl (%rdx,%rax,1),%edx
  movsbl 0x0(%r13,%rax,1),%r8d
  push   %rdi
  lea    D63(%rip),%rdi
  movsbl (%rdi,%rax,1),%ecx
  mov    %r14,%rdi
  xor    %eax,%eax
  push   %rcx
  mov    %esi,%ecx
  push   %r15
  add    $0x1,%r15
  call   <printf@plt>
  add    $0x20,%rsp
  cmp    $0x10,%r15
  jne    L92
  mov    %r12,%rax
  mov    %ebp,%r12d
  xor    %r15d,%r15d
  mov    %r12d,0x4(%rsp)
  mov    0x8(%rsp),%r12
  mov    %rax,%rbp
L2:
  mov    0x10(%rsp),%esi
  mov    0x14(%rsp),%ecx
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %ecx,%r9d
  mov    %esi,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  mov    0x18(%rsp),%esi
  mov    0x1c(%rsp),%ecx
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  mov    0x20(%rsp),%esi
  mov    0x24(%rsp),%ecx
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  mov    0x28(%rsp),%esi
  mov    0x2c(%rsp),%ecx
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  mov    0x30(%rsp),%esi
  mov    0x34(%rsp),%ecx
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  mov    0x38(%rsp),%esi
  mov    0x3c(%rsp),%ecx
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  mov    0x40(%rsp),%esi
  mov    0x44(%rsp),%ecx
  mov    %rbx,%rdi
  xor    %eax,%eax
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  mov    0x48(%rsp),%esi
  mov    0x4c(%rsp),%ecx
  xor    %eax,%eax
  mov    %rbx,%rdi
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %esi,%edx
  call   <printf@plt>
  cmp    $0x3,%r15d
  je     L39
  movd   0x24(%rsp),%xmm5
  movd   0x14(%rsp),%xmm6
  mov    %r12,%rsi
  mov    $0x40,%edx
  movd   0x28(%rsp),%xmm0
  movd   0x18(%rsp),%xmm2
  mov    %rbp,%rdi
  add    $0x1,%r15d
  movd   0x44(%rsp),%xmm7
  movd   0x38(%rsp),%xmm1
  punpckldq %xmm5,%xmm0
  punpckldq %xmm6,%xmm2
  movd   0x34(%rsp),%xmm5
  movd   0x1c(%rsp),%xmm6
  punpcklqdq %xmm0,%xmm2
  movd   0x48(%rsp),%xmm0
  movd   0x20(%rsp),%xmm3
  punpckldq %xmm5,%xmm1
  movd   0x40(%rsp),%xmm4
  movd   0x4c(%rsp),%xmm5
  movaps %xmm2,0x60(%rsp)
  punpckldq %xmm7,%xmm0
  movd   0x2c(%rsp),%xmm7
  punpckldq %xmm6,%xmm3
  movd   0x3c(%rsp),%xmm6
  punpcklqdq %xmm0,%xmm1
  movd   0x10(%rsp),%xmm0
  punpckldq %xmm5,%xmm4
  movaps %xmm1,0x70(%rsp)
  punpckldq %xmm7,%xmm0
  punpcklqdq %xmm3,%xmm0
  movd   0x30(%rsp),%xmm3
  movaps %xmm0,0x80(%rsp)
  punpckldq %xmm6,%xmm3
  punpcklqdq %xmm4,%xmm3
  movaps %xmm3,0x50(%rsp)
  call   <memcpy@plt>
  jmp    L2
  nopl   (%rax)
L39:
  mov    0x4(%rsp),%r12d
  add    $0x2,%r12d
  cmp    $0x20,%r12d
  jne    L45
  xor    %ebx,%ebx
  nopl   (%rax)
L106:
  mov    %rbx,%rax
  mov    0x0(%rbp,%rbx,4),%edx
  mov    %ebx,%esi
  mov    %ebx,%r8d
  and    $0x3,%eax
  lea    D35(%rip),%rdi
  add    $0x1,%rbx
  movsbl 0x0(%r13,%rax,1),%ecx
  xor    %eax,%eax
  call   <printf@plt>
  cmp    $0x10,%rbx
  jne    L106
  lea    D189(%rip),%rdi
  call   <puts@plt>
  lea    D247(%rip),%rdi
  call   <puts@plt>
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  add    $0xa8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D238
data_type: string
name: unpack_data
arguments: label: D192
data_type: string
name: unpack_data
arguments: label: D216
data_type: string
name: unpack_data
arguments: label: D198
data_type: string
name: unpack_data
arguments: label: D96
data_type: byte[16]
name: unpack_data
arguments: label: D19
data_type: byte[16]
name: unpack_data
arguments: label: D46
data_type: byte[16]
name: unpack_data
arguments: label: D15
data_type: byte[16]
name: unpack_data
arguments: label: D233
data_type: string
name: unpack_data
arguments: label: D63
data_type: string
name: unpack_data
arguments: label: D180
data_type: string
name: unpack_data
arguments: label: D35
data_type: string
name: unpack_data
arguments: label: D25
data_type: string
name: unpack_data
arguments: label: D71
data_type: string
name: unpack_data
arguments: label: D28
data_type: string
name: unpack_data
arguments: label: D75
data_type: string
name: unpack_data
arguments: label: D152
data_type: string
name: unpack_data
arguments: label: D189
data_type: string
name: unpack_data
arguments: label: D247
data_type: string

tool: D238: void saferp_ecb_encrypt(const unsigned char *pt, unsigned char *ct, symmetric_key *skey)
{
   int x;
   unsigned char b[16];

   LTC_ARGCHK(pt   != NULL);
   LTC_ARGCHK(ct   != NULL);
   LTC_ARGCHK(skey != NULL);

   /* do eight rounds */
   for (x = 0; x < 16; x++) {
       b[x] = pt[x];
   }

tool: D192: b[%d] = (safer_%cbox[(b[%d] %c skey->saferp.K[%d][%d]) & 255] %c skey->saferp.K[%d][%d]) & 255;


tool: D216: ^++^

tool: D198:    b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;


tool: {"D96": [0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x03,0x00,0x00,0x00]}

tool: {"D19": [0x04,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x07,0x00,0x00,0x00]}

tool: {"D46": [0x08,0x00,0x00,0x00,0x09,0x00,0x00,0x00,0x0a,0x00,0x00,0x00,0x0b,0x00,0x00,0x00]}

tool: {"D15": [0x0c,0x00,0x00,0x00,0x0d,0x00,0x00,0x00,0x0e,0x00,0x00,0x00,0x0f,0x00,0x00,0x00]}

tool: D233: elle

tool: D63: +^^+

tool: D180:    if (skey->saferp.rounds <= 8) {

tool: D35:       ct[%d] = (b[%d] %c skey->saferp.K[skey->saferp.rounds*2][%d]) & 255;


tool: D25:       return;
   }

tool: D71:    /* 192-bit key? */
   if (skey->saferp.rounds > 8) {

tool: D28: }

tool: D75:    if (skey->saferp.rounds <= 12) {

tool: D152:    /* 256-bit key? */
   if (skey->saferp.rounds > 12) {

tool: D189:    return;

tool: D247:    }
}


assistant: ```c
int main(void) {
  int b[16], b2[16], x, y, z;
  for (x = 0; x < 16; x++)
    b[x] = x;
  printf("void saferp_ecb_encrypt(const unsigned char *pt, unsigned char *ct, symmetric_key *skey)\n"
         "{\n"
         "   int x;\n"
         "   unsigned char b[16];\n"
         "\n"
         "   LTC_ARGCHK(pt   != NULL);\n"
         "   LTC_ARGCHK(ct   != NULL);\n"
         "   LTC_ARGCHK(skey != NULL);\n"
         "\n"
         "   /* do eight rounds */\n"
         "   for (x = 0; x < 16; x++) {\n"
         "       b[x] = pt[x];\n"
         "   }\n");
  for (x = 0; x < 8; x++) {
    for (y = 0; y < 16; y++) {
      printf("b[%d] = (safer_%cbox[(b[%d] %c skey->saferp.K[%d][%d]) & 255] %c skey->saferp.K[%d][%d]) & 255;\n", b[y], "elle"[y & 3], b[y], "^++^"[y & 3], x * 2, y, "+^^+"[y & 3], x * 2 + 1, y);
    }
    for (y = 0; y < 4; y++) {
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[0], b[0], b[1], b[0], b[1]);
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[2], b[2], b[3], b[3], b[2]);
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[4], b[4], b[5], b[5], b[4]);
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[6], b[6], b[7], b[7], b[6]);
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[8], b[8], b[9], b[9], b[8]);
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[10], b[10], b[11], b[11], b[10]);
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[12], b[12], b[13], b[13], b[12]);
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[14], b[14], b[15], b[15], b[14]);
      if (y < 3) {
        b2[0] = b[8];
        b2[1] = b[11];
        b2[2] = b[12];
        b2[3] = b[15];
        b2[4] = b[2];
        b2[5] = b[1];
        b2[6] = b[6];
        b2[7] = b[5];
        b2[8] = b[10];
        b2[9] = b[9];
        b2[10] = b[14];
        b2[11] = b[13];
        b2[12] = b[0];
        b2[13] = b[7];
        b2[14] = b[4];
        b2[15] = b[3];
        memcpy(b, b2, sizeof(b));
        ;
      }
    }
  }
  printf("   if (skey->saferp.rounds <= 8) {\n");
  for (x = 0; x < 16; x++) {
    printf("      ct[%d] = (b[%d] %c skey->saferp.K[skey->saferp.rounds*2][%d]) & 255;\n", x, b[x], "^++^"[x & 3], x);
  }
  printf("      return;\n   }\n");
  printf("   /* 192-bit key? */\n"
         "   if (skey->saferp.rounds > 8) {\n");
  for (x = 8; x < 12; x++) {
    for (y = 0; y < 16; y++) {
      printf("b[%d] = (safer_%cbox[(b[%d] %c skey->saferp.K[%d][%d]) & 255] %c skey->saferp.K[%d][%d]) & 255;\n", b[y], "elle"[y & 3], b[y], "^++^"[y & 3], x * 2, y, "+^^+"[y & 3], x * 2 + 1, y);
    }
    for (y = 0; y < 4; y++) {
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[0], b[0], b[1], b[0], b[1]);
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[2], b[2], b[3], b[3], b[2]);
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[4], b[4], b[5], b[5], b[4]);
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[6], b[6], b[7], b[7], b[6]);
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[8], b[8], b[9], b[9], b[8]);
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[10], b[10], b[11], b[11], b[10]);
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[12], b[12], b[13], b[13], b[12]);
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[14], b[14], b[15], b[15], b[14]);
      if (y < 3) {
        b2[0] = b[8];
        b2[1] = b[11];
        b2[2] = b[12];
        b2[3] = b[15];
        b2[4] = b[2];
        b2[5] = b[1];
        b2[6] = b[6];
        b2[7] = b[5];
        b2[8] = b[10];
        b2[9] = b[9];
        b2[10] = b[14];
        b2[11] = b[13];
        b2[12] = b[0];
        b2[13] = b[7];
        b2[14] = b[4];
        b2[15] = b[3];
        memcpy(b, b2, sizeof(b));
        ;
      }
    }
  }
  printf("}\n");
  printf("   if (skey->saferp.rounds <= 12) {\n");
  for (x = 0; x < 16; x++) {
    printf("      ct[%d] = (b[%d] %c skey->saferp.K[skey->saferp.rounds*2][%d]) & 255;\n", x, b[x], "^++^"[x & 3], x);
  }
  printf("      return;\n   }\n");
  printf("   /* 256-bit key? */\n"
         "   if (skey->saferp.rounds > 12) {\n");
  for (x = 12; x < 16; x++) {
    for (y = 0; y < 16; y++) {
      printf("b[%d] = (safer_%cbox[(b[%d] %c skey->saferp.K[%d][%d]) & 255] %c skey->saferp.K[%d][%d]) & 255;\n", b[y], "elle"[y & 3], b[y], "^++^"[y & 3], x * 2, y, "+^^+"[y & 3], x * 2 + 1, y);
    }
    for (y = 0; y < 4; y++) {
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[0], b[0], b[1], b[0], b[1]);
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[2], b[2], b[3], b[3], b[2]);
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[4], b[4], b[5], b[5], b[4]);
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[6], b[6], b[7], b[7], b[6]);
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[8], b[8], b[9], b[9], b[8]);
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[10], b[10], b[11], b[11], b[10]);
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[12], b[12], b[13], b[13], b[12]);
      printf("   b[%d]  = (b[%d] + (b[%d] = (b[%d] + b[%d]) & 255)) & 255;\n", b[14], b[14], b[15], b[15], b[14]);
      if (y < 3) {
        b2[0] = b[8];
        b2[1] = b[11];
        b2[2] = b[12];
        b2[3] = b[15];
        b2[4] = b[2];
        b2[5] = b[1];
        b2[6] = b[6];
        b2[7] = b[5];
        b2[8] = b[10];
        b2[9] = b[9];
        b2[10] = b[14];
        b2[11] = b[13];
        b2[12] = b[0];
        b2[13] = b[7];
        b2[14] = b[4];
        b2[15] = b[3];
        memcpy(b, b2, sizeof(b));
        ;
      }
    }
  }
  for (x = 0; x < 16; x++) {
    printf("      ct[%d] = (b[%d] %c skey->saferp.K[skey->saferp.rounds*2][%d]) & 255;\n", x, b[x], "^++^"[x & 3], x);
  }
  printf("   return;\n");
  printf("   }\n}\n\n");
  return 0;
}
```