user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<unstargun>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  sub    $0x898,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x888(%rsp)
  xor    %eax,%eax
  test   %rsi,%rsi
  je     L185
  mov    %rdx,%r12
  mov    %rdi,%r10
  xor    %ebx,%ebx
  xor    %esi,%esi
  lea    0x80(%rsp),%rdx
L247:
  xor    %eax,%eax
  nopl   0x0(%rax,%rax,1)
L17:
  mov    %eax,(%rdx,%rax,4)
  add    $0x1,%rax
  cmp    $0x100,%rax
  jne    L17
  mov    (%r10,%rsi,4),%r11d
  xor    %eax,%eax
  lea    0x1(%rsi),%ecx
  cmp    $0x7f,%r11d
  jle    L56
L67:
  lea    -0x7f(%rax,%r11,1),%eax
  cmp    $0x100,%eax
  je     L58
  cmp    $0xff,%eax
  ja     L44
  xor    %r11d,%r11d
L170:
  xor    %edi,%edi
  jmp    L161
L114:
  mov    (%r10,%rsi,4),%esi
  add    $0x1,%edi
  add    $0x2,%ecx
  add    $0x1,%eax
  mov    %esi,0x480(%rsp,%r9,4)
  cmp    %r11d,%edi
  jg     L174
L165:
  cmp    $0x100,%eax
  je     L44
L161:
  mov    %ecx,%r8d
  mov    %eax,%r9d
  lea    0x1(%rcx),%esi
  mov    (%r10,%r8,4),%r8d
  mov    %r8d,0x80(%rsp,%r9,4)
  cmp    %eax,%r8d
  jne    L114
  add    $0x1,%edi
  mov    %esi,%ecx
  add    $0x1,%eax
  cmp    %r11d,%edi
  jle    L165
L174:
  cmp    $0x100,%eax
  je     L58
  mov    %ecx,%esi
L237:
  mov    (%r10,%rsi,4),%r11d
  lea    0x1(%rsi),%ecx
  cmp    $0x7f,%r11d
  jg     L67
L56:
  test   %r11d,%r11d
  jns    L170
  mov    %ecx,%esi
  jmp    L237
L58:
  mov    %ecx,%eax
  lea    0x2(%rcx),%esi
  add    $0x1,%ecx
  mov    (%r10,%rcx,4),%r9d
  shl    $0x8,%r9d
  or     (%r10,%rax,4),%r9d
  xor    %eax,%eax
  nopl   0x0(%rax)
L73:
  test   %eax,%eax
  je     L38
  lea    -0x1(%rax),%r15d
  movslq %r15d,%rcx
  movslq (%rsp,%rcx,4),%r8
  mov    0x80(%rsp,%r8,4),%edi
  mov    %r8,%rcx
  cmp    %r8d,%edi
  je     L35
  cmp    $0x7d,%r15d
  jle    L91
L44:
  mov    $0xffffffff,%eax
L141:
  mov    0x888(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L4
  add    $0x898,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L38:
  sub    $0x1,%r9d
  jb     L140
  movslq (%r10,%rsi,4),%r8
  lea    0x1(%rsi),%r11d
  mov    $0x2,%r13d
  mov    $0x1,%r14d
  mov    0x80(%rsp,%r8,4),%edi
  mov    %r8,%rcx
  cmp    %r8d,%edi
  je     L239
L175:
  mov    0x480(%rsp,%r8,4),%ecx
  mov    %r11d,%esi
  mov    %ecx,(%rsp,%rax,4)
  movslq %r14d,%rax
  mov    %edi,(%rsp,%rax,4)
  movslq %r13d,%rax
  jmp    L73
L239:
  xor    %r15d,%r15d
  mov    %r11d,%esi
L35:
  mov    %ebx,%eax
  add    $0x1,%ebx
  mov    %ecx,(%r12,%rax,4)
  movslq %r15d,%rax
  jmp    L73
L140:
  mov    %ebx,%eax
  cmp    %rbp,%rax
  jb     L247
L118:
  mov    %ebx,%eax
  sub    %ebp,%eax
  jmp    L141
L185:
  xor    %ebx,%ebx
  jmp    L118
L91:
  lea    0x1(%rax),%r13d
  mov    %eax,%r14d
  mov    %esi,%r11d
  movslq %r15d,%rax
  jmp    L175
L4:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
unsigned int unstargun(const uint8_t *in, size_t expanded_size, uint8_t *out) {
  uint8_t tableA[256], tableB[256];
  unsigned int inpos = 0;
  unsigned int outpos = 0;
  int i;
  while (outpos < expanded_size) {
    for (i = 0; i < 256; i++)
      tableA[i] = i;
    uint8_t code;
    unsigned int tablepos = 0;
    do {
      code = in[inpos++];
      if (code > 127) {
        tablepos += code - 127;
        code = 0;
      }
      if (tablepos == 256)
        break;
      for (i = 0; i <= code; i++) {
        if (tablepos >= 256)
          return (-1);
        uint8_t data = in[inpos++];
        tableA[tablepos] = data;
        if (tablepos != data) {
          tableB[tablepos] = in[inpos++];
        }
        tablepos++;
      }
    } while (tablepos < 256);
    int len = in[inpos++];
    len |= in[inpos++] << 8;
    int expbufpos = 0;
    uint8_t expbuf[32];
    while (1) {
      if (expbufpos) {
        code = expbuf[--expbufpos];
      } else {
        if (--len == -1)
          break;
        code = in[inpos++];
      }
      if (code == tableA[code]) {
        out[outpos++] = code;
      } else {
        if (expbufpos >= (signed)sizeof(expbuf) - 2)
          return (-1);
        expbuf[expbufpos++] = tableB[code];
        expbuf[expbufpos++] = tableA[code];
      }
    }
  }
  return outpos - expanded_size;
}
```