user: Please show me the C implementation that matches the assembly code listed below:

```asm
<function>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rsi,%r12
  mov    %rdx,%rbp
  cmp    $0x3a,%dil
  je     L218
  mov    %edi,%eax
  mov    $0x0,%ebx
  jmp    L70
L64:
  add    $0x1,%ebx
L70:
  movsbl %al,%edi
  mov    %rbp,%rsi
  call   <putc@plt>
  mov    %r12,%rdi
  call   <getc@plt>
  cmp    $0x28,%al
  je     L64
  cmp    $0x3a,%al
  jne    L70
  test   %ebx,%ebx
  je     L218
L202:
  movl   $0x0,0xc(%rsp)
  mov    $0x1,%r14d
  mov    $0x7b,%r13d
  lea    D3(%rip),%r15
  jmp    L114
L218:
  mov    %rbp,%rsi
  mov    $0x28,%edi
  call   <putc@plt>
  mov    %rbp,%rsi
  mov    $0x29,%edi
  call   <putc@plt>
  jmp    L202
L115:
  mov    %r12,%rdi
  call   <getc@plt>
  mov    %eax,%ebx
  cmp    $0x2f,%al
  je     L28
  mov    %rbp,%rsi
  mov    $0x2f,%edi
  call   <putc@plt>
  jmp    L96
L28:
  mov    %r12,%rdi
  call   <getc@plt>
  mov    %eax,%ebx
  cmp    $0x2f,%al
  je     L18
  mov    %rbp,%rsi
  mov    $0x2e,%edi
  call   <putc@plt>
  jmp    L96
L18:
  mov    %r12,%rdi
  call   <comment@plt>
  mov    %r13d,%eax
  and    $0xffffffbf,%eax
  cmp    $0x3b,%al
  je     L210
  mov    $0x3b,%ebx
  cmp    $0x7d,%r13b
  jne    L182
L210:
  mov    $0xa,%ebx
  jmp    L182
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <string@plt>
L182:
  test   %r14d,%r14d
  jle    L31
  mov    %ebx,%r13d
L114:
  movsbl %r13b,%edi
  mov    %rbp,%rsi
  call   <putc@plt>
  mov    %r12,%rdi
  call   <getc@plt>
  mov    %eax,%ebx
  cmp    $0x2f,%al
  je     L115
L96:
  lea    -0xa(%rbx),%eax
  cmp    $0x33,%al
  ja     L182
  movzbl %al,%eax
  movslq (%r15,%rax,4),%rax
  add    %r15,%rax
  notrack jmp *%rax
  mov    %rbp,%rsi
  mov    $0x3b,%edi
  call   <putc@plt>
  sub    $0x1,%r14d
  mov    $0x7d,%ebx
  jmp    L182
  add    $0x1,%r14d
  mov    $0x7b,%ebx
  jmp    L182
  addl   $0x1,0xc(%rsp)
  jmp    L182
  subl   $0x1,0xc(%rsp)
  jmp    L182
  cmpl   $0x0,0xc(%rsp)
  jle    L182
  mov    %rbp,%rsi
  mov    $0x3d,%edi
  call   <putc@plt>
  jmp    L182
L31:
  movsbl %bl,%edi
  mov    %rbp,%rsi
  call   <putc@plt>
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

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);
}
```