user: Demonstrate the C code that generates the assembly output below:

```asm
<un3DES>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x1f0,%rsp
  mov    %rdi,-0x1b8(%rbp)
  mov    %esi,-0x1bc(%rbp)
  mov    %rdx,-0x1c8(%rbp)
  mov    %rcx,-0x1d0(%rbp)
  mov    %r8,-0x1d8(%rbp)
  mov    %r9,-0x1e0(%rbp)
  mov    0x10(%rbp),%rax
  mov    %rax,-0x1e8(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x1ac(%rbp)
  movl   $0x0,-0x1a8(%rbp)
  movl   $0x0,-0x1a4(%rbp)
  cmpq   $0x0,-0x1b8(%rbp)
  je     L145
  cmpq   $0x0,-0x1e0(%rbp)
  je     L145
  cmpq   $0x0,-0x1c8(%rbp)
  je     L145
  cmpq   $0x0,-0x1d0(%rbp)
  je     L145
  cmpq   $0x0,-0x1d8(%rbp)
  je     L145
  cmpq   $0x0,-0x1e8(%rbp)
  je     L145
  cmpl   $0x0,-0x1bc(%rbp)
  jne    L61
L145:
  mov    $0x0,%eax
  jmp    L73
L61:
  mov    -0x1b8(%rbp),%rax
  mov    %rax,-0x1a0(%rbp)
  mov    -0x1bc(%rbp),%eax
  shr    $0x3,%eax
  mov    %eax,-0x1ac(%rbp)
  mov    -0x1bc(%rbp),%eax
  and    $0x7,%eax
  test   %eax,%eax
  je     L21
  addl   $0x1,-0x1ac(%rbp)
L21:
  shll   $0x3,-0x1ac(%rbp)
  mov    -0x1ac(%rbp),%edx
  mov    -0x1e8(%rbp),%rax
  mov    %edx,(%rax)
  lea    -0x190(%rbp),%rdx
  mov    -0x1c8(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <genKey@plt>
  lea    -0x110(%rbp),%rdx
  mov    -0x1d0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <genKey@plt>
  lea    -0x90(%rbp),%rdx
  mov    -0x1d8(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <genKey@plt>
  mov    -0x1e0(%rbp),%rax
  mov    %rax,-0x198(%rbp)
  mov    -0x1bc(%rbp),%eax
  mov    %eax,-0x1ac(%rbp)
  movl   $0x0,-0x1a8(%rbp)
  jmp    L209
L93:
  mov    -0x1a8(%rbp),%eax
  cltq
  movb   $0x0,-0x10(%rbp,%rax,1)
  addl   $0x1,-0x1a8(%rbp)
L209:
  cmpl   $0x7,-0x1a8(%rbp)
  jle    L93
  jmp    L114
L152:
  movl   $0x0,-0x1a8(%rbp)
  jmp    L161
L217:
  mov    -0x1a8(%rbp),%eax
  cltq
  movb   $0x0,-0x10(%rbp,%rax,1)
  addl   $0x1,-0x1a8(%rbp)
L161:
  cmpl   $0x7,-0x1a8(%rbp)
  jle    L217
  mov    -0x1ac(%rbp),%eax
  mov    $0x8,%edx
  cmp    %edx,%eax
  cmovg  %edx,%eax
  mov    %eax,-0x1a4(%rbp)
  movl   $0x0,-0x1a8(%rbp)
  jmp    L177
L12:
  mov    -0x1a8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x1a0(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x1a8(%rbp),%eax
  cltq
  mov    %dl,-0x10(%rbp,%rax,1)
  addl   $0x1,-0x1a8(%rbp)
L177:
  mov    -0x1a8(%rbp),%eax
  cmp    -0x1a4(%rbp),%eax
  jl     L12
  lea    -0x90(%rbp),%rdx
  mov    -0x198(%rbp),%rsi
  lea    -0x10(%rbp),%rax
  mov    $0x2,%ecx
  mov    %rax,%rdi
  call   <comDES@plt>
  movl   $0x0,-0x1a8(%rbp)
  jmp    L136
L47:
  mov    -0x1a8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x198(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x1a8(%rbp),%eax
  cltq
  mov    %dl,-0x10(%rbp,%rax,1)
  addl   $0x1,-0x1a8(%rbp)
L136:
  cmpl   $0x7,-0x1a8(%rbp)
  jle    L47
  lea    -0x110(%rbp),%rdx
  mov    -0x198(%rbp),%rsi
  lea    -0x10(%rbp),%rax
  mov    $0x1,%ecx
  mov    %rax,%rdi
  call   <comDES@plt>
  movl   $0x0,-0x1a8(%rbp)
  jmp    L36
L79:
  mov    -0x1a8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x198(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x1a8(%rbp),%eax
  cltq
  mov    %dl,-0x10(%rbp,%rax,1)
  addl   $0x1,-0x1a8(%rbp)
L36:
  cmpl   $0x7,-0x1a8(%rbp)
  jle    L79
  lea    -0x190(%rbp),%rdx
  mov    -0x198(%rbp),%rsi
  lea    -0x10(%rbp),%rax
  mov    $0x2,%ecx
  mov    %rax,%rdi
  call   <comDES@plt>
  addq   $0x8,-0x1a0(%rbp)
  addq   $0x8,-0x198(%rbp)
  subl   $0x8,-0x1ac(%rbp)
L114:
  cmpl   $0x0,-0x1ac(%rbp)
  jg     L152
  mov    $0x1,%eax
L73:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L71
  call   <__stack_chk_fail@plt>
L71:
  leave
  ret
```

assistant: ```c
unsigned char un3DES(unsigned char *indata, unsigned int inlen, unsigned char *key_1, unsigned char *key_2, unsigned char *key_3, unsigned char *outdata, unsigned int *outlen) {
  unsigned char *p, *p1, s_key_1[16][8], s_key_2[16][8], s_key_3[16][8], tt[8];
  int tlen = 0, i = 0, ttlen = 0;
  if ((indata == NULL) || (outdata == NULL) || (key_1 == NULL) || (key_2 == NULL) || (key_3 == NULL) || (outlen == NULL) || (inlen <= 0))
    return 0;
  p = indata;
  tlen = inlen / 8;
  if (inlen % 8 != 0)
    tlen = tlen + 1;
  tlen = tlen * 8;
  *outlen = tlen;
  genKey(key_1, s_key_1);
  genKey(key_2, s_key_2);
  genKey(key_3, s_key_3);
  p1 = outdata;
  tlen = inlen;
  for (i = 0; i < 8; i++)
    tt[i] = 0;
  while (tlen > 0) {
    for (i = 0; i < 8; i++)
      tt[i] = 0;
    ttlen = (tlen < 8) ? tlen : 8;
    for (i = 0; i < ttlen; i++)
      tt[i] = *(p + i);
    comDES(tt, p1, s_key_3, 2);
    for (i = 0; i < 8; i++)
      tt[i] = p1[i];
    comDES(tt, p1, s_key_2, 1);
    for (i = 0; i < 8; i++)
      tt[i] = p1[i];
    comDES(tt, p1, s_key_1, 2);
    p = p + 8;
    p1 = p1 + 8;
    tlen = tlen - 8;
  }
  return 1;
}
```