// File: /workspace/github_c_makefile_star2_O3/yhg926[P]public_kssd/global_basic.c
// Function: infile_fmt_count
infile_fmt_count_t *infile_fmt_count ( infile_tab_t * infile_tab )
{
 infile_fmt_count_t tmp_fmt_count = {0,0,0,0};
 infile_fmt_count_t* fmt_count = (infile_fmt_count_t*)malloc(sizeof(infile_fmt_count_t));
 *fmt_count = tmp_fmt_count;
 for(int i = 0; i < infile_tab->infile_num; i++ )
 {
  if( isOK_fmt_infile(infile_tab->organized_infile_tab[i].fpath,fasta_fmt,FAS_FMT_SZ) )
   fmt_count->fasta++;
  else if (isOK_fmt_infile (infile_tab->organized_infile_tab[i].fpath, fastq_fmt,FQ_FMT_SZ ) )
   fmt_count->fastq++;
  else if(isOK_fmt_infile (infile_tab->organized_infile_tab[i].fpath, co_fmt,CO_FMT_SZ) )
   fmt_count->co++;
  else if(isOK_fmt_infile (infile_tab->organized_infile_tab[i].fpath, mco_fmt,MCO_FMT_SZ))
   fmt_count->mco++;
  else if(infile_tab->organized_infile_tab[i].fsize != 0)
   err(errno,"infile_fmt_count(): %s is not accept format(.fasta,.fastq,.co)",infile_tab->organized_infile_tab[i].fpath);
 }
 return fmt_count;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %rdi, %r15
movl $0x1, %edi
movl $0x10, %esi
callq 0x32a0
movq %rax, 0x10(%rsp)
cmpl $0x0, (%r15)
jle 0x12446
movq 0x10(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x30(%rsp)
leaq 0xc(%rax), %rcx
movq %rcx, 0x28(%rsp)
addq $0x4, %rax
movq %rax, 0x20(%rsp)
leaq 0xbf49(%rip), %rbx      # 0x1e000
leaq 0x46(%rsp), %r12
xorl %ecx, %ecx
movq %r15, 0x8(%rsp)
movq 0x8(%r15), %rax
movq %rcx, 0x38(%rsp)
shlq $0x4, %rcx
movq %rcx, 0x18(%rsp)
movq 0x8(%rax,%rcx), %r13
movq %r13, %rdi
callq 0x3130
movq %rax, %rbp
xorl %r15d, %r15d
xorl %ecx, %ecx
movq (%rbx,%rcx,8), %r14
movq %r14, %rdi
callq 0x3130
movl %ebp, %ecx
subl %eax, %ecx
movslq %ecx, %rdi
addq %r13, %rdi
movq %r14, %rsi
callq 0x32b0
testb $0x1, %r15b
jne 0x1211a
movl $0x1, %ecx
movb $0x1, %r15b
testl %eax, %eax
jne 0x120ea
testl %eax, %eax
leaq 0x50(%rsp), %rax
cmoveq %rax, %r13
movq 0xbe94(%rip), %rdx      # 0x1dfc0
movq %r12, %rdi
leaq 0x3296(%rip), %r15      # 0x153cc
movq %r15, %rsi
xorl %eax, %eax
callq 0x3430
movq %r13, %rdi
callq 0x3130
leaq (%rax,%r13), %r14
movq %r12, %rdi
callq 0x3130
subq %rax, %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x32b0
testl %eax, %eax
je 0x1241f
movq $-0x1, %rbp
cmpq $0x2, %rbp
je 0x121c8
leaq 0xbe42(%rip), %rax      # 0x1dfc0
movq 0x10(%rax,%rbp,8), %rdx
movq %r12, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x3430
movq %r13, %rdi
callq 0x3130
leaq (%rax,%r13), %r14
movq %r12, %rdi
callq 0x3130
subq %rax, %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x32b0
incq %rbp
testl %eax, %eax
jne 0x12171
movq 0x10(%rsp), %rcx
cmpq $0x3, %rbp
jb 0x1242b
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x18(%rsp), %rcx
movq 0x8(%rax,%rcx), %r13
movq %r13, %rdi
callq 0x3130
movq %rax, %rbp
xorl %r15d, %r15d
xorl %ecx, %ecx
movq (%rbx,%rcx,8), %r14
movq %r14, %rdi
callq 0x3130
movl %ebp, %ecx
subl %eax, %ecx
movslq %ecx, %rdi
addq %r13, %rdi
movq %r14, %rsi
callq 0x32b0
testb $0x1, %r15b
jne 0x1221b
movl $0x1, %ecx
movb $0x1, %r15b
testl %eax, %eax
jne 0x121eb
testl %eax, %eax
leaq 0x50(%rsp), %rax
cmoveq %rax, %r13
movq 0xbdb3(%rip), %rdx      # 0x1dfe0
movq %r12, %rdi
leaq 0x3195(%rip), %r15      # 0x153cc
movq %r15, %rsi
xorl %eax, %eax
callq 0x3430
movq %r13, %rdi
callq 0x3130
leaq (%rax,%r13), %r14
movq %r12, %rdi
callq 0x3130
subq %rax, %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x32b0
testl %eax, %eax
je 0x12426
xorl %ebp, %ebp
cmpq $0x1, %rbp
je 0x122c4
leaq 0xbd66(%rip), %rax      # 0x1dfe0
movq 0x8(%rax,%rbp,8), %rdx
movq %r12, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x3430
movq %r13, %rdi
callq 0x3130
leaq (%rax,%r13), %r14
movq %r12, %rdi
callq 0x3130
subq %rax, %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x32b0
incq %rbp
testl %eax, %eax
jne 0x1226d
movq 0x20(%rsp), %rcx
cmpq $0x1, %rbp
je 0x1242b
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x18(%rsp), %rcx
movq 0x8(%rax,%rcx), %r13
movq %r13, %rdi
callq 0x3130
movq %rax, %rbp
xorl %r15d, %r15d
xorl %ecx, %ecx
movq (%rbx,%rcx,8), %r14
movq %r14, %rdi
callq 0x3130
movl %ebp, %ecx
subl %eax, %ecx
movslq %ecx, %rdi
addq %r13, %rdi
movq %r14, %rsi
callq 0x32b0
testb $0x1, %r15b
jne 0x12317
movl $0x1, %ecx
movb $0x1, %r15b
testl %eax, %eax
jne 0x122e7
testl %eax, %eax
leaq 0x50(%rsp), %rax
cmoveq %rax, %r13
movq 0xbcc7(%rip), %rdx      # 0x1dff0
movq %r12, %rdi
leaq 0x3099(%rip), %rsi      # 0x153cc
xorl %eax, %eax
callq 0x3430
movq %r13, %rdi
callq 0x3130
addq %rax, %r13
movq %r12, %rdi
callq 0x3130
subq %rax, %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x32b0
movq 0x30(%rsp), %rcx
testl %eax, %eax
je 0x1242b
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x18(%rsp), %rcx
movq 0x8(%rax,%rcx), %r13
movq %r13, %rdi
callq 0x3130
movq %rax, %rbp
xorl %r15d, %r15d
xorl %ecx, %ecx
movq (%rbx,%rcx,8), %r14
movq %r14, %rdi
callq 0x3130
movl %ebp, %ecx
subl %eax, %ecx
movslq %ecx, %rdi
addq %r13, %rdi
movq %r14, %rsi
callq 0x32b0
testb $0x1, %r15b
jne 0x123bb
movl $0x1, %ecx
movb $0x1, %r15b
testl %eax, %eax
jne 0x1238b
testl %eax, %eax
leaq 0x50(%rsp), %rax
cmoveq %rax, %r13
movq 0xbc2b(%rip), %rdx      # 0x1dff8
movq %r12, %rdi
leaq 0x2ff5(%rip), %rsi      # 0x153cc
xorl %eax, %eax
callq 0x3430
movq %r13, %rdi
callq 0x3130
addq %rax, %r13
movq %r12, %rdi
callq 0x3130
subq %rax, %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x32b0
movq 0x28(%rsp), %rcx
testl %eax, %eax
je 0x1242b
movq 0x8(%rsp), %r15
movq 0x8(%r15), %r14
movq 0x18(%rsp), %r13
cmpq $0x0, (%r14,%r13)
je 0x12432
jmp 0x1245d
movq 0x10(%rsp), %rcx
jmp 0x1242b
movq 0x20(%rsp), %rcx
incl (%rcx)
movq 0x8(%rsp), %r15
movq 0x38(%rsp), %rcx
incq %rcx
movslq (%r15), %rax
cmpq %rax, %rcx
jl 0x120c3
movq 0x10(%rsp), %rax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3060
movl (%rax), %edi
movq 0x8(%r14,%r13), %rdx
leaq 0x5a8e(%rip), %rsi      # 0x17efe
xorl %eax, %eax
callq 0x3330