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

```asm
<rk_rc4>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x260,%rsp
  mov    %rdi,-0x248(%rbp)
  mov    %rsi,-0x250(%rbp)
  mov    %edx,-0x254(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movabs $0x709055504034e7c,%rax
  movabs $0x11170d17387b2c2d,%rdx
  mov    %rax,-0x220(%rbp)
  mov    %rdx,-0x218(%rbp)
  movl   $0x0,-0x234(%rbp)
  jmp    L51
L58:
  mov    -0x234(%rbp),%eax
  mov    %eax,%edx
  mov    -0x234(%rbp),%eax
  cltq
  mov    %dl,-0x210(%rbp,%rax,1)
  mov    -0x234(%rbp),%eax
  and    $0xf,%eax
  cltq
  movzbl -0x220(%rbp,%rax,1),%edx
  mov    -0x234(%rbp),%eax
  cltq
  mov    %dl,-0x110(%rbp,%rax,1)
  addl   $0x1,-0x234(%rbp)
L51:
  cmpl   $0xff,-0x234(%rbp)
  jle    L58
  movl   $0x0,-0x230(%rbp)
  movl   $0x0,-0x234(%rbp)
  jmp    L13
L20:
  mov    -0x234(%rbp),%eax
  cltq
  movzbl -0x210(%rbp,%rax,1),%eax
  movsbl %al,%eax
  mov    %eax,-0x228(%rbp)
  mov    -0x234(%rbp),%eax
  cltq
  movzbl -0x210(%rbp,%rax,1),%eax
  movsbl %al,%eax
  add    %eax,-0x230(%rbp)
  mov    -0x234(%rbp),%eax
  cltq
  movzbl -0x110(%rbp,%rax,1),%eax
  movsbl %al,%eax
  add    %eax,-0x230(%rbp)
  andl   $0xff,-0x230(%rbp)
  mov    -0x230(%rbp),%eax
  cltq
  movzbl -0x210(%rbp,%rax,1),%edx
  mov    -0x234(%rbp),%eax
  cltq
  mov    %dl,-0x210(%rbp,%rax,1)
  mov    -0x228(%rbp),%eax
  mov    %eax,%edx
  mov    -0x230(%rbp),%eax
  cltq
  mov    %dl,-0x210(%rbp,%rax,1)
  addl   $0x1,-0x234(%rbp)
L13:
  cmpl   $0xff,-0x234(%rbp)
  jle    L20
  movl   $0x0,-0x22c(%rbp)
  movl   $0x0,-0x234(%rbp)
  jmp    L55
L24:
  mov    -0x234(%rbp),%eax
  add    $0x1,%eax
  movzbl %al,%eax
  cltq
  movzbl -0x210(%rbp,%rax,1),%eax
  movsbl %al,%eax
  mov    %eax,-0x228(%rbp)
  mov    -0x228(%rbp),%eax
  mov    %eax,-0x224(%rbp)
  mov    -0x228(%rbp),%edx
  mov    -0x22c(%rbp),%eax
  add    %edx,%eax
  and    $0xff,%eax
  mov    %eax,-0x22c(%rbp)
  mov    -0x234(%rbp),%eax
  add    $0x1,%eax
  movzbl %al,%ecx
  mov    -0x22c(%rbp),%eax
  cltq
  movzbl -0x210(%rbp,%rax,1),%edx
  movslq %ecx,%rax
  mov    %dl,-0x210(%rbp,%rax,1)
  mov    -0x228(%rbp),%eax
  mov    %eax,%edx
  mov    -0x22c(%rbp),%eax
  cltq
  mov    %dl,-0x210(%rbp,%rax,1)
  mov    -0x234(%rbp),%eax
  add    $0x1,%eax
  movzbl %al,%eax
  cltq
  movzbl -0x210(%rbp,%rax,1),%eax
  movsbl %al,%edx
  mov    -0x228(%rbp),%eax
  add    %edx,%eax
  and    $0xff,%eax
  mov    %eax,-0x224(%rbp)
  mov    -0x224(%rbp),%eax
  cltq
  movzbl -0x210(%rbp,%rax,1),%eax
  movsbl %al,%eax
  mov    %eax,-0x224(%rbp)
  mov    -0x234(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x248(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x224(%rbp),%eax
  mov    %eax,%esi
  mov    -0x234(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x250(%rbp),%rax
  add    %rcx,%rax
  xor    %esi,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x234(%rbp)
L55:
  mov    -0x234(%rbp),%eax
  cmp    -0x254(%rbp),%eax
  jl     L24
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L16
  call   <__stack_chk_fail@plt>
L16:
  leave
  ret
```

assistant: ```c
void rk_rc4(char *inpg, char *outpg, const int size) {
  char key[] = {0x7C, 0x4E, 0x03, 0x04, 0x55, 0x05, 0x09, 0x07, 0x2D, 0x2C, 0x7B, 0x38, 0x17, 0x0D, 0x17, 0x11};
  int i, i3, x, val, idx;
  char key1[0x100];
  char key2[0x100];
  for (i = 0; i < 0x100; i++) {
    key1[i] = i;
    key2[i] = key[i & 0xf];
  }
  i3 = 0;
  for (i = 0; i < 0x100; i++) {
    x = key1[i];
    i3 = key1[i] + i3;
    i3 += key2[i];
    i3 &= 0xff;
    key1[i] = key1[i3];
    key1[i3] = x;
  }
  idx = 0;
  for (i = 0; i < size; i++) {
    x = key1[(i + 1) & 0xff];
    val = x;
    idx = (x + idx) & 0xff;
    key1[(i + 1) & 0xff] = key1[idx];
    key1[idx] = (x & 0xff);
    val = (key1[(i + 1) & 0xff] + x) & 0xff;
    val = key1[val];
    outpg[i] = val ^ inpg[i];
  }
}
```