// File: /workspace/github_c_makefile_star2_O2/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 $0x438, %rsp            # imm = 0x438
movq 0x10dae0(%rdi), %rax
movq %rdi, -0x30(%rbp)
movl 0x10db44(%rdi), %ecx
addl 0x1034(%rax), %ecx
cmpl $0x33, %ecx
pushq $0x33
popq %rax
cmovbl %ecx, %eax
xorl %edx, %edx
testl %ecx, %ecx
cmovnsl %eax, %edx
movq %rsi, -0x50(%rbp)
movl %edx, 0x2b0(%rsi)
movl %edx, -0x21c(%rbp)
leaq 0x1183a(%rip), %rax     # 0x1ea40
movq %rdx, -0x228(%rbp)
movl (%rax,%rdx,4), %eax
movl %eax, -0x70(%rbp)
movl %eax, -0x220(%rbp)
movq 0x10(%rsi), %rax
movq 0x18(%rax), %rcx
movq %rcx, -0xa8(%rbp)
movq 0x40(%rax), %rcx
movq %rcx, -0xa0(%rbp)
movl 0x58(%rax), %ecx
movl %ecx, -0x48(%rbp)
movslq 0x30(%rax), %rax
movq %rax, -0x58(%rbp)
movl $0x1, 0x18(%rsi)
orl $-0x1, -0x218(%rbp)
movl 0x8(%rsi), %eax
movl %eax, %ecx
notl %ecx
movabsq $0x100000004, %rdx      # imm = 0x100000004
testb $0x3, %cl
jne 0xd27c
movaps 0x11754(%rip), %xmm0    # 0x1e9c0
movaps %xmm0, -0x340(%rbp)
pushq $0x4
popq %rax
movq %rax, -0x40(%rbp)
jmp 0xd2b2
pushq $0x2
popq %rcx
movq %rcx, -0x40(%rbp)
testb $0x1, %al
jne 0xd29e
testb $0x2, %al
jne 0xd2a7
pushq $0x1
popq %rax
movq %rax, -0x40(%rbp)
movl $0x6, -0x340(%rbp)
jmp 0xd2b2
movq %rdx, -0x340(%rbp)
jmp 0xd2b2
movq $0x5, -0x340(%rbp)
pushq $0x4
popq %rax
movq %rax, -0x78(%rbp)
pushq $-0x1
popq %rax
movl %eax, -0x38(%rbp)
xorl %r12d, %r12d
movq -0xa0(%rbp), %r14
movl -0x48(%rbp), %r13d
cmpq %r12, -0x40(%rbp)
je 0xd346
movslq -0x340(%rbp,%r12,4), %r15
movq %r14, %rdi
movl %r13d, %esi
movq -0x30(%rbp), %rbx
callq *0x10f1d8(%rbx,%r15,8)
movq %r14, %rdi
movl %r13d, %esi
movq -0xa8(%rbp), %rdx
movq -0x58(%rbp), %rcx
callq *0x10f2e0(%rbx)
movl %eax, %ebx
leaq 0x11853(%rip), %rax     # 0x1eb60
movl (%rax,%r15,4), %edi
callq 0xe55a
imull -0x70(%rbp), %eax
addl %ebx, %eax
movl -0x38(%rbp), %edx
cmpl $-0x1, %edx
sete %cl
cmpl %eax, %edx
setg %dl
orb %cl, %dl
cmpb $0x1, %dl
jne 0xd341
movl %r15d, -0x214(%rbp)
movl %eax, -0x218(%rbp)
movl %eax, -0x38(%rbp)
incq %r12
jmp 0xd2cd
movq -0x50(%rbp), %r13
andl $0x0, 0x18(%r13)
leaq 0x324(%r13), %rax
movq %rax, -0x88(%rbp)
xorl %ebx, %ebx
xorl %r15d, %r15d
movq -0x30(%rbp), %r14
cmpq $0x10, %r15
je 0xd58b
movq %r14, %rdi
movq %r13, %rsi
movl %r15d, %edx
callq 0x5490
movl %eax, -0x98(%rbp)
movl 0x8(%r13), %eax
notl %eax
leaq 0x11c1f(%rip), %rcx     # 0x1efb0
andl (%rcx,%r15,4), %eax
movl %eax, %ecx
andl $0x3, %ecx
leaq 0x1164f(%rip), %rdx     # 0x1e9f0
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
movq %rbx, -0x238(%rbp)
jmpq *%rcx
movaps 0x11618(%rip), %xmm0    # 0x1e9d0
movaps %xmm0, -0x340(%rbp)
movabsq $0x600000005, %rcx      # imm = 0x600000005
movq %rcx, -0x330(%rbp)
movl $0x8, -0x328(%rbp)
pushq $0x7
popq %rcx
movq %rcx, -0x40(%rbp)
testb $0x14, %al
jne 0xd42d
movabsq $0x700000003, %rax      # imm = 0x700000003
movq %rax, -0x324(%rbp)
pushq $0x9
jmp 0xd428
movabsq $0x100000009, %rax      # imm = 0x100000009
movq %rax, -0x340(%rbp)
jmp 0xd426
movl $0xb, -0x340(%rbp)
pushq $0x1
jmp 0xd428
movq $0xa, -0x340(%rbp)
pushq $0x2
popq %rax
movq %rax, -0x40(%rbp)
leaq 0x1107c(%rip), %rax     # 0x1e4b0
movzbl (%r15,%rax), %ecx
leaq 0x11060(%rip), %rax     # 0x1e4a0
movq %r15, -0x230(%rbp)
movzbl (%r15,%rax), %edx
movl %ecx, %eax
shll $0x2, %eax
movq -0xa8(%rbp), %rsi
addq %rax, %rsi
shll $0x4, %ecx
leaq -0x20c(%rbp), %rdi
addq %rdi, %rcx
leaq (%rcx,%rdx,4), %rcx
movq %rcx, -0x80(%rbp)
shll $0x2, %edx
movq %rdx, %rcx
imulq -0x58(%rbp), %rcx
addq %rsi, %rcx
movq %rcx, -0x90(%rbp)
addq -0xa0(%rbp), %rax
imull -0x48(%rbp), %edx
movslq %edx, %rcx
addq %rax, %rcx
movq %rcx, -0x60(%rbp)
xorl %ebx, %ebx
pushq $-0x1
popq %r15
movl %r15d, -0x38(%rbp)
cmpq %rbx, -0x40(%rbp)
je 0xd528
movslq -0x340(%rbp,%rbx,4), %r12
movq -0x60(%rbp), %r15
movq %r15, %rdi
movl -0x48(%rbp), %r13d
movl %r13d, %esi
movq -0x30(%rbp), %r14
callq *0x10f248(%r14,%r12,8)
movq %r15, %rdi
movl %r13d, %esi
movq -0x90(%rbp), %rdx
movq -0x58(%rbp), %rcx
callq *0x10f310(%r14)
leaq 0x11695(%rip), %rcx     # 0x1eb80
movl -0x98(%rbp), %edx
cmpl (%rcx,%r12,4), %edx
setne %cl
addb %cl, %cl
movl -0x70(%rbp), %edx
shll %cl, %edx
addl %eax, %edx
movl -0x38(%rbp), %ecx
cmpl $-0x1, %ecx
sete %al
cmpl %edx, %ecx
setg %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0xd520
movq -0x80(%rbp), %rax
movl %r12d, (%rax)
movl %edx, -0x38(%rbp)
incq %rbx
jmp 0xd4a4
movq -0x238(%rbp), %rbx
addl -0x38(%rbp), %ebx
movl %ebx, -0x210(%rbp)
movq -0x80(%rbp), %rax
movslq (%rax), %rax
movq -0x230(%rbp), %r15
imulq $0x84, %r15, %rcx
movq -0x88(%rbp), %rdx
movl %eax, (%rdx,%rcx)
movq -0x60(%rbp), %rdi
movl -0x48(%rbp), %esi
movq -0x30(%rbp), %r14
callq *0x10f248(%r14,%rax,8)
movq %r14, %rdi
movq -0x50(%rbp), %r13
movq %r13, %rsi
movl %r15d, %edx
movq -0x228(%rbp), %rcx
callq 0x1058e
incq %r15
jmp 0xd366
imull $0x18, -0x70(%rbp), %eax
addl %eax, %ebx
movl %ebx, -0x210(%rbp)
movl 0x10db00(%r14), %eax
movabsq $0x1000000003, %r8      # imm = 0x1000000003
movabsq $0x1000000007, %rcx     # imm = 0x1000000007
cmpl $0x1, %eax
je 0xdb85
testl %eax, %eax
jne 0xdfba
movq %r13, %rax
movq 0x10(%r13), %r13
orl $-0x1, -0x1c4(%rbp)
orl $-0x1, -0x1b4(%rbp)
orl $-0x1, -0x19c(%rbp)
orl $-0x1, -0x184(%rbp)
movq %r8, 0x18(%rax)
leaq 0x68(%r13), %rax
movq %rax, -0x48(%rbp)
leaq 0x1e8(%r13), %rax
movq %rax, -0x38(%rbp)
xorl %r12d, %r12d
xorl %r15d, %r15d
movslq 0x10f078(%r14), %rax
cmpq %rax, %r15
jge 0xd726
andl $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 0x57e8
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0x340(%rbp), %r8
callq 0x5acc
movl -0x340(%rbp), %eax
movl -0x33c(%rbp), %ecx
movl %eax, -0x440(%rbp)
movl %ecx, -0x68(%rbp)
movq 0x68(%r13,%r12,2), %rsi
movl 0x1e8(%r13,%r12), %edx
movq 0x18(%r13), %rcx
movl 0x30(%r13), %r8d
movl -0x220(%rbp), %eax
leaq -0x68(%rbp), %rdi
movq %rdi, 0x10(%rsp)
leaq -0x440(%rbp), %rdi
movq %rdi, 0x8(%rsp)
movl %eax, (%rsp)
movq %r14, %rdi
xorl %r9d, %r9d
callq *0x10f390(%r14)
movl %eax, %r14d
movl -0x440(%rbp), %eax
cmpl -0x340(%rbp), %eax
jne 0xd6c5
movl -0x68(%rbp), %eax
movl -0x220(%rbp), %ebx
cmpl -0x33c(%rbp), %eax
jne 0xd6cb
movl %ebx, %eax
shll $0x4, %eax
subl %eax, %r14d
jmp 0xd6cb
movl -0x220(%rbp), %ebx
movq -0x30(%rbp), %rax
movl 0x10db38(%rax), %edi
decl %edi
movl %r15d, %esi
callq 0xe5d5
imull %ebx, %eax
addl %r14d, %eax
movl -0x1c4(%rbp), %ecx
cmpl $-0x1, %ecx
je 0xd6f4
cmpl %ecx, %eax
jge 0xd716
movl %eax, -0x1c4(%rbp)
movl %r15d, -0x1c0(%rbp)
movl -0x440(%rbp), %eax
movl %eax, -0x1bc(%rbp)
movl -0x68(%rbp), %eax
movl %eax, -0x1b8(%rbp)
incq %r15
addq $0xc, %r12
movq -0x30(%rbp), %r14
jmp 0xd603
movl -0x1c0(%rbp), %eax
movslq %eax, %r12
andl $0x0, (%rsp)
movq -0x50(%rbp), %r15
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl %r12d, %r8d
xorl %r9d, %r9d
callq 0x57e8
cmpl $0x0, -0x214(%rbp)
je 0xd88d
movl $0xe, 0x1c(%r15)
leaq -0x1ac(%rbp), %rax
movl %r12d, -0x4(%rax)
movq %rax, %rbx
leaq -0x340(%rbp), %r8
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x5acc
leaq -0x338(%rbp), %r14
pushq $0x1
popq %rdx
movq %r15, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
movq %r14, %r8
callq 0x5acc
movaps -0x8(%r14), %xmm0
movq %rbx, %r9
movups %xmm0, (%rbx)
leaq -0x1a8(%rbp), %rax
leaq -0x1a0(%rbp), %rdi
imulq $0x18, %r12, %rcx
movq %rcx, -0x60(%rbp)
movq %r12, %rbx
movq -0x48(%rbp), %r12
movq (%r12,%rcx), %rsi
imulq $0xc, %rbx, %r14
movq -0x38(%rbp), %r15
movl (%r15,%r14), %edx
movq 0x18(%r13), %rcx
movl 0x30(%r13), %r8d
movl -0x80(%rdi), %edi
movq %rax, 0x10(%rsp)
movq %r9, 0x8(%rsp)
movl %edi, (%rsp)
movq -0x30(%rbp), %rdi
pushq $0x1
popq %r9
movq -0x30(%rbp), %rax
callq *0x10f390(%rax)
movl %eax, -0x58(%rbp)
movslq (%r15,%r14), %rdx
movq -0x50(%rbp), %r15
movq -0x30(%rbp), %r14
movq %rdx, %rsi
shlq $0x3, %rsi
movq -0x60(%rbp), %rax
addq (%r12,%rax), %rsi
movq %rbx, %r12
movslq 0x30(%r13), %r8
movq %r8, %rcx
shlq $0x3, %rcx
addq 0x18(%r13), %rcx
leaq -0x1a0(%rbp), %rbx
movl -0x80(%rbx), %eax
movq %rbx, 0x10(%rsp)
leaq -0x1a4(%rbp), %rdi
movq %rdi, 0x8(%rsp)
movl %eax, (%rsp)
movq %r14, %rdi
pushq $0x1
popq %r9
callq *0x10f390(%r14)
addl -0x58(%rbp), %eax
movl %eax, -0x14(%rbx)
movl -0x80(%rbx), %ebx
movl 0x10db38(%r14), %edi
decl %edi
movl %r12d, %esi
callq 0xe5d5
imull %ebx, %eax
addl %eax, %eax
leaq -0x1a0(%rbp), %rcx
addl %eax, -0x14(%rcx)
cmpl $0x1, -0x74(%rcx)
je 0xd9ba
movl $0xf, 0x1c(%r15)
leaq -0x194(%rbp), %rax
movl %r12d, -0x4(%rax)
movq %rax, %r14
leaq -0x340(%rbp), %r8
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x5acc
leaq -0x338(%rbp), %rbx
pushq $0x1
popq %rdx
movq %r15, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x5acc
movaps -0x8(%rbx), %xmm0
movq %r14, %r9
movups %xmm0, (%r14)
leaq -0x190(%rbp), %rax
leaq -0x188(%rbp), %rdi
imulq $0x18, %r12, %rbx
movq %r12, %rcx
movq %r12, -0x40(%rbp)
movq -0x48(%rbp), %r12
movq (%r12,%rbx), %rsi
imulq $0xc, %rcx, %r15
movq -0x38(%rbp), %r14
movl (%r14,%r15), %edx
movq 0x18(%r13), %rcx
movl 0x30(%r13), %r8d
movl -0x98(%rdi), %edi
movq %rax, 0x10(%rsp)
movq %r9, 0x8(%rsp)
movl %edi, (%rsp)
pushq $0x2
popq %r9
movq -0x30(%rbp), %rdi
movq -0x30(%rbp), %rax
callq *0x10f390(%rax)
movl %eax, -0x58(%rbp)
movq (%r12,%rbx), %rsi
addq $0x8, %rsi
movl (%r14,%r15), %edx
movq -0x50(%rbp), %r15
movq 0x18(%r13), %rcx
addq $0x8, %rcx
movl 0x30(%r13), %r8d
leaq -0x188(%rbp), %rbx
movl -0x98(%rbx), %eax
movq %rbx, 0x10(%rsp)
leaq -0x18c(%rbp), %rdi
movq %rdi, 0x8(%rsp)
movl %eax, (%rsp)
movq -0x30(%rbp), %rdi
pushq $0x2
popq %r9
movq -0x30(%rbp), %rax
callq *0x10f390(%rax)
addl -0x58(%rbp), %eax
movq -0x30(%rbp), %r14
movq %rbx, %rcx
movl %eax, -0x14(%rbx)
movl -0x98(%rbx), %ebx
movq %rcx, %r12
movl 0x10db38(%r14), %edi
decl %edi
movq -0x40(%rbp), %rsi
callq 0xe5d5
imull %ebx, %eax
addl %eax, %eax
addl %eax, -0x14(%r12)
movl -0x210(%rbp), %eax
cmpl -0x218(%rbp), %eax
movq %r15, %r13
jge 0xdfa9
movq 0x10(%r13), %rax
leaq -0x16c(%rbp), %rsi
movslq -0x54(%rsi), %rdx
imulq $0x18, %rdx, %rcx
movq 0x68(%rax,%rcx), %rcx
movq %rcx, -0x58(%rbp)
imulq $0xc, %rdx, %rcx
movl 0x1e8(%rax,%rcx), %ecx
movl %ecx, -0x38(%rbp)
movq 0x18(%rax), %rcx
movq %rcx, -0x60(%rbp)
movl 0x30(%rax), %eax
movl %eax, -0x48(%rbp)
movq %rdx, -0x70(%rbp)
movl %edx, -0x14(%rsi)
andl $0x0, -0x18(%rsi)
movl $0xd, 0x1c(%r13)
leaq -0x168(%rbp), %r12
xorl %r15d, %r15d
cmpq $0x4, %r15
je 0xdf85
movq %r12, -0x40(%rbp)
leal (,%r15,4), %eax
andl $0x8, %eax
leal (,%r15,8), %ecx
andl $0x8, %ecx
movl $0x3, 0x20(%r13,%r15,4)
movl %eax, %edx
imull -0x38(%rbp), %edx
addl %ecx, %edx
movslq %edx, %r14
addq -0x58(%rbp), %r14
imull -0x48(%rbp), %eax
addl %ecx, %eax
movslq %eax, %rbx
addq -0x60(%rbp), %rbx
xorl %r12d, %r12d
movb $0x1, %r13b
testb $0x1, %r13b
je 0xdae2
xorl %r13d, %r13d
movq -0x50(%rbp), %rdi
xorl %esi, %esi
movl %r15d, %edx
xorl %ecx, %ecx
leaq -0x340(%rbp), %r8
callq 0x5acc
movq -0x340(%rbp), %rax
movq %rax, -0x440(%rbp)
movl -0x220(%rbp), %eax
leaq -0x43c(%rbp), %rcx
movq %rcx, 0x10(%rsp)
leaq -0x440(%rbp), %rcx
movq %rcx, 0x8(%rsp)
movl %eax, (%rsp)
movq -0x30(%rbp), %rdi
movq %r14, %rsi
movl -0x38(%rbp), %edx
movq %rbx, %rcx
movl -0x48(%rbp), %r8d
pushq $0x3
popq %r9
callq *0x10f390(%rdi)
addl %eax, %r12d
jmp 0xda73
movl -0x220(%rbp), %ebx
xorl %edi, %edi
callq 0xe55a
imull %ebx, %eax
addl %r12d, %eax
pushq $0x3
popq %rsi
movl %esi, -0x17c(%rbp,%r15,4)
movl -0x440(%rbp), %ecx
movq %r15, %rdx
shlq $0x5, %rdx
leaq -0x16c(%rbp), %rdi
movl %ecx, (%rdi,%rdx)
movl -0x43c(%rbp), %ecx
movl %ecx, 0x4(%rdi,%rdx)
addl %eax, -0x184(%rbp)
movq -0x50(%rbp), %r13
movl %esi, 0x20(%r13,%r15,4)
xorl %ebx, %ebx
movq -0x30(%rbp), %r14
movq -0x40(%rbp), %r12
movslq -0x17c(%rbp,%r15,4), %rax
leaq 0x10fc7(%rip), %rcx     # 0x1eb10
movslq (%rcx,%rax,4), %rax
cmpq %rax, %rbx
jge 0xdb79
movl -0x180(%rbp), %r8d
movl -0x4(%r12,%rbx,8), %r9d
movl (%r12,%rbx,8), %eax
movl %eax, (%rsp)
movq %r13, %rdi
xorl %esi, %esi
movl %r15d, %edx
movl %ebx, %ecx
callq 0x57e8
incq %rbx
jmp 0xdb3a
incq %r15
addq $0x20, %r12
jmp 0xda24
movq 0x10(%r13), %rdx
orl $-0x1, -0xec(%rbp)
orl $-0x1, -0xdc(%rbp)
orl $-0x1, -0xcc(%rbp)
movq %rcx, 0x18(%r13)
leaq 0x68(%rdx), %rax
movq %rax, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
leaq 0x1e8(%rdx), %rax
movq %rax, -0x48(%rbp)
xorl %r12d, %r12d
xorl %r15d, %r15d
movslq 0x10f078(%r14), %rax
cmpq %rax, %r15
jge 0xdcbc
andl $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 0x57e8
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0x68(%rbp), %r8
callq 0x5acc
movl -0x68(%rbp), %eax
movl -0x64(%rbp), %ecx
movl %eax, -0x340(%rbp)
movl %ecx, -0x440(%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 -0x220(%rbp), %eax
leaq -0x440(%rbp), %rdi
movq %rdi, 0x10(%rsp)
leaq -0x340(%rbp), %rdi
movq %rdi, 0x8(%rsp)
movl %eax, (%rsp)
movq %r14, %rdi
xorl %r9d, %r9d
callq *0x10f390(%r14)
movq %r14, %rcx
movl %eax, %r14d
movl -0x220(%rbp), %ebx
movl 0x10db38(%rcx), %edi
decl %edi
movl %r15d, %esi
callq 0xe5d5
imull %ebx, %eax
addl %r14d, %eax
movl -0xec(%rbp), %ecx
cmpl $-0x1, %ecx
je 0xdc87
cmpl %ecx, %eax
jge 0xdcac
movl %eax, -0xec(%rbp)
movl %r15d, -0xe8(%rbp)
movl -0x340(%rbp), %eax
movl %eax, -0xe4(%rbp)
movl -0x440(%rbp), %eax
movl %eax, -0xe0(%rbp)
incq %r15
addq $0xc, %r12
movq -0x30(%rbp), %r14
jmp 0xdbbf
movq -0x50(%rbp), %rax
movabsq $0x100000000b, %rcx     # imm = 0x100000000B
movq %rcx, 0x18(%rax)
movq -0x38(%rbp), %rcx
leaq 0x2a8(%rcx), %rax
movq %rax, -0x60(%rbp)
leaq 0x428(%rcx), %rax
movq %rax, -0x58(%rbp)
xorl %r12d, %r12d
xorl %r13d, %r13d
pushq $0x1
popq %r15
movslq 0x10f100(%r14), %rax
cmpq %rax, %r13
jge 0xddf4
andl $0x0, (%rsp)
movq -0x50(%rbp), %rbx
movq %rbx, %rdi
movl %r15d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl %r13d, %r8d
xorl %r9d, %r9d
callq 0x57e8
movq %rbx, %rdi
movl %r15d, %esi
movq -0x38(%rbp), %rbx
xorl %edx, %edx
xorl %ecx, %ecx
leaq -0x68(%rbp), %r8
callq 0x5acc
movl -0x68(%rbp), %eax
movl -0x64(%rbp), %ecx
movl %eax, -0x340(%rbp)
movl %ecx, -0x440(%rbp)
movq 0x2a8(%rbx,%r12,2), %rsi
movl 0x428(%rbx,%r12), %edx
movq 0x18(%rbx), %rcx
movl 0x30(%rbx), %r8d
movl -0x220(%rbp), %eax
leaq -0x440(%rbp), %rdi
movq %rdi, 0x10(%rsp)
leaq -0x340(%rbp), %rdi
movq %rdi, 0x8(%rsp)
movl %eax, (%rsp)
movq %r14, %rdi
xorl %r9d, %r9d
callq *0x10f390(%r14)
movq %r14, %rcx
movl %eax, %r14d
movl -0x220(%rbp), %ebx
movl 0x10db3c(%rcx), %edi
decl %edi
movl %r13d, %esi
callq 0xe5d5
imull %ebx, %eax
addl %r14d, %eax
movl -0xdc(%rbp), %ecx
cmpl $-0x1, %ecx
je 0xddbf
cmpl %ecx, %eax
jge 0xdde4
movl %eax, -0xdc(%rbp)
movl %r13d, -0xd8(%rbp)
movl -0x340(%rbp), %eax
movl %eax, -0xd4(%rbp)
movl -0x440(%rbp), %eax
movl %eax, -0xd0(%rbp)
incq %r13
addq $0xc, %r12
movq -0x30(%rbp), %r14
jmp 0xdcf2
movslq -0xe8(%rbp), %rax
imulq $0x18, %rax, %rcx
movq -0x40(%rbp), %rdx
movq (%rdx,%rcx), %rdi
imulq $0xc, %rax, %rax
movq -0x48(%rbp), %rcx
movl (%rcx,%rax), %esi
movl -0xe4(%rbp), %r8d
movl -0xe0(%rbp), %r9d
pushq $0x10
popq %rbx
movl %ebx, 0x8(%rsp)
movl %ebx, (%rsp)
leaq -0x340(%rbp), %r14
movq %r14, %rdx
movl %ebx, %ecx
movq -0x30(%rbp), %rax
callq *0x10f380(%rax)
movslq -0xd8(%rbp), %rax
imulq $0x18, %rax, %rcx
movq -0x60(%rbp), %rdx
movq (%rdx,%rcx), %rdi
imulq $0xc, %rax, %rax
movq -0x58(%rbp), %rcx
movl (%rcx,%rax), %esi
movl -0xd4(%rbp), %r8d
movl -0xd0(%rbp), %r9d
movl %ebx, 0x8(%rsp)
movl %ebx, (%rsp)
leaq -0x440(%rbp), %r15
movq %r15, %rdx
movl %ebx, %ecx
movq -0x30(%rbp), %rax
callq *0x10f380(%rax)
movq %r14, %rdi
movl %ebx, %esi
movq %r15, %rdx
movl %ebx, %ecx
movq -0x30(%rbp), %rax
callq *0x10f318(%rax)
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rdi
movl 0x30(%rax), %esi
movq %r14, %rdx
movl %ebx, %ecx
movq -0x30(%rbp), %rax
callq *0x10f2a8(%rax)
movl %eax, -0xcc(%rbp)
movl -0xe8(%rbp), %r8d
movl -0xe4(%rbp), %r9d
movl -0xe0(%rbp), %eax
movl %eax, (%rsp)
movq -0x50(%rbp), %r13
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x57e8
movl -0xd8(%rbp), %r8d
movl -0xd4(%rbp), %r9d
movl -0xd0(%rbp), %eax
movl %eax, (%rsp)
pushq $0x1
popq %rbx
movq %r13, %rdi
movl %ebx, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x57e8
leaq -0x68(%rbp), %r14
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r14, %r8
callq 0x5acc
movq -0x30(%rbp), %rax
movl 0x10db38(%rax), %edi
decl %edi
movl -0x220(%rbp), %r15d
movl -0xe8(%rbp), %esi
callq 0xe5d5
imull %r15d, %eax
addl %eax, -0xcc(%rbp)
movq %r13, %rdi
movl %ebx, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r14, %r8
movq -0x30(%rbp), %r14
callq 0x5acc
movl 0x10db3c(%r14), %edi
decl %edi
movl -0x220(%rbp), %ebx
movl -0xd8(%rbp), %esi
callq 0xe5d5
imull %ebx, %eax
addl %eax, -0xcc(%rbp)
jmp 0xdfa9
movl -0x220(%rbp), %ebx
movl 0x10db38(%r14), %edi
decl %edi
movq -0x70(%rbp), %rsi
callq 0xe5d5
imull %ebx, %eax
shll $0x2, %eax
addl %eax, -0x184(%rbp)
movl 0x10db00(%r14), %eax
movabsq $0x1000000003, %r8      # imm = 0x1000000003
movl -0x210(%rbp), %ecx
movabsq $-0xffffffff, %rdx      # imm = 0xFFFFFFFF00000001
testl %eax, %eax
je 0xdfeb
cmpl $0x2, %eax
jne 0xe0a9
xorl %eax, %eax
cmpl -0x218(%rbp), %ecx
setge %al
movl %eax, 0x18(%r13)
jmp 0xe150
andl $0x0, 0x18(%r13)
movl -0x218(%rbp), %esi
cmpl $-0x1, %esi
setne %al
cmpl %ecx, %esi
setl %dil
andb %al, %dil
xorl %eax, %eax
cmpb $0x1, %dil
jne 0xe016
movq %rdx, 0x18(%r13)
pushq $0x1
popq %rax
movl %esi, %ecx
movl -0x1c4(%rbp), %edx
cmpl $-0x1, %edx
setne %sil
cmpl %ecx, %edx
setl %dil
andb %sil, %dil
cmpb $0x1, %dil
jne 0xe03b
movq %r8, 0x18(%r13)
pushq $0x3
popq %rax
movl %edx, %ecx
movl -0x1b4(%rbp), %edx
cmpl $-0x1, %edx
je 0xe05d
cmpl %ecx, %edx
jge 0xe05d
movabsq $0xe00000003, %rax      # imm = 0xE00000003
movq %rax, 0x18(%r13)
pushq $0x3
popq %rax
movl %edx, %ecx
movl -0x19c(%rbp), %edx
cmpl $-0x1, %edx
je 0xe07f
cmpl %ecx, %edx
jge 0xe07f
movabsq $0xf00000003, %rax      # imm = 0xF00000003
movq %rax, 0x18(%r13)
pushq $0x3
popq %rax
movl %edx, %ecx
movl -0x184(%rbp), %edx
cmpl $-0x1, %edx
je 0xe147
cmpl %ecx, %edx
jge 0xe147
movabsq $0xd00000004, %rax      # imm = 0xD00000004
movq %rax, 0x18(%r13)
jmp 0xe324
andl $0x0, 0x18(%r13)
movl -0x218(%rbp), %esi
cmpl $-0x1, %esi
setne %al
cmpl %ecx, %esi
setl %dil
andb %al, %dil
xorl %eax, %eax
cmpb $0x1, %dil
jne 0xe0d4
pushq $0x1
popq %rax
movq %rdx, 0x18(%r13)
movl %esi, %ecx
movl -0xec(%rbp), %edx
cmpl $-0x1, %edx
setne %sil
cmpl %ecx, %edx
setl %dil
andb %sil, %dil
cmpb $0x1, %dil
jne 0xe103
movabsq $0x1000000007, %rax     # imm = 0x1000000007
movq %rax, 0x18(%r13)
pushq $0x7
popq %rax
movl %edx, %ecx
movl -0xdc(%rbp), %edx
cmpl $-0x1, %edx
je 0xe125
cmpl %ecx, %edx
jge 0xe125
movabsq $0x100000000b, %rax     # imm = 0x100000000B
movq %rax, 0x18(%r13)
pushq $0xb
popq %rax
movl %edx, %ecx
movl -0xcc(%rbp), %edx
cmpl $-0x1, %edx
je 0xe147
cmpl %ecx, %edx
jge 0xe147
movabsq $0x100000000f, %rax     # imm = 0x100000000F
movq %rax, 0x18(%r13)
jmp 0xe38d
cmpl $0x1, %eax
ja 0xe2bb
movq 0x10(%r13), %rax
movl 0x8(%r13), %ecx
movl %ecx, %edx
notl %edx
testb $0x3, %dl
jne 0xe171
movaps 0x10878(%rip), %xmm0    # 0x1e9e0
movaps %xmm0, -0x340(%rbp)
jmp 0xe1ad
testb $0x1, %cl
jne 0xe189
testb $0x2, %cl
jne 0xe195
movl $0x6, -0x340(%rbp)
pushq $0x1
jmp 0xe1a8
movabsq $0x100000004, %rcx      # imm = 0x100000004
jmp 0xe19f
movabsq $0x200000005, %rcx      # imm = 0x200000005
movq %rcx, -0x340(%rbp)
pushq $0x2
popq %rcx
movq %rcx, -0x78(%rbp)
movq 0x48(%rax), %rcx
movq %rcx, -0x40(%rbp)
movl 0x5c(%rax), %ecx
movl %ecx, -0x58(%rbp)
movq 0x50(%rax), %rcx
movq %rcx, -0x38(%rbp)
movl 0x60(%rax), %ecx
movl %ecx, -0x60(%rbp)
movq 0x20(%rax), %rcx
movq %rcx, -0x70(%rbp)
movq 0x28(%rax), %rcx
movq %rcx, -0x98(%rbp)
movl 0x34(%rax), %ecx
movl %ecx, -0x90(%rbp)
movl 0x38(%rax), %eax
movl %eax, -0x80(%rbp)
orl $-0x1, -0x1cc(%rbp)
xorl %eax, %eax
movl -0x60(%rbp), %r12d
cmpq %rax, -0x78(%rbp)
je 0xe2b3
movq %rax, -0x48(%rbp)
movslq -0x340(%rbp,%rax,4), %r15
movq -0x40(%rbp), %rbx
movq %rbx, %rdi
movl -0x58(%rbp), %r13d
movl %r13d, %esi
callq *0x10f210(%r14,%r15,8)
movq -0x38(%rbp), %rdi
movl %r12d, %esi
callq *0x10f210(%r14,%r15,8)
movq %rbx, %rdi
movl %r13d, %esi
movq -0x70(%rbp), %rdx
movl -0x90(%rbp), %ecx
callq *0x10f2f8(%r14)
movl %eax, %r13d
movq -0x38(%rbp), %rdi
movl %r12d, %esi
movq -0x98(%rbp), %rdx
movl -0x80(%rbp), %ecx
callq *0x10f2f8(%r14)
movl %eax, %ebx
addl %r13d, %ebx
movl -0x220(%rbp), %r14d
leaq 0x10d78(%rip), %rax     # 0x1eff0
movl (%rax,%r15,4), %edi
callq 0xe55a
imull %r14d, %eax
addl %ebx, %eax
movl -0x1cc(%rbp), %ecx
cmpl $-0x1, %ecx
je 0xe296
cmpl %eax, %ecx
jle 0xe2a3
movl %r15d, -0x1c8(%rbp)
movl %eax, -0x1cc(%rbp)
movq -0x48(%rbp), %rax
incq %rax
movq -0x30(%rbp), %r14
jmp 0xe1f8
movq -0x50(%rbp), %r13
movl 0x18(%r13), %eax
cmpl $0xf, %eax
ja 0xe4b8
movl %eax, %eax
leaq 0x10733(%rip), %rcx     # 0x1ea00
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorl %eax, %eax
cmpq $0x10, %rax
je 0xe451
leaq 0x101c7(%rip), %rcx     # 0x1e4b0
movzbl (%rax,%rcx), %ecx
leaq 0x101ac(%rip), %rdx     # 0x1e4a0
movzbl (%rax,%rdx), %edx
shll $0x4, %ecx
leaq -0x20c(%rbp), %rsi
addq %rsi, %rcx
movl (%rcx,%rdx,4), %ecx
movq -0x88(%rbp), %rdx
movl %ecx, (%rdx)
incq %rax
addq $0x84, %rdx
movq %rdx, -0x88(%rbp)
jmp 0xe2d8
leaq -0x168(%rbp), %r15
xorl %ebx, %ebx
leaq 0x107dc(%rip), %r12     # 0x1eb10
cmpq $0x4, %rbx
je 0xe4a6
movl -0x17c(%rbp,%rbx,4), %eax
movl %eax, 0x20(%r13,%rbx,4)
xorl %r14d, %r14d
cltq
movslq (%r12,%rax,4), %rax
cmpq %rax, %r14
jge 0xe384
movl -0x180(%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 0x57e8
incq %r14
movl 0x20(%r13,%rbx,4), %eax
jmp 0xe34d
incq %rbx
addq $0x20, %r15
jmp 0xe334
cmpl $0x10, 0x1c(%r13)
jne 0xe4b8
movl -0xe8(%rbp), %r8d
movl -0xe4(%rbp), %r9d
movl -0xe0(%rbp), %eax
movl %eax, (%rsp)
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
jmp 0xe47b
cmpl $0x10, 0x1c(%r13)
jne 0xe4b8
movl -0xe8(%rbp), %r8d
movl -0xe4(%rbp), %r9d
movl -0xe0(%rbp), %eax
movl %eax, (%rsp)
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x57e8
andl $0x0, (%rsp)
pushq $0x1
popq %rsi
pushq $-0x1
popq %r8
movq %r13, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r9d, %r9d
jmp 0xe4a1
movl 0x1c(%r13), %eax
cmpl $0xe, %eax
je 0xe4d6
cmpl $0xf, %eax
je 0xe511
cmpl $0x10, %eax
jne 0xe4b8
movl -0x1c0(%rbp), %r8d
movl -0x1bc(%rbp), %r9d
movl -0x1b8(%rbp), %eax
movl %eax, (%rsp)
movq %r13, %rdi
xorl %esi, %esi
jmp 0xe49d
movl -0x214(%rbp), %eax
movl %eax, 0x2bc(%r13)
movl -0x1c8(%rbp), %eax
movl %eax, 0x2c0(%r13)
jmp 0xe4a6
cmpl $0x10, 0x1c(%r13)
jne 0xe4b8
andl $0x0, (%rsp)
pushq $-0x1
popq %r8
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r9d, %r9d
callq 0x57e8
movl -0xd8(%rbp), %r8d
movl -0xd4(%rbp), %r9d
movl -0xd0(%rbp), %eax
movl %eax, (%rsp)
pushq $0x1
popq %rsi
movq %r13, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x57e8
addq $0x438, %rsp            # imm = 0x438
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x19b11(%rip), %rax     # 0x27fd0
movq (%rax), %rcx
leaq 0x10b43(%rip), %rdi     # 0x1f00c
pushq $0xf
popq %rsi
pushq $0x1
popq %rdx
callq 0x21e0
jmp 0xe4a6
movl -0x1b0(%rbp), %r8d
movl -0x1ac(%rbp), %r9d
movl -0x1a8(%rbp), %eax
movl %eax, (%rsp)
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x57e8
movl -0x1b0(%rbp), %r8d
movl -0x1a4(%rbp), %r9d
movl -0x1a0(%rbp), %eax
jmp 0xe54a
movl -0x198(%rbp), %r8d
movl -0x194(%rbp), %r9d
movl -0x190(%rbp), %eax
movl %eax, (%rsp)
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x57e8
movl -0x198(%rbp), %r8d
movl -0x18c(%rbp), %r9d
movl -0x188(%rbp), %eax
movl %eax, (%rsp)
pushq $0x1
popq %rdx
movq %r13, %rdi
xorl %esi, %esi
jmp 0xe49f