// File: /workspace/github_c_makefile_star2_O1/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 $0xc18, %rsp            # imm = 0xC18
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
leaq 0x1077(%rip), %rsi      # 0x7c57
callq 0x2200
testq %rax, %rax
je 0x6e0a
movq %rax, %rbx
movl $0x18, %edi
callq 0x21b0
movq %rax, %r15
movq %r14, %rdi
movl %ebp, %esi
callq 0x6838
movq %rax, %r14
movq %rax, (%r15)
movl $0x400, %edi            # imm = 0x400
callq 0x21b0
movq %rax, 0x220(%r14)
movq %r15, %r14
movl $0x400, %edi            # imm = 0x400
callq 0x21b0
movq %rax, %rbp
movq %rax, 0x10(%r15)
movq %rbx, 0x8(%r15)
leaq 0x10(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x2080
testq %rax, %rax
je 0x6df8
movq %r14, 0x8(%rsp)
movq %rbp, (%rsp)
movb 0x11(%rsp), %al
movq %rbp, %rcx
cmpb $0xa, %al
je 0x6c7f
leaq 0x12(%rsp), %rdx
movq %rbp, %rcx
movb %al, (%rcx)
incq %rcx
movb (%rdx), %al
incq %rdx
cmpb $0xa, %al
jne 0x6c71
movb $0x0, (%rcx)
movq %rbx, %rdi
movq %r12, %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x2080
testq %rax, %rax
je 0x6df8
movq (%r14), %r13
movq 0x220(%r13), %rax
movb 0x10(%rsp), %dl
xorl %ecx, %ecx
cmpb $0xa, %dl
je 0x6cc4
xorl %ecx, %ecx
movb %dl, (%rax,%rcx)
movb 0x11(%rsp,%rcx), %dl
incq %rcx
cmpb $0xa, %dl
jne 0x6cb2
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 0x6df8
movq %rbx, %rdi
movq %r12, %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x2080
testq %rax, %rax
je 0x6df8
movq %r13, %rdi
callq 0x689d
testb %al, %al
jne 0x6ddf
movq 0x220(%r13), %rbp
movslq 0x14(%r13), %r14
movq 0x8(%r13), %r13
movl $0x400, %edx            # imm = 0x400
movq %r12, %rdi
xorl %esi, %esi
callq 0x2100
movl $0x400, %edx            # imm = 0x400
leaq 0x410(%rsp), %rdi
xorl %esi, %esi
callq 0x2100
movl $0x400, %edx            # imm = 0x400
leaq 0x810(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x2100
movslq 0x8(%r13), %rdx
movq %r12, %rdi
movq %rbp, %rsi
callq 0x2160
movslq 0x8(%r13), %rax
leaq (%rax,%rbp), %rsi
movslq 0xc(%r13), %rdx
subq %rax, %rdx
leaq 0x410(%rsp), %rdi
callq 0x2160
movslq 0xc(%r13), %rax
addq %rax, %rbp
subq %rax, %r14
movq %r15, %rdi
movq %rbp, %rsi
movq (%rsp), %rbp
movq %r14, %rdx
movq 0x8(%rsp), %r14
callq 0x2160
movq 0x422f(%rip), %rax      # 0xafd8
movq (%rax), %rdi
movl 0x14(%r13), %ecx
movl 0x8(%r13), %r8d
movl 0xc(%r13), %r9d
subq $0x8, %rsp
leaq 0x11da(%rip), %rsi      # 0x7f9d
movq %rbp, %rdx
xorl %eax, %eax
pushq %r15
leaq 0x420(%rsp), %r10
pushq %r10
pushq %r12
callq 0x2150
addq $0x20, %rsp
movq %rbx, %rdi
movq %r12, %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x2080
testq %rax, %rax
jne 0x6c5e
addq $0xc18, %rsp            # imm = 0xC18
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
callq 0x27ae