// File: /workspace/github_c_makefile_star2_O3/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 $0x18, %rsp
movq %rdi, 0x10(%rsp)
testq %rdi, %rdi
je 0xca372
movq %rsi, %r13
testq %rsi, %rsi
je 0xca372
callq 0x11ac6c
movq %rax, %r15
movq %rax, %rdi
movq %r13, %rsi
callq 0x11b1ff
cmpl $-0x1, %eax
je 0xca35c
movl $0x1, %ebp
xorl %r12d, %r12d
xorl %ebx, %ebx
movq %r13, (%rsp)
testq %r15, %r15
je 0xca184
movq %r15, %rdi
callq 0x11b0ca
testq %rax, %rax
je 0xca184
movl %ebp, 0x8(%rsp)
movq %r13, %rbp
movl %r12d, 0xc(%rsp)
movq %r15, %rdi
callq 0x11b0ca
leaq 0x1(%rax), %rdi
leaq 0x290eab(%rip), %rsi    # 0x35aee6
movl $0x47, %edx
callq 0x104226
movq %rax, %r13
movq %r15, %rdi
callq 0x11b0ca
testq %rax, %rax
je 0xca130
xorl %r14d, %r14d
xorl %ebp, %ebp
movq %r15, %rdi
testl %ebx, %ebx
je 0xca085
callq 0x11b0a1
cmpb $0x2a, (%rax,%rbp)
jne 0xca080
cmpb $0x2f, 0x1(%rax,%rbp)
jne 0xca080
addq $0x2, %rbp
jmp 0xca101
incq %rbp
jmp 0xca103
callq 0x11b0ca
cmpq $0x3, %rax
jb 0xca0b1
movq %r15, %rdi
callq 0x11b0a1
cmpb $0x2f, (%rax,%rbp)
jne 0xca0b1
movq %r15, %rdi
callq 0x11b0a1
cmpb $0x2f, 0x1(%rax,%rbp)
je 0xca355
movq %r15, %rdi
callq 0x11b0a1
cmpb $0x2f, (%rax,%rbp)
jne 0xca0eb
cmpb $0x2a, 0x1(%rax,%rbp)
jne 0xca0eb
leaq 0x2(%rbp), %r12
movq %r15, %rdi
callq 0x11b0ca
movl $0x1, %ebx
cmpq %rax, %r12
jae 0xca106
movq %r15, %rdi
callq 0x11b0a1
cmpb $0x40, (%rax,%r12)
jne 0xca106
movq %r15, %rdi
callq 0x11b0a1
movb (%rax,%rbp), %al
incq %rbp
movb %al, (%r13,%r14)
incq %r14
xorl %ebx, %ebx
movq %rbp, %r12
movq %r15, %rdi
callq 0x11b0ca
movq %r12, %rbp
cmpq %rax, %r12
jb 0xca05e
testq %r14, %r14
je 0xca135
movq (%rsp), %rbp
cmpb $0x20, -0x1(%r13,%r14)
jne 0xca13c
decq %r14
jne 0xca123
xorl %r14d, %r14d
jmp 0xca13c
xorl %r14d, %r14d
movq (%rsp), %rbp
movb $0x0, (%r13,%r14)
movq %r15, %rdi
callq 0x11b0a1
leaq 0x1(%r14), %rdx
movq %rax, %rdi
movq %r13, %rsi
callq 0x17660
movq %r15, %rdi
movq %r14, %rsi
callq 0x11b0d7
movq %r13, %rdi
leaq 0x290d78(%rip), %rsi    # 0x35aee6
movl $0x6c, %edx
callq 0x1045eb
movl 0xc(%rsp), %r12d
movq %rbp, %r13
movl 0x8(%rsp), %ebp
incl %r12d
movq %r15, %rdi
callq 0x11b0ca
testq %rax, %rax
je 0xca329
testl %ebp, %ebp
je 0xca2ac
callq 0x17870
movq (%rax), %r14
movq %r15, %rdi
callq 0x11b0a1
movsbq (%rax), %rax
testb $0x4, 0x1(%r14,%rax,2)
jne 0xca1f8
movq %r15, %rdi
callq 0x11b0ca
movl $0x1, %ebp
cmpq $0x3, %rax
jb 0xca329
movq %r15, %rdi
callq 0x11b0a1
cmpb $0x2f, (%rax)
jne 0xca329
cmpb $0x2a, 0x1(%rax)
jne 0xca329
cmpb $0x40, 0x2(%rax)
jne 0xca329
movl %r12d, %ebp
xorl %r12d, %r12d
leaq 0x3e92cb(%rip), %rax    # 0x4b34d0
movq (%r12,%rax), %r14
movq %r14, %rdi
callq 0x172f0
movq %rax, %r13
movq %r15, %rdi
callq 0x11b0ca
cmpq %rax, %r13
ja 0xca23f
movq %r15, %rdi
callq 0x11b0a1
movq %r14, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x17330
testl %eax, %eax
je 0xca347
addq $0x8, %r12
cmpq $0x38, %r12
jne 0xca1fe
movq %r15, %rdi
callq 0x11b0ca
cmpq $0x50, %rax
movl %ebp, %r12d
jb 0xca270
leaq 0x290cb6(%rip), %rdi    # 0x35af17
movq 0x10(%rsp), %rsi
movl %r12d, %edx
xorl %eax, %eax
callq 0x11f68c
movq %r15, %rdi
callq 0x11b0a1
xorl %ebp, %ebp
leaq 0x2fe828(%rip), %rdi    # 0x3c8aa9
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq %r15, %rdi
callq 0x11b0a1
movq %rax, %r14
movq %r15, %rdi
callq 0x11b0ca
cmpb $0x29, -0x1(%r14,%rax)
movq (%rsp), %r13
je 0xca306
jmp 0xca31f
movq %r15, %rdi
callq 0x11b0ca
cmpq $0x50, %rax
jb 0xca2d0
leaq 0x290c56(%rip), %rdi    # 0x35af17
movq 0x10(%rsp), %rsi
movl %r12d, %edx
xorl %eax, %eax
callq 0x11f68c
movq %r15, %rdi
callq 0x11b0a1
xorl %ebp, %ebp
leaq 0x2fe7c8(%rip), %rdi    # 0x3c8aa9
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq %r15, %rdi
callq 0x11b0a1
movq %rax, %r14
movq %r15, %rdi
callq 0x11b0ca
cmpb $0x29, -0x1(%r14,%rax)
jne 0xca31f
movl $0x3b, %edi
callq 0x17a20
movl $0xa, %edi
callq 0x17a20
movl $0x1, %ebp
movl $0xa, %edi
callq 0x17a20
movq %r15, %rdi
callq 0x11b132
movq %r15, %rdi
movq %r13, %rsi
callq 0x11b1ff
cmpl $-0x1, %eax
jne 0xca002
jmp 0xca35c
movl %ebp, %r12d
movl $0x1, %ebp
movq (%rsp), %r13
jmp 0xca329
xorl %ebx, %ebx
jmp 0xca11a
movq %r15, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11bdbf
callq 0x205b9
nop