// File: /workspace/github_c_makefile_star2_O1/akumrao[P]videoAnalyzer/encoder/me.c
// Function: x264_me_umhexagons(x264_t*, unsigned char*, int, unsigned char*, int, int, int, int*, int*)
static int x264_me_umhexagons( x264_t *h, uint8_t *p_ref, int i_ref,  
                                   uint8_t *p_img, int i_img,  
                                   int i_sad_mode,  
                                   int i_lambda_motion,  
                                   int *pi_mvx, int *pi_mvy )  
    {  
        int i, n, dx, dy;  
      
        int i_bsatd;  
        int i_bmx,i_bmy;  
        int mvx, mvy;  
        int bw, bh;  
      
        int ok;  
      
        static const int hgrid_x[16]= { -4,-4,-4,-2, 0, 2, 4, 4, 4, 4, 4, 2, 0,-2,-4,-4 };  
        static const int hgrid_y[16]= {  0, 1, 2, 3, 4, 3, 2, 1, 0,-1,-2,-3,-4,-3, 2, 1 };  
      
        static const int hexa_x[6] = { -2,-1, 1, 2, 1,-1 };  
        static const int hexa_y[6] = { 0,  2, 2, 0, 2, 2 };  
      
        static const int star_x[4] = { -1, 0, 1,  0 };  
        static const int star_y[4] = {  0, 1, 0, -1 };  
      
        /* block size */  
        switch( i_sad_mode )  
        {  
            case PIXEL_16x16:  
                bw = bh = 16;  
                break;  
            case PIXEL_16x8:  
                bw = 16; bh = 8;  
                break;  
            case PIXEL_8x16:  
                bw = 8; bh = 16;  
                break;  
            case PIXEL_8x8:  
                bw = 8; bh = 8;  
                break;  
            case PIXEL_8x4:  
                bw = 8; bh = 4;  
                break;  
            case PIXEL_4x8:  
                bw = 4; bh = 8;  
                break;  
            case PIXEL_4x4:  
            default:  
                bw = 4; bh = 4;  
                break;  
        }  
      
        /* mv start (clipped) */  
        mvx = x264_clip3( (*pi_mvx)>>2, -16, 16 );  
        mvy = x264_clip3( (*pi_mvy)>>2, -16, 16 );  
      
        /* init with center */  
        i_bmx = mvx;  
        i_bmy = mvy;  
        i_bsatd = h->pixf.sad[i_sad_mode]( p_img, i_img, &p_ref[mvy*i_ref+mvx], i_ref );  
      
        /* First step: Unsymetrical cross edge */  
        for( dx = mvx - 16; dx <= mvx + 16; dx += 2 )  
        {  
            if( dx >= -16 && dx <= 16 )  
            {  
                me_mv_test( h, &i_bsatd, &i_bmx, &i_bmy,  
                            i_sad_mode, p_img, i_img, p_ref, i_ref, dx, mvy,  
                            i_lambda_motion, *pi_mvx, *pi_mvy );  
            }  
        }  
        for( dy = mvy - 8; dy <= mvy + 8; dy += 2 )  
        {  
            if( dy >= - 16 && dy <= 16 )  
            {  
                me_mv_test( h, &i_bsatd, &i_bmx, &i_bmy,  
                            i_sad_mode, p_img, i_img, p_ref, i_ref, mvx, dy,  
                            i_lambda_motion, *pi_mvx, *pi_mvy );  
            }  
        }  
      
        /* Second step-part 1: full search -2/2 */  
        mvx = i_bmx; mvy = i_bmy;  
        for( dy = -2; dy <= 2; dy++ )  
        {  
            for( dx = -2; dx <= 2; dx++ )  
            {  
                int mx, my;  
                mx = mvx+dx;  
                my = mvy+dy;  
      
                if( mx >= -16 && mx <= 16 && my >= -16 && my < 16 )  
                {  
                    me_mv_test( h, &i_bsatd, &i_bmx, &i_bmy,  
                                i_sad_mode, p_img, i_img, p_ref, i_ref, mx, my,  
                                i_lambda_motion, *pi_mvx, *pi_mvy );  
                }  
            }  
        }  
        /* Second step-part 2: multi hexa research */  
        ok = 1;  
        mvx = i_bmx; mvy = i_bmy;  
        for( n = 1; n <= 4; n++ )  
        {  
            for( i = 0; i < 16; i++ )  
            {  
                dx = mvx + hgrid_x[i] * n;  
                dy = mvy + hgrid_y[i] * n;  
                if( dx >= -16 && dx <= 16 && dy >= -16 && dy <= 16 )  
                {  
                    if( me_mv_test( h, &i_bsatd, &i_bmx, &i_bmy,  
                                    i_sad_mode, p_img, i_img, p_ref, i_ref, dx, dy,  
                                    i_lambda_motion, *pi_mvx, *pi_mvy ) )  
                    {  
                        ok = 0; /* we will have to do EHS step */  
                    }  
                }  
            }  
        }  
      
        /* Third step: EHS */  
        if( !ok )  
        {  
            do  
            {  
                ok = 1;  
                mvx = i_bmx; mvy = i_bmy;  
      
                for( i = 0; i < 6; i++ )  
                {  
                    dx = mvx + hexa_x[i];  
                    dy = mvy + hexa_y[i];  
                    if( dx >= -16 && dx <= 16 && dy >= -16 && dy <= 16 )  
                    {  
                        if( me_mv_test( h, &i_bsatd, &i_bmx, &i_bmy,  
                                        i_sad_mode, p_img, i_img, p_ref, i_ref, dx, dy,  
                                        i_lambda_motion, *pi_mvx, *pi_mvy ) )  
                        {  
                            ok = 0;  
                        }  
                    }  
                }  
            } while( !ok );  
      
            do  
            {  
                ok = 1;  
                mvx = i_bmx; mvy = i_bmy;  
      
                for( i = 0; i < 4; i++ )  
                {  
                    dx = mvx + star_x[i];  
                    dy = mvy + star_y[i];  
                    if( dx >= -16 && dx <= 16 && dy >= -16 && dy <= 16 )  
                    {  
                        if( me_mv_test( h, &i_bsatd, &i_bmx, &i_bmy,  
                                        i_sad_mode, p_img, i_img, p_ref, i_ref, dx, dy,  
                                        i_lambda_motion, *pi_mvx, *pi_mvy ) )  
                        {  
                            ok = 0;  
                        }  
                    }  
                }  
            } while( !ok );  
        }  
      
        /* 1/4 pixel rafinement using diamond research */  
        i_bsatd = h->pixf.satd[i_sad_mode]( p_img, i_img, &p_ref[i_bmx+i_bmy*i_ref], i_ref ) +  
                    i_lambda_motion * ( bs_size_se((i_bmx<<2) - (*pi_mvx))+bs_size_se((i_bmy<<2) - (*pi_mvy)) );  
      
        i_bmx <<= 2;  
        i_bmy <<= 2;  
        {  
            uint8_t pix[16*16];  
            int satd[4];  
            int i, i_b;  
      
    #define TEST_MV( s, mx, my ) \
            h->mc[MC_LUMA]( p_ref, i_ref, pix, bw, (mx), (my), bw, bh ); \
            (s) = h->pixf.satd[i_sad_mode]( p_img, i_img, pix, bw ) + \
                i_lambda_motion * ( bs_size_se((mx) - (*pi_mvx))+bs_size_se((my) - (*pi_mvy)) )  
      
            TEST_MV( satd[0], i_bmx,   i_bmy-1 );  
            TEST_MV( satd[1], i_bmx,   i_bmy+1 );  
            TEST_MV( satd[2], i_bmx-1, i_bmy );  
            TEST_MV( satd[3], i_bmx+1, i_bmy );  
            for( i = 1, i_b = 0; i < 4; i++ )  
            {  
                if( satd[i] < satd[i_b] )  
                {  
                    i_b = i;  
                }  
            }  
            if( satd[i_b] < i_bsatd )  
            {  
                if( i_b == 0 )      i_bmy--;  
                else if( i_b == 1 ) i_bmy++;  
                else if( i_b == 2 ) i_bmx--;  
                else if( i_b == 3 ) i_bmx++;  
                i_bsatd = satd[i_b];  
      
                if( i_b != 1 ) { TEST_MV( satd[0], i_bmx,   i_bmy-1 ); } else { satd[0] = i_bsatd; }  
                if( i_b != 0 ) { TEST_MV( satd[1], i_bmx,   i_bmy+1 ); } else { satd[1] = i_bsatd; }  
                if( i_b != 3 ) { TEST_MV( satd[2], i_bmx-1, i_bmy   ); } else { satd[2] = i_bsatd; }  
                if( i_b != 2 ) { TEST_MV( satd[3], i_bmx+1, i_bmy   ); } else { satd[3] = i_bsatd; }  
      
                for( i = 1, i_b = 0; i < 4; i++ )  
                {  
                    if( satd[i] < satd[i_b] )  
                    {  
                        i_b = i;  
                    }  
                }  
                if( satd[i_b] < i_bsatd )  
                {  
                    if( i_b == 0 )      i_bmy--;  
                    else if( i_b == 1 ) i_bmy++;  
                    else if( i_b == 2 ) i_bmx--;  
                    else if( i_b == 3 ) i_bmx++;  
                    i_bsatd = satd[i_b];  
                }  
            }  
    #undef TEST_MV  
        }  
        *pi_mvx = i_bmx;  
        *pi_mvy = i_bmy;  
      
        return i_bsatd;  
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movq %r8, -0x70(%rbp)
movq %rcx, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
movq %rsi, -0x50(%rbp)
movq %rdi, -0x68(%rbp)
movl $0x4, %eax
movq %rax, -0x90(%rbp)
movl $0x4, %eax
movq %rax, -0x88(%rbp)
cmpl $0x5, %r9d
ja 0x1b782
movl %r9d, %eax
leaq 0x10e45(%rip), %rcx     # 0x2c5ac
movl (%rcx,%rax,4), %ecx
movq %rcx, -0x90(%rbp)
leaq 0x10e4c(%rip), %rcx     # 0x2c5c4
movl (%rcx,%rax,4), %eax
movq %rax, -0x88(%rbp)
movq 0x18(%rbp), %rax
movl (%rax), %r14d
sarl $0x2, %r14d
movl $0x10, %eax
cmpl %eax, %r14d
cmovgel %eax, %r14d
cmpl $-0xf, %r14d
movl $0xfffffff0, %ecx       # imm = 0xFFFFFFF0
cmovll %ecx, %r14d
movq 0x20(%rbp), %rdx
movl (%rdx), %r15d
sarl $0x2, %r15d
cmpl %eax, %r15d
cmovgel %eax, %r15d
cmpl $-0xf, %r15d
cmovll %ecx, %r15d
leaq -0x30(%rbp), %rax
movl %r14d, (%rax)
leaq -0x2c(%rbp), %rax
movl %r15d, (%rax)
movl %r9d, -0x38(%rbp)
movslq %r9d, %r8
movl %r15d, %eax
movq -0x58(%rbp), %rcx
imull %ecx, %eax
addl %r14d, %eax
movslq %eax, %rdx
addq -0x50(%rbp), %rdx
movq -0x60(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rax
movq %r8, -0x98(%rbp)
callq *0x10f2a8(%rax,%r8,8)
leaq -0x3c(%rbp), %rcx
movl %eax, (%rcx)
leal 0xe(%r14), %ebx
movl %r14d, %r13d
leal -0x10(%r13), %r12d
cmpl $0x20, %r13d
ja 0x1b85d
movq 0x18(%rbp), %rax
movl (%rax), %eax
movq 0x20(%rbp), %rcx
movl (%rcx), %r10d
movq -0x68(%rbp), %rdi
leaq -0x3c(%rbp), %rsi
leaq -0x30(%rbp), %rdx
leaq -0x2c(%rbp), %rcx
movl -0x38(%rbp), %r8d
movq -0x60(%rbp), %r9
pushq %r10
pushq %rax
movl 0x10(%rbp), %eax
pushq %rax
pushq %r15
pushq %r12
pushq -0x58(%rbp)
pushq -0x50(%rbp)
pushq -0x70(%rbp)
callq 0x1e5eb
addq $0x40, %rsp
addl $0x2, %r13d
cmpl %ebx, %r12d
jle 0x1b811
leal 0x6(%r15), %ebx
addl $-0xa, %r15d
leaq -0x2c(%rbp), %r12
movl -0x38(%rbp), %r13d
movl %r15d, %eax
leal 0x2(%rax), %r15d
addl $0x12, %eax
cmpl $0x20, %eax
ja 0x1b8c5
movq 0x18(%rbp), %rax
movl (%rax), %eax
movq 0x20(%rbp), %rcx
movl (%rcx), %r10d
movq -0x68(%rbp), %rdi
leaq -0x3c(%rbp), %rsi
leaq -0x30(%rbp), %rdx
movq %r12, %rcx
movl %r13d, %r8d
movq -0x60(%rbp), %r9
pushq %r10
pushq %rax
movl 0x10(%rbp), %eax
pushq %rax
pushq %r15
pushq %r14
pushq -0x58(%rbp)
pushq -0x50(%rbp)
pushq -0x70(%rbp)
callq 0x1e5eb
addq $0x40, %rsp
cmpl %ebx, %r15d
jle 0x1b876
leaq -0x30(%rbp), %rax
movl (%rax), %eax
leaq -0x2c(%rbp), %rcx
movl (%rcx), %ecx
movq %rcx, -0x80(%rbp)
addl $0xe, %eax
movl %eax, -0x48(%rbp)
movl $0xfffffffe, %ebx       # imm = 0xFFFFFFFE
movq -0x80(%rbp), %rax
leal (%rbx,%rax), %r13d
leal (%rbx,%rax), %r14d
addl $0x10, %r14d
movl $0x5, %r15d
movl -0x48(%rbp), %eax
movl %eax, %r12d
cmpl $0x20, %r14d
setb %al
cmpl $0x21, %r12d
setb %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x1b960
leal -0x10(%r12), %eax
movq 0x18(%rbp), %rcx
movl (%rcx), %r10d
movq 0x20(%rbp), %rcx
movl (%rcx), %r11d
movq -0x68(%rbp), %rdi
leaq -0x3c(%rbp), %rsi
leaq -0x30(%rbp), %rdx
leaq -0x2c(%rbp), %rcx
movl -0x38(%rbp), %r8d
movq -0x60(%rbp), %r9
pushq %r11
pushq %r10
movl 0x10(%rbp), %r10d
pushq %r10
pushq %r13
pushq %rax
pushq -0x58(%rbp)
pushq -0x50(%rbp)
pushq -0x70(%rbp)
callq 0x1e5eb
addq $0x40, %rsp
incl %r12d
decl %r15d
jne 0x1b901
incl %ebx
cmpl $0x3, %ebx
jne 0x1b8e5
leaq -0x30(%rbp), %rax
movl (%rax), %edi
movl $0x1, %r15d
leaq -0x2c(%rbp), %rax
movl (%rax), %esi
leaq 0x10764(%rip), %r13     # 0x2c0f0
movl $0x1, %r14d
movq %rdi, -0x48(%rbp)
movq %rsi, -0x80(%rbp)
xorl %r12d, %r12d
movl (%r12,%r13), %eax
imull %r15d, %eax
leal (%rax,%rdi), %ecx
addl $0x10, %ecx
cmpl $0x20, %ecx
ja 0x1ba26
leaq 0x10779(%rip), %rcx     # 0x2c130
movl (%r12,%rcx), %r10d
imull %r15d, %r10d
leal (%r10,%rsi), %ecx
addl $0x10, %ecx
cmpl $0x20, %ecx
ja 0x1ba26
addl %edi, %eax
addl %esi, %r10d
movq 0x18(%rbp), %rcx
movl (%rcx), %r11d
movq 0x20(%rbp), %rcx
movl (%rcx), %ebx
movq -0x68(%rbp), %rdi
leaq -0x3c(%rbp), %rsi
leaq -0x30(%rbp), %rdx
leaq -0x2c(%rbp), %rcx
movl -0x38(%rbp), %r8d
movq -0x60(%rbp), %r9
pushq %rbx
pushq %r11
movl 0x10(%rbp), %r11d
pushq %r11
pushq %r10
pushq %rax
pushq -0x58(%rbp)
pushq -0x50(%rbp)
pushq -0x70(%rbp)
callq 0x1e5eb
movq -0x48(%rbp), %rdi
movq -0x80(%rbp), %rsi
addq $0x40, %rsp
testl %eax, %eax
movl $0x0, %eax
cmovnel %eax, %r14d
addq $0x4, %r12
cmpq $0x40, %r12
jne 0x1b99d
incl %r15d
cmpl $0x5, %r15d
jne 0x1b99a
testl %r14d, %r14d
jne 0x1bbd2
leaq 0x1071f(%rip), %r14     # 0x2c170
leaq 0x10738(%rip), %rdi     # 0x2c190
movl -0x30(%rbp), %r15d
movl $0x1, %r12d
movl -0x2c(%rbp), %r11d
xorl %r13d, %r13d
movq %r11, -0x48(%rbp)
movl (%r13,%r14), %eax
movl (%r13,%rdi), %r10d
leal (%rax,%r15), %ecx
addl $0x10, %ecx
cmpl $0x21, %ecx
setb %cl
leal (%r10,%r11), %edx
addl $0x10, %edx
cmpl $0x21, %edx
setb %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x1baf7
addl %r15d, %eax
addl %r11d, %r10d
movq 0x18(%rbp), %rcx
movl (%rcx), %r11d
movq 0x20(%rbp), %rcx
movl (%rcx), %ebx
movq -0x68(%rbp), %rdi
leaq -0x3c(%rbp), %rsi
leaq -0x30(%rbp), %rdx
leaq -0x2c(%rbp), %rcx
movl -0x38(%rbp), %r8d
movq -0x60(%rbp), %r9
pushq %rbx
pushq %r11
movl 0x10(%rbp), %r11d
pushq %r11
pushq %r10
pushq %rax
pushq -0x58(%rbp)
pushq -0x50(%rbp)
pushq -0x70(%rbp)
callq 0x1e5eb
movq -0x48(%rbp), %r11
leaq 0x106a8(%rip), %rdi     # 0x2c190
addq $0x40, %rsp
testl %eax, %eax
movl $0x0, %eax
cmovnel %eax, %r12d
addq $0x4, %r13
cmpq $0x18, %r13
jne 0x1ba6d
testl %r12d, %r12d
je 0x1ba58
leaq 0x10acb(%rip), %r14     # 0x2c5e0
leaq 0x96c4(%rip), %rdi      # 0x251e0
movl -0x30(%rbp), %r15d
movl $0x1, %r12d
movl -0x2c(%rbp), %r11d
xorl %r13d, %r13d
movq %r11, -0x48(%rbp)
movl (%r13,%r14), %eax
movl (%r13,%rdi), %r10d
leal (%rax,%r15), %ecx
addl $0x10, %ecx
cmpl $0x21, %ecx
setb %cl
leal (%r10,%r11), %edx
addl $0x10, %edx
cmpl $0x21, %edx
setb %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x1bbbb
addl %r15d, %eax
addl %r11d, %r10d
movq 0x18(%rbp), %rcx
movl (%rcx), %r11d
movq 0x20(%rbp), %rcx
movl (%rcx), %ebx
movq -0x68(%rbp), %rdi
leaq -0x3c(%rbp), %rsi
leaq -0x30(%rbp), %rdx
leaq -0x2c(%rbp), %rcx
movl -0x38(%rbp), %r8d
movq -0x60(%rbp), %r9
pushq %rbx
pushq %r11
movl 0x10(%rbp), %r11d
pushq %r11
pushq %r10
pushq %rax
pushq -0x58(%rbp)
pushq -0x50(%rbp)
pushq -0x70(%rbp)
callq 0x1e5eb
movq -0x48(%rbp), %r11
leaq 0x9634(%rip), %rdi      # 0x251e0
addq $0x40, %rsp
testl %eax, %eax
movl $0x0, %eax
cmovnel %eax, %r12d
addq $0x4, %r13
cmpq $0x10, %r13
jne 0x1bb31
testl %r12d, %r12d
je 0x1bb1c
movl -0x30(%rbp), %r12d
movl -0x2c(%rbp), %eax
movq %rax, %rbx
movq -0x58(%rbp), %rcx
imull %ecx, %eax
addl %r12d, %eax
movslq %eax, %rdx
addq -0x50(%rbp), %rdx
movq -0x60(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rax
movq -0x98(%rbp), %r8
callq *0x10f2e0(%rax,%r8,8)
movl %eax, -0x80(%rbp)
shll $0x2, %r12d
movq %r12, -0x48(%rbp)
movq 0x18(%rbp), %rax
subl (%rax), %r12d
leaq 0x9593(%rip), %r14      # 0x251b4
leaq 0xd4b4(%rip), %r15      # 0x290dc
leaq 0x109c1(%rip), %rdx     # 0x2c5f0
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4c22
leal (%r12,%r12), %eax
negl %eax
testl %r12d, %r12d
leal -0x1(%r12,%r12), %r12d
cmovlel %eax, %r12d
leaq 0xd49c(%rip), %rdx      # 0x290f1
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4c22
leaq 0x10547(%rip), %rsi     # 0x2c1b0
cmpl $0xfe, %r12d
ja 0x1bc7b
movl %r12d, %eax
movl (%rsi,%rax,4), %r13d
jmp 0x1bcb5
leal 0x1(%r12), %eax
movl %eax, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpl $0xffff, %r12d          # imm = 0xFFFF
setae %dl
cmovbl %eax, %ecx
shll $0x5, %edx
leal 0x10(%rdx), %r13d
movl %ecx, %eax
shrl $0x8, %eax
decl %eax
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %ecx, %eax
cmovbl %edx, %r13d
addl (%rsi,%rax,4), %r13d
shll $0x2, %ebx
movq %rbx, -0x38(%rbp)
movl %ebx, %r12d
movq 0x20(%rbp), %rax
subl (%rax), %r12d
leaq 0x94e7(%rip), %r14      # 0x251b4
leaq 0xd408(%rip), %r15      # 0x290dc
leaq 0x10915(%rip), %rdx     # 0x2c5f0
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4c22
leal (%r12,%r12), %eax
negl %eax
testl %r12d, %r12d
leal -0x1(%r12,%r12), %r12d
cmovlel %eax, %r12d
leaq 0xd3f0(%rip), %rdx      # 0x290f1
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4c22
cmpl $0xfe, %r12d
ja 0x1bd27
movl %r12d, %eax
leaq 0x1048f(%rip), %rcx     # 0x2c1b0
movl (%rcx,%rax,4), %r12d
jmp 0x1bd68
leal 0x1(%r12), %eax
movl %eax, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpl $0xffff, %r12d          # imm = 0xFFFF
setae %dl
cmovbl %eax, %ecx
shll $0x5, %edx
leal 0x10(%rdx), %r12d
movl %ecx, %eax
shrl $0x8, %eax
decl %eax
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %ecx, %eax
cmovbl %edx, %r12d
leaq 0x1044c(%rip), %rcx     # 0x2c1b0
addl (%rcx,%rax,4), %r12d
addl %r13d, %r12d
movl 0x10(%rbp), %eax
imull %eax, %r12d
addl -0x80(%rbp), %r12d
movl %r12d, -0x3c(%rbp)
movq -0x48(%rbp), %r13
movl %r13d, -0x30(%rbp)
movq -0x38(%rbp), %rax
movl %eax, -0x2c(%rbp)
leal -0x1(%rax), %r9d
leaq -0x1c0(%rbp), %rbx
movq -0x50(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq %rbx, %rdx
movq -0x90(%rbp), %r15
movl %r15d, %ecx
movl %r13d, %r8d
movl %r9d, -0xb8(%rbp)
pushq -0x88(%rbp)
pushq %r15
movq -0x68(%rbp), %r14
callq *0x10f380(%r14)
addq $0x10, %rsp
movq -0x60(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq %rbx, %rdx
movl %r15d, %ecx
movq -0x98(%rbp), %rax
callq *0x10f2e0(%r14,%rax,8)
movl %eax, -0x80(%rbp)
movl %r13d, %ebx
movq 0x18(%rbp), %rax
subl (%rax), %ebx
leaq 0x93ba(%rip), %r14      # 0x251b4
leaq 0xd2db(%rip), %r15      # 0x290dc
leaq 0x107e8(%rip), %rdx     # 0x2c5f0
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4c22
leal (%rbx,%rbx), %eax
negl %eax
testl %ebx, %ebx
leal -0x1(%rbx,%rbx), %ebx
cmovlel %eax, %ebx
leaq 0xd2c7(%rip), %rdx      # 0x290f1
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4c22
cmpl $0xfe, %ebx
ja 0x1be4d
movl %ebx, %eax
leaq 0x10368(%rip), %rcx     # 0x2c1b0
movl (%rcx,%rax,4), %ebx
jmp 0x1be88
leal 0x1(%rbx), %eax
movl %eax, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpl $0xffff, %ebx           # imm = 0xFFFF
setae %dl
cmovbl %eax, %ecx
shll $0x5, %edx
leal 0x10(%rdx), %ebx
movl %ecx, %eax
shrl $0x8, %eax
decl %eax
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %ecx, %eax
cmovbl %edx, %ebx
leaq 0x1032b(%rip), %rcx     # 0x2c1b0
addl (%rcx,%rax,4), %ebx
movq 0x20(%rbp), %rax
movl (%rax), %r13d
notl %r13d
addl -0x38(%rbp), %r13d
leaq 0x9317(%rip), %r14      # 0x251b4
leaq 0xd238(%rip), %r15      # 0x290dc
leaq 0x10745(%rip), %rdx     # 0x2c5f0
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4c22
leal (,%r13,2), %eax
negl %eax
testl %r13d, %r13d
leal -0x1(%r13,%r13), %r13d
cmovlel %eax, %r13d
leaq 0xd21c(%rip), %rdx      # 0x290f1
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4c22
cmpl $0xfe, %r13d
ja 0x1befa
movl %r13d, %eax
leaq 0x102bb(%rip), %rcx     # 0x2c1b0
movl (%rcx,%rax,4), %eax
jmp 0x1bf37
leal 0x1(%r13), %eax
movl %eax, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpl $0xffff, %r13d          # imm = 0xFFFF
setae %dl
cmovbl %eax, %ecx
shll $0x5, %edx
leal 0x10(%rdx), %eax
movl %ecx, %esi
shrl $0x8, %esi
decl %esi
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %ecx, %esi
cmovbl %edx, %eax
leaq 0x1027c(%rip), %rcx     # 0x2c1b0
addl (%rcx,%rsi,4), %eax
addl %ebx, %eax
movl 0x10(%rbp), %ecx
imull %ecx, %eax
addl -0x80(%rbp), %eax
movl %eax, -0xb0(%rbp)
movq -0x38(%rbp), %rax
movl %eax, %r9d
orl $0x1, %r9d
leaq -0x1c0(%rbp), %rbx
movq -0x50(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq %rbx, %rdx
movq -0x90(%rbp), %r15
movl %r15d, %ecx
movq -0x48(%rbp), %r13
movl %r13d, %r8d
movl %r9d, -0x80(%rbp)
pushq -0x88(%rbp)
pushq %r15
movq -0x68(%rbp), %r14
callq *0x10f380(%r14)
addq $0x10, %rsp
movq -0x60(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq %rbx, %rdx
movl %r15d, %ecx
movq -0x98(%rbp), %rax
callq *0x10f2e0(%r14,%rax,8)
movl %eax, -0x74(%rbp)
movl %r13d, %ebx
movq 0x18(%rbp), %rax
subl (%rax), %ebx
leaq 0x91f3(%rip), %r14      # 0x251b4
leaq 0xd114(%rip), %r15      # 0x290dc
leaq 0x10621(%rip), %rdx     # 0x2c5f0
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4c22
leal (%rbx,%rbx), %eax
negl %eax
testl %ebx, %ebx
leal -0x1(%rbx,%rbx), %r13d
cmovlel %eax, %r13d
leaq 0xd0fe(%rip), %rdx      # 0x290f1
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4c22
cmpl $0xfe, %r13d
ja 0x1c019
movl %r13d, %eax
leaq 0x1019d(%rip), %rcx     # 0x2c1b0
movl (%rcx,%rax,4), %r13d
jmp 0x1c059
leal 0x1(%r13), %eax
movl %eax, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpl $0xffff, %r13d          # imm = 0xFFFF
setae %dl
cmovbl %eax, %ecx
shll $0x5, %edx
leal 0x10(%rdx), %r13d
movl %ecx, %eax
shrl $0x8, %eax
decl %eax
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %ecx, %eax
cmovbl %edx, %r13d
leaq 0x1015b(%rip), %rcx     # 0x2c1b0
addl (%rcx,%rax,4), %r13d
movl -0x80(%rbp), %eax
movl %eax, %ebx
movq 0x20(%rbp), %rax
subl (%rax), %ebx
leaq 0x9149(%rip), %r14      # 0x251b4
leaq 0xd06a(%rip), %r15      # 0x290dc
leaq 0x10577(%rip), %rdx     # 0x2c5f0
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4c22
leal (%rbx,%rbx), %eax
negl %eax
testl %ebx, %ebx
leal -0x1(%rbx,%rbx), %ebx
cmovlel %eax, %ebx
leaq 0xd056(%rip), %rdx      # 0x290f1
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4c22
cmpl $0xfe, %ebx
ja 0x1c0be
movl %ebx, %eax
leaq 0x100f7(%rip), %rcx     # 0x2c1b0
movl (%rcx,%rax,4), %eax
jmp 0x1c0f9
leal 0x1(%rbx), %eax
movl %eax, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpl $0xffff, %ebx           # imm = 0xFFFF
setae %dl
cmovbl %eax, %ecx
shll $0x5, %edx
leal 0x10(%rdx), %eax
movl %ecx, %esi
shrl $0x8, %esi
decl %esi
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %ecx, %esi
cmovbl %edx, %eax
leaq 0x100ba(%rip), %rcx     # 0x2c1b0
addl (%rcx,%rsi,4), %eax
addl %r13d, %eax
movl 0x10(%rbp), %ecx
imull %ecx, %eax
addl -0x74(%rbp), %eax
movl %eax, -0xac(%rbp)
movq -0x48(%rbp), %r13
leal -0x1(%r13), %r8d
leaq -0x1c0(%rbp), %rbx
movq -0x50(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq %rbx, %rdx
movq -0x90(%rbp), %r15
movl %r15d, %ecx
movl %r8d, -0xb4(%rbp)
movq -0x38(%rbp), %r9
pushq -0x88(%rbp)
pushq %r15
movq -0x68(%rbp), %r14
callq *0x10f380(%r14)
addq $0x10, %rsp
movq -0x60(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq %rbx, %rdx
movl %r15d, %ecx
movq -0x98(%rbp), %rax
callq *0x10f2e0(%r14,%rax,8)
movl %eax, -0x74(%rbp)
movq 0x18(%rbp), %rax
movl (%rax), %ebx
notl %ebx
addl %r13d, %ebx
leaq 0x9031(%rip), %r14      # 0x251b4
leaq 0xcf52(%rip), %r15      # 0x290dc
leaq 0x1045f(%rip), %rdx     # 0x2c5f0
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4c22
leal (%rbx,%rbx), %eax
negl %eax
testl %ebx, %ebx
leal -0x1(%rbx,%rbx), %r13d
cmovlel %eax, %r13d
leaq 0xcf3c(%rip), %rdx      # 0x290f1
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4c22
cmpl $0xfe, %r13d
ja 0x1c1db
movl %r13d, %eax
leaq 0xffdb(%rip), %rcx      # 0x2c1b0
movl (%rcx,%rax,4), %r13d
jmp 0x1c21b
leal 0x1(%r13), %eax
movl %eax, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpl $0xffff, %r13d          # imm = 0xFFFF
setae %dl
cmovbl %eax, %ecx
shll $0x5, %edx
leal 0x10(%rdx), %r13d
movl %ecx, %eax
shrl $0x8, %eax
decl %eax
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %ecx, %eax
cmovbl %edx, %r13d
leaq 0xff99(%rip), %rcx      # 0x2c1b0
addl (%rcx,%rax,4), %r13d
movq -0x38(%rbp), %rbx
movq 0x20(%rbp), %rax
subl (%rax), %ebx
leaq 0x8f88(%rip), %r14      # 0x251b4
leaq 0xcea9(%rip), %r15      # 0x290dc
leaq 0x103b6(%rip), %rdx     # 0x2c5f0
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4c22
leal (%rbx,%rbx), %eax
negl %eax
testl %ebx, %ebx
leal -0x1(%rbx,%rbx), %ebx
cmovlel %eax, %ebx
leaq 0xce95(%rip), %rdx      # 0x290f1
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4c22
cmpl $0xfe, %ebx
ja 0x1c27f
movl %ebx, %eax
leaq 0xff36(%rip), %rcx      # 0x2c1b0
movl (%rcx,%rax,4), %eax
jmp 0x1c2ba
leal 0x1(%rbx), %eax
movl %eax, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpl $0xffff, %ebx           # imm = 0xFFFF
setae %dl
cmovbl %eax, %ecx
shll $0x5, %edx
leal 0x10(%rdx), %eax
movl %ecx, %esi
shrl $0x8, %esi
decl %esi
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %ecx, %esi
cmovbl %edx, %eax
leaq 0xfef9(%rip), %rcx      # 0x2c1b0
addl (%rcx,%rsi,4), %eax
addl %r13d, %eax
movl 0x10(%rbp), %ecx
imull %ecx, %eax
addl -0x74(%rbp), %eax
movl %eax, -0xa8(%rbp)
movq -0x48(%rbp), %r13
orl $0x1, %r13d
leaq -0x1c0(%rbp), %rbx
movq -0x50(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq %rbx, %rdx
movq -0x90(%rbp), %r15
movl %r15d, %ecx
movl %r13d, %r8d
movq -0x38(%rbp), %r9
pushq -0x88(%rbp)
pushq %r15
movq -0x68(%rbp), %r14
callq *0x10f380(%r14)
addq $0x10, %rsp
movq -0x60(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq %rbx, %rdx
movl %r15d, %ecx
movq -0x98(%rbp), %rax
callq *0x10f2e0(%r14,%rax,8)
movl %eax, -0x74(%rbp)
movq %r13, -0x48(%rbp)
movl %r13d, %ebx
movq 0x18(%rbp), %rax
subl (%rax), %ebx
leaq 0x8e72(%rip), %r14      # 0x251b4
leaq 0xcd93(%rip), %r15      # 0x290dc
leaq 0x102a0(%rip), %rdx     # 0x2c5f0
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4c22
leal (%rbx,%rbx), %eax
negl %eax
testl %ebx, %ebx
leal -0x1(%rbx,%rbx), %r13d
cmovlel %eax, %r13d
leaq 0xcd7d(%rip), %rdx      # 0x290f1
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4c22
cmpl $0xfe, %r13d
ja 0x1c39a
movl %r13d, %eax
leaq 0xfe1c(%rip), %rcx      # 0x2c1b0
movl (%rcx,%rax,4), %r13d
jmp 0x1c3da
leal 0x1(%r13), %eax
movl %eax, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpl $0xffff, %r13d          # imm = 0xFFFF
setae %dl
cmovbl %eax, %ecx
shll $0x5, %edx
leal 0x10(%rdx), %r13d
movl %ecx, %eax
shrl $0x8, %eax
decl %eax
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %ecx, %eax
cmovbl %edx, %r13d
leaq 0xfdda(%rip), %rcx      # 0x2c1b0
addl (%rcx,%rax,4), %r13d
movq 0x20(%rbp), %rax
movq -0x38(%rbp), %rbx
subl (%rax), %ebx
leaq 0x8dc9(%rip), %r14      # 0x251b4
leaq 0xccea(%rip), %r15      # 0x290dc
leaq 0x101f7(%rip), %rdx     # 0x2c5f0
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4c22
leal (%rbx,%rbx), %eax
negl %eax
testl %ebx, %ebx
leal -0x1(%rbx,%rbx), %ebx
cmovlel %eax, %ebx
leaq 0xccd6(%rip), %rdx      # 0x290f1
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4c22
cmpl $0xfe, %ebx
ja 0x1c43e
movl %ebx, %eax
leaq 0xfd77(%rip), %rcx      # 0x2c1b0
movl (%rcx,%rax,4), %eax
jmp 0x1c479
leal 0x1(%rbx), %eax
movl %eax, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpl $0xffff, %ebx           # imm = 0xFFFF
setae %dl
cmovbl %eax, %ecx
shll $0x5, %edx
leal 0x10(%rdx), %eax
movl %ecx, %esi
shrl $0x8, %esi
decl %esi
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %ecx, %esi
cmovbl %edx, %eax
leaq 0xfd3a(%rip), %rcx      # 0x2c1b0
addl (%rcx,%rsi,4), %eax
addl %r13d, %eax
movl 0x10(%rbp), %ecx
imull %ecx, %eax
addl -0x74(%rbp), %eax
movl %eax, -0xa4(%rbp)
xorl %ecx, %ecx
movl $0x1, %eax
movl -0xb0(%rbp,%rax,4), %edx
movslq %ecx, %rsi
movl %eax, %r15d
cmpl -0xb0(%rbp,%rsi,4), %edx
jl 0x1c4ab
movl %ecx, %r15d
incq %rax
movl %r15d, %ecx
cmpq $0x4, %rax
jne 0x1c492
movslq %r15d, %rax
movl -0xb0(%rbp,%rax,4), %r8d
cmpl %r12d, %r8d
jge 0x1cca7
cmpl $0x3, %r15d
ja 0x1c506
movl %r15d, %eax
leaq 0xfbc5(%rip), %rcx      # 0x2c0a0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0xb8(%rbp), %eax
jmp 0x1c503
movl -0xb4(%rbp), %eax
movl %eax, -0x30(%rbp)
jmp 0x1c506
movq -0x48(%rbp), %rax
movl %eax, -0x30(%rbp)
jmp 0x1c506
movl -0x80(%rbp), %eax
movl %eax, -0x2c(%rbp)
movl %r8d, -0x3c(%rbp)
movl %r8d, %eax
cmpl $0x1, %r15d
movl %r8d, -0x38(%rbp)
je 0x1c6d8
movl -0x30(%rbp), %r14d
movl -0x2c(%rbp), %r12d
leal -0x1(%r12), %r9d
leaq -0x1c0(%rbp), %rdx
movq -0x50(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x90(%rbp), %rbx
movl %ebx, %ecx
movl %r14d, %r8d
pushq -0x88(%rbp)
pushq %rbx
movq -0x68(%rbp), %r13
callq *0x10f380(%r13)
addq $0x10, %rsp
movq -0x60(%rbp), %rdi
movq -0x70(%rbp), %rsi
leaq -0x1c0(%rbp), %rdx
movl %ebx, %ecx
movq -0x98(%rbp), %rax
callq *0x10f2e0(%r13,%rax,8)
movl %eax, -0x48(%rbp)
movq 0x18(%rbp), %rax
subl (%rax), %r14d
leaq 0x8c2a(%rip), %rbx      # 0x251b4
leaq 0xcb4b(%rip), %r13      # 0x290dc
leaq 0x10058(%rip), %rdx     # 0x2c5f0
movq %rbx, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x4c22
leal (%r14,%r14), %eax
negl %eax
testl %r14d, %r14d
leal -0x1(%r14,%r14), %r14d
cmovlel %eax, %r14d
leaq 0xcb33(%rip), %rdx      # 0x290f1
movq %rbx, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x4c22
cmpl $0xfe, %r14d
ja 0x1c5e3
movl %r14d, %eax
leaq 0xfbd2(%rip), %rcx      # 0x2c1b0
movl (%rcx,%rax,4), %ebx
jmp 0x1c620
leal 0x1(%r14), %eax
movl %eax, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpl $0xffff, %r14d          # imm = 0xFFFF
setae %dl
cmovbl %eax, %ecx
shll $0x5, %edx
leal 0x10(%rdx), %ebx
movl %ecx, %eax
shrl $0x8, %eax
decl %eax
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %ecx, %eax
cmovbl %edx, %ebx
leaq 0xfb93(%rip), %rcx      # 0x2c1b0
addl (%rcx,%rax,4), %ebx
movq 0x20(%rbp), %rax
movl (%rax), %eax
notl %eax
addl %eax, %r12d
leaq 0x8b82(%rip), %r14      # 0x251b4
leaq 0xcaa3(%rip), %r13      # 0x290dc
leaq 0xffb0(%rip), %rdx      # 0x2c5f0
movq %r14, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x4c22
leal (%r12,%r12), %eax
negl %eax
testl %r12d, %r12d
leal -0x1(%r12,%r12), %r12d
cmovlel %eax, %r12d
leaq 0xca8b(%rip), %rdx      # 0x290f1
movq %r14, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x4c22
cmpl $0xfe, %r12d
ja 0x1c68b
movl %r12d, %eax
leaq 0xfb2a(%rip), %rcx      # 0x2c1b0
movl (%rcx,%rax,4), %eax
jmp 0x1c6c9
leal 0x1(%r12), %eax
movl %eax, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpl $0xffff, %r12d          # imm = 0xFFFF
setae %dl
cmovbl %eax, %ecx
shll $0x5, %edx
leal 0x10(%rdx), %eax
movl %ecx, %esi
shrl $0x8, %esi
decl %esi
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %ecx, %esi
cmovbl %edx, %eax
leaq 0xfaea(%rip), %rcx      # 0x2c1b0
addl (%rcx,%rsi,4), %eax
movl -0x38(%rbp), %r8d
addl %ebx, %eax
movl 0x10(%rbp), %ecx
imull %ecx, %eax
addl -0x48(%rbp), %eax
movl %eax, -0xb0(%rbp)
movl %r8d, %eax
testl %r15d, %r15d
je 0x1c8a0
movl -0x30(%rbp), %r14d
movl -0x2c(%rbp), %ebx
incl %ebx
leaq -0x1c0(%rbp), %rdx
movq -0x50(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x90(%rbp), %r12
movl %r12d, %ecx
movl %r14d, %r8d
movl %ebx, %r9d
pushq -0x88(%rbp)
pushq %r12
movq -0x68(%rbp), %r13
callq *0x10f380(%r13)
addq $0x10, %rsp
movq -0x60(%rbp), %rdi
movq -0x70(%rbp), %rsi
leaq -0x1c0(%rbp), %rdx
movl %r12d, %ecx
movq -0x98(%rbp), %rax
callq *0x10f2e0(%r13,%rax,8)
movl %eax, -0x48(%rbp)
movq 0x18(%rbp), %rax
subl (%rax), %r14d
leaq 0x8a59(%rip), %r13      # 0x251b4
leaq 0xc97a(%rip), %r12      # 0x290dc
leaq 0xfe87(%rip), %rdx      # 0x2c5f0
movq %r13, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x4c22
leal (%r14,%r14), %eax
negl %eax
testl %r14d, %r14d
leal -0x1(%r14,%r14), %r14d
cmovlel %eax, %r14d
leaq 0xc962(%rip), %rdx      # 0x290f1
movq %r13, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x4c22
cmpl $0xfe, %r14d
ja 0x1c7b5
movl %r14d, %eax
leaq 0xfa01(%rip), %rcx      # 0x2c1b0
movl (%rcx,%rax,4), %r13d
jmp 0x1c7f5
leal 0x1(%r14), %eax
movl %eax, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpl $0xffff, %r14d          # imm = 0xFFFF
setae %dl
cmovbl %eax, %ecx
shll $0x5, %edx
leal 0x10(%rdx), %r13d
movl %ecx, %eax
shrl $0x8, %eax
decl %eax
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %ecx, %eax
cmovbl %edx, %r13d
leaq 0xf9bf(%rip), %rcx      # 0x2c1b0
addl (%rcx,%rax,4), %r13d
movq 0x20(%rbp), %rax
subl (%rax), %ebx
leaq 0x89b2(%rip), %r14      # 0x251b4
leaq 0xc8d3(%rip), %r12      # 0x290dc
leaq 0xfde0(%rip), %rdx      # 0x2c5f0
movq %r14, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x4c22
leal (%rbx,%rbx), %eax
negl %eax
testl %ebx, %ebx
leal -0x1(%rbx,%rbx), %ebx
cmovlel %eax, %ebx
leaq 0xc8bf(%rip), %rdx      # 0x290f1
movq %r14, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x4c22
cmpl $0xfe, %ebx
ja 0x1c855
movl %ebx, %eax
leaq 0xf960(%rip), %rcx      # 0x2c1b0
movl (%rcx,%rax,4), %eax
jmp 0x1c890
leal 0x1(%rbx), %eax
movl %eax, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpl $0xffff, %ebx           # imm = 0xFFFF
setae %dl
cmovbl %eax, %ecx
shll $0x5, %edx
leal 0x10(%rdx), %eax
movl %ecx, %esi
shrl $0x8, %esi
decl %esi
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %ecx, %esi
cmovbl %edx, %eax
leaq 0xf923(%rip), %rcx      # 0x2c1b0
addl (%rcx,%rsi,4), %eax
movl -0x38(%rbp), %r8d
addl %r13d, %eax
movl 0x10(%rbp), %ecx
imull %ecx, %eax
addl -0x48(%rbp), %eax
movl %eax, -0xac(%rbp)
movl %r8d, %eax
cmpl $0x3, %r15d
je 0x1ca73
movl -0x30(%rbp), %r12d
leal -0x1(%r12), %r8d
movl -0x2c(%rbp), %ebx
leaq -0x1c0(%rbp), %rdx
movq -0x50(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x90(%rbp), %r14
movl %r14d, %ecx
movl %ebx, %r9d
pushq -0x88(%rbp)
pushq %r14
movq -0x68(%rbp), %r13
callq *0x10f380(%r13)
addq $0x10, %rsp
movq -0x60(%rbp), %rdi
movq -0x70(%rbp), %rsi
leaq -0x1c0(%rbp), %rdx
movl %r14d, %ecx
movq -0x98(%rbp), %rax
callq *0x10f2e0(%r13,%rax,8)
movl %eax, -0x48(%rbp)
movq 0x18(%rbp), %rax
movl (%rax), %r13d
notl %r13d
addl %r12d, %r13d
leaq 0x888a(%rip), %r14      # 0x251b4
leaq 0xc7ab(%rip), %r12      # 0x290dc
leaq 0xfcb8(%rip), %rdx      # 0x2c5f0
movq %r14, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x4c22
leal (,%r13,2), %eax
negl %eax
testl %r13d, %r13d
leal -0x1(%r13,%r13), %r13d
cmovlel %eax, %r13d
leaq 0xc78f(%rip), %rdx      # 0x290f1
movq %r14, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x4c22
cmpl $0xfe, %r13d
ja 0x1c988
movl %r13d, %eax
leaq 0xf82e(%rip), %rcx      # 0x2c1b0
movl (%rcx,%rax,4), %r13d
jmp 0x1c9c8
leal 0x1(%r13), %eax
movl %eax, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpl $0xffff, %r13d          # imm = 0xFFFF
setae %dl
cmovbl %eax, %ecx
shll $0x5, %edx
leal 0x10(%rdx), %r13d
movl %ecx, %eax
shrl $0x8, %eax
decl %eax
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %ecx, %eax
cmovbl %edx, %r13d
leaq 0xf7ec(%rip), %rcx      # 0x2c1b0
addl (%rcx,%rax,4), %r13d
movq 0x20(%rbp), %rax
subl (%rax), %ebx
leaq 0x87df(%rip), %r14      # 0x251b4
leaq 0xc700(%rip), %r12      # 0x290dc
leaq 0xfc0d(%rip), %rdx      # 0x2c5f0
movq %r14, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x4c22
leal (%rbx,%rbx), %eax
negl %eax
testl %ebx, %ebx
leal -0x1(%rbx,%rbx), %ebx
cmovlel %eax, %ebx
leaq 0xc6ec(%rip), %rdx      # 0x290f1
movq %r14, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x4c22
cmpl $0xfe, %ebx
ja 0x1ca28
movl %ebx, %eax
leaq 0xf78d(%rip), %rcx      # 0x2c1b0
movl (%rcx,%rax,4), %eax
jmp 0x1ca63
leal 0x1(%rbx), %eax
movl %eax, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpl $0xffff, %ebx           # imm = 0xFFFF
setae %dl
cmovbl %eax, %ecx
shll $0x5, %edx
leal 0x10(%rdx), %eax
movl %ecx, %esi
shrl $0x8, %esi
decl %esi
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %ecx, %esi
cmovbl %edx, %eax
leaq 0xf750(%rip), %rcx      # 0x2c1b0
addl (%rcx,%rsi,4), %eax
movl -0x38(%rbp), %r8d
addl %r13d, %eax
movl 0x10(%rbp), %ecx
imull %ecx, %eax
addl -0x48(%rbp), %eax
movl %eax, -0xa8(%rbp)
movl %r8d, %eax
cmpl $0x2, %r15d
je 0x1cc3d
movl -0x30(%rbp), %r15d
incl %r15d
movl -0x2c(%rbp), %ebx
leaq -0x1c0(%rbp), %r14
movq -0x50(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq %r14, %rdx
movq -0x90(%rbp), %r13
movl %r13d, %ecx
movl %r15d, %r8d
movl %ebx, %r9d
pushq -0x88(%rbp)
pushq %r13
movq -0x68(%rbp), %r12
callq *0x10f380(%r12)
addq $0x10, %rsp
movq -0x60(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq %r14, %rdx
movl %r13d, %ecx
movq -0x98(%rbp), %rax
callq *0x10f2e0(%r12,%rax,8)
movl %eax, %r14d
movq 0x18(%rbp), %rax
subl (%rax), %r15d
leaq 0x86bc(%rip), %r12      # 0x251b4
leaq 0xc5dd(%rip), %r13      # 0x290dc
leaq 0xfaea(%rip), %rdx      # 0x2c5f0
movq %r12, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x4c22
leal (%r15,%r15), %eax
negl %eax
testl %r15d, %r15d
leal -0x1(%r15,%r15), %r15d
cmovlel %eax, %r15d
leaq 0xc5c5(%rip), %rdx      # 0x290f1
movq %r12, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x4c22
cmpl $0xfe, %r15d
ja 0x1cb52
movl %r15d, %eax
leaq 0xf664(%rip), %rcx      # 0x2c1b0
movl (%rcx,%rax,4), %r13d
jmp 0x1cb92
leal 0x1(%r15), %eax
movl %eax, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpl $0xffff, %r15d          # imm = 0xFFFF
setae %dl
cmovbl %eax, %ecx
shll $0x5, %edx
leal 0x10(%rdx), %r13d
movl %ecx, %eax
shrl $0x8, %eax
decl %eax
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %ecx, %eax
cmovbl %edx, %r13d
leaq 0xf622(%rip), %rcx      # 0x2c1b0
addl (%rcx,%rax,4), %r13d
movq 0x20(%rbp), %rax
subl (%rax), %ebx
leaq 0x8615(%rip), %r15      # 0x251b4
leaq 0xc536(%rip), %r12      # 0x290dc
leaq 0xfa43(%rip), %rdx      # 0x2c5f0
movq %r15, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x4c22
leal (%rbx,%rbx), %eax
negl %eax
testl %ebx, %ebx
leal -0x1(%rbx,%rbx), %ebx
cmovlel %eax, %ebx
leaq 0xc522(%rip), %rdx      # 0x290f1
movq %r15, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x4c22
cmpl $0xfe, %ebx
ja 0x1cbf2
movl %ebx, %eax
leaq 0xf5c3(%rip), %rcx      # 0x2c1b0
movl (%rcx,%rax,4), %eax
jmp 0x1cc2d
leal 0x1(%rbx), %eax
movl %eax, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpl $0xffff, %ebx           # imm = 0xFFFF
setae %dl
cmovbl %eax, %ecx
shll $0x5, %edx
leal 0x10(%rdx), %eax
movl %ecx, %esi
shrl $0x8, %esi
decl %esi
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %ecx, %esi
cmovbl %edx, %eax
leaq 0xf586(%rip), %rcx      # 0x2c1b0
addl (%rcx,%rsi,4), %eax
movl -0x38(%rbp), %r8d
addl %r13d, %eax
movl 0x10(%rbp), %ecx
imull %ecx, %eax
addl %r14d, %eax
movl %eax, -0xa4(%rbp)
xorl %edx, %edx
movl $0x1, %eax
movl -0xb0(%rbp,%rax,4), %esi
movslq %edx, %rdi
movl %eax, %ecx
cmpl -0xb0(%rbp,%rdi,4), %esi
jl 0x1cc61
movl %edx, %ecx
incq %rax
movl %ecx, %edx
cmpq $0x4, %rax
jne 0x1cc4a
movslq %ecx, %rax
movl -0xb0(%rbp,%rax,4), %eax
cmpl %r8d, %eax
jge 0x1cca7
cmpl $0x3, %ecx
ja 0x1cca4
movl %ecx, %ecx
leaq 0xf427(%rip), %rdx      # 0x2c0b0
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
decl -0x2c(%rbp)
jmp 0x1cca4
decl -0x30(%rbp)
jmp 0x1cca4
incl -0x30(%rbp)
jmp 0x1cca4
incl -0x2c(%rbp)
movl %eax, -0x3c(%rbp)
movl -0x30(%rbp), %eax
movq 0x18(%rbp), %rcx
movl %eax, (%rcx)
movl -0x2c(%rbp), %eax
movq 0x20(%rbp), %rcx
movl %eax, (%rcx)
movl -0x3c(%rbp), %eax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq