user: What is the c source code of the assembly code below?

```asm
<function>:
  endbr64
  push   %r15
  mov    %edi,%eax
  push   %r14
  push   %r13
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x18,%rsp
  cmp    $0x3a,%dil
  je     L213
  nopw   0x0(%rax,%rax,1)
L17:
  movsbl %al,%edi
  mov    %rbp,%rsi
  call   <putc@plt>
  mov    %rbx,%rdi
  call   <getc@plt>
  cmp    $0x28,%al
  je     L71
  cmp    $0x3a,%al
  jne    L17
  test   %r12d,%r12d
  je     L213
L105:
  xor    %r15d,%r15d
  movl   $0x1,0xc(%rsp)
  mov    $0x7b,%r12d
  lea    D1(%rip),%r13
L111:
  movsbl %r12b,%edi
  mov    %rbp,%rsi
  call   <putc@plt>
  mov    %rbx,%rdi
  call   <getc@plt>
  mov    %eax,%r14d
  cmp    $0x2f,%al
  je     L5
L197:
  lea    -0xa(%r14),%eax
  cmp    $0x33,%al
  ja     L121
  movzbl %al,%eax
  movslq 0x0(%r13,%rax,4),%rax
  add    %r13,%rax
  notrack jmp *%rax
  nopl   (%rax)
  sub    $0x1,%r15d
  nopl   0x0(%rax)
L121:
  mov    %r14d,%r12d
  jmp    L111
  nopl   (%rax)
L183:
  mov    %rbx,%rdi
  call   <getc@plt>
  mov    %eax,%r14d
  cmp    $0x2f,%al
  jne    L224
  mov    %rbx,%rdi
  call   <comment@plt>
  mov    %r12d,%eax
  and    $0xffffffbf,%eax
  cmp    $0x3b,%al
  je     L32
  mov    $0x3b,%r14d
  cmp    $0x7d,%r12b
  jne    L121
L32:
  mov    $0xa,%r14d
  mov    %r14d,%r12d
  jmp    L111
  nopw   0x0(%rax,%rax,1)
  mov    %rbp,%rsi
  mov    $0x3b,%edi
  call   <putc@plt>
  subl   $0x1,0xc(%rsp)
  jne    L176
  add    $0x18,%rsp
  mov    %rbp,%rsi
  mov    $0x7d,%edi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10a0 <putc@plt>
  nopl   0x0(%rax,%rax,1)
  addl   $0x1,0xc(%rsp)
  mov    $0x7b,%r12d
  jmp    L111
  nopl   0x0(%rax,%rax,1)
  test   %r15d,%r15d
  jle    L121
  mov    %rbp,%rsi
  mov    $0x3d,%edi
  mov    %r14d,%r12d
  call   <putc@plt>
  jmp    L111
  xchg   %ax,%ax
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  mov    %r14d,%r12d
  call   <string@plt>
  jmp    L111
  nopl   0x0(%rax,%rax,1)
  add    $0x1,%r15d
  mov    %r14d,%r12d
  jmp    L111
  nopl   0x0(%rax)
L71:
  add    $0x1,%r12d
  jmp    L17
  nopl   0x0(%rax)
L5:
  mov    %rbx,%rdi
  call   <getc@plt>
  mov    %eax,%r14d
  cmp    $0x2f,%al
  je     L183
  mov    %rbp,%rsi
  mov    $0x2f,%edi
  call   <putc@plt>
  jmp    L197
  nopl   (%rax)
L224:
  mov    %rbp,%rsi
  mov    $0x2e,%edi
  call   <putc@plt>
  jmp    L197
  nopw   0x0(%rax,%rax,1)
L213:
  mov    %rbp,%rsi
  mov    $0x28,%edi
  call   <putc@plt>
  mov    %rbp,%rsi
  mov    $0x29,%edi
  call   <putc@plt>
  jmp    L105
L176:
  mov    $0x7d,%r14d
  jmp    L121
```

assistant: ```c
void function(char a, FILE *fp, FILE *tp) {
  int level = 1;
  int brackets = 0;
  char last;
  while (a != ':' && a != EOF) {
    putc(a, tp);
    last = a;
    a = getc(fp);
    if (a == '(') {
      brackets++;
    }
  }
  if (a == EOF) {
    fclose(fp);
    fclose(tp);
    exit(0);
  }
  if (brackets == 0) {
    putc('(', tp);
    putc(')', tp);
  }
  last = a;
  a = '{';
  brackets = 0;
  while (level > 0) {
    int ifc = 0, forc = 0, whilec = 0;
    putc(a, tp);
    last = a;
    a = getc(fp);
    if (a == '/') {
      a = getc(fp);
      if (a == '/') {
        a = getc(fp);
        if (a == '/') {
          comment(fp);
          a = '\n';
        } else {
          putc('.', tp);
        }
      } else {
        putc('/', tp);
      }
    }
    switch (a) {
    case '"':
      string(fp, tp);
      break;
    case '.':
      putc(';', tp);
      level--;
      a = '}';
      last = a;
      break;
    case ':':
      level++;
      a = '{';
      last = a;
    case '\n':
      if (last == ';' || last == '{' || last == '}') {
        break;
      }
      a = ';';
      last = a;
      break;
    case '(':
      brackets++;
      break;
    case ')':
      brackets--;
      break;
    case '=': {
      if (brackets > 0) {
        putc(a, tp);
      }
      break;
    }
    case EOF:
      exit(0);
    }
  }
  putc(a, tp);
}
```