// File: /workspace/github_c_makefile_star2_O3/annoroad[P]fqtools_plus/cutadapt.c
// Function: cutadapt_main
void cutadapt_main(char* fq1, char* adapter_seq, int min_overlap){
	gzFile* gzfp1 = gzopen(fq1,"rb");
	if (gzfp1 == NULL){
		fprintf(stderr, "%s not open\n",fq1 );
		exit(1);
	}
	adaptline_* adaptline1 = (adaptline_*)malloc(sizeof(adaptline_));
	adaptline1->adapter = initalign(adapter_seq,min_overlap);
	adaptline1->adapter->s2 = (char*)malloc(sizeof(char)*1024);
	adaptline1->id = (char*)malloc(sizeof(char)*1024);
	adaptline1->gzfp = gzfp1;
	func(adaptline1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc28, %rsp            # imm = 0xC28
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
leaq 0x1061(%rip), %rsi      # 0x7c57
callq 0x2210
testq %rax, %rax
je 0x6e38
movq %rax, %rbx
movl $0x18, %edi
callq 0x21c0
movq %rax, %r15
movq %r14, %rdi
movl %ebp, %esi
callq 0x6840
movq %rax, %r14
movq %rax, (%r15)
movl $0x400, %edi            # imm = 0x400
callq 0x21c0
movq %rax, 0x220(%r14)
movl $0x400, %edi            # imm = 0x400
callq 0x21c0
movq %rax, %r14
leaq 0x20(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x2080
testq %rax, %rax
je 0x6e26
movq %r15, 0x18(%rsp)
movq %r14, 0x10(%rsp)
movq %rbx, 0x8(%rsp)
movb 0x21(%rsp), %al
movq %r14, %rcx
cmpb $0xa, %al
je 0x6c90
leaq 0x22(%rsp), %rdx
movq %r14, %rcx
movb %al, (%rcx)
incq %rcx
movb (%rdx), %al
incq %rdx
cmpb $0xa, %al
jne 0x6c82
movb $0x0, (%rcx)
movq %rbx, %rdi
movq %r12, %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x2080
testq %rax, %rax
je 0x6e26
movq (%r15), %r13
movq 0x220(%r13), %rax
movb 0x20(%rsp), %dl
xorl %ecx, %ecx
cmpb $0xa, %dl
je 0x6cd5
xorl %ecx, %ecx
movb %dl, (%rax,%rcx)
movb 0x21(%rsp,%rcx), %dl
incq %rcx
cmpb $0xa, %dl
jne 0x6cc3
addq %rcx, %rax
movb $0x0, (%rax)
movl %ecx, 0x14(%r13)
movq %rbx, %rdi
movq %r12, %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x2080
testq %rax, %rax
je 0x6e26
movq %rbx, %rdi
movq %r12, %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x2080
testq %rax, %rax
je 0x6e26
movq %r13, %rdi
callq 0x68a5
testb %al, %al
jne 0x6e0d
movq 0x220(%r13), %rbp
movslq 0x14(%r13), %r14
movq %r12, %rbx
movq 0x8(%r13), %r12
movl $0x400, %edx            # imm = 0x400
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2100
movl $0x400, %edx            # imm = 0x400
leaq 0x820(%rsp), %rdi
xorl %esi, %esi
callq 0x2100
movl $0x400, %edx            # imm = 0x400
leaq 0x420(%rsp), %rdi
xorl %esi, %esi
callq 0x2100
movl 0x8(%r12), %eax
movslq %eax, %r13
movq %rbx, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x2170
movq %rbp, %rsi
addq %r13, %rsi
movslq 0xc(%r12), %r15
movl %r15d, %eax
subl %r13d, %eax
movslq %eax, %rdx
leaq 0x820(%rsp), %rdi
callq 0x2170
addq %r15, %rbp
subq %r15, %r14
leaq 0x420(%rsp), %rdi
movq %rbp, %rsi
movq %r14, %rdx
movq 0x10(%rsp), %r14
callq 0x2170
movq 0x4215(%rip), %rax      # 0xafd8
movq (%rax), %rdi
movl 0x14(%r12), %ecx
movq %rbx, %r12
movq 0x8(%rsp), %rbx
subq $0x8, %rsp
leaq 0x11bf(%rip), %rsi      # 0x7f9d
movq %r14, %rdx
movl %r13d, %r8d
movl %r15d, %r9d
movq 0x20(%rsp), %r15
xorl %eax, %eax
leaq 0x428(%rsp), %r10
pushq %r10
leaq 0x830(%rsp), %r10
pushq %r10
pushq %r12
callq 0x2160
addq $0x20, %rsp
movq %rbx, %rdi
movq %r12, %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x2080
testq %rax, %rax
jne 0x6c6f
addq $0xc28, %rsp            # imm = 0xC28
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
callq 0x27be