// File: /workspace/github_cpp_makefile_star2_O3/medvedevgroup[P]varmatch/src/./diploidvariant.h
// Function: DiploidVariant::operator==(DiploidVariant const&)
bool operator ==(const DiploidVariant& y) {
        if (pos == y.pos && ref == y.ref) {
            if(heterozygous == y.heterozygous && multi_alts == y.multi_alts){
                if (multi_alts && heterozygous) {
                    int match_times = 0;
                    for (int i = 0; i < 2; i++) {
                        for (int j = 0; j < 2; j++) {
                            if (alts[i] == y.alts[j])
                                match_times++;
                        }
                    }
                    if (match_times >= 2)
                        return true;
                }
                else if(alts[0] == y.alts[0]){
                    return true;
                }
            }
            if(multi_alts && zero_one_var && y.multi_alts && y.zero_one_var){
                int match_times = 0;
                for (int i = 0; i < 2; i++) {
                    for (int j = 0; j < 2; j++) {
                        if (alts[i] == y.alts[j])
                            match_times++;
                    }
                }
                if(match_times > 1) return true;
            }
        }
        return false;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl (%rdi), %eax
cmpl (%rsi), %eax
jne 0x28c90
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rdi), %rdx
cmpq 0x10(%rsi), %rdx
jne 0x28c90
testq %rdx, %rdx
je 0x28afe
movq 0x8(%rbx), %rsi
movq 0x8(%r14), %rdi
callq 0x5350
testl %eax, %eax
jne 0x28c90
movb 0x40(%r14), %al
movb 0x41(%r14), %r15b
cmpb 0x40(%rbx), %al
jne 0x28bec
cmpb 0x41(%rbx), %r15b
jne 0x28bec
andb %r15b, %al
movq 0x28(%r14), %rcx
movq 0x28(%rbx), %r12
testb $0x1, %al
je 0x28bc1
movb %r15b, 0xf(%rsp)
movq %r14, 0x18(%rsp)
movq %rbx, 0x20(%rsp)
xorl %eax, %eax
movb $0x1, %bpl
xorl %ebx, %ebx
movq %rcx, 0x10(%rsp)
shlq $0x5, %rax
leaq (%rcx,%rax), %r14
movq 0x8(%rcx,%rax), %r15
movb $0x1, %r13b
xorl %eax, %eax
shlq $0x5, %rax
cmpq 0x8(%r12,%rax), %r15
jne 0x28b84
testq %r15, %r15
je 0x28b82
addq %r12, %rax
movq (%rax), %rsi
movq (%r14), %rdi
movq %r15, %rdx
callq 0x5350
cmpl $0x1, %eax
adcl $0x0, %ebx
jmp 0x28b84
incl %ebx
movl $0x1, %eax
testb $0x1, %r13b
movl $0x0, %r13d
jne 0x28b59
testb $0x1, %bpl
movl $0x0, %ebp
movq 0x10(%rsp), %rcx
jne 0x28b47
movb $0x1, %bpl
cmpl $0x2, %ebx
movq 0x20(%rsp), %rbx
movq 0x18(%rsp), %r14
movb 0xf(%rsp), %r15b
jl 0x28bec
jmp 0x28c92
movq 0x8(%rcx), %rdx
cmpq 0x8(%r12), %rdx
jne 0x28bec
movb $0x1, %bpl
testq %rdx, %rdx
je 0x28c92
movq (%r12), %rsi
movq (%rcx), %rdi
callq 0x5350
testl %eax, %eax
je 0x28c92
testb $0x1, %r15b
je 0x28c90
cmpb $0x1, 0x42(%r14)
jne 0x28c90
cmpb $0x1, 0x41(%rbx)
jne 0x28c90
cmpb $0x1, 0x42(%rbx)
jne 0x28c90
movq 0x28(%r14), %rax
movq %rax, 0x10(%rsp)
movq 0x28(%rbx), %r15
xorl %eax, %eax
movb $0x1, %bpl
xorl %r12d, %r12d
shlq $0x5, %rax
movq 0x10(%rsp), %rcx
leaq (%rcx,%rax), %r13
movq 0x8(%rcx,%rax), %rbx
movb $0x1, %r14b
xorl %eax, %eax
shlq $0x5, %rax
cmpq 0x8(%r15,%rax), %rbx
jne 0x28c6b
testq %rbx, %rbx
je 0x28c68
addq %r15, %rax
movq (%rax), %rsi
movq (%r13), %rdi
movq %rbx, %rdx
callq 0x5350
cmpl $0x1, %eax
adcl $0x0, %r12d
jmp 0x28c6b
incl %r12d
movl $0x1, %eax
testb $0x1, %r14b
movl $0x0, %r14d
jne 0x28c3d
testb $0x1, %bpl
movl $0x0, %ebp
jne 0x28c26
movb $0x1, %bpl
cmpl $0x2, %r12d
jge 0x28c92
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop