// File: /workspace/github_cpp_makefile_star2_O1/readmapping[P]alfalfa/src/main.cpp
// Function: map_paired(void*, int, int)
static void map_paired(void * pairedData, int i, int threadid)
{
    paired_data * data = (paired_data*) pairedData;
    read_t & mate1 = data->mates1->at(i);
    read_t & mate2 = data->mates2->at(i);
    if (mate1.qname.length() > 2 && mate1.qname[mate1.qname.length() - 2] == '/')
        mate1.qname.erase(mate1.qname.length() - 2);
    if (mate2.qname.length() > 2 && mate2.qname[mate2.qname.length() - 2] == '/')
        mate2.qname.erase(mate2.qname.length() - 2);
    mate1.init(data->opt->nucleotidesOnly);
    mate2.init(data->opt->nucleotidesOnly);
    if (data->opt->alnOptions.print >= 3) cerr << "match " << mate1.qname << " with lengths " << mate1.sequence.length() << " and " << mate2.sequence.length() << endl;
    if (data->opt->alnOptions.print >= 2) cerr << "#READ" << endl;
    pairedMatch(*data->ssa, mate1, mate2, data->opt->alnOptions, data->opt->pairedOpt);
    mate1.postprocess(*data->ssa, data->opt->alnOptions, true);
    mate2.postprocess(*data->ssa, data->opt->alnOptions, true);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0x10(%rdi), %rax
movslq %esi, %rsi
movq (%rax), %r14
movq 0x8(%rax), %rdx
subq %r14, %rdx
sarq $0x4, %rdx
movabsq $0x4ec4ec4ec4ec4ec5, %rax # imm = 0x4EC4EC4EC4EC4EC5
imulq %rax, %rdx
cmpq %rsi, %rdx
jbe 0x9ad6
movq %rdi, %rbx
movq 0x18(%rdi), %rcx
movq (%rcx), %r15
movq 0x8(%rcx), %rdx
subq %r15, %rdx
sarq $0x4, %rdx
imulq %rax, %rdx
cmpq %rsi, %rdx
jbe 0x9ad6
imulq $0xd0, %rsi, %rax
addq %rax, %r14
addq %rax, %r15
movq 0x8(%r14), %rax
cmpq $0x3, %rax
jb 0x993d
movq (%r14), %rcx
cmpb $0x2f, -0x2(%rcx,%rax)
jne 0x993d
addq $-0x2, %rax
movq %rax, 0x8(%r14)
movb $0x0, (%rcx,%rax)
movq 0x8(%r15), %rax
cmpq $0x3, %rax
jb 0x995d
movq (%r15), %rcx
cmpb $0x2f, -0x2(%rcx,%rax)
jne 0x995d
addq $-0x2, %rax
movq %rax, 0x8(%r15)
movb $0x0, (%rcx,%rax)
movq (%rbx), %rax
movzbl 0xf8(%rax), %esi
movq %r14, %rdi
callq 0xc10c
movq (%rbx), %rax
movzbl 0xf8(%rax), %esi
movq %r15, %rdi
callq 0xc10c
movq (%rbx), %rax
cmpl $0x3, 0x178(%rax)
jl 0x9a2b
movq 0x4a650(%rip), %r12     # 0x53fe8
leaq 0x36a4c(%rip), %rsi     # 0x403eb
movl $0x6, %edx
movq %r12, %rdi
callq 0x7340
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r12, %rdi
callq 0x7340
movq %rax, %r12
leaq 0x36ab0(%rip), %rsi     # 0x40475
movl $0xe, %edx
movq %rax, %rdi
callq 0x7340
movq 0x28(%r14), %rsi
movq %r12, %rdi
callq 0x71c0
movq %rax, %r12
leaq 0x3b808(%rip), %rsi     # 0x451f0
movl $0x5, %edx
movq %rax, %rdi
callq 0x7340
movq 0x28(%r15), %rsi
movq %r12, %rdi
callq 0x71c0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x72b0
movsbl %al, %esi
movq %r12, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x71d0
movq (%rbx), %rax
cmpl $0x2, 0x178(%rax)
jl 0x9a7a
movq 0x4a5aa(%rip), %r12     # 0x53fe8
leaq 0x369bb(%rip), %rsi     # 0x40400
movl $0x5, %edx
movq %r12, %rdi
callq 0x7340
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x72b0
movsbl %al, %esi
movq %r12, %rdi
callq 0x7040
movq %rax, %rdi
callq 0x71d0
movq (%rbx), %r8
movq 0x8(%rbx), %rdi
movl $0x100, %r12d           # imm = 0x100
leaq (%r8,%r12), %rcx
addq $0x198, %r8             # imm = 0x198
movq %r14, %rsi
movq %r15, %rdx
callq 0x2ae68
movq 0x8(%rbx), %rsi
movq (%rbx), %rdx
addq %r12, %rdx
movq %r14, %rdi
movl $0x1, %ecx
callq 0x20898
movq 0x8(%rbx), %rsi
addq (%rbx), %r12
movq %r15, %rdi
movq %r12, %rdx
movl $0x1, %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x20898
leaq 0x36929(%rip), %rdi     # 0x40406
xorl %eax, %eax
callq 0x74e0