// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movl $0x0, 0x34(%rsp)
movl $0x1, 0x30(%rsp)
movl $0x0, 0x2c(%rsp)
cmpq $0x0, 0x40(%rsp)
je 0x70aa6
cmpq $0x0, 0x38(%rsp)
jne 0x70ade
movq 0x5cb4f3(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4a555c(%rip), %rsi    # 0x516013
leaq 0x4bb5f7(%rip), %rdx    # 0x52c0b5
leaq 0x4aa8c0(%rip), %rcx    # 0x51b385
leaq 0x4bb59f(%rip), %r8     # 0x52c06b
movl $0x74, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x70ae0
callq 0x11d4a0
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x11e3a0
cmpl $-0x1, %eax
je 0x70d01
movl 0x34(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x34(%rsp)
movq 0x20(%rsp), %rdi
leaq 0x2c(%rsp), %rsi
callq 0x70d10
movq 0x20(%rsp), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
je 0x70cf2
cmpl $0x0, 0x30(%rsp)
je 0x70c5a
callq 0x197c0
movq (%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rdi
callq 0x11dee0
movq %rax, %rcx
movq 0x18(%rsp), %rax
movsbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
jne 0x70ba9
movq 0x20(%rsp), %rdi
callq 0x11dfa0
cmpq $0x3, %rax
jb 0x70c55
movq 0x20(%rsp), %rdi
callq 0x11dee0
movq %rax, %rdi
leaq 0x4bb530(%rip), %rsi    # 0x52c0c6
movl $0x3, %edx
callq 0x192f0
cmpl $0x0, %eax
jne 0x70c55
movq 0x20(%rsp), %rdi
callq 0x70fa0
cmpb $0x0, %al
jne 0x70c53
movq 0x20(%rsp), %rdi
callq 0x11dfa0
cmpq $0x50, %rax
jb 0x70be2
movq 0x40(%rsp), %rsi
movl 0x34(%rsp), %edx
leaq 0x4bb4ef(%rip), %rdi    # 0x52c0ca
movb $0x0, %al
callq 0x1267d0
movq 0x20(%rsp), %rdi
callq 0x11dee0
movq %rax, %rsi
leaq 0x52b42b(%rip), %rdi    # 0x59c021
movb $0x0, %al
callq 0x19070
movq 0x20(%rsp), %rdi
callq 0x11dee0
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rdi
callq 0x11dfa0
movq %rax, %rcx
movq 0x10(%rsp), %rax
subq $0x1, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x29, %eax
jne 0x70c41
movl $0x3b, %edi
callq 0x19960
movl $0xa, %edi
callq 0x19960
jmp 0x70c49
movl $0x0, 0x30(%rsp)
movl $0xa, %edi
callq 0x19960
jmp 0x70c55
jmp 0x70cf0
movq 0x20(%rsp), %rdi
callq 0x11dfa0
cmpq $0x50, %rax
jb 0x70c81
movq 0x40(%rsp), %rsi
movl 0x34(%rsp), %edx
leaq 0x4bb450(%rip), %rdi    # 0x52c0ca
movb $0x0, %al
callq 0x1267d0
movq 0x20(%rsp), %rdi
callq 0x11dee0
movq %rax, %rsi
leaq 0x52b38c(%rip), %rdi    # 0x59c021
movb $0x0, %al
callq 0x19070
movq 0x20(%rsp), %rdi
callq 0x11dee0
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rdi
callq 0x11dfa0
movq %rax, %rcx
movq 0x8(%rsp), %rax
subq $0x1, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x29, %eax
jne 0x70ce6
movl $0x3b, %edi
callq 0x19960
movl $0xa, %edi
callq 0x19960
movl $0x1, 0x30(%rsp)
movl $0xa, %edi
callq 0x19960
jmp 0x70cf2
movq 0x20(%rsp), %rdi
callq 0x11e110
jmp 0x70aea
movq 0x20(%rsp), %rdi
callq 0x11f560
addq $0x48, %rsp
retq