// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/encoder/analyse.c
// Function: x264_macroblock_analyse(x264_t*, x264_macroblock_t*)
void x264_macroblock_analyse( x264_t *h, x264_macroblock_t *mb )
{
    x264_mb_analysis_t analysis;
    int i;

    /* qp TODO */
    mb->i_qp = x264_clip3( h->pps->i_pic_init_qp + h->sh.i_qp_delta + 0, 0, 51 );

    /* init analysis */
    analysis.i_qp = mb->i_qp;
    analysis.i_lambda = i_qp0_cost_table[analysis.i_qp];

    /*--------------------------- Do the analysis ---------------------------*/
    x264_mb_analyse_intra( h, mb, &analysis );
    if( h->sh.i_type == SLICE_TYPE_P )
    {
        x264_mb_analyse_inter_p( h, mb, &analysis );
    }
    else if( h->sh.i_type == SLICE_TYPE_B )
    {
        x264_mb_analyse_inter_b( h, mb, &analysis );
    }

    /*-------------------- Chose the macroblock mode ------------------------*/
#define BEST_TYPE( type, partition, satd ) \
        if( satd != -1 && satd < i_satd ) \
        {   \
            i_satd = satd;  \
            mb->i_type = type; \
            mb->i_partition = partition; \
        }
    if( h->sh.i_type == SLICE_TYPE_I )
    {
        mb->i_type = analysis.i_sad_i4x4 < analysis.i_sad_i16x16 ? I_4x4 : I_16x16;
    }
    else if( h->sh.i_type == SLICE_TYPE_P )
    {
        int i_satd = analysis.i_sad_i4x4;
        mb->i_type = I_4x4;

        BEST_TYPE( I_16x16, -1,    analysis.i_sad_i16x16 );
        BEST_TYPE( P_L0,  D_16x16, analysis.i_sad_p16x16 );
        BEST_TYPE( P_L0,  D_16x8 , analysis.i_sad_p16x8  );
        BEST_TYPE( P_L0,  D_8x16 , analysis.i_sad_p8x16  );
        BEST_TYPE( P_8x8, D_8x8  , analysis.i_sad_p8x8   );
    }
    else    /* B */
    {
        int i_satd = analysis.i_sad_i4x4;
        mb->i_type = I_4x4;

        BEST_TYPE( I_16x16, -1,      analysis.i_sad_i16x16 );
        BEST_TYPE( B_L0_L0, D_16x16, analysis.i_sad_b16x16_l0 );
        BEST_TYPE( B_L1_L1, D_16x16, analysis.i_sad_b16x16_l1 );
        BEST_TYPE( B_BI_BI, D_16x16, analysis.i_sad_b16x16_bi );
    }
#undef BEST_TYPE

    if( IS_INTRA( mb->i_type ) )
    {
        x264_mb_analyse_intra_chroma( h, mb, &analysis );
    }

    /*-------------------- Update MB from the analysis ----------------------*/
    switch( mb->i_type )
    {
        case I_4x4:
            for( i = 0; i < 16; i++ )
            {
                mb->block[i].i_intra4x4_pred_mode = analysis.i_predict4x4[block_idx_x[i]][block_idx_y[i]];
            }
            mb->i_chroma_pred_mode = analysis.i_predict8x8;
            break;
        case I_16x16:
            mb->i_intra16x16_pred_mode = analysis.i_predict16x16;
            mb->i_chroma_pred_mode = analysis.i_predict8x8;
            break;
        case P_L0:
            switch( mb->i_partition )
            {
                case D_16x16:
                    x264_mb_partition_set( mb, 0, 0, 0, analysis.i_ref_p16x16, analysis.i_mv_p16x16[0], analysis.i_mv_p16x16[1] );
                    break;
                case D_16x8:
                    x264_mb_partition_set( mb, 0, 0, 0, analysis.i_ref_p16x8, analysis.i_mv_p16x8[0][0], analysis.i_mv_p16x8[0][1] );
                    x264_mb_partition_set( mb, 0, 1, 0, analysis.i_ref_p16x8, analysis.i_mv_p16x8[1][0], analysis.i_mv_p16x8[1][1] );
                    break;
                case D_8x16:
                    x264_mb_partition_set( mb, 0, 0, 0, analysis.i_ref_p8x16, analysis.i_mv_p8x16[0][0], analysis.i_mv_p8x16[0][1] );
                    x264_mb_partition_set( mb, 0, 1, 0, analysis.i_ref_p8x16, analysis.i_mv_p8x16[1][0], analysis.i_mv_p8x16[1][1] );
                    break;
                default:
                    fprintf( stderr, "internal error\n" );
                    break;
            }
            break;

        case P_8x8:
            for( i = 0; i < 4; i++ )
            {
                int i_sub;

                mb->i_sub_partition[i] = analysis.i_sub_partition_p8x8[i];
                for( i_sub = 0; i_sub < x264_mb_partition_count_table[mb->i_sub_partition[i]]; i_sub++ )
                {
                    x264_mb_partition_set( mb, 0, i, i_sub,
                                                   analysis.i_ref_p8x8,
                                                   analysis.i_mv_p8x8[i][i_sub][0],
                                                   analysis.i_mv_p8x8[i][i_sub][1] );
                }
            }
            break;
        case B_L0_L0:
            switch( mb->i_partition )
            {
                case D_16x16:
                    x264_mb_partition_set( mb, 0, 0, 0, analysis.i_ref_b16x16_l0, analysis.i_mv_b16x16_l0[0], analysis.i_mv_b16x16_l0[1] );
                    /* l1 not used/avaiable */
                    x264_mb_partition_set( mb, 1, 0, 0, -1, 0, 0 );
                    break;
                default:
                    fprintf( stderr, "internal error\n" );
                    break;
            }
            break;
        case B_L1_L1:
            switch( mb->i_partition )
            {
                case D_16x16:
                    /* l0 not used/avaiable */
                    x264_mb_partition_set( mb, 0, 0, 0, -1, 0, 0 );
                    x264_mb_partition_set( mb, 1, 0, 0, analysis.i_ref_b16x16_l1, analysis.i_mv_b16x16_l1[0], analysis.i_mv_b16x16_l1[1] );
                    break;

                default:
                    fprintf( stderr, "internal error\n" );
                    break;
            }
            break;
        case B_BI_BI:
            switch( mb->i_partition )
            {
                case D_16x16:
                    x264_mb_partition_set( mb, 0, 0, 0, analysis.i_ref_b16x16_l0, analysis.i_mv_b16x16_l0[0], analysis.i_mv_b16x16_l0[1] );
                    x264_mb_partition_set( mb, 1, 0, 0, analysis.i_ref_b16x16_l1, analysis.i_mv_b16x16_l1[0], analysis.i_mv_b16x16_l1[1] );
                    break;

                default:
                    fprintf( stderr, "internal error\n" );
                    break;
            }
            break;

        default:
            fprintf( stderr, "internal error\n" );
            break;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x428, %rsp            # imm = 0x428
movq %rsi, -0x50(%rbp)
movq %rdi, -0x48(%rbp)
movq 0x10dae0(%rdi), %rax
movl 0x10db44(%rdi), %ecx
addl 0x1034(%rax), %ecx
cmpl $0x33, %ecx
movl $0x33, %eax
cmovbl %ecx, %eax
xorl %edx, %edx
testl %ecx, %ecx
cmovnsl %eax, %edx
movl %edx, 0x2b0(%rsi)
movl %edx, -0x214(%rbp)
leaq 0x17c84(%rip), %rax     # 0x2a900
movq %rdx, -0x220(%rbp)
movl (%rax,%rdx,4), %ecx
movq %rcx, -0x70(%rbp)
movl %ecx, -0x218(%rbp)
movq 0x10(%rsi), %rax
movq 0x18(%rax), %rcx
movq %rcx, -0xa0(%rbp)
movq 0x40(%rax), %rcx
movq %rcx, -0x98(%rbp)
movl 0x58(%rax), %ecx
movl %ecx, -0x38(%rbp)
movslq 0x30(%rax), %rax
movq %rax, -0x40(%rbp)
movl $0x1, 0x18(%rsi)
movl $0xffffffff, -0x210(%rbp) # imm = 0xFFFFFFFF
movl 0x8(%rsi), %eax
movl %eax, %ecx
notl %ecx
testb $0x3, %cl
jne 0x12cea
movaps 0x17ba4(%rip), %xmm0    # 0x2a880
movaps %xmm0, -0x330(%rbp)
movl $0x4, %eax
jmp 0x12d26
testb $0x1, %al
jne 0x12d03
testb $0x2, %al
jne 0x12d16
movl $0x6, -0x330(%rbp)
movl $0x1, %eax
jmp 0x12d26
movabsq $0x100000004, %rax      # imm = 0x100000004
movq %rax, -0x330(%rbp)
jmp 0x12d21
movq $0x5, -0x330(%rbp)
movl $0x2, %eax
movq %rax, -0x58(%rbp)
movl $0xffffffff, -0x30(%rbp) # imm = 0xFFFFFFFF
xorl %r13d, %r13d
movl -0x38(%rbp), %r14d
movslq -0x330(%rbp,%r13,4), %r15
movq -0x98(%rbp), %r12
movq %r12, %rdi
movl %r14d, %esi
movq -0x48(%rbp), %rbx
callq *0x10f1d8(%rbx,%r15,8)
movq %r12, %rdi
movl %r14d, %esi
movq -0xa0(%rbp), %rdx
movq -0x40(%rbp), %rcx
callq *0x10f2e0(%rbx)
movl %eax, %ebx
leaq 0x17ca7(%rip), %rax     # 0x2aa20
movl (%rax,%r15,4), %r12d
leaq 0x14430(%rip), %rdi     # 0x271b4
leaq 0x18151(%rip), %rsi     # 0x2aedc
leaq 0x1815f(%rip), %rdx     # 0x2aef1
xorl %eax, %eax
callq 0x4a56
leaq 0x17cd0(%rip), %rax     # 0x2aa70
movl (%rax,%r12,4), %eax
imull -0x70(%rbp), %eax
addl %ebx, %eax
movl -0x30(%rbp), %edx
cmpl $-0x1, %edx
sete %cl
cmpl %eax, %edx
setg %dl
orb %cl, %dl
cmpb $0x1, %dl
jne 0x12dcf
movl %r15d, -0x20c(%rbp)
movl %eax, -0x210(%rbp)
movl %eax, -0x30(%rbp)
incq %r13
cmpq %r13, -0x58(%rbp)
jne 0x12d38
xorl %ebx, %ebx
movq -0x50(%rbp), %r13
movl %ebx, 0x18(%r13)
leaq -0x204(%rbp), %rax
movl %ebx, -0x4(%rax)
leaq 0x324(%r13), %rax
movq %rax, -0x90(%rbp)
xorl %r15d, %r15d
movq -0x48(%rbp), %r14
movq %r14, %rdi
movq %r13, %rsi
movl %r15d, %edx
callq 0x6577
movl %eax, -0x88(%rbp)
movl 0x8(%r13), %eax
notl %eax
leaq 0x1804a(%rip), %rcx     # 0x2ae70
andl (%rcx,%r15,4), %eax
movl %eax, %ecx
andl $0x3, %ecx
leaq 0x17a7a(%rip), %rdx     # 0x2a8b0
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
movq %rbx, -0x230(%rbp)
jmpq *%rcx
movaps 0x17a43(%rip), %xmm0    # 0x2a890
movaps %xmm0, -0x330(%rbp)
movabsq $0x600000005, %rcx      # imm = 0x600000005
movq %rcx, -0x320(%rbp)
movl $0x8, -0x318(%rbp)
movl $0x7, %ecx
movq %rcx, -0x68(%rbp)
testb $0x14, %al
leaq -0x204(%rbp), %rdi
leaq 0x171b8(%rip), %rax     # 0x2a040
leaq 0x171a1(%rip), %rdx     # 0x2a030
jne 0x12efa
movabsq $0x700000003, %rcx      # imm = 0x700000003
movq %rcx, -0x314(%rbp)
movl $0x9, %ecx
movq %rcx, -0x68(%rbp)
jmp 0x12efa
movabsq $0x100000009, %rax      # imm = 0x100000009
movq %rax, -0x330(%rbp)
jmp 0x12edc
movl $0xb, -0x330(%rbp)
movl $0x1, %eax
jmp 0x12ee1
movq $0xa, -0x330(%rbp)
movl $0x2, %eax
movq %rax, -0x68(%rbp)
leaq -0x204(%rbp), %rdi
leaq 0x1714d(%rip), %rax     # 0x2a040
leaq 0x17136(%rip), %rdx     # 0x2a030
movzbl (%r15,%rax), %ecx
movq %r15, -0x228(%rbp)
movzbl (%r15,%rdx), %edx
movl %ecx, %eax
shll $0x2, %eax
movq -0xa0(%rbp), %rsi
addq %rax, %rsi
shll $0x4, %ecx
addq %rdi, %rcx
leaq (%rcx,%rdx,4), %rcx
movq %rcx, -0x78(%rbp)
shll $0x2, %edx
movq %rdx, %rcx
imulq -0x40(%rbp), %rcx
addq %rsi, %rcx
movq %rcx, -0x80(%rbp)
addq -0x98(%rbp), %rax
imull -0x38(%rbp), %edx
movslq %edx, %rcx
addq %rax, %rcx
movq %rcx, -0x58(%rbp)
movl $0xffffffff, -0x30(%rbp) # imm = 0xFFFFFFFF
xorl %r15d, %r15d
movslq -0x330(%rbp,%r15,4), %r12
movq -0x58(%rbp), %rbx
movq %rbx, %rdi
movl -0x38(%rbp), %r14d
movl %r14d, %esi
movq -0x48(%rbp), %r13
callq *0x10f248(%r13,%r12,8)
movq %rbx, %rdi
movl %r14d, %esi
movq -0x80(%rbp), %rdx
movq -0x40(%rbp), %rcx
callq *0x10f310(%r13)
leaq 0x17aa9(%rip), %rcx     # 0x2aa40
movl -0x88(%rbp), %edx
cmpl (%rcx,%r12,4), %edx
setne %cl
addb %cl, %cl
movq -0x70(%rbp), %rdx
shll %cl, %edx
addl %eax, %edx
movl -0x30(%rbp), %ecx
cmpl $-0x1, %ecx
sete %al
cmpl %edx, %ecx
setg %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x12fcd
movq -0x78(%rbp), %rax
movl %r12d, (%rax)
movl %edx, -0x30(%rbp)
incq %r15
cmpq %r15, -0x68(%rbp)
jne 0x12f59
movq -0x230(%rbp), %rax
addl -0x30(%rbp), %eax
movq %rax, %rbx
movq -0x78(%rbp), %rax
movslq (%rax), %rax
movq -0x228(%rbp), %r15
movq %r15, %rcx
shlq $0x7, %rcx
leaq (%rcx,%r15,4), %rcx
movq -0x90(%rbp), %rdx
movl %eax, (%rdx,%rcx)
movq -0x58(%rbp), %rdi
movl -0x38(%rbp), %esi
movq -0x48(%rbp), %r14
callq *0x10f248(%r14,%rax,8)
movq %r14, %rdi
movq -0x50(%rbp), %r13
movq %r13, %rsi
movl %r15d, %edx
movq -0x220(%rbp), %rcx
callq 0x16e6c
incq %r15
cmpq $0x10, %r15
jne 0x12e05
movq -0x70(%rbp), %rax
leal (%rax,%rax,2), %eax
leal (%rbx,%rax,8), %eax
movl %eax, -0x208(%rbp)
movl 0x10db00(%r14), %eax
cmpl $0x1, %eax
je 0x1341d
testl %eax, %eax
jne 0x13f1b
movq 0x10(%r13), %rax
movq %rax, -0x38(%rbp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x1bc(%rbp)
movl %eax, -0x1ac(%rbp)
movl %eax, -0x194(%rbp)
movl %eax, -0x17c(%rbp)
movabsq $0x1000000003, %rax     # imm = 0x1000000003
movq %rax, 0x18(%r13)
cmpl $0x0, 0x10f078(%r14)
jle 0x1326c
xorl %r12d, %r12d
leaq 0x179be(%rip), %r13     # 0x2aa70
xorl %r15d, %r15d
movl $0x0, (%rsp)
movq -0x50(%rbp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl %r15d, %r8d
xorl %r9d, %r9d
callq 0x6938
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0x330(%rbp), %r8
callq 0x6c10
movl -0x330(%rbp), %eax
movl -0x32c(%rbp), %ecx
movl %eax, -0x430(%rbp)
movl %ecx, -0x60(%rbp)
movq -0x38(%rbp), %rax
movq 0x68(%rax,%r12,2), %rsi
movl 0x1e8(%rax,%r12), %edx
movq 0x18(%rax), %rcx
movl 0x30(%rax), %r8d
movl -0x218(%rbp), %eax
leaq -0x60(%rbp), %rdi
movq %rdi, 0x10(%rsp)
leaq -0x430(%rbp), %rdi
movq %rdi, 0x8(%rsp)
movl %eax, (%rsp)
movq %r14, %rdi
xorl %r9d, %r9d
callq *0x10f390(%r14)
movl %eax, %ebx
movl -0x430(%rbp), %eax
cmpl -0x330(%rbp), %eax
jne 0x1316f
movl -0x60(%rbp), %eax
movl -0x218(%rbp), %ecx
cmpl -0x32c(%rbp), %eax
movl %ecx, -0x30(%rbp)
jne 0x13178
movl %ecx, %eax
shll $0x4, %eax
subl %eax, %ebx
jmp 0x13178
movl -0x218(%rbp), %eax
movl %eax, -0x30(%rbp)
movl 0x10db38(%r14), %r14d
leaq 0x1402e(%rip), %rdi     # 0x271b4
leaq 0x17d4f(%rip), %rsi     # 0x2aedc
leaq 0x17d68(%rip), %rdx     # 0x2aefc
xorl %eax, %eax
callq 0x4a56
movl $0x1, %eax
cmpl $0x2, %r14d
je 0x13216
xorl %eax, %eax
cmpl $0x3, %r14d
jl 0x13216
leaq 0x13fff(%rip), %rdi     # 0x271b4
leaq 0x17d20(%rip), %rsi     # 0x2aedc
leaq 0x17d2e(%rip), %rdx     # 0x2aef1
xorl %eax, %eax
callq 0x4a56
cmpq $0xfe, %r15
ja 0x131d9
movl (%r13), %eax
jmp 0x13216
leal 0x1(%r15), %eax
movl %eax, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpq $0xffff, %r15           # 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 0x1785d(%rip), %rcx     # 0x2aa70
addl (%rcx,%rsi,4), %eax
imull -0x30(%rbp), %eax
addl %ebx, %eax
movl -0x1bc(%rbp), %ecx
cmpl $-0x1, %ecx
je 0x1322b
cmpl %ecx, %eax
jge 0x1324d
movl %eax, -0x1bc(%rbp)
movl %r15d, -0x1b8(%rbp)
movl -0x430(%rbp), %eax
movl %eax, -0x1b4(%rbp)
movl -0x60(%rbp), %eax
movl %eax, -0x1b0(%rbp)
incq %r15
movq -0x48(%rbp), %r14
movslq 0x10f078(%r14), %rax
addq $0x4, %r13
addq $0xc, %r12
cmpq %rax, %r15
jl 0x130b5
movl -0x1b8(%rbp), %r14d
movslq %r14d, %r15
movl $0x0, (%rsp)
movq -0x50(%rbp), %r13
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl %r15d, %r8d
xorl %r9d, %r9d
callq 0x6938
cmpl $0x0, -0x20c(%rbp)
movq %r14, -0x30(%rbp)
je 0x13af1
movl $0xe, 0x1c(%r13)
leaq -0x1a4(%rbp), %r12
movl %r15d, -0x4(%r12)
leaq -0x330(%rbp), %r8
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x6c10
leaq -0x328(%rbp), %rbx
movq %r13, %rdi
xorl %esi, %esi
movl $0x1, %edx
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x6c10
movaps -0x8(%rbx), %xmm0
movups %xmm0, (%r12)
leaq -0x1a0(%rbp), %rax
leaq -0x198(%rbp), %r14
movq %r15, -0x40(%rbp)
leaq (%r15,%r15,2), %r13
movq -0x38(%rbp), %r15
movq 0x68(%r15,%r13,8), %rsi
movl 0x1e8(%r15,%r13,4), %edx
movq 0x18(%r15), %rcx
movl 0x30(%r15), %r8d
movl -0x80(%r14), %edi
movq %rax, 0x10(%rsp)
movq %r12, 0x8(%rsp)
movl %edi, (%rsp)
movq -0x48(%rbp), %r12
movq %r12, %rdi
movl $0x1, %r9d
callq *0x10f390(%r12)
movl %eax, %ebx
movslq 0x1e8(%r15,%r13,4), %rdx
movq %rdx, %rsi
shlq $0x3, %rsi
addq 0x68(%r15,%r13,8), %rsi
movslq 0x30(%r15), %r8
movq %r8, %rcx
shlq $0x3, %rcx
addq 0x18(%r15), %rcx
movl -0x80(%r14), %eax
movq %r14, 0x10(%rsp)
leaq -0x19c(%rbp), %rdi
movq %rdi, 0x8(%rsp)
movl %eax, (%rsp)
movq %r12, %rdi
movl $0x1, %r9d
callq *0x10f390(%r12)
addl %ebx, %eax
movl %eax, -0x14(%r14)
movl -0x80(%r14), %ebx
addl %ebx, %ebx
movl 0x10db38(%r12), %r14d
leaq 0x13e03(%rip), %rdi     # 0x271b4
leaq 0x17b24(%rip), %rsi     # 0x2aedc
leaq 0x17b3d(%rip), %rdx     # 0x2aefc
xorl %eax, %eax
callq 0x4a56
movl $0x1, %esi
cmpl $0x2, %r14d
movq -0x30(%rbp), %r14
je 0x13ad3
movl $0x0, %esi
jle 0x13ad3
leaq 0x13dc9(%rip), %rdi     # 0x271b4
leaq 0x17aea(%rip), %rsi     # 0x2aedc
leaq 0x17af8(%rip), %rdx     # 0x2aef1
xorl %eax, %eax
callq 0x4a56
cmpl $0xfe, %r14d
ja 0x13a98
leaq 0x1765c(%rip), %rax     # 0x2aa70
movl (%rax,%r14,4), %esi
jmp 0x13ad3
movq 0x10(%r13), %rax
movq %rax, -0x30(%rbp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0xe4(%rbp)
movl %eax, -0xd4(%rbp)
movl %eax, -0xc4(%rbp)
movabsq $0x1000000007, %rax     # imm = 0x1000000007
movq %rax, 0x18(%r13)
cmpl $0x0, 0x10f078(%r14)
jle 0x135f1
leaq 0x17611(%rip), %r13     # 0x2aa70
xorl %r12d, %r12d
xorl %r15d, %r15d
movl $0x0, (%rsp)
movq -0x50(%rbp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl %r15d, %r8d
xorl %r9d, %r9d
callq 0x6938
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0x60(%rbp), %r8
callq 0x6c10
movl -0x60(%rbp), %eax
movl -0x5c(%rbp), %ecx
movl %eax, -0x330(%rbp)
movl %ecx, -0x430(%rbp)
movq -0x30(%rbp), %rax
movq 0x68(%rax,%r12,2), %rsi
movl 0x1e8(%rax,%r12), %edx
movq 0x18(%rax), %rcx
movl 0x30(%rax), %r8d
movl -0x218(%rbp), %eax
leaq -0x430(%rbp), %rdi
movq %rdi, 0x10(%rsp)
leaq -0x330(%rbp), %rdi
movq %rdi, 0x8(%rsp)
movl %eax, (%rsp)
movq %r14, %rdi
xorl %r9d, %r9d
callq *0x10f390(%r14)
movl %eax, -0x38(%rbp)
movq %r14, %rax
movl -0x218(%rbp), %r14d
movl 0x10db38(%rax), %ebx
leaq 0x13cab(%rip), %rdi     # 0x271b4
leaq 0x179cc(%rip), %rsi     # 0x2aedc
leaq 0x179e5(%rip), %rdx     # 0x2aefc
xorl %eax, %eax
callq 0x4a56
movl $0x1, %eax
cmpl $0x2, %ebx
je 0x13597
xorl %eax, %eax
cmpl $0x3, %ebx
jl 0x13597
leaq 0x13c7e(%rip), %rdi     # 0x271b4
leaq 0x1799f(%rip), %rsi     # 0x2aedc
leaq 0x179ad(%rip), %rdx     # 0x2aef1
xorl %eax, %eax
callq 0x4a56
cmpq $0xfe, %r15
ja 0x1355a
movl (%r13), %eax
jmp 0x13597
leal 0x1(%r15), %eax
movl %eax, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpq $0xffff, %r15           # 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 0x174dc(%rip), %rcx     # 0x2aa70
addl (%rcx,%rsi,4), %eax
imull %r14d, %eax
addl -0x38(%rbp), %eax
movl -0xe4(%rbp), %ecx
cmpl $-0x1, %ecx
je 0x135ad
cmpl %ecx, %eax
jge 0x135d2
movl %eax, -0xe4(%rbp)
movl %r15d, -0xe0(%rbp)
movl -0x330(%rbp), %eax
movl %eax, -0xdc(%rbp)
movl -0x430(%rbp), %eax
movl %eax, -0xd8(%rbp)
incq %r15
movq -0x48(%rbp), %r14
movslq 0x10f078(%r14), %rax
addq $0x4, %r13
addq $0xc, %r12
cmpq %rax, %r15
jl 0x13465
movabsq $0x100000000b, %rax     # imm = 0x100000000B
movq -0x50(%rbp), %rcx
movq %rax, 0x18(%rcx)
cmpl $0x0, 0x10f100(%r14)
movq %r14, %r10
jle 0x137ca
leaq 0x17455(%rip), %r13     # 0x2aa70
xorl %r12d, %r12d
xorl %r15d, %r15d
movq %r13, -0x38(%rbp)
movl $0x0, (%rsp)
movl $0x1, %r14d
movq -0x50(%rbp), %rbx
movq %rbx, %rdi
movl $0x1, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl %r15d, %r8d
xorl %r9d, %r9d
movq %r10, %r13
callq 0x6938
movq %rbx, %rdi
movl $0x1, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0x60(%rbp), %r8
callq 0x6c10
movl -0x60(%rbp), %eax
movl -0x5c(%rbp), %ecx
movl %eax, -0x330(%rbp)
movl %ecx, -0x430(%rbp)
movq -0x30(%rbp), %rax
movq 0x2a8(%rax,%r12,2), %rsi
movl 0x428(%rax,%r12), %edx
movq 0x18(%rax), %rcx
movl 0x30(%rax), %r8d
movl -0x218(%rbp), %eax
leaq -0x430(%rbp), %rdi
movq %rdi, 0x10(%rsp)
leaq -0x330(%rbp), %rdi
movq %rdi, 0x8(%rsp)
movl %eax, (%rsp)
movq %r13, %rdi
xorl %r9d, %r9d
callq *0x10f390(%r13)
movl %eax, -0x40(%rbp)
movl -0x218(%rbp), %eax
movl %eax, -0x58(%rbp)
movl 0x10db3c(%r13), %ebx
movq -0x38(%rbp), %r13
leaq 0x13ad5(%rip), %rdi     # 0x271b4
leaq 0x177f6(%rip), %rsi     # 0x2aedc
leaq 0x1780f(%rip), %rdx     # 0x2aefc
xorl %eax, %eax
callq 0x4a56
cmpl $0x2, %ebx
je 0x1376c
xorl %r14d, %r14d
cmpl $0x3, %ebx
jl 0x1376c
leaq 0x13aac(%rip), %rdi     # 0x271b4
leaq 0x177cd(%rip), %rsi     # 0x2aedc
leaq 0x177db(%rip), %rdx     # 0x2aef1
xorl %eax, %eax
callq 0x4a56
cmpq $0xfe, %r15
ja 0x1372c
movl (%r13), %r14d
jmp 0x1376c
leal 0x1(%r15), %eax
movl %eax, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpq $0xffff, %r15           # imm = 0xFFFF
setae %dl
cmovbl %eax, %ecx
shll $0x5, %edx
leal 0x10(%rdx), %r14d
movl %ecx, %eax
shrl $0x8, %eax
decl %eax
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %ecx, %eax
cmovbl %edx, %r14d
leaq 0x17308(%rip), %rcx     # 0x2aa70
addl (%rcx,%rax,4), %r14d
imull -0x58(%rbp), %r14d
addl -0x40(%rbp), %r14d
movl -0xd4(%rbp), %eax
cmpl $-0x1, %eax
je 0x13785
cmpl %eax, %r14d
jge 0x137ab
movl %r14d, -0xd4(%rbp)
movl %r15d, -0xd0(%rbp)
movl -0x330(%rbp), %eax
movl %eax, -0xcc(%rbp)
movl -0x430(%rbp), %eax
movl %eax, -0xc8(%rbp)
incq %r15
movq -0x48(%rbp), %r10
movslq 0x10f100(%r10), %rax
addq $0x4, %r13
addq $0xc, %r12
cmpq %rax, %r15
jl 0x13621
movslq -0xe0(%rbp), %rax
leaq (%rax,%rax,2), %rax
movq -0x30(%rbp), %r12
movq 0x68(%r12,%rax,8), %rdi
movl 0x1e8(%r12,%rax,4), %esi
movl -0xdc(%rbp), %r8d
movl -0xd8(%rbp), %r9d
movl $0x10, %r14d
movl %r14d, 0x8(%rsp)
movl %r14d, (%rsp)
leaq -0x330(%rbp), %r13
movq %r13, %rdx
movl $0x10, %ecx
movq %r10, %rbx
callq *0x10f380(%r10)
movslq -0xd0(%rbp), %rax
leaq (%rax,%rax,2), %rax
movq 0x2a8(%r12,%rax,8), %rdi
movl 0x428(%r12,%rax,4), %esi
movl -0xcc(%rbp), %r8d
movl -0xc8(%rbp), %r9d
movl %r14d, 0x8(%rsp)
movl %r14d, (%rsp)
leaq -0x430(%rbp), %r15
movq %r15, %rdx
movl $0x10, %ecx
callq *0x10f380(%rbx)
movq %r13, %rdi
movl $0x10, %esi
movq %r15, %rdx
movl $0x10, %ecx
callq *0x10f318(%rbx)
movq 0x18(%r12), %rdi
movl 0x30(%r12), %esi
movq %r13, %rdx
movl $0x10, %ecx
callq *0x10f2a8(%rbx)
movl %eax, -0xc4(%rbp)
movl -0xe0(%rbp), %r8d
movl -0xdc(%rbp), %r9d
movl -0xd8(%rbp), %eax
movl %eax, (%rsp)
movq -0x50(%rbp), %r13
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x6938
movl -0xd0(%rbp), %r8d
movl -0xcc(%rbp), %r9d
movl -0xc8(%rbp), %eax
movl %eax, (%rsp)
movl $0x1, %r14d
movq %r13, %rdi
movl $0x1, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x6938
leaq -0x60(%rbp), %r8
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x6c10
movl -0x218(%rbp), %eax
movl %eax, -0x30(%rbp)
movl -0xe0(%rbp), %r15d
movl 0x10db38(%rbx), %r12d
leaq 0x13896(%rip), %rdi     # 0x271b4
leaq 0x175b7(%rip), %rsi     # 0x2aedc
leaq 0x175d0(%rip), %rdx     # 0x2aefc
xorl %eax, %eax
callq 0x4a56
movl $0x1, %eax
cmpl $0x2, %r12d
je 0x139b5
movl $0x0, %eax
jle 0x139b5
leaq 0x13868(%rip), %rdi     # 0x271b4
leaq 0x17589(%rip), %rsi     # 0x2aedc
leaq 0x17597(%rip), %rdx     # 0x2aef1
xorl %eax, %eax
callq 0x4a56
cmpl $0xfe, %r15d
ja 0x13977
leaq 0x170ff(%rip), %rax     # 0x2aa70
movl (%rax,%r15,4), %eax
jmp 0x139b5
incl %r15d
movl %r15d, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpl $0x10000, %r15d         # imm = 0x10000
setae %dl
cmovbl %r15d, %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 0x170be(%rip), %rcx     # 0x2aa70
addl (%rcx,%rsi,4), %eax
imull -0x30(%rbp), %eax
addl %eax, -0xc4(%rbp)
leaq -0x60(%rbp), %r8
movq %r13, %rdi
movl $0x1, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x6c10
movl -0x218(%rbp), %ebx
movl -0xd0(%rbp), %r15d
movq -0x48(%rbp), %rax
movl 0x10db3c(%rax), %r12d
leaq 0x137c1(%rip), %rdi     # 0x271b4
leaq 0x174e2(%rip), %rsi     # 0x2aedc
leaq 0x174fb(%rip), %rdx     # 0x2aefc
xorl %eax, %eax
callq 0x4a56
cmpl $0x2, %r12d
je 0x13a88
movl $0x0, %r14d
jle 0x13a88
leaq 0x13797(%rip), %rdi     # 0x271b4
leaq 0x174b8(%rip), %rsi     # 0x2aedc
leaq 0x174c6(%rip), %rdx     # 0x2aef1
xorl %eax, %eax
callq 0x4a56
cmpl $0xfe, %r15d
ja 0x13a48
leaq 0x1702e(%rip), %rax     # 0x2aa70
movl (%rax,%r15,4), %r14d
jmp 0x13a88
incl %r15d
movl %r15d, %eax
shrl $0x10, %eax
decl %eax
xorl %ecx, %ecx
cmpl $0x10000, %r15d         # imm = 0x10000
setae %cl
cmovbl %r15d, %eax
shll $0x5, %ecx
leal 0x10(%rcx), %r14d
movl %eax, %edx
shrl $0x8, %edx
decl %edx
cmpl $0x100, %eax            # imm = 0x100
cmovbl %eax, %edx
cmovbl %ecx, %r14d
leaq 0x16fec(%rip), %rax     # 0x2aa70
addl (%rax,%rdx,4), %r14d
imull %ebx, %r14d
addl %r14d, -0xc4(%rbp)
jmp 0x13f10
leal 0x1(%r14), %eax
movl %eax, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpl $0x10000, %eax          # imm = 0x10000
setae %dl
cmovbl %eax, %ecx
shll $0x5, %edx
leal 0x10(%rdx), %esi
movl %ecx, %eax
shrl $0x8, %eax
decl %eax
cmpl $0x100, %ecx            # imm = 0x100
cmovbl %ecx, %eax
cmovbl %edx, %esi
leaq 0x16fa0(%rip), %rcx     # 0x2aa70
addl (%rcx,%rax,4), %esi
imull %esi, %ebx
addl %ebx, -0x1ac(%rbp)
cmpl $0x1, -0x20c(%rbp)
movq -0x50(%rbp), %r13
movq -0x40(%rbp), %r15
je 0x13c9c
movl $0xf, 0x1c(%r13)
leaq -0x18c(%rbp), %r12
movl %r14d, -0x4(%r12)
leaq -0x330(%rbp), %r8
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x6c10
leaq -0x328(%rbp), %rbx
movq %r13, %rdi
xorl %esi, %esi
movl $0x1, %edx
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x6c10
movaps -0x8(%rbx), %xmm0
movups %xmm0, (%r12)
leaq -0x188(%rbp), %rax
leaq -0x180(%rbp), %r14
leaq (%r15,%r15,2), %r15
movq -0x38(%rbp), %r13
movq 0x68(%r13,%r15,8), %rsi
movl 0x1e8(%r13,%r15,4), %edx
movq 0x18(%r13), %rcx
movl 0x30(%r13), %r8d
movl -0x98(%r14), %edi
movq %rax, 0x10(%rsp)
movq %r12, 0x8(%rsp)
movl %edi, (%rsp)
movq -0x48(%rbp), %r12
movq %r12, %rdi
movl $0x2, %r9d
callq *0x10f390(%r12)
movl %eax, %ebx
movq 0x68(%r13,%r15,8), %rsi
addq $0x8, %rsi
movl 0x1e8(%r13,%r15,4), %edx
movq 0x18(%r13), %rcx
addq $0x8, %rcx
movl 0x30(%r13), %r8d
movl -0x98(%r14), %eax
movq %r14, 0x10(%rsp)
leaq -0x184(%rbp), %rdi
movq %rdi, 0x8(%rsp)
movl %eax, (%rsp)
movq %r12, %rdi
movl $0x2, %r9d
callq *0x10f390(%r12)
addl %ebx, %eax
movl %eax, -0x14(%r14)
movl -0x98(%r14), %ebx
addl %ebx, %ebx
movl 0x10db38(%r12), %r14d
leaq 0x135b9(%rip), %rdi     # 0x271b4
leaq 0x172da(%rip), %rsi     # 0x2aedc
leaq 0x172f3(%rip), %rdx     # 0x2aefc
xorl %eax, %eax
callq 0x4a56
movl $0x1, %esi
cmpl $0x2, %r14d
je 0x13c8f
movl $0x0, %esi
jle 0x13c8f
leaq 0x1358b(%rip), %rdi     # 0x271b4
leaq 0x172ac(%rip), %rsi     # 0x2aedc
leaq 0x172ba(%rip), %rdx     # 0x2aef1
xorl %eax, %eax
callq 0x4a56
movq -0x30(%rbp), %rdx
cmpl $0xfe, %edx
ja 0x13c56
leaq 0x16e1f(%rip), %rax     # 0x2aa70
movl (%rax,%rdx,4), %esi
jmp 0x13c8f
incl %edx
movl %edx, %eax
shrl $0x10, %eax
decl %eax
xorl %ecx, %ecx
cmpl $0x10000, %edx          # imm = 0x10000
setae %cl
cmovbl %edx, %eax
shll $0x5, %ecx
leal 0x10(%rcx), %esi
movl %eax, %edx
shrl $0x8, %edx
decl %edx
cmpl $0x100, %eax            # imm = 0x100
cmovbl %eax, %edx
cmovbl %ecx, %esi
leaq 0x16de4(%rip), %rax     # 0x2aa70
addl (%rax,%rdx,4), %esi
imull %esi, %ebx
addl %ebx, -0x194(%rbp)
movq -0x50(%rbp), %r13
movl -0x208(%rbp), %eax
cmpl -0x210(%rbp), %eax
jge 0x13f10
movq 0x10(%r13), %rax
leaq -0x164(%rbp), %rsi
movslq -0x54(%rsi), %rdx
leaq (%rdx,%rdx,2), %rcx
movq 0x68(%rax,%rcx,8), %rdi
movq %rdi, -0x40(%rbp)
movl 0x1e8(%rax,%rcx,4), %ecx
movl %ecx, -0x30(%rbp)
movq 0x18(%rax), %rcx
movq %rcx, -0x58(%rbp)
movl 0x30(%rax), %eax
movl %eax, -0x38(%rbp)
movq %rdx, -0x68(%rbp)
movl %edx, -0x14(%rsi)
movl $0x0, -0x18(%rsi)
movl $0xd, 0x1c(%r13)
leaq -0x160(%rbp), %rbx
leaq 0x16cca(%rip), %r15     # 0x2a9d0
xorl %r12d, %r12d
leal (,%r12,4), %eax
andl $0x8, %eax
leal (,%r12,8), %ecx
andl $0x8, %ecx
movl $0x3, %edx
movl %edx, 0x20(%r13,%r12,4)
movl %eax, %edx
imull -0x30(%rbp), %edx
addl %ecx, %edx
movslq %edx, %r14
addq -0x40(%rbp), %r14
imull -0x38(%rbp), %eax
addl %ecx, %eax
movslq %eax, %r13
addq -0x58(%rbp), %r13
movq -0x50(%rbp), %rdi
xorl %esi, %esi
movl %r12d, %edx
xorl %ecx, %ecx
leaq -0x330(%rbp), %r8
callq 0x6c10
movq -0x330(%rbp), %rax
movq %rax, -0x430(%rbp)
movl -0x218(%rbp), %eax
leaq -0x42c(%rbp), %rcx
movq %rcx, 0x10(%rsp)
leaq -0x430(%rbp), %rcx
movq %rcx, 0x8(%rsp)
movl %eax, (%rsp)
movq -0x48(%rbp), %rdi
movq %r14, %rsi
movl -0x30(%rbp), %edx
movq %r13, %rcx
movq -0x50(%rbp), %r13
movl -0x38(%rbp), %r8d
movl $0x3, %r9d
callq *0x10f390(%rdi)
movl %eax, %r14d
addl -0x218(%rbp), %r14d
leaq 0x133f7(%rip), %rdi     # 0x271b4
leaq 0x17118(%rip), %rsi     # 0x2aedc
leaq 0x17126(%rip), %rdx     # 0x2aef1
xorl %eax, %eax
callq 0x4a56
movl $0x3, %esi
movl %esi, -0x174(%rbp,%r12,4)
movl -0x430(%rbp), %eax
movq %r12, %rcx
shlq $0x5, %rcx
leaq -0x164(%rbp), %rdx
movl %eax, (%rdx,%rcx)
movl -0x42c(%rbp), %eax
movl %eax, 0x4(%rdx,%rcx)
addl %r14d, -0x17c(%rbp)
movl %esi, 0x20(%r13,%r12,4)
xorl %r14d, %r14d
movl -0x178(%rbp), %r8d
movl -0x4(%rbx,%r14,8), %r9d
movl (%rbx,%r14,8), %eax
movl %eax, (%rsp)
movq %r13, %rdi
xorl %esi, %esi
movl %r12d, %edx
movl %r14d, %ecx
callq 0x6938
incq %r14
movslq -0x174(%rbp,%r12,4), %rax
movslq (%r15,%rax,4), %rax
cmpq %rax, %r14
jl 0x13e0f
incq %r12
addq $0x20, %rbx
cmpq $0x4, %r12
jne 0x13d09
movl -0x218(%rbp), %ebx
movq -0x48(%rbp), %rax
movl 0x10db38(%rax), %r14d
leaq 0x13345(%rip), %rdi     # 0x271b4
leaq 0x17066(%rip), %rsi     # 0x2aedc
leaq 0x1707f(%rip), %rdx     # 0x2aefc
xorl %eax, %eax
callq 0x4a56
movl $0x1, %eax
cmpl $0x2, %r14d
je 0x13f04
movl $0x0, %eax
jle 0x13f04
leaq 0x13317(%rip), %rdi     # 0x271b4
leaq 0x17038(%rip), %rsi     # 0x2aedc
leaq 0x17046(%rip), %rdx     # 0x2aef1
xorl %eax, %eax
callq 0x4a56
movq -0x68(%rbp), %rsi
cmpl $0xfe, %esi
ja 0x13eca
leaq 0x16bab(%rip), %rax     # 0x2aa70
movl (%rax,%rsi,4), %eax
jmp 0x13f04
incl %esi
movl %esi, %ecx
shrl $0x10, %ecx
decl %ecx
xorl %edx, %edx
cmpl $0x10000, %esi          # imm = 0x10000
setae %dl
cmovbl %esi, %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 0x16b6f(%rip), %rcx     # 0x2aa70
addl (%rcx,%rsi,4), %eax
imull %eax, %ebx
shll $0x2, %ebx
addl %ebx, -0x17c(%rbp)
movq -0x48(%rbp), %r14
movl 0x10db00(%r14), %eax
movl -0x208(%rbp), %ecx
testl %eax, %eax
je 0x13f42
cmpl $0x2, %eax
jne 0x1401f
xorl %eax, %eax
cmpl -0x210(%rbp), %ecx
setge %al
movl %eax, 0x18(%r13)
jmp 0x140d9
movl $0x0, 0x18(%r13)
movl -0x210(%rbp), %edx
cmpl $-0x1, %edx
setne %al
cmpl %ecx, %edx
setl %sil
andb %al, %sil
xorl %eax, %eax
cmpb $0x1, %sil
jne 0x13f7c
movabsq $-0xffffffff, %rax      # imm = 0xFFFFFFFF00000001
movq %rax, 0x18(%r13)
movl $0x1, %eax
movl %edx, %ecx
movl -0x1bc(%rbp), %edx
cmpl $-0x1, %edx
setne %sil
cmpl %ecx, %edx
setl %dil
andb %sil, %dil
cmpb $0x1, %dil
jne 0x13fad
movabsq $0x1000000003, %rax     # imm = 0x1000000003
movq %rax, 0x18(%r13)
movl $0x3, %eax
movl %edx, %ecx
movl -0x1ac(%rbp), %edx
cmpl $-0x1, %edx
je 0x13fd1
cmpl %ecx, %edx
jge 0x13fd1
movabsq $0xe00000003, %rax      # imm = 0xE00000003
movq %rax, 0x18(%r13)
movl $0x3, %eax
movl %edx, %ecx
movl -0x194(%rbp), %edx
cmpl $-0x1, %edx
je 0x13ff5
cmpl %ecx, %edx
jge 0x13ff5
movabsq $0xf00000003, %rax      # imm = 0xF00000003
movq %rax, 0x18(%r13)
movl $0x3, %eax
movl %edx, %ecx
movl -0x17c(%rbp), %edx
cmpl $-0x1, %edx
je 0x140d0
cmpl %ecx, %edx
jge 0x140d0
movabsq $0xd00000004, %rax      # imm = 0xD00000004
movq %rax, 0x18(%r13)
jmp 0x142bd
movl $0x0, 0x18(%r13)
movl -0x210(%rbp), %edx
cmpl $-0x1, %edx
setne %al
cmpl %ecx, %edx
setl %sil
andb %al, %sil
xorl %eax, %eax
cmpb $0x1, %sil
jne 0x14059
movabsq $-0xffffffff, %rax      # imm = 0xFFFFFFFF00000001
movq %rax, 0x18(%r13)
movl $0x1, %eax
movl %edx, %ecx
movl -0xe4(%rbp), %edx
cmpl $-0x1, %edx
setne %sil
cmpl %ecx, %edx
setl %dil
andb %sil, %dil
cmpb $0x1, %dil
jne 0x1408a
movabsq $0x1000000007, %rax     # imm = 0x1000000007
movq %rax, 0x18(%r13)
movl $0x7, %eax
movl %edx, %ecx
movl -0xd4(%rbp), %edx
cmpl $-0x1, %edx
je 0x140ae
cmpl %ecx, %edx
jge 0x140ae
movabsq $0x100000000b, %rax     # imm = 0x100000000B
movq %rax, 0x18(%r13)
movl $0xb, %eax
movl %edx, %ecx
movl -0xc4(%rbp), %edx
cmpl $-0x1, %edx
je 0x140d0
cmpl %ecx, %edx
jge 0x140d0
movabsq $0x100000000f, %rax     # imm = 0x100000000F
movq %rax, 0x18(%r13)
jmp 0x14321
cmpl $0x1, %eax
ja 0x1425a
movl 0x8(%r13), %ecx
movq 0x10(%r13), %rax
movl %ecx, %edx
notl %edx
testb $0x3, %dl
jne 0x140ff
movaps 0x167af(%rip), %xmm0    # 0x2a8a0
movaps %xmm0, -0x330(%rbp)
movl $0x4, %ecx
jmp 0x1413c
testb $0x1, %cl
jne 0x1411a
testb $0x2, %cl
jne 0x14126
movl $0x6, -0x330(%rbp)
movl $0x1, %ecx
jmp 0x1413c
movabsq $0x100000004, %rcx      # imm = 0x100000004
jmp 0x14130
movabsq $0x200000005, %rcx      # imm = 0x200000005
movq %rcx, -0x330(%rbp)
movl $0x2, %ecx
movq %rcx, -0x40(%rbp)
movq 0x48(%rax), %rcx
movq %rcx, -0x58(%rbp)
movl 0x5c(%rax), %ecx
movl %ecx, -0x68(%rbp)
movq 0x50(%rax), %rcx
movq %rcx, -0x30(%rbp)
movl 0x60(%rax), %ecx
movl %ecx, -0x38(%rbp)
movq 0x20(%rax), %rcx
movq %rcx, -0x70(%rbp)
movq 0x28(%rax), %rcx
movq %rcx, -0x88(%rbp)
movl 0x34(%rax), %ecx
movl %ecx, -0x80(%rbp)
movl 0x38(%rax), %eax
movl %eax, -0x78(%rbp)
movl $0xffffffff, -0x1c4(%rbp) # imm = 0xFFFFFFFF
xorl %ebx, %ebx
movl -0x68(%rbp), %r13d
movslq -0x330(%rbp,%rbx,4), %r15
movq -0x58(%rbp), %r12
movq %r12, %rdi
movl %r13d, %esi
callq *0x10f210(%r14,%r15,8)
movq -0x30(%rbp), %rdi
movl -0x38(%rbp), %esi
callq *0x10f210(%r14,%r15,8)
movq %r12, %rdi
movl %r13d, %esi
movq -0x70(%rbp), %rdx
movl -0x80(%rbp), %ecx
callq *0x10f2f8(%r14)
movl %eax, %r12d
movq -0x30(%rbp), %rdi
movl -0x38(%rbp), %esi
movq -0x88(%rbp), %rdx
movl -0x78(%rbp), %ecx
callq *0x10f2f8(%r14)
addl %r12d, %eax
leaq 0x16cc3(%rip), %rcx     # 0x2aeb0
movl (%rcx,%r15,4), %ecx
leaq 0x16878(%rip), %rdx     # 0x2aa70
movl (%rdx,%rcx,4), %r14d
imull -0x218(%rbp), %r14d
addl %eax, %r14d
leaq 0x12fa6(%rip), %rdi     # 0x271b4
leaq 0x16cc7(%rip), %rsi     # 0x2aedc
leaq 0x16cd5(%rip), %rdx     # 0x2aef1
xorl %eax, %eax
callq 0x4a56
movl -0x1c4(%rbp), %eax
cmpl $-0x1, %eax
je 0x14233
cmpl %r14d, %eax
jle 0x14241
movl %r15d, -0x1c0(%rbp)
movl %r14d, -0x1c4(%rbp)
incq %rbx
cmpq %rbx, -0x40(%rbp)
movq -0x48(%rbp), %r14
jne 0x1418b
movq -0x50(%rbp), %r13
movl 0x18(%r13), %eax
cmpl $0xf, %eax
ja 0x144ee
movl %eax, %eax
leaq 0x16654(%rip), %rcx     # 0x2a8c0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorl %eax, %eax
leaq -0x204(%rbp), %rsi
movq -0x90(%rbp), %rdi
leaq 0x15db4(%rip), %r8      # 0x2a040
leaq 0x15d9d(%rip), %r9      # 0x2a030
movzbl (%rax,%r8), %ecx
movzbl (%rax,%r9), %edx
shll $0x4, %ecx
addq %rsi, %rcx
movl (%rcx,%rdx,4), %ecx
movl %ecx, (%rdi)
incq %rax
addq $0x84, %rdi
cmpq $0x10, %rax
jne 0x14293
jmp 0x143ec
leaq -0x160(%rbp), %r15
xorl %ebx, %ebx
leaq 0x16703(%rip), %r12     # 0x2a9d0
movl -0x174(%rbp,%rbx,4), %eax
movl %eax, 0x20(%r13,%rbx,4)
xorl %r14d, %r14d
movl -0x178(%rbp), %r8d
movl -0x4(%r15,%r14,8), %r9d
movl (%r15,%r14,8), %eax
movl %eax, (%rsp)
movq %r13, %rdi
xorl %esi, %esi
movl %ebx, %edx
movl %r14d, %ecx
callq 0x6938
incq %r14
movslq 0x20(%r13,%rbx,4), %rax
movslq (%r12,%rax,4), %rax
cmpq %rax, %r14
jl 0x142dc
incq %rbx
addq $0x20, %r15
cmpq $0x4, %rbx
jne 0x142cd
jmp 0x1444c
cmpl $0x10, 0x1c(%r13)
jne 0x144e4
movl -0xe0(%rbp), %r8d
movl -0xdc(%rbp), %r9d
movl -0xd8(%rbp), %eax
movl %eax, (%rsp)
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
jmp 0x1441f
cmpl $0x10, 0x1c(%r13)
jne 0x144f8
movl -0xe0(%rbp), %r8d
movl -0xdc(%rbp), %r9d
movl -0xd8(%rbp), %eax
movl %eax, (%rsp)
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x6938
movl $0x0, (%rsp)
movq %r13, %rdi
movl $0x1, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
xorl %r9d, %r9d
jmp 0x14447
movl 0x1c(%r13), %eax
cmpl $0xe, %eax
je 0x1445e
cmpl $0xf, %eax
je 0x14499
cmpl $0x10, %eax
jne 0x1450c
movl -0x1b8(%rbp), %r8d
movl -0x1b4(%rbp), %r9d
movl -0x1b0(%rbp), %eax
movl %eax, (%rsp)
movq %r13, %rdi
xorl %esi, %esi
jmp 0x14443
movl -0x20c(%rbp), %eax
movl %eax, 0x2bc(%r13)
movl -0x1c0(%rbp), %eax
movl %eax, 0x2c0(%r13)
jmp 0x1444c
cmpl $0x10, 0x1c(%r13)
jne 0x14502
movl $0x0, (%rsp)
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
xorl %r9d, %r9d
callq 0x6938
movl -0xd0(%rbp), %r8d
movl -0xcc(%rbp), %r9d
movl -0xc8(%rbp), %eax
movl %eax, (%rsp)
movq %r13, %rdi
movl $0x1, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x6938
addq $0x428, %rsp            # imm = 0x428
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl -0x1a8(%rbp), %r8d
movl -0x1a4(%rbp), %r9d
movl -0x1a0(%rbp), %eax
movl %eax, (%rsp)
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x6938
movl -0x1a8(%rbp), %r8d
movl -0x19c(%rbp), %r9d
movl -0x198(%rbp), %eax
jmp 0x144d2
movl -0x190(%rbp), %r8d
movl -0x18c(%rbp), %r9d
movl -0x188(%rbp), %eax
movl %eax, (%rsp)
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x6938
movl -0x190(%rbp), %r8d
movl -0x184(%rbp), %r9d
movl -0x180(%rbp), %eax
movl %eax, (%rsp)
movq %r13, %rdi
xorl %esi, %esi
movl $0x1, %edx
jmp 0x14445
callq 0x2ad3
jmp 0x1444c
callq 0x2ab1
jmp 0x1444c
callq 0x2a6d
jmp 0x1444c
callq 0x2a4b
jmp 0x1444c
callq 0x2a8f
jmp 0x1444c
nop