user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<decomment_asm>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x38,%rsp
  mov    %rdi,-0x1038(%rbp)
  mov    %rsi,-0x1040(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  lea    -0x1020(%rbp),%rax
  mov    %rax,-0x1028(%rbp)
  movl   $0x0,-0x102c(%rbp)
  jmp    L137
L275:
  cmpl   $0x3,-0x102c(%rbp)
  je     L50
  cmpl   $0x3,-0x102c(%rbp)
  ja     L42
  cmpl   $0x2,-0x102c(%rbp)
  je     L83
  cmpl   $0x2,-0x102c(%rbp)
  ja     L42
  cmpl   $0x0,-0x102c(%rbp)
  je     L97
  cmpl   $0x1,-0x102c(%rbp)
  je     L215
  jmp    L42
L97:
  cmp    $0x3b,%ebx
  je     L101
  cmp    $0x3b,%ebx
  jg     L251
  cmp    $0x22,%ebx
  je     L230
  cmp    $0x27,%ebx
  jne    L251
  movl   $0x3,-0x102c(%rbp)
  mov    -0x1028(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x1028(%rbp)
  mov    %ebx,%edx
  mov    %dl,(%rax)
  jmp    L199
L230:
  movl   $0x2,-0x102c(%rbp)
  mov    -0x1028(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x1028(%rbp)
  mov    %ebx,%edx
  mov    %dl,(%rax)
  jmp    L199
L101:
  movl   $0x1,-0x102c(%rbp)
  jmp    L199
L251:
  mov    -0x1028(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x1028(%rbp)
  mov    %ebx,%edx
  mov    %dl,(%rax)
  nop
L199:
  jmp    L42
L215:
  cmp    $0xa,%ebx
  jne    L140
  movl   $0x0,-0x102c(%rbp)
  jmp    L140
L83:
  mov    -0x1028(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x1028(%rbp)
  mov    %ebx,%edx
  mov    %dl,(%rax)
  cmp    $0x22,%ebx
  je     L312
  cmp    $0x5c,%ebx
  je     L139
  jmp    L42
L312:
  movl   $0x0,-0x102c(%rbp)
  jmp    L46
L139:
  mov    -0x1040(%rbp),%rax
  mov    %rax,%rdi
  call   <getc@plt>
  mov    %eax,%ebx
  mov    -0x1028(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x1028(%rbp)
  mov    %ebx,%edx
  mov    %dl,(%rax)
  nop
L46:
  jmp    L42
L50:
  mov    -0x1028(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x1028(%rbp)
  mov    %ebx,%edx
  mov    %dl,(%rax)
  cmp    $0x27,%ebx
  je     L193
  cmp    $0x5c,%ebx
  je     L235
  jmp    L42
L193:
  movl   $0x0,-0x102c(%rbp)
  jmp    L207
L235:
  mov    -0x1040(%rbp),%rax
  mov    %rax,%rdi
  call   <getc@plt>
  nop
L207:
  jmp    L42
L140:
  nop
L42:
  mov    -0x1028(%rbp),%rdx
  lea    -0x1020(%rbp),%rax
  cmp    %rax,%rdx
  jbe    L137
  mov    -0x1028(%rbp),%rax
  sub    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  jne    L137
  lea    -0x1028(%rbp),%rdx
  lea    -0x1020(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <blankline@plt>
L137:
  mov    -0x1040(%rbp),%rax
  mov    %rax,%rdi
  call   <getc@plt>
  mov    %eax,%ebx
  mov    D5(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,%ebx
  jne    L275
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L189
  call   <__stack_chk_fail@plt>
L189:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void decomment_asm(const char *fname, FILE *in) {
  register int c, c1;
  char outbuf[4 * 1024];
  char *op = outbuf;
  enum { NORMAL, ASM_COMMENT, STRINGLITERAL, CHARLITERAL } state = NORMAL;
  while ((c = getc(in)) != EOF) {
    switch (state) {
    case NORMAL:
      switch (c) {
      case '\'':
        state = CHARLITERAL;
        *op++ = c;
        break;
      case '"':
        state = STRINGLITERAL;
        *op++ = c;
        break;
      case ';':
        state = ASM_COMMENT;
        break;
      default:
        *op++ = c;
        break;
      }
      break;
    case ASM_COMMENT:
      if (c == '\n') {
        state = NORMAL;
      }
      break;
    case STRINGLITERAL:
      *op++ = c;
      switch (c) {
      case '"':
        state = NORMAL;
        break;
      case '\\':
        c1 = getc(in);
        *op++ = c1;
        break;
      }
      break;
    case CHARLITERAL:
      *op++ = c;
      switch (c) {
      case '\'':
        state = NORMAL;
        break;
      case '\\':
        getc(in);
        break;
      }
      break;
    }
    if (op > outbuf && op[-1] == '\n') {
      blankline(outbuf, &op);
    }
  }
}
```