// File: medvedevgroup[P]varmatch/src/wholegenome.cpp
// Function: WholeGenome::DonorLengthEqual(SequencePath&, SequencePath&)
bool WholeGenome::DonorLengthEqual(SequencePath & a, SequencePath & b){
    bool truth_same = false;
    bool query_same = false;

    if(a.donor_sequences[0].length() == b.donor_sequences[0].length() &&
       a.donor_sequences[1].length() == b.donor_sequences[1].length()){
        truth_same = true;
    }
    else if(a.donor_sequences[0].length() == b.donor_sequences[1].length() &&
            a.donor_sequences[1].length() == b.donor_sequences[0].length()){
                truth_same = true;
            }


    if(a.donor_sequences[2].length() == b.donor_sequences[2].length() &&
       a.donor_sequences[3].length() == b.donor_sequences[3].length()){
        query_same = true;
    }
    else if(a.donor_sequences[2].length() == b.donor_sequences[3].length() &&
            a.donor_sequences[3].length() == b.donor_sequences[2].length()){
                query_same = true;
            }

    if(truth_same && query_same) return true;
    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movb $0x0, -0x21(%rbp)
movb $0x0, -0x22(%rbp)
movq -0x18(%rbp), %rdi
addq $0xd0, %rdi
callq 0x6630
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rdi
addq $0xd0, %rdi
callq 0x6630
movq %rax, %rcx
movq -0x30(%rbp), %rax
cmpq %rcx, %rax
jne 0x2c53a
movq -0x18(%rbp), %rdi
addq $0xd0, %rdi
addq $0x20, %rdi
callq 0x6630
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rdi
addq $0xd0, %rdi
addq $0x20, %rdi
callq 0x6630
movq %rax, %rcx
movq -0x38(%rbp), %rax
cmpq %rcx, %rax
jne 0x2c53a
movb $0x1, -0x21(%rbp)
jmp 0x2c5a8
movq -0x18(%rbp), %rdi
addq $0xd0, %rdi
callq 0x6630
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rdi
addq $0xd0, %rdi
addq $0x20, %rdi
callq 0x6630
movq %rax, %rcx
movq -0x40(%rbp), %rax
cmpq %rcx, %rax
jne 0x2c5a6
movq -0x18(%rbp), %rdi
addq $0xd0, %rdi
addq $0x20, %rdi
callq 0x6630
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rdi
addq $0xd0, %rdi
callq 0x6630
movq %rax, %rcx
movq -0x48(%rbp), %rax
cmpq %rcx, %rax
jne 0x2c5a6
movb $0x1, -0x21(%rbp)
jmp 0x2c5a8
movq -0x18(%rbp), %rdi
addq $0xd0, %rdi
addq $0x40, %rdi
callq 0x6630
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rdi
addq $0xd0, %rdi
addq $0x40, %rdi
callq 0x6630
movq %rax, %rcx
movq -0x50(%rbp), %rax
cmpq %rcx, %rax
jne 0x2c61e
movq -0x18(%rbp), %rdi
addq $0xd0, %rdi
addq $0x60, %rdi
callq 0x6630
movq %rax, -0x58(%rbp)
movq -0x20(%rbp), %rdi
addq $0xd0, %rdi
addq $0x60, %rdi
callq 0x6630
movq %rax, %rcx
movq -0x58(%rbp), %rax
cmpq %rcx, %rax
jne 0x2c61e
movb $0x1, -0x22(%rbp)
jmp 0x2c694
movq -0x18(%rbp), %rdi
addq $0xd0, %rdi
addq $0x40, %rdi
callq 0x6630
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rdi
addq $0xd0, %rdi
addq $0x60, %rdi
callq 0x6630
movq %rax, %rcx
movq -0x60(%rbp), %rax
cmpq %rcx, %rax
jne 0x2c692
movq -0x18(%rbp), %rdi
addq $0xd0, %rdi
addq $0x60, %rdi
callq 0x6630
movq %rax, -0x68(%rbp)
movq -0x20(%rbp), %rdi
addq $0xd0, %rdi
addq $0x40, %rdi
callq 0x6630
movq %rax, %rcx
movq -0x68(%rbp), %rax
cmpq %rcx, %rax
jne 0x2c692
movb $0x1, -0x22(%rbp)
jmp 0x2c694
testb $0x1, -0x21(%rbp)
je 0x2c6a6
testb $0x1, -0x22(%rbp)
je 0x2c6a6
movb $0x1, -0x1(%rbp)
jmp 0x2c6aa
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)