// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/tools/gt_skproto.c
// Function: skproto
static void skproto(const char *filename, FILE *fpin)
{
  int linenum = 0, startfunction = 1, incomment = 0;
  GtStr *line;

  gt_assert(filename && fpin);

  line = gt_str_new();

  while (gt_str_read_next_line(line, fpin) != EOF) {
    linenum++;
    removecomments(line, &incomment);
    if (gt_str_length(line)) {
      if (startfunction) {
        if (isalpha((int) (gt_str_get(line)[0])) ||
            (gt_str_length(line) >= (GtUword) 3 &&
             strncmp(gt_str_get(line), "/*@", (size_t) 3) == 0)) {
          if (!forbiddenstring(line)) {
            if (gt_str_length(line) >= (GtUword) MAX_LINE_LENGTH)
              gt_warning("file %s, line %d too long\n", filename, linenum);
            printf("%s", gt_str_get(line));
            if (gt_str_get(line)[gt_str_length(line)-1] == ')') {
              (void) putchar(';');
              (void) putchar('\n');
            }
            else
              startfunction = 0;
            (void) putchar('\n');
          }
        }
      }
      else {
        if (gt_str_length(line) >= (GtUword) MAX_LINE_LENGTH)
          gt_warning("file %s, line %d too long\n", filename, linenum);
        printf("%s", gt_str_get(line));
        if (gt_str_get(line)[gt_str_length(line)-1] == ')') {
          (void) putchar(';');
          (void) putchar('\n');
          startfunction = 1;
        }
        (void) putchar('\n');
      }
    }
    gt_str_reset(line);
  }

  gt_str_delete(line);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
testq %rdi, %rdi
je 0x4f2b9
movq %rsi, %r12
testq %rsi, %rsi
je 0x4f2b9
pushq $0x1
popq %r14
callq 0xacb84
movq %rax, %r15
leaq 0x3e35b0(%rip), %rbp    # 0x4324e0
xorl %ebx, %ebx
xorl %r13d, %r13d
movq %r12, 0x10(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0xad4de
cmpl $-0x1, %eax
je 0x4f2a3
testq %r15, %r15
je 0x4f0cd
movq %r15, %rdi
callq 0xad289
testq %rax, %rax
je 0x4f0cd
movl %r14d, 0x1c(%rsp)
movl %r13d, 0xc(%rsp)
movq %r15, %rdi
callq 0xad289
leaq 0x1(%rax), %rdi
leaq 0x2abf39(%rip), %rsi    # 0x2faebe
pushq $0x47
popq %rdx
callq 0x93160
movq %rax, %r14
xorl %r12d, %r12d
xorl %r13d, %r13d
movq %r12, %rbp
movq %rbp, %r12
leaq 0x3e353d(%rip), %rbp    # 0x4324e0
movq %r15, %rdi
callq 0xad289
cmpq %rax, %r12
jae 0x4f073
movq %r15, %rdi
testl %ebx, %ebx
je 0x4efd8
callq 0xad1fa
cmpb $0x2a, (%rax,%r12)
jne 0x4efd3
cmpb $0x2f, 0x1(%rax,%r12)
je 0x4f066
incq %r12
jmp 0x4efa3
callq 0xad289
cmpq $0x3, %rax
jb 0x4f002
movq %r15, %rdi
callq 0xad1fa
cmpb $0x2f, (%rax,%r12)
jne 0x4f002
movq %r15, %rdi
callq 0xad1fa
cmpb $0x2f, 0x1(%rax,%r12)
je 0x4f071
movq %r15, %rdi
callq 0xad1fa
cmpb $0x2f, (%rax,%r12)
jne 0x4f049
cmpb $0x2a, 0x1(%rax,%r12)
jne 0x4f049
leaq 0x2(%r12), %rbp
movq %r15, %rdi
callq 0xad289
pushq $0x1
popq %rbx
cmpq %rax, %rbp
jae 0x4ef99
movq %r15, %rdi
callq 0xad1fa
cmpb $0x40, 0x2(%rax,%r12)
pushq $0x1
popq %rbx
jne 0x4ef99
movq %r15, %rdi
callq 0xad1fa
movb (%rax,%r12), %al
incq %r12
movb %al, (%r14,%r13)
incq %r13
xorl %ebx, %ebx
jmp 0x4ef96
addq $0x2, %r12
xorl %ebx, %ebx
jmp 0x4ef96
xorl %ebx, %ebx
movq %r13, %r12
subq $0x1, %r13
jb 0x4f084
cmpb $0x20, -0x1(%r14,%r12)
je 0x4f073
movb $0x0, (%r14,%r12)
movq %r15, %rdi
callq 0xad1fa
leaq 0x1(%r12), %rdx
movq %rax, %rdi
movq %r14, %rsi
callq 0x17630
movq %r15, %rdi
movq %r12, %rsi
callq 0xad296
movq %r14, %rdi
leaq 0x2abe08(%rip), %rsi    # 0x2faebe
pushq $0x6c
popq %rdx
callq 0x936f9
movq 0x10(%rsp), %r12
movl 0xc(%rsp), %r13d
movl 0x1c(%rsp), %r14d
incl %r13d
movq %r15, %rdi
callq 0xad289
testq %rax, %rax
je 0x4f212
testl %r14d, %r14d
je 0x4f198
callq 0x17820
movq (%rax), %r14
movq %r15, %rdi
callq 0xad1fa
movsbq (%rax), %rax
testb $0x4, 0x1(%r14,%rax,2)
jne 0x4f145
movq %r15, %rdi
callq 0xad289
pushq $0x1
popq %r14
cmpq $0x3, %rax
jb 0x4f212
movq %r15, %rdi
callq 0xad1fa
cmpb $0x2f, (%rax)
pushq $0x1
popq %r14
jne 0x4f212
cmpb $0x2a, 0x1(%rax)
jne 0x4f212
cmpb $0x40, 0x2(%rax)
jne 0x4f212
movl %r13d, 0xc(%rsp)
xorl %r13d, %r13d
cmpq $0x38, %r13
je 0x4f21f
movq (%r13,%rbp), %r14
movq %r14, %rdi
callq 0x172d0
movq %rax, %r12
movq %r15, %rdi
callq 0xad289
cmpq %rax, %r12
ja 0x4f192
movq %r15, %rdi
callq 0xad1fa
movq %r14, %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x17310
testl %eax, %eax
je 0x4f290
addq $0x8, %r13
jmp 0x4f14d
movq %r15, %rdi
callq 0xad289
cmpq $0x50, %rax
jb 0x4f1bc
leaq 0x2abd42(%rip), %rdi    # 0x2faeef
movq 0x20(%rsp), %rsi
movl %r13d, %edx
xorl %eax, %eax
callq 0xb2cd0
movq %r15, %rdi
callq 0xad1fa
leaq 0x319cde(%rip), %rdi    # 0x368ea9
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq %r15, %rdi
callq 0xad1fa
movq %rax, %r14
movq %r15, %rdi
callq 0xad289
cmpb $0x29, -0x1(%r14,%rax)
movl $0x0, %r14d
jne 0x4f20a
pushq $0x3b
popq %rdi
callq 0x179c0
pushq $0xa
popq %rdi
callq 0x179c0
pushq $0x1
popq %r14
pushq $0xa
popq %rdi
callq 0x179c0
movq %r15, %rdi
callq 0xad357
jmp 0x4ef3a
movq %r15, %rdi
callq 0xad289
cmpq $0x50, %rax
movl 0xc(%rsp), %r13d
jb 0x4f248
leaq 0x2abcb6(%rip), %rdi    # 0x2faeef
movq 0x20(%rsp), %rsi
movl %r13d, %edx
xorl %eax, %eax
callq 0xb2cd0
movq %r15, %rdi
callq 0xad1fa
leaq 0x319c52(%rip), %rdi    # 0x368ea9
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq %r15, %rdi
callq 0xad1fa
movq %rax, %r14
movq %r15, %rdi
callq 0xad289
cmpb $0x29, -0x1(%r14,%rax)
movl $0x0, %r14d
movq 0x10(%rsp), %r12
je 0x4f1f6
jmp 0x4f20a
pushq $0x1
popq %r14
movq 0x10(%rsp), %r12
movl 0xc(%rsp), %r13d
jmp 0x4f212
movq %r15, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xae103
movq 0x3e8ca8(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x295d49(%rip), %rsi    # 0x2e5013
leaq 0x2abc0d(%rip), %rdx    # 0x2faede
leaq 0x29b064(%rip), %rcx    # 0x2ea33c
leaq 0x2abbdf(%rip), %r8     # 0x2faebe
pushq $0x74
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nop