// File: /workspace/github_cpp_makefile_star2_O1/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 $0x18, %rsp
movl (%rdi), %eax
cmpl (%rsi), %eax
jne 0x29105
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rdi), %rdx
cmpq 0x10(%rsi), %rdx
jne 0x29105
testq %rdx, %rdx
je 0x28f8c
movq 0x8(%rbx), %rsi
movq 0x8(%r14), %rdi
callq 0x5350
testl %eax, %eax
jne 0x29105
movb 0x40(%r14), %al
cmpb 0x40(%rbx), %al
jne 0x2906b
movb 0x41(%r14), %cl
cmpb 0x41(%rbx), %cl
jne 0x2906b
andb %al, %cl
movq 0x28(%r14), %rdi
movq 0x28(%rbx), %r13
cmpb $0x1, %cl
jne 0x29041
movq %r14, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
xorl %ebp, %ebp
xorl %r12d, %r12d
movq %rdi, (%rsp)
movq %rbp, %rax
shlq $0x5, %rax
leaq (%rdi,%rax), %rbx
movq 0x8(%rdi,%rax), %r15
xorl %r14d, %r14d
testq %r15, %r15
sete %cl
cmpq 0x8(%r13,%r14), %r15
sete %al
setne %dl
orb %cl, %dl
jne 0x29009
movq (%r13,%r14), %rsi
movq (%rbx), %rdi
movq %r15, %rdx
callq 0x5350
testl %eax, %eax
sete %al
movzbl %al, %eax
addl %eax, %r12d
addq $0x20, %r14
cmpq $0x20, %r14
je 0x28fdf
leaq 0x1(%rbp), %rax
testq %rbp, %rbp
movq %rax, %rbp
movq (%rsp), %rdi
je 0x28fcc
movb $0x1, %bpl
cmpl $0x2, %r12d
movq 0x10(%rsp), %rbx
movq 0x8(%rsp), %r14
jl 0x2906b
jmp 0x29107
movq 0x8(%rdi), %rdx
cmpq 0x8(%r13), %rdx
jne 0x2906b
movb $0x1, %bpl
testq %rdx, %rdx
je 0x29107
movq (%r13), %rsi
movq (%rdi), %rdi
callq 0x5350
testl %eax, %eax
je 0x29107
cmpb $0x1, 0x41(%r14)
jne 0x29105
cmpb $0x1, 0x42(%r14)
jne 0x29105
cmpb $0x1, 0x41(%rbx)
jne 0x29105
cmpb $0x1, 0x42(%rbx)
jne 0x29105
movq 0x28(%r14), %rax
movq %rax, (%rsp)
movq 0x28(%rbx), %r15
xorl %r13d, %r13d
xorl %r12d, %r12d
movq %r13, %rax
shlq $0x5, %rax
movq (%rsp), %rcx
leaq (%rcx,%rax), %rbp
movq 0x8(%rcx,%rax), %rbx
xorl %r14d, %r14d
testq %rbx, %rbx
sete %cl
cmpq 0x8(%r15,%r14), %rbx
sete %al
setne %dl
orb %cl, %dl
jne 0x290e0
movq (%r15,%r14), %rsi
movq (%rbp), %rdi
movq %rbx, %rdx
callq 0x5350
testl %eax, %eax
sete %al
movzbl %al, %eax
addl %eax, %r12d
addq $0x20, %r14
cmpq $0x20, %r14
je 0x290b6
leaq 0x1(%r13), %rax
testq %r13, %r13
movq %rax, %r13
je 0x2909f
movb $0x1, %bpl
cmpl $0x2, %r12d
jge 0x29107
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq