// File: /workspace/github_c_makefile_star2_O2/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, %r15
movq %rdi, %r14
leaq 0x15a2(%rip), %rsi      # 0x7bfb
callq 0x2210
testq %rax, %rax
je 0x684b
movq %rax, %rbx
movq %r15, %rdi
movl %ebp, %esi
callq 0x62d0
movq %rax, %r14
movl $0x400, %edi            # imm = 0x400
callq 0x21c0
movq %rax, 0x220(%r14)
movl $0x400, %edi            # imm = 0x400
callq 0x21c0
movq %rax, %r15
leaq 0x10(%rsp), %r12
movq %rbx, (%rsp)
movq %rbx, %rdi
movq %r12, %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x2080
testq %rax, %rax
je 0x6839
xorl %eax, %eax
movb 0x11(%rsp,%rax), %cl
cmpb $0xa, %cl
je 0x66cb
movb %cl, (%r15,%rax)
incq %rax
jmp 0x66b9
movb $0x0, (%r15,%rax)
movq %rbx, %rdi
movq %r12, %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x2080
testq %rax, %rax
je 0x6839
movq 0x220(%r14), %rax
xorl %ecx, %ecx
movb 0x10(%rsp,%rcx), %dl
cmpb $0xa, %dl
je 0x6703
movb %dl, (%rax,%rcx)
incq %rcx
jmp 0x66f2
movb $0x0, (%rax,%rcx)
movl %ecx, 0x14(%r14)
movq %rbx, %rdi
movq %r12, %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x2080
testq %rax, %rax
je 0x6839
movq %rbx, %rdi
movq %r12, %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x2080
testq %rax, %rax
je 0x6839
movq %r14, %rdi
callq 0x632c
testb %al, %al
jne 0x669e
movq 0x220(%r14), %r13
movslq 0x14(%r14), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%r14), %rbp
movl $0x400, %edx            # imm = 0x400
movq %r12, %rdi
xorl %esi, %esi
callq 0x2100
movl $0x400, %edx            # imm = 0x400
leaq 0x810(%rsp), %rdi
xorl %esi, %esi
callq 0x2100
movl $0x400, %edx            # imm = 0x400
leaq 0x410(%rsp), %rdi
xorl %esi, %esi
callq 0x2100
movl 0x8(%rbp), %eax
movq %rbp, %rbx
movslq %eax, %r12
leaq 0x10(%rsp), %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x2170
leaq (%r12,%r13), %rsi
movslq 0xc(%rbp), %rbp
movl %ebp, %eax
subl %r12d, %eax
movslq %eax, %rdx
leaq 0x810(%rsp), %rdi
callq 0x2170
addq %rbp, %r13
movq 0x8(%rsp), %rdx
subq %rbp, %rdx
leaq 0x410(%rsp), %rdi
movq %r13, %rsi
callq 0x2170
movq 0x37e8(%rip), %rax      # 0x9fd8
movq (%rax), %rdi
movl 0x14(%rbx), %ecx
movq (%rsp), %rbx
subq $0x8, %rsp
leaq 0x1740(%rip), %rsi      # 0x7f45
movq %r15, %rdx
movl %r12d, %r8d
leaq 0x18(%rsp), %r12
movl %ebp, %r9d
xorl %eax, %eax
leaq 0x418(%rsp), %r10
pushq %r10
leaq 0x820(%rsp), %r10
pushq %r10
pushq %r12
callq 0x2160
addq $0x20, %rsp
jmp 0x669e
addq $0xc18, %rsp            # imm = 0xC18
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x37a6(%rip), %rax      # 0x9ff8
movq (%rax), %rdi
leaq 0x16dc(%rip), %rsi      # 0x7f38
movq %r14, %rdx
xorl %eax, %eax
callq 0x2160
pushq $0x1
popq %rdi
callq 0x22b0