// File: /workspace/github_c_makefile_star2_O1/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 0xcc651
movq %rsi, %r13
testq %rsi, %rsi
je 0xcc651
callq 0x1208f8
movq %rax, %r15
movq %rax, %rdi
movq %r13, %rsi
callq 0x120e88
cmpl $-0x1, %eax
je 0xcc63b
movl $0x1, %r12d
xorl %ebp, %ebp
xorl %r14d, %r14d
movq %r13, (%rsp)
testq %r15, %r15
je 0xcc46b
movq %r15, %rdi
callq 0x120d4c
testq %rax, %rax
je 0xcc46b
movl %r12d, 0x8(%rsp)
movl %ebp, 0xc(%rsp)
movq %r15, %rdi
callq 0x120d4c
leaq 0x1(%rax), %rdi
leaq 0x297c4d(%rip), %rsi    # 0x363f5a
movl $0x47, %edx
callq 0x1092b2
movq %rax, %rbp
movq %r15, %rdi
callq 0x120d4c
xorl %ebx, %ebx
testq %rax, %rax
je 0xcc40a
xorl %r13d, %r13d
movq %r15, %rdi
testl %r14d, %r14d
je 0xcc35b
callq 0x120d23
leaq (%rax,%r13), %rdi
movl $0x2, %edx
leaq 0x297c5d(%rip), %rsi    # 0x363faa
callq 0x17330
testl %eax, %eax
je 0xcc3c2
incq %r13
jmp 0xcc3c9
callq 0x120d4c
cmpq $0x3, %rax
jb 0xcc389
movq %r15, %rdi
callq 0x120d23
cmpb $0x2f, (%rax,%r13)
jne 0xcc389
movq %r15, %rdi
callq 0x120d23
cmpb $0x2f, 0x1(%rax,%r13)
je 0xcc40a
movq %r15, %rdi
callq 0x120d23
leaq (%rax,%r13), %rdi
movl $0x2, %edx
leaq 0x283699(%rip), %rsi    # 0x34fa3a
callq 0x17330
testl %eax, %eax
je 0xcc3e2
movq %r15, %rdi
callq 0x120d23
movb (%rax,%r13), %al
incq %r13
movb %al, (%rbp,%rbx)
incq %rbx
jmp 0xcc3c9
addq $0x2, %r13
xorl %r14d, %r14d
movq %r13, %r12
movq %r15, %rdi
callq 0x120d4c
movq %r12, %r13
cmpq %rax, %r12
jb 0xcc330
jmp 0xcc40a
leaq 0x2(%r13), %r12
movq %r15, %rdi
callq 0x120d4c
cmpq %rax, %r12
jae 0xcc402
movq %r15, %rdi
callq 0x120d23
cmpb $0x40, (%rax,%r12)
je 0xcc3aa
movl $0x1, %r14d
jmp 0xcc3cc
testq %rbx, %rbx
movl 0x8(%rsp), %r12d
je 0xcc428
movq (%rsp), %r13
cmpb $0x20, -0x1(%rbp,%rbx)
jne 0xcc42c
decq %rbx
jne 0xcc418
xorl %ebx, %ebx
jmp 0xcc42c
movq (%rsp), %r13
movb $0x0, (%rbp,%rbx)
movq %r15, %rdi
callq 0x120d23
leaq 0x1(%rbx), %rdx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x17660
movq %r15, %rdi
movq %rbx, %rsi
callq 0x120d59
movq %rbp, %rdi
leaq 0x297afd(%rip), %rsi    # 0x363f5a
movl $0x6c, %edx
callq 0x109670
movl 0xc(%rsp), %ebp
incl %ebp
movq %r15, %rdi
callq 0x120d4c
testq %rax, %rax
je 0xcc60e
testl %r12d, %r12d
je 0xcc591
callq 0x17870
movq (%rax), %rbx
movq %r15, %rdi
callq 0x120d23
movsbq (%rax), %rax
testb $0x4, 0x1(%rbx,%rax,2)
jne 0xcc4de
movq %r15, %rdi
callq 0x120d4c
movl $0x1, %r12d
cmpq $0x3, %rax
jb 0xcc60e
movq %r15, %rdi
callq 0x120d23
movl $0x3, %edx
movq %rax, %rdi
leaq 0x297aba(%rip), %rsi    # 0x363f8b
callq 0x17330
testl %eax, %eax
jne 0xcc60e
movl %ebp, %r13d
xorl %r12d, %r12d
leaq 0x3f1ff5(%rip), %rax    # 0x4be4e0
movq (%r12,%rax), %rbx
movq %rbx, %rdi
callq 0x172f0
movq %rax, %rbp
movq %r15, %rdi
callq 0x120d4c
cmpq %rax, %rbp
ja 0xcc525
movq %r15, %rdi
callq 0x120d23
movq %rbx, %rdi
movq %rax, %rsi
movq %rbp, %rdx
callq 0x17330
testl %eax, %eax
je 0xcc62c
addq $0x8, %r12
cmpq $0x38, %r12
jne 0xcc4e4
movq %r15, %rdi
callq 0x120d4c
cmpq $0x50, %rax
movl %r13d, %ebp
jb 0xcc555
leaq 0x297a48(%rip), %rdi    # 0x363f8f
movq 0x10(%rsp), %rsi
movl %ebp, %edx
xorl %eax, %eax
callq 0x125448
movq %r15, %rdi
callq 0x120d23
xorl %r12d, %r12d
leaq 0x305c6a(%rip), %rdi    # 0x3d21d1
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq %r15, %rdi
callq 0x120d23
movq %rax, %rbx
movq %r15, %rdi
callq 0x120d4c
cmpb $0x29, -0x1(%rbx,%rax)
movq (%rsp), %r13
je 0xcc5ea
jmp 0xcc604
movq %r15, %rdi
callq 0x120d4c
cmpq $0x50, %rax
jb 0xcc5b4
leaq 0x2979e9(%rip), %rdi    # 0x363f8f
movq 0x10(%rsp), %rsi
movl %ebp, %edx
xorl %eax, %eax
callq 0x125448
movq %r15, %rdi
callq 0x120d23
xorl %r12d, %r12d
leaq 0x305c0b(%rip), %rdi    # 0x3d21d1
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq %r15, %rdi
callq 0x120d23
movq %rax, %rbx
movq %r15, %rdi
callq 0x120d4c
cmpb $0x29, -0x1(%rbx,%rax)
jne 0xcc604
movl $0x3b, %edi
callq 0x17a20
movl $0xa, %edi
callq 0x17a20
movl $0x1, %r12d
movl $0xa, %edi
callq 0x17a20
movq %r15, %rdi
callq 0x120db4
movq %r15, %rdi
movq %r13, %rsi
callq 0x120e88
cmpl $-0x1, %eax
jne 0xcc2d7
jmp 0xcc63b
movl %r13d, %ebp
movl $0x1, %r12d
movq (%rsp), %r13
jmp 0xcc60e
movq %r15, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x121b03
callq 0x209b5
nop