// File: chhylp123[P]hifiasm/Correct.cpp
// Function: check_mask_exist(ma_ug_t*, overlap_region*, overlap_region*, kv_ul_ov_t*, idx_emask_t*, double, unsigned long*, unsigned long*)
uint64_t check_mask_exist(ma_ug_t *ug, overlap_region *q, overlap_region *t, kv_ul_ov_t *ov_db, idx_emask_t *mm, double len_diff, uint64_t *is_exact, uint64_t *ovdb_idx)
{
    ul_ov_t rr, *a; uint64_t k, eid, an, ss; (*is_exact) = 0; (*ovdb_idx) = (uint64_t)-1;
    if(!cal_x_ul_ovlp(ug, q, t, &rr)) return 0;
    ss = q->overlapLen;
    if(q->x_pos_strand) {///if q does not have mask
        eid = rr.tn; a = ov_db->a + ss; an = q->x_pos_strand;
        for (k = 0; k < an && a[k].tn < eid; k++);
        for (; k < an && a[k].tn == eid; k++) {
            if((!check_ul_ov_t_consist(&rr, &(a[k]), ug->g->seq[rr.qn].len, ug->g->seq[rr.tn].len, len_diff))) continue;
            if(is_ul_ov_pe(a, an, k, (*mm))) {
                k++; if((!check_ul_ov_t_consist(&rr, &(a[k]), ug->g->seq[rr.qn].len, ug->g->seq[rr.tn].len, len_diff))) continue;
            }
            if(is_exact_ov(a[k],(*mm))) (*is_exact) = 1;
            (*ovdb_idx) = ss + k;
            return 1;
        }
    }

    k = rr.qn; rr.qn = rr.tn; rr.tn = k;
    k = rr.qs; rr.qs = rr.ts; rr.ts = k;
    k = rr.qe; rr.qe = rr.te; rr.te = k;
    ss = t->overlapLen;
    if(t->x_pos_strand) {///if t does not have mask
        eid = rr.tn; a = ov_db->a + ss; an = t->x_pos_strand;
        for (k = 0; k < an && a[k].tn < eid; k++);
        for (; k < an && a[k].tn == eid; k++) {
            if((!check_ul_ov_t_consist(&rr, &(a[k]), ug->g->seq[rr.qn].len, ug->g->seq[rr.tn].len, len_diff))) continue;
            if(is_ul_ov_pe(a, an, k, (*mm))) {
                k++; if((!check_ul_ov_t_consist(&rr, &(a[k]), ug->g->seq[rr.qn].len, ug->g->seq[rr.tn].len, len_diff))) continue;
            }
            if(is_exact_ov(a[k],(*mm))) (*is_exact) = 1;
            (*ovdb_idx) = ss + k;
            return 1;
        }
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movsd %xmm0, -0x38(%rbp)
movq %r9, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq $0x0, (%rax)
movq 0x10(%rbp), %rax
movq $-0x1, (%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
leaq -0x5c(%rbp), %rcx
callq 0x7c4c0
cmpq $0x0, %rax
jne 0x7c81a
movq $0x0, -0x8(%rbp)
jmp 0x7d2e7
movq -0x18(%rbp), %rax
movl 0x20(%rax), %eax
movq %rax, -0x88(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, 0xc(%rax)
je 0x7cd60
movl -0x50(%rbp), %eax
movq %rax, -0x78(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x88(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x68(%rbp)
movq -0x18(%rbp), %rax
movl 0xc(%rax), %eax
movq %rax, -0x80(%rbp)
movq $0x0, -0x70(%rbp)
movq -0x70(%rbp), %rcx
xorl %eax, %eax
cmpq -0x80(%rbp), %rcx
movb %al, -0x89(%rbp)
jae 0x7c894
movq -0x68(%rbp), %rax
imulq $0x1c, -0x70(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
cmpq -0x78(%rbp), %rax
setb %al
movb %al, -0x89(%rbp)
movb -0x89(%rbp), %al
testb $0x1, %al
jne 0x7c8a0
jmp 0x7c8b0
jmp 0x7c8a2
movq -0x70(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x70(%rbp)
jmp 0x7c866
jmp 0x7c8b2
movq -0x70(%rbp), %rcx
xorl %eax, %eax
cmpq -0x80(%rbp), %rcx
movb %al, -0x8a(%rbp)
jae 0x7c8e0
movq -0x68(%rbp), %rax
imulq $0x1c, -0x70(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
cmpq -0x78(%rbp), %rax
sete %al
movb %al, -0x8a(%rbp)
movb -0x8a(%rbp), %al
testb $0x1, %al
jne 0x7c8ef
jmp 0x7cd5e
movq -0x68(%rbp), %rsi
imulq $0x1c, -0x70(%rbp), %rax
addq %rax, %rsi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movl -0x5c(%rbp), %ecx
movl (%rax,%rcx,8), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
movl %eax, %edx
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movl -0x50(%rbp), %ecx
movl (%rax,%rcx,8), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
movl %eax, %ecx
movsd -0x38(%rbp), %xmm0
leaq -0x5c(%rbp), %rdi
callq 0x2c8a40
cmpq $0x0, %rax
jne 0x7c94a
jmp 0x7cd4d
movq -0x70(%rbp), %rax
addq $0x1, %rax
cmpq -0x80(%rbp), %rax
jae 0x7cc5b
movq -0x68(%rbp), %rax
movq -0x70(%rbp), %rcx
addq $0x1, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %eax
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
cmpl (%rcx), %eax
jne 0x7cc5b
movq -0x68(%rbp), %rax
movq -0x70(%rbp), %rcx
addq $0x1, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
cmpl 0xc(%rcx), %eax
jne 0x7cc5b
movq -0x68(%rbp), %rax
movq -0x70(%rbp), %rcx
addq $0x1, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
shrl $0x1f, %eax
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
movl 0x18(%rcx), %ecx
shrl $0x1f, %ecx
cmpl %ecx, %eax
jne 0x7cc5b
movq -0x68(%rbp), %rax
movq -0x70(%rbp), %rcx
addq $0x1, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
movl 0x18(%rcx), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
addl $0x1, %ecx
cmpl %ecx, %eax
jne 0x7cc5b
movq -0x68(%rbp), %rax
imulq $0x1c, -0x70(%rbp), %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movl %eax, %eax
movq -0x30(%rbp), %rcx
movq (%rcx), %rcx
movq -0x68(%rbp), %rdx
imulq $0x1c, -0x70(%rbp), %rsi
addq %rsi, %rdx
movl (%rdx), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
cmpq 0x8(%rcx), %rax
jae 0x7cc5b
movq -0x68(%rbp), %rax
movq -0x70(%rbp), %rcx
addq $0x1, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movl %eax, %eax
movq -0x30(%rbp), %rcx
movq (%rcx), %rcx
movq -0x68(%rbp), %rdx
movq -0x70(%rbp), %rsi
addq $0x1, %rsi
imulq $0x1c, %rsi, %rsi
addq %rsi, %rdx
movl (%rdx), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
cmpq 0x8(%rcx), %rax
jae 0x7cc5b
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
movl 0x18(%rcx), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
movl %ecx, %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movb 0x1c(%rax), %al
shrb $0x5, %al
andb $0x1, %al
cmpb $0x0, %al
je 0x7cc5b
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
movq -0x70(%rbp), %rdx
addq $0x1, %rdx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
movq -0x70(%rbp), %rdx
addq $0x1, %rdx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
movl 0x18(%rcx), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
movl %ecx, %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movb 0x1c(%rax), %al
shrb $0x5, %al
andb $0x1, %al
cmpb $0x0, %al
je 0x7cc5b
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
movl 0x18(%rcx), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
movl %ecx, %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movb 0x1c(%rax), %al
andb $0x1f, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x7cc5b
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
movq -0x70(%rbp), %rdx
addq $0x1, %rdx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
movq -0x70(%rbp), %rdx
addq $0x1, %rdx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
movl 0x18(%rcx), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
movl %ecx, %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movb 0x1c(%rax), %al
andb $0x1f, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x7cc5b
movq -0x70(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x70(%rbp)
movq -0x68(%rbp), %rsi
imulq $0x1c, -0x70(%rbp), %rax
addq %rax, %rsi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movl -0x5c(%rbp), %ecx
movl (%rax,%rcx,8), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
movl %eax, %edx
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movl -0x50(%rbp), %ecx
movl (%rax,%rcx,8), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
movl %eax, %ecx
movsd -0x38(%rbp), %xmm0
leaq -0x5c(%rbp), %rdi
callq 0x2c8a40
cmpq $0x0, %rax
jne 0x7cc59
jmp 0x7cd4d
jmp 0x7cc5b
movq -0x68(%rbp), %rax
imulq $0x1c, -0x70(%rbp), %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movl %eax, %eax
movq -0x30(%rbp), %rcx
movq (%rcx), %rcx
movq -0x68(%rbp), %rdx
imulq $0x1c, -0x70(%rbp), %rsi
addq %rsi, %rdx
movl (%rdx), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
cmpq 0x8(%rcx), %rax
jae 0x7cd2e
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
movl 0x18(%rcx), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
movl %ecx, %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movb 0x1c(%rax), %al
shrb $0x5, %al
andb $0x1, %al
cmpb $0x0, %al
jne 0x7cd2e
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
movl 0x18(%rcx), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
movl %ecx, %ecx
shlq $0x5, %rcx
addq %rcx, %rax
cmpl $-0x1, 0x8(%rax)
jne 0x7cd2e
movq -0x40(%rbp), %rax
movq $0x1, (%rax)
movq -0x88(%rbp), %rcx
addq -0x70(%rbp), %rcx
movq 0x10(%rbp), %rax
movq %rcx, (%rax)
movq $0x1, -0x8(%rbp)
jmp 0x7d2e7
movq -0x70(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x70(%rbp)
jmp 0x7c8b2
jmp 0x7cd60
movl -0x5c(%rbp), %eax
movq %rax, -0x70(%rbp)
movl -0x50(%rbp), %eax
movl %eax, -0x5c(%rbp)
movq -0x70(%rbp), %rax
movl %eax, -0x50(%rbp)
movl -0x58(%rbp), %eax
movq %rax, -0x70(%rbp)
movl -0x4c(%rbp), %eax
movl %eax, -0x58(%rbp)
movq -0x70(%rbp), %rax
movl %eax, -0x4c(%rbp)
movl -0x54(%rbp), %eax
movq %rax, -0x70(%rbp)
movl -0x48(%rbp), %eax
movl %eax, -0x54(%rbp)
movq -0x70(%rbp), %rax
movl %eax, -0x48(%rbp)
movq -0x20(%rbp), %rax
movl 0x20(%rax), %eax
movq %rax, -0x88(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, 0xc(%rax)
je 0x7d2df
movl -0x50(%rbp), %eax
movq %rax, -0x78(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x88(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x68(%rbp)
movq -0x20(%rbp), %rax
movl 0xc(%rax), %eax
movq %rax, -0x80(%rbp)
movq $0x0, -0x70(%rbp)
movq -0x70(%rbp), %rcx
xorl %eax, %eax
cmpq -0x80(%rbp), %rcx
movb %al, -0x8b(%rbp)
jae 0x7ce16
movq -0x68(%rbp), %rax
imulq $0x1c, -0x70(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
cmpq -0x78(%rbp), %rax
setb %al
movb %al, -0x8b(%rbp)
movb -0x8b(%rbp), %al
testb $0x1, %al
jne 0x7ce22
jmp 0x7ce32
jmp 0x7ce24
movq -0x70(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x70(%rbp)
jmp 0x7cde8
jmp 0x7ce34
movq -0x70(%rbp), %rcx
xorl %eax, %eax
cmpq -0x80(%rbp), %rcx
movb %al, -0x8c(%rbp)
jae 0x7ce62
movq -0x68(%rbp), %rax
imulq $0x1c, -0x70(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
cmpq -0x78(%rbp), %rax
sete %al
movb %al, -0x8c(%rbp)
movb -0x8c(%rbp), %al
testb $0x1, %al
jne 0x7ce71
jmp 0x7d2dd
movq -0x68(%rbp), %rsi
imulq $0x1c, -0x70(%rbp), %rax
addq %rax, %rsi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movl -0x5c(%rbp), %ecx
movl (%rax,%rcx,8), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
movl %eax, %edx
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movl -0x50(%rbp), %ecx
movl (%rax,%rcx,8), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
movl %eax, %ecx
movsd -0x38(%rbp), %xmm0
leaq -0x5c(%rbp), %rdi
callq 0x2c8a40
cmpq $0x0, %rax
jne 0x7cecc
jmp 0x7d2cc
movq -0x70(%rbp), %rax
addq $0x1, %rax
cmpq -0x80(%rbp), %rax
jae 0x7d1dd
movq -0x68(%rbp), %rax
movq -0x70(%rbp), %rcx
addq $0x1, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %eax
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
cmpl (%rcx), %eax
jne 0x7d1dd
movq -0x68(%rbp), %rax
movq -0x70(%rbp), %rcx
addq $0x1, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
cmpl 0xc(%rcx), %eax
jne 0x7d1dd
movq -0x68(%rbp), %rax
movq -0x70(%rbp), %rcx
addq $0x1, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
shrl $0x1f, %eax
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
movl 0x18(%rcx), %ecx
shrl $0x1f, %ecx
cmpl %ecx, %eax
jne 0x7d1dd
movq -0x68(%rbp), %rax
movq -0x70(%rbp), %rcx
addq $0x1, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
movl 0x18(%rcx), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
addl $0x1, %ecx
cmpl %ecx, %eax
jne 0x7d1dd
movq -0x68(%rbp), %rax
imulq $0x1c, -0x70(%rbp), %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movl %eax, %eax
movq -0x30(%rbp), %rcx
movq (%rcx), %rcx
movq -0x68(%rbp), %rdx
imulq $0x1c, -0x70(%rbp), %rsi
addq %rsi, %rdx
movl (%rdx), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
cmpq 0x8(%rcx), %rax
jae 0x7d1dd
movq -0x68(%rbp), %rax
movq -0x70(%rbp), %rcx
addq $0x1, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movl %eax, %eax
movq -0x30(%rbp), %rcx
movq (%rcx), %rcx
movq -0x68(%rbp), %rdx
movq -0x70(%rbp), %rsi
addq $0x1, %rsi
imulq $0x1c, %rsi, %rsi
addq %rsi, %rdx
movl (%rdx), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
cmpq 0x8(%rcx), %rax
jae 0x7d1dd
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
movl 0x18(%rcx), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
movl %ecx, %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movb 0x1c(%rax), %al
shrb $0x5, %al
andb $0x1, %al
cmpb $0x0, %al
je 0x7d1dd
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
movq -0x70(%rbp), %rdx
addq $0x1, %rdx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
movq -0x70(%rbp), %rdx
addq $0x1, %rdx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
movl 0x18(%rcx), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
movl %ecx, %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movb 0x1c(%rax), %al
shrb $0x5, %al
andb $0x1, %al
cmpb $0x0, %al
je 0x7d1dd
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
movl 0x18(%rcx), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
movl %ecx, %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movb 0x1c(%rax), %al
andb $0x1f, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x7d1dd
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
movq -0x70(%rbp), %rdx
addq $0x1, %rdx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
movq -0x70(%rbp), %rdx
addq $0x1, %rdx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
movl 0x18(%rcx), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
movl %ecx, %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movb 0x1c(%rax), %al
andb $0x1f, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x7d1dd
movq -0x70(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x70(%rbp)
movq -0x68(%rbp), %rsi
imulq $0x1c, -0x70(%rbp), %rax
addq %rax, %rsi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movl -0x5c(%rbp), %ecx
movl (%rax,%rcx,8), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
movl %eax, %edx
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movl -0x50(%rbp), %ecx
movl (%rax,%rcx,8), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
movl %eax, %ecx
movsd -0x38(%rbp), %xmm0
leaq -0x5c(%rbp), %rdi
callq 0x2c8a40
cmpq $0x0, %rax
jne 0x7d1db
jmp 0x7d2cc
jmp 0x7d1dd
movq -0x68(%rbp), %rax
imulq $0x1c, -0x70(%rbp), %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movl %eax, %eax
movq -0x30(%rbp), %rcx
movq (%rcx), %rcx
movq -0x68(%rbp), %rdx
imulq $0x1c, -0x70(%rbp), %rsi
addq %rsi, %rdx
movl (%rdx), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
cmpq 0x8(%rcx), %rax
jae 0x7d2b0
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
movl 0x18(%rcx), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
movl %ecx, %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movb 0x1c(%rax), %al
shrb $0x5, %al
andb $0x1, %al
cmpb $0x0, %al
jne 0x7d2b0
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq -0x68(%rbp), %rcx
imulq $0x1c, -0x70(%rbp), %rdx
addq %rdx, %rcx
movl 0x18(%rcx), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
movl %ecx, %ecx
shlq $0x5, %rcx
addq %rcx, %rax
cmpl $-0x1, 0x8(%rax)
jne 0x7d2b0
movq -0x40(%rbp), %rax
movq $0x1, (%rax)
movq -0x88(%rbp), %rcx
addq -0x70(%rbp), %rcx
movq 0x10(%rbp), %rax
movq %rcx, (%rax)
movq $0x1, -0x8(%rbp)
jmp 0x7d2e7
movq -0x70(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x70(%rbp)
jmp 0x7ce34
jmp 0x7d2df
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)