// File: /workspace/github_c_makefile_star2_O1/akumrao[P]videoAnalyzer/decoder/macroblock.c
// Function: x264_macroblock_read_cavlc(x264_t*, bs_s*, x264_macroblock_t*)
int x264_macroblock_read_cavlc(x264_t *h, bs_t *s, x264_macroblock_t *mb) {LOG_CALL;
    int i_mb_i_offset;
    int i_mb_p_offset;
    int b_sub_ref0 = 0;
    int i_type;
    int i;

    /* read the mb type */
    switch (h->sh.i_type) // slice type
    {
        case SLICE_TYPE_I:
            i_mb_p_offset = 0; /* shut up gcc */
            i_mb_i_offset = 0;
            break;
        case SLICE_TYPE_P:
            i_mb_p_offset = 0;
            i_mb_i_offset = 5;
            break;
        case SLICE_TYPE_B:
            i_mb_p_offset = 23;
            i_mb_i_offset = 23 + 5;
            break;
        default:
            fprintf(stderr, "internal error or slice unsupported\n");
            return -1;
    }

    i_type = bs_read_ue(s,"i_type");

    if (i_type < i_mb_i_offset)
    {
        if (i_type < i_mb_p_offset)
        {
            fprintf(stderr, "unsupported mb type(B*)\n");
            /* TODO for B frame */
            return -1;
        } else
        {
            i_type -= i_mb_p_offset;

            if (i_type == 0)
            {
                mb->i_type = P_L0;
                mb->i_partition = D_16x16;
            } else if (i_type == 1)
            {
                mb->i_type = P_L0;
                mb->i_partition = D_16x8;
            } else if (i_type == 2)
            {
                mb->i_type = P_L0;
                mb->i_partition = D_8x16;
            } else if (i_type == 3 || i_type == 4)
            {
                mb->i_type = P_8x8;
                mb->i_partition = D_8x8;
                b_sub_ref0 = i_type == 4 ? 1 : 0;
            } else
            {
                fprintf(stderr, "invalid mb type\n");
                return -1;
            }
        }
    } else
    {
        i_type -= i_mb_i_offset;

        if (i_type == 0)
        {
            mb->i_type = I_4x4;
        } else if (i_type < 25)
        {
            mb->i_type = I_16x16;

            mb->i_intra16x16_pred_mode = (i_type - 1) % 4;
            mb->i_cbp_chroma = ((i_type - 1) / 4) % 3;
            mb->i_cbp_luma = ((i_type - 1) / 12) ? 0x0f : 0x00;
        } else if (i_type == 25)
        {
            mb->i_type = I_PCM;
        } else
        {
            fprintf(stderr, "invalid mb type (%d)\n", i_type);
            return -1;
        }
    }

    if (mb->i_type == I_PCM)
    {
        return x264_macroblock_decode_ipcm(h, s, mb);
    }

    if (IS_INTRA(mb->i_type))
    {
        if (mb->i_type == I_4x4)
        {
            for (i = 0; i < 16; i++)
            {
                int b_coded;
                
                /*
                  MB type : I/intra coded, P/inter coded from one reference frame, B/inter coded from one or
                    two reference frames.
                    Prediction information : prediction mode(s) for an I macroblock, choice of reference frame(s)
and motion vectors for a P or B macroblock.
 Coded Block Pattern CBP : indicates which luma and chroma blocks contain non-zero
residual coefficients.
 Quantization Parameter QP, for macroblocks with CBP = 0.
 Residual data, for blocks containing non-zero residual coefficients.
                 
                 */

                b_coded = bs_read1(s,"b_coded");

                if (b_coded)
                {
                    mb->block[i].i_intra4x4_pred_mode = x264_mb_predict_intra4x4_mode(h, mb, i);
                } else
                {
                    int i_predicted_mode = x264_mb_predict_intra4x4_mode(h, mb, i);
                    int i_mode = bs_read(s, 3,"i_mode");

                    if (i_mode >= i_predicted_mode)
                    {
                        mb->block[i].i_intra4x4_pred_mode = i_mode + 1;
                    } else
                    {
                        mb->block[i].i_intra4x4_pred_mode = i_mode;
                    }
                }
            }
        }

        mb->i_chroma_pred_mode = bs_read_ue(s,"i_chroma_pred_mode");
    } else if (mb->i_type == P_8x8 || mb->i_type == B_8x8)
    {
        /* FIXME won't work for B_8x8 */

        for (i = 0; i < 4; i++)
        {
            int i_sub_partition;

            i_sub_partition = bs_read_ue(s,"i_sub_partition");
            switch (i_sub_partition)
            {
                case 0:
                    mb->i_sub_partition[i] = D_L0_8x8;
                    break;
                case 1:
                    mb->i_sub_partition[i] = D_L0_8x4;
                    break;
                case 2:
                    mb->i_sub_partition[i] = D_L0_4x8;
                    break;
                case 3:
                    mb->i_sub_partition[i] = D_L0_4x4;
                    break;
                default:
                    fprintf(stderr, "invalid i_sub_partition\n");
                    return -1;
            }
        }
        for (i = 0; i < 4; i++)
        {
            int i_ref;

            i_ref = b_sub_ref0 ? 0 : bs_read_te(s, h->sh.i_num_ref_idx_l0_active - 1,"i_ref");
            x264_mb_partition_ref_set(mb, 0, i, i_ref);
        }
        for (i = 0; i < 4; i++)
        {
            int i_sub;
            int i_ref;

            x264_mb_partition_get(mb, 0, i, 0, &i_ref, NULL, NULL);

            for (i_sub = 0; i_sub < x264_mb_partition_count_table[mb->i_sub_partition[i]]; i_sub++)
            {
                int mv[2];

                x264_mb_predict_mv(mb, 0, i, i_sub, mv);
                mv[0] += bs_read_se(s,"mv[0]");
                mv[1] += bs_read_se(s,"mv[1]");

                x264_mb_partition_mv_set(mb, 0, i, i_sub, mv);
            }
        }
    } else if (mb->i_type != B_DIRECT)
    {
        /* FIXME will work only for P block */

        /* FIXME using x264_mb_partition_set/x264_mb_partition_get here are too unoptimised
         * I should introduce ref and mv get/set */

        /* Motion Vector */
        int i_part = x264_mb_partition_count_table[mb->i_partition];

        for (i = 0; i < i_part; i++)
        {
            int i_ref;

            i_ref = bs_read_te(s, h->sh.i_num_ref_idx_l0_active - 1,"i_ref");

            x264_mb_partition_ref_set(mb, 0, i, i_ref);
        }

        for (i = 0; i < i_part; i++)
        {
            int mv[2];

            x264_mb_predict_mv(mb, 0, i, 0, mv);

            mv[0] += bs_read_se(s,"mv[0]");
            mv[1] += bs_read_se(s,"mv[1]");

            x264_mb_partition_mv_set(mb, 0, i, 0, mv);
        }
    }

    if (mb->i_type != I_16x16)
    {
        int i_cbp;
//In MPEG-2, the buffer is called VBV buffer (Video Buffer Verifier Buffer).
//In H.264, the buffer is called CPB (Coded Picture Buffer).
//The water level of the tank at certain time instance is called buffer fullness and 
//described in number of bits. The size of the tank is called VBV buffer size in MPEG-2 
//and CPB buffer size in H.264.
        i_cbp = bs_read_ue(s,"i_cbp");
        if (i_cbp >= 48)
        {
            fprintf(stderr, "invalid cbp\n");
            return -1;
        }

        if (mb->i_type == I_4x4)
        {
            i_cbp = golomb_to_intra4x4_cbp[i_cbp];
        } else
        {
            i_cbp = golomb_to_inter_cbp[i_cbp];
        }
        mb->i_cbp_luma = i_cbp & 0x0f;
        mb->i_cbp_chroma = i_cbp >> 4;
    }

    if (mb->i_cbp_luma > 0 || mb->i_cbp_chroma > 0 || mb->i_type == I_16x16)
    {
        mb->i_qp = bs_read_se(s,"i_qp") + h->pps->i_pic_init_qp + h->sh.i_qp_delta;

        /* write residual */
        if (mb->i_type == I_16x16)
        {
            /* DC Luma */
            if (block_residual_read_cavlc(h, s, mb, BLOCK_INDEX_LUMA_DC, mb->luma16x16_dc, 16) < 0)
            {
                return -1;
            }

            if (mb->i_cbp_luma != 0)
            {
                /* AC Luma */
                for (i = 0; i < 16; i++)
                {
                    if (block_residual_read_cavlc(h, s, mb, i, mb->block[i].residual_ac, 15) < 0)
                    {
                        return -1;
                    }
                }
            } else
            {
                for (i = 0; i < 16; i++)
                {
                    mb->block[i].i_non_zero_count = 0;
                    array_zero_set(mb->block[i].residual_ac, 15);
                }
            }
        } else
        {
            for (i = 0; i < 16; i++)
            {
                if (mb->i_cbp_luma & (1 << (i / 4)))
                {
                    if (block_residual_read_cavlc(h, s, mb, i, mb->block[i].luma4x4, 16) < 0)
                    {
                        return -1;
                    }
                } else
                {
                    mb->block[i].i_non_zero_count = 0;
                    array_zero_set(mb->block[i].luma4x4, 16);
                }
            }
        }

        if (mb->i_cbp_chroma & 0x03) /* Chroma DC residual present */
        {
            if (block_residual_read_cavlc(h, s, mb, BLOCK_INDEX_CHROMA_DC, mb->chroma_dc[0], 4) < 0 ||
                    block_residual_read_cavlc(h, s, mb, BLOCK_INDEX_CHROMA_DC, mb->chroma_dc[1], 4) < 0)
            {
                return -1;
            }
        } else
        {
            array_zero_set(mb->chroma_dc[0], 4);
            array_zero_set(mb->chroma_dc[1], 4);
        }
        if (mb->i_cbp_chroma & 0x02) /* Chroma AC residual present */
        {
            for (i = 0; i < 8; i++)
            {
                if (block_residual_read_cavlc(h, s, mb, 16 + i, mb->block[16 + i].residual_ac, 15) < 0)
                {
                    return -1;
                }
            }
        } else
        {
            for (i = 0; i < 8; i++)
            {
                mb->block[16 + i].i_non_zero_count = 0;
                array_zero_set(mb->block[16 + i].residual_ac, 15);
            }
        }
    } else
    {
        mb->i_qp = h->pps->i_pic_init_qp + h->sh.i_qp_delta;
        for (i = 0; i < 16; i++)
        {
            mb->block[i].i_non_zero_count = 0;
            array_zero_set(mb->block[i].luma4x4, 16);
        }
        array_zero_set(mb->chroma_dc[0], 4);
        array_zero_set(mb->chroma_dc[1], 4);
        for (i = 0; i < 8; i++)
        {
            array_zero_set(mb->block[16 + i].residual_ac, 15);
            mb->block[16 + i].i_non_zero_count = 0;
        }
    }

    //fprintf( stderr, "mb read type=%d\n", mb->i_type );

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
leaq 0x170eb(%rip), %rdi     # 0x251b4
leaq 0x1a18c(%rip), %rsi     # 0x2825c
leaq 0x1a1e8(%rip), %rdx     # 0x282bf
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x4c22
movl 0x10db00(%r12), %eax
cmpq $0x3, %rax
jae 0xebf3
movq %r12, -0x38(%rbp)
movq %r14, -0x30(%rbp)
leaq 0x1a14f(%rip), %rcx     # 0x28250
movl (%rcx,%rax,4), %r12d
leaq 0x1a47c(%rip), %rcx     # 0x28588
movl (%rcx,%rax,4), %r13d
movq 0x8(%r15), %rcx
movq 0x10(%r15), %rax
xorl %edx, %edx
cmpq %rax, %rcx
jae 0xe147
movl 0x18(%r15), %esi
decl %esi
movl %esi, 0x18(%r15)
movzbl (%rcx), %edi
xorl %edx, %edx
btl %esi, %edi
setb %dl
testl %esi, %esi
jne 0xe147
incq %rcx
movq %rcx, 0x8(%r15)
movl $0x8, 0x18(%r15)
testl %edx, %edx
jne 0xe159
cmpq %rax, %rcx
jae 0xe159
cmpl $0x1f, %ebx
ja 0xe159
incl %ebx
jmp 0xe118
testl %ebx, %ebx
je 0xe1a2
movq 0x8(%r15), %rsi
xorl %edx, %edx
leaq 0x19e66(%rip), %r8      # 0x27fd0
movl %ebx, %edi
cmpq %rax, %rsi
jae 0xe1ca
movslq 0x18(%r15), %r9
movl %r9d, %ecx
subl %edi, %ecx
movzbl (%rsi), %r10d
jns 0xe1a6
andl (%r8,%r9,4), %r10d
negb %cl
shll %cl, %r10d
orl %r10d, %edx
incq %rsi
movq %rsi, 0x8(%r15)
movl $0x8, 0x18(%r15)
subl %r9d, %edi
jg 0xe16c
jmp 0xe1ca
xorl %edx, %edx
jmp 0xe1ca
shrl %cl, %r10d
movl %edi, %eax
andl (%r8,%rax,4), %r10d
orl %r10d, %edx
movl %ecx, 0x18(%r15)
cmpl %edi, %r9d
jne 0xe1ca
incq %rsi
movq %rsi, 0x8(%r15)
movl $0x8, 0x18(%r15)
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movl %ebx, %ecx
shll %cl, %r14d
notl %r14d
addl %edx, %r14d
leaq 0x198c4(%rip), %rdi     # 0x27aa6
leaq 0x197a7(%rip), %rdx     # 0x27990
movl %r14d, %esi
xorl %eax, %eax
callq 0x4c22
movl %r14d, %edx
subl %r13d, %edx
jge 0xe21d
subl %r12d, %r14d
movq -0x30(%rbp), %rdi
jl 0xf2c3
jne 0xe294
movabsq $0x1000000003, %rax     # imm = 0x1000000003
jmp 0xe2cc
movq -0x30(%rbp), %rdi
jne 0xe22f
movl $0x0, 0x18(%rdi)
jmp 0xe2d0
cmpl $0x18, %edx
jg 0xe2b0
leal -0x1(%rdx), %eax
leal 0x2(%rdx), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
movl $0x1, 0x18(%rdi)
movl %ecx, %eax
andl $-0x4, %eax
negl %eax
addl %edx, %eax
decl %eax
movl %eax, 0x2bc(%rdi)
sarl $0x2, %ecx
movslq %ecx, %rax
imulq $0x55555556, %rax, %rcx # imm = 0x55555556
movq %rcx, %rsi
shrq $0x3f, %rsi
shrq $0x20, %rcx
addl %esi, %ecx
leal (%rcx,%rcx,2), %ecx
subl %ecx, %eax
movl %eax, 0x2b4(%rdi)
addl $0xa, %edx
xorl %eax, %eax
cmpl $0x17, %edx
movl $0xf, %ecx
cmovbl %eax, %ecx
movl %ecx, 0x2b8(%rdi)
jmp 0xe2d0
cmpl $0x2, %r14d
je 0xe2c2
cmpl $0x1, %r14d
jne 0xebcc
movabsq $0xe00000003, %rax      # imm = 0xE00000003
jmp 0xe2cc
cmpl $0x19, %edx
jne 0xf2e8
movl $0x2, 0x18(%rdi)
jmp 0xe2d0
movabsq $0xf00000003, %rax      # imm = 0xF00000003
movq %rax, 0x18(%rdi)
movb $0x1, %dl
movl 0x18(%rdi), %eax
cmpq $0x6, %rax
ja 0xe511
leaq 0x19a1a(%rip), %rcx     # 0x27d00
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x30(%rbp), %rax
addq $0x324, %rax            # imm = 0x324
movq %rax, -0x40(%rbp)
leaq 0x19ccc(%rip), %r13     # 0x27fd0
xorl %r12d, %r12d
movq 0x8(%r15), %rax
cmpq 0x10(%r15), %rax
jae 0xe36b
movl 0x18(%r15), %edx
decl %edx
movl %edx, 0x18(%r15)
movzbl (%rax), %ecx
xorl %ebx, %ebx
btl %edx, %ecx
setb %cl
testl %edx, %edx
jne 0xe339
incq %rax
movq %rax, 0x8(%r15)
movl $0x8, 0x18(%r15)
movb %cl, %bl
leaq 0x197a6(%rip), %rdi     # 0x27ae8
movl %ebx, %esi
leaq 0x19ff4(%rip), %rdx     # 0x2833f
xorl %eax, %eax
callq 0x4c22
testl %ebx, %ebx
je 0xe382
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl %r12d, %edx
callq 0x6753
jmp 0xe444
leaq 0x19776(%rip), %rdi     # 0x27ae8
xorl %esi, %esi
leaq 0x19fc4(%rip), %rdx     # 0x2833f
xorl %eax, %eax
callq 0x4c22
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl %r12d, %edx
callq 0x6753
movq 0x8(%r15), %r8
movq 0x10(%r15), %rdx
movl $0x3, %esi
xorl %r14d, %r14d
cmpq %rdx, %r8
jae 0xe3d4
movslq 0x18(%r15), %rdi
movl %edi, %ecx
subl %esi, %ecx
movzbl (%r8), %ebx
jns 0xe3f4
andl (%r13,%rdi,4), %ebx
negb %cl
shll %cl, %ebx
orl %ebx, %r14d
incq %r8
movq %r8, 0x8(%r15)
movl $0x8, 0x18(%r15)
subl %edi, %esi
jg 0xe3a2
movl %eax, %r13d
leaq 0x196f6(%rip), %rdi     # 0x27ad4
movl %r14d, %edx
leaq 0x19f5f(%rip), %rcx     # 0x28347
xorl %eax, %eax
callq 0x4c22
movl %r14d, %ebx
jmp 0xe433
movq %r13, %r9
movl %eax, %r13d
shrl %cl, %ebx
movl %esi, %edx
andl (%r9,%rdx,4), %ebx
movl %ecx, 0x18(%r15)
cmpl %esi, %edi
jne 0xe419
incq %r8
movq %r8, 0x8(%r15)
movl $0x8, 0x18(%r15)
orl %r14d, %ebx
leaq 0x1969c(%rip), %rdi     # 0x27abf
movl %ebx, %edx
leaq 0x19f1b(%rip), %rcx     # 0x28347
xorl %eax, %eax
callq 0x4c22
xorl %eax, %eax
cmpl %r13d, %ebx
setge %al
addl %ebx, %eax
leaq 0x19b8c(%rip), %r13     # 0x27fd0
movq %r12, %rcx
shlq $0x7, %rcx
leaq (%rcx,%r12,4), %rcx
movq -0x40(%rbp), %rdx
movl %eax, (%rdx,%rcx)
incq %r12
cmpq $0x10, %r12
jne 0xe307
movq 0x8(%r15), %rcx
movq 0x10(%r15), %rdx
xorl %eax, %eax
movq -0x30(%rbp), %r14
cmpq %rdx, %rcx
jae 0xe4a3
movl 0x18(%r15), %edi
decl %edi
movl %edi, 0x18(%r15)
movzbl (%rcx), %r8d
xorl %esi, %esi
btl %edi, %r8d
setb %sil
testl %edi, %edi
jne 0xe4a5
incq %rcx
movq %rcx, 0x8(%r15)
movl $0x8, 0x18(%r15)
jmp 0xe4a5
xorl %esi, %esi
testl %esi, %esi
jne 0xe4b7
cmpq %rdx, %rcx
jae 0xe4b7
cmpl $0x1f, %eax
ja 0xe4b7
incl %eax
jmp 0xe471
testl %eax, %eax
je 0xebc8
movq 0x8(%r15), %rdi
xorl %esi, %esi
leaq 0x19b04(%rip), %r9      # 0x27fd0
movl %eax, %r8d
cmpq %rdx, %rdi
jae 0xec22
movslq 0x18(%r15), %r10
movl %r10d, %ecx
subl %r8d, %ecx
movzbl (%rdi), %r11d
jns 0xebfd
andl (%r9,%r10,4), %r11d
negb %cl
shll %cl, %r11d
orl %r11d, %esi
incq %rdi
movq %rdi, 0x8(%r15)
movl $0x8, 0x18(%r15)
subl %r10d, %r8d
jg 0xe4cf
jmp 0xec22
cmpl $0x10, %eax
jne 0xe90f
movb %dl, -0x40(%rbp)
leaq 0x197f8(%rip), %rbx     # 0x27d1c
leaq 0x19aa5(%rip), %r14     # 0x27fd0
xorl %r13d, %r13d
movq 0x8(%r15), %rcx
movq 0x10(%r15), %rdx
xorl %eax, %eax
xorl %esi, %esi
cmpq %rdx, %rcx
jae 0xe56a
movl 0x18(%r15), %edi
decl %edi
movl %edi, 0x18(%r15)
movzbl (%rcx), %r8d
xorl %esi, %esi
btl %edi, %r8d
setb %sil
testl %edi, %edi
jne 0xe56a
incq %rcx
movq %rcx, 0x8(%r15)
movl $0x8, 0x18(%r15)
testl %esi, %esi
jne 0xe57c
cmpq %rdx, %rcx
jae 0xe57c
cmpl $0x1f, %eax
ja 0xe57c
incl %eax
jmp 0xe538
testl %eax, %eax
je 0xe5c0
movq 0x8(%r15), %rdi
xorl %esi, %esi
movl %eax, %r8d
cmpq %rdx, %rdi
jae 0xe5e9
movslq 0x18(%r15), %r9
movl %r9d, %ecx
subl %r8d, %ecx
movzbl (%rdi), %r10d
jns 0xe5c4
andl (%r14,%r9,4), %r10d
negb %cl
shll %cl, %r10d
orl %r10d, %esi
incq %rdi
movq %rdi, 0x8(%r15)
movl $0x8, 0x18(%r15)
subl %r9d, %r8d
jg 0xe589
jmp 0xe5e9
xorl %esi, %esi
jmp 0xe5e9
shrl %cl, %r10d
movl %r8d, %edx
andl (%r14,%rdx,4), %r10d
orl %r10d, %esi
movl %ecx, 0x18(%r15)
cmpl %r8d, %r9d
jne 0xe5e9
incq %rdi
movq %rdi, 0x8(%r15)
movl $0x8, 0x18(%r15)
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movl %eax, %ecx
shll %cl, %r12d
notl %r12d
addl %esi, %r12d
leaq 0x194a5(%rip), %rdi     # 0x27aa6
movl %r12d, %esi
leaq 0x19d56(%rip), %rdx     # 0x28361
xorl %eax, %eax
callq 0x4c22
cmpl $0x3, %r12d
ja 0xf309
movslq (%rbx,%r12,4), %rax
addq %rbx, %rax
jmpq *%rax
movl $0x3, %r12d
jmp 0xe630
xorl %r12d, %r12d
movq -0x30(%rbp), %rax
movl %r12d, 0x20(%rax,%r13,4)
incq %r13
cmpq $0x4, %r13
jne 0xe52e
xorl %ebx, %ebx
movq -0x30(%rbp), %r12
movq -0x38(%rbp), %r13
movb -0x40(%rbp), %r14b
movl $0x0, %ecx
testb %r14b, %r14b
je 0xe671
movl 0x10db38(%r13), %esi
decl %esi
movq %r15, %rdi
callq 0xf310
movl %eax, %ecx
movq %r12, %rdi
xorl %esi, %esi
movl %ebx, %edx
callq 0xde14
incl %ebx
cmpl $0x4, %ebx
jne 0xe654
leaq -0x48(%rbp), %r12
xorl %r14d, %r14d
movq %r14, -0x40(%rbp)
movq $0x0, (%rsp)
movq -0x30(%rbp), %r13
movq %r13, %rdi
xorl %esi, %esi
movq -0x40(%rbp), %rdx
xorl %ecx, %ecx
leaq -0x4c(%rbp), %r8
xorl %r9d, %r9d
callq 0x6ca8
movq -0x40(%rbp), %r14
xorl %ebx, %ebx
movq %r12, %r8
xorl %r12d, %r12d
movq %r13, %rdi
xorl %esi, %esi
movl %r14d, %edx
movl %ebx, %ecx
callq 0x6de8
movq 0x8(%r15), %rcx
movq 0x10(%r15), %rax
leaq 0x198f4(%rip), %r14     # 0x27fd0
cmpq %rax, %rcx
jae 0xe70b
movl 0x18(%r15), %esi
decl %esi
movl %esi, 0x18(%r15)
movzbl (%rcx), %edi
xorl %edx, %edx
btl %esi, %edi
setb %dl
testl %esi, %esi
jne 0xe70d
incq %rcx
movq %rcx, 0x8(%r15)
movl $0x8, 0x18(%r15)
jmp 0xe70d
xorl %edx, %edx
testl %edx, %edx
jne 0xe721
cmpq %rax, %rcx
jae 0xe721
cmpl $0x1f, %r12d
ja 0xe721
incl %r12d
jmp 0xe6dc
xorl %r13d, %r13d
movl $0x0, %edx
testl %r12d, %r12d
je 0xe791
movq 0x8(%r15), %rsi
xorl %edx, %edx
movl %r12d, %edi
cmpq %rax, %rsi
jae 0xe791
movslq 0x18(%r15), %r8
movl %r8d, %ecx
subl %edi, %ecx
movzbl (%rsi), %r9d
jns 0xe76d
andl (%r14,%r8,4), %r9d
negb %cl
shll %cl, %r9d
orl %r9d, %edx
incq %rsi
movq %rsi, 0x8(%r15)
movl $0x8, 0x18(%r15)
subl %r8d, %edi
jg 0xe737
jmp 0xe791
shrl %cl, %r9d
movl %edi, %eax
andl (%r14,%rax,4), %r9d
orl %r9d, %edx
movl %ecx, 0x18(%r15)
cmpl %edi, %r8d
jne 0xe791
incq %rsi
movq %rsi, 0x8(%r15)
movl $0x8, 0x18(%r15)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %r12d, %ecx
shll %cl, %eax
movl %eax, %ecx
notl %ecx
addl %edx, %ecx
subl %eax, %edx
sarl %edx
movl %ecx, %r12d
sarl %r12d
negl %r12d
testb $0x1, %cl
cmovnel %edx, %r12d
leaq 0x1933c(%rip), %rdi     # 0x27af8
movl %r12d, %esi
leaq 0x19bc4(%rip), %rdx     # 0x2838a
xorl %eax, %eax
callq 0x4c22
addl %r12d, -0x48(%rbp)
movq 0x8(%r15), %rcx
movq 0x10(%r15), %rax
xorl %edx, %edx
cmpq %rax, %rcx
jae 0xe808
movl 0x18(%r15), %esi
decl %esi
movl %esi, 0x18(%r15)
movzbl (%rcx), %edi
xorl %edx, %edx
btl %esi, %edi
setb %dl
testl %esi, %esi
jne 0xe808
incq %rcx
movq %rcx, 0x8(%r15)
movl $0x8, 0x18(%r15)
testl %edx, %edx
jne 0xe81c
cmpq %rax, %rcx
jae 0xe81c
cmpl $0x1f, %r13d
ja 0xe81c
incl %r13d
jmp 0xe7d9
testl %r13d, %r13d
je 0xe860
movq 0x8(%r15), %rsi
xorl %edx, %edx
movl %r13d, %edi
cmpq %rax, %rsi
jae 0xe888
movslq 0x18(%r15), %r8
movl %r8d, %ecx
subl %edi, %ecx
movzbl (%rsi), %r9d
jns 0xe864
andl (%r14,%r8,4), %r9d
negb %cl
shll %cl, %r9d
orl %r9d, %edx
incq %rsi
movq %rsi, 0x8(%r15)
movl $0x8, 0x18(%r15)
subl %r8d, %edi
jg 0xe82a
jmp 0xe888
xorl %edx, %edx
jmp 0xe888
shrl %cl, %r9d
movl %edi, %eax
andl (%r14,%rax,4), %r9d
orl %r9d, %edx
movl %ecx, 0x18(%r15)
cmpl %edi, %r8d
jne 0xe888
incq %rsi
movq %rsi, 0x8(%r15)
movl $0x8, 0x18(%r15)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %r13d, %ecx
shll %cl, %eax
movl %eax, %ecx
notl %ecx
addl %edx, %ecx
subl %eax, %edx
sarl %edx
movl %ecx, %r12d
sarl %r12d
negl %r12d
testb $0x1, %cl
cmovnel %edx, %r12d
leaq 0x19245(%rip), %rdi     # 0x27af8
movl %r12d, %esi
leaq 0x19ad3(%rip), %rdx     # 0x28390
xorl %eax, %eax
callq 0x4c22
addl %r12d, -0x44(%rbp)
movq -0x30(%rbp), %r13
movq %r13, %rdi
xorl %esi, %esi
movq -0x40(%rbp), %r14
movl %r14d, %edx
movl %ebx, %ecx
leaq -0x48(%rbp), %r12
movq %r12, %r8
callq 0xdf04
incl %ebx
movslq 0x20(%r13,%r14,4), %rax
leaq 0x1943c(%rip), %rcx     # 0x27d30
cmpl (%rcx,%rax,4), %ebx
jl 0xe6b8
incq %r14
cmpq $0x4, %r14
jne 0xe68b
jmp 0xec4d
movq -0x30(%rbp), %r13
movslq 0x1c(%r13), %rax
leaq 0x19412(%rip), %rcx     # 0x27d30
movl (%rcx,%rax,4), %eax
cmpl $0x2, %eax
movl $0x1, %r12d
movl %eax, -0x40(%rbp)
cmovgel %eax, %r12d
xorl %ebx, %ebx
movq -0x38(%rbp), %r14
movl 0x10db38(%r14), %esi
decl %esi
movq %r15, %rdi
callq 0xf310
movq %r13, %rdi
xorl %esi, %esi
movl %ebx, %edx
movl %eax, %ecx
callq 0xde14
incl %ebx
cmpl %ebx, %r12d
jne 0xe937
movl -0x40(%rbp), %ecx
cmpl $0x2, %ecx
movl $0x1, %eax
cmovgel %ecx, %eax
movl %eax, -0x40(%rbp)
leaq -0x48(%rbp), %r14
leaq 0x19657(%rip), %r12     # 0x27fd0
xorl %ebx, %ebx
movq -0x30(%rbp), %rdi
xorl %esi, %esi
movl %ebx, %edx
xorl %ecx, %ecx
movq %r14, %r8
callq 0x6de8
movq 0x8(%r15), %rcx
movq 0x10(%r15), %rdx
xorl %eax, %eax
xorl %esi, %esi
cmpq %rdx, %rcx
jae 0xe9c9
movl 0x18(%r15), %edi
decl %edi
movl %edi, 0x18(%r15)
movzbl (%rcx), %r8d
xorl %esi, %esi
btl %edi, %r8d
setb %sil
testl %edi, %edi
jne 0xe9c9
incq %rcx
movq %rcx, 0x8(%r15)
movl $0x8, 0x18(%r15)
testl %esi, %esi
jne 0xe9db
cmpq %rdx, %rcx
jae 0xe9db
cmpl $0x1f, %eax
ja 0xe9db
incl %eax
jmp 0xe997
xorl %r13d, %r13d
movl $0x0, %esi
testl %eax, %eax
je 0xea4c
movq 0x8(%r15), %rdi
xorl %esi, %esi
movl %eax, %r8d
cmpq %rdx, %rdi
jae 0xea4c
movslq 0x18(%r15), %r9
movl %r9d, %ecx
subl %r8d, %ecx
movzbl (%rdi), %r10d
jns 0xea27
andl (%r12,%r9,4), %r10d
negb %cl
shll %cl, %r10d
orl %r10d, %esi
incq %rdi
movq %rdi, 0x8(%r15)
movl $0x8, 0x18(%r15)
subl %r9d, %r8d
jg 0xe9f0
jmp 0xea4c
shrl %cl, %r10d
movl %r8d, %edx
andl (%r12,%rdx,4), %r10d
orl %r10d, %esi
movl %ecx, 0x18(%r15)
cmpl %r8d, %r9d
jne 0xea4c
incq %rdi
movq %rdi, 0x8(%r15)
movl $0x8, 0x18(%r15)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %eax, %ecx
shll %cl, %edx
movl %edx, %eax
notl %eax
addl %esi, %eax
subl %edx, %esi
sarl %esi
movl %eax, %r14d
sarl %r14d
negl %r14d
testb $0x1, %al
cmovnel %esi, %r14d
leaq 0x19083(%rip), %rdi     # 0x27af8
movl %r14d, %esi
leaq 0x1990b(%rip), %rdx     # 0x2838a
xorl %eax, %eax
callq 0x4c22
addl %r14d, -0x48(%rbp)
movq 0x8(%r15), %rcx
movq 0x10(%r15), %rax
xorl %edx, %edx
cmpq %rax, %rcx
jae 0xeac1
movl 0x18(%r15), %esi
decl %esi
movl %esi, 0x18(%r15)
movzbl (%rcx), %edi
xorl %edx, %edx
btl %esi, %edi
setb %dl
testl %esi, %esi
jne 0xeac1
incq %rcx
movq %rcx, 0x8(%r15)
movl $0x8, 0x18(%r15)
testl %edx, %edx
jne 0xead5
cmpq %rax, %rcx
jae 0xead5
cmpl $0x1f, %r13d
ja 0xead5
incl %r13d
jmp 0xea92
testl %r13d, %r13d
je 0xeb19
movq 0x8(%r15), %rsi
xorl %edx, %edx
movl %r13d, %edi
cmpq %rax, %rsi
jae 0xeb41
movslq 0x18(%r15), %r8
movl %r8d, %ecx
subl %edi, %ecx
movzbl (%rsi), %r9d
jns 0xeb1d
andl (%r12,%r8,4), %r9d
negb %cl
shll %cl, %r9d
orl %r9d, %edx
incq %rsi
movq %rsi, 0x8(%r15)
movl $0x8, 0x18(%r15)
subl %r8d, %edi
jg 0xeae3
jmp 0xeb41
xorl %edx, %edx
jmp 0xeb41
shrl %cl, %r9d
movl %edi, %eax
andl (%r12,%rax,4), %r9d
orl %r9d, %edx
movl %ecx, 0x18(%r15)
cmpl %edi, %r8d
jne 0xeb41
incq %rsi
movq %rsi, 0x8(%r15)
movl $0x8, 0x18(%r15)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %r13d, %ecx
shll %cl, %eax
movl %eax, %ecx
notl %ecx
addl %edx, %ecx
subl %eax, %edx
sarl %edx
movl %ecx, %r14d
sarl %r14d
negl %r14d
testb $0x1, %cl
cmovnel %edx, %r14d
leaq 0x18f8c(%rip), %rdi     # 0x27af8
movl %r14d, %esi
leaq 0x1981a(%rip), %rdx     # 0x28390
xorl %eax, %eax
callq 0x4c22
addl %r14d, -0x44(%rbp)
movq -0x30(%rbp), %rdi
xorl %esi, %esi
movl %ebx, %edx
xorl %ecx, %ecx
leaq -0x48(%rbp), %r14
movq %r14, %r8
callq 0xdf04
incl %ebx
cmpl -0x40(%rbp), %ebx
jne 0xe97b
jmp 0xec4d
leaq 0x16606(%rip), %rdi     # 0x251b4
leaq 0x196a7(%rip), %rsi     # 0x2825c
leaq 0x19831(%rip), %rdx     # 0x283ed
xorl %eax, %eax
callq 0x4c22
jmp 0xf2c8
xorl %esi, %esi
jmp 0xec22
leal -0x3(%r14), %eax
cmpl $0x1, %eax
ja 0xf302
cmpl $0x4, %r14d
setne %dl
movabsq $0xd00000004, %rax      # imm = 0xD00000004
movq %rax, 0x18(%rdi)
jmp 0xe2d2
callq 0x2930
jmp 0xf2c8
shrl %cl, %r11d
movl %r8d, %edx
andl (%r9,%rdx,4), %r11d
orl %r11d, %esi
movl %ecx, 0x18(%r15)
cmpl %r8d, %r10d
jne 0xec22
incq %rdi
movq %rdi, 0x8(%r15)
movl $0x8, 0x18(%r15)
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %eax, %ecx
shll %cl, %ebx
notl %ebx
addl %esi, %ebx
leaq 0x18e70(%rip), %rdi     # 0x27aa6
leaq 0x19711(%rip), %rdx     # 0x2834e
movl %ebx, %esi
xorl %eax, %eax
callq 0x4c22
movl %ebx, 0x2c0(%r14)
movq -0x30(%rbp), %r13
cmpl $0x1, 0x18(%r13)
je 0xed95
movq 0x8(%r15), %rcx
movq 0x10(%r15), %rdx
xorl %eax, %eax
cmpq %rdx, %rcx
jae 0xec98
movl 0x18(%r15), %edi
decl %edi
movl %edi, 0x18(%r15)
movzbl (%rcx), %r8d
xorl %esi, %esi
btl %edi, %r8d
setb %sil
testl %edi, %edi
jne 0xec9a
incq %rcx
movq %rcx, 0x8(%r15)
movl $0x8, 0x18(%r15)
jmp 0xec9a
xorl %esi, %esi
testl %esi, %esi
jne 0xecac
cmpq %rdx, %rcx
jae 0xecac
cmpl $0x1f, %eax
ja 0xecac
incl %eax
jmp 0xec66
testl %eax, %eax
je 0xecf7
movq 0x8(%r15), %rdi
xorl %esi, %esi
leaq 0x19313(%rip), %r9      # 0x27fd0
movl %eax, %r8d
cmpq %rdx, %rdi
jae 0xed20
movslq 0x18(%r15), %r10
movl %r10d, %ecx
subl %r8d, %ecx
movzbl (%rdi), %r11d
jns 0xecfb
andl (%r9,%r10,4), %r11d
negb %cl
shll %cl, %r11d
orl %r11d, %esi
incq %rdi
movq %rdi, 0x8(%r15)
movl $0x8, 0x18(%r15)
subl %r10d, %r8d
jg 0xecc0
jmp 0xed20
xorl %esi, %esi
jmp 0xed20
shrl %cl, %r11d
movl %r8d, %edx
andl (%r9,%rdx,4), %r11d
orl %r11d, %esi
movl %ecx, 0x18(%r15)
cmpl %r8d, %r10d
jne 0xed20
incq %rdi
movq %rdi, 0x8(%r15)
movl $0x8, 0x18(%r15)
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movl %eax, %ecx
shll %cl, %r14d
notl %r14d
addl %esi, %r14d
leaq 0x18d6e(%rip), %rdi     # 0x27aa6
leaq 0x19657(%rip), %rdx     # 0x28396
movl %r14d, %esi
xorl %eax, %eax
callq 0x4c22
cmpl $0x30, %r14d
jge 0xf2de
cmpl $0x0, 0x18(%r13)
movslq %r14d, %rax
leaq 0x1901e(%rip), %rcx     # 0x27d80
leaq 0x190d7(%rip), %rdx     # 0x27e40
cmoveq %rcx, %rdx
movl (%rdx,%rax,4), %eax
movl %eax, %ecx
andl $0xf, %ecx
movl %ecx, 0x2b8(%r13)
sarl $0x4, %eax
movl %eax, 0x2b4(%r13)
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpl $0x2f, %r14d
jg 0xf2cd
cmpl $0x0, 0x2b8(%r13)
jg 0xedb4
cmpl $0x0, 0x2b4(%r13)
jg 0xedb4
cmpl $0x1, 0x18(%r13)
jne 0xf1b0
movq 0x8(%r15), %rcx
movq 0x10(%r15), %rdx
xorl %eax, %eax
cmpq %rdx, %rcx
jae 0xedf0
movl 0x18(%r15), %edi
decl %edi
movl %edi, 0x18(%r15)
movzbl (%rcx), %r8d
xorl %esi, %esi
btl %edi, %r8d
setb %sil
testl %edi, %edi
jne 0xedf2
incq %rcx
movq %rcx, 0x8(%r15)
movl $0x8, 0x18(%r15)
jmp 0xedf2
xorl %esi, %esi
testl %esi, %esi
jne 0xee04
cmpq %rdx, %rcx
jae 0xee04
cmpl $0x1f, %eax
ja 0xee04
incl %eax
jmp 0xedbe
testl %eax, %eax
je 0xee4f
movq 0x8(%r15), %rdi
xorl %esi, %esi
leaq 0x191bb(%rip), %r9      # 0x27fd0
movl %eax, %r8d
cmpq %rdx, %rdi
jae 0xee78
movslq 0x18(%r15), %r10
movl %r10d, %ecx
subl %r8d, %ecx
movzbl (%rdi), %r11d
jns 0xee53
andl (%r9,%r10,4), %r11d
negb %cl
shll %cl, %r11d
orl %r11d, %esi
incq %rdi
movq %rdi, 0x8(%r15)
movl $0x8, 0x18(%r15)
subl %r10d, %r8d
jg 0xee18
jmp 0xee78
xorl %esi, %esi
jmp 0xee78
shrl %cl, %r11d
movl %r8d, %edx
andl (%r9,%rdx,4), %r11d
orl %r11d, %esi
movl %ecx, 0x18(%r15)
cmpl %r8d, %r10d
jne 0xee78
incq %rdi
movq %rdi, 0x8(%r15)
movl $0x8, 0x18(%r15)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %eax, %ecx
shll %cl, %edx
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %edx, %eax
notl %eax
addl %esi, %eax
subl %edx, %esi
sarl %esi
movl %eax, %r14d
sarl %r14d
negl %r14d
testb $0x1, %al
cmovnel %esi, %r14d
leaq 0x18c52(%rip), %rdi     # 0x27af8
leaq 0x194fc(%rip), %rdx     # 0x283a9
movl %r14d, %esi
xorl %eax, %eax
callq 0x4c22
movq -0x38(%rbp), %rdi
movq 0x10dae0(%rdi), %rax
addl 0x1034(%rax), %r14d
addl 0x10db44(%rdi), %r14d
movl %r14d, 0x2b0(%r13)
cmpl $0x1, 0x18(%r13)
jne 0xef54
leaq 0x2c4(%r13), %r8
movq %r15, %rsi
movq %r13, %rdx
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
movl $0x10, %r9d
callq 0xf465
testl %eax, %eax
js 0xf2cd
cmpl $0x0, 0x2b8(%r13)
je 0xefe1
leaq 0x32c(%r13), %r14
xorl %r12d, %r12d
movq -0x38(%rbp), %rdi
movq %r15, %rsi
movq -0x30(%rbp), %rdx
movl %r12d, %ecx
movq %r14, %r8
movl $0xf, %r9d
callq 0xf465
testl %eax, %eax
js 0xf2cd
incq %r12
addq $0x84, %r14
cmpq $0x10, %r12
jne 0xef1b
jmp 0xf040
leaq 0x368(%r13), %rbx
leaq 0x192fa(%rip), %r12     # 0x2825c
leaq 0x1951f(%rip), %r13     # 0x28488
xorl %r14d, %r14d
movq -0x30(%rbp), %rdx
movl 0x2b8(%rdx), %eax
movl %r14d, %ecx
shrl $0x2, %ecx
btl %ecx, %eax
jae 0xefa2
movq -0x38(%rbp), %rdi
movq %r15, %rsi
movl %r14d, %ecx
movq %rbx, %r8
movl $0x10, %r9d
callq 0xf465
testl %eax, %eax
jns 0xefcf
jmp 0xf2c8
movl $0x0, -0x40(%rbx)
leaq 0x16204(%rip), %rdi     # 0x251b4
movq %r12, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x4c22
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x10(%rbx)
movups %xmm0, (%rbx)
incq %r14
addq $0x84, %rbx
cmpq $0x10, %r14
jne 0xef6c
jmp 0xf040
movl $0x32c, %r13d           # imm = 0x32C
leaq 0x1926e(%rip), %r14     # 0x2825c
leaq 0x19493(%rip), %r12     # 0x28488
movq -0x30(%rbp), %rbx
movl $0x0, -0x4(%rbx,%r13)
leaq 0x161ab(%rip), %rdi     # 0x251b4
movq %r14, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x4c22
xorps %xmm0, %xmm0
movups %xmm0, 0x2c(%rbx,%r13)
movups %xmm0, 0x20(%rbx,%r13)
movups %xmm0, 0x10(%rbx,%r13)
movups %xmm0, (%rbx,%r13)
addq $0x84, %r13
cmpq $0xb6c, %r13            # imm = 0xB6C
jne 0xeff9
movq -0x30(%rbp), %r13
leaq 0x304(%r13), %r14
testb $0x3, 0x2b4(%r13)
je 0xf0ae
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq -0x38(%rbp), %rdi
movq %r15, %rsi
movq %r13, %rdx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %r14, %r8
movl $0x4, %r9d
callq 0xf465
testl %eax, %eax
js 0xf2cd
leaq 0x314(%r13), %r8
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq -0x38(%rbp), %rdi
movq %r15, %rsi
movq %r13, %rdx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl $0x4, %r9d
callq 0xf465
testl %eax, %eax
jns 0xf0f9
jmp 0xf2cd
leaq 0x160ff(%rip), %rbx     # 0x251b4
leaq 0x191a0(%rip), %r12     # 0x2825c
leaq 0x193c5(%rip), %r13     # 0x28488
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x4c22
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq -0x30(%rbp), %r13
xorl %eax, %eax
callq 0x4c22
xorps %xmm0, %xmm0
movups %xmm0, 0x314(%r13)
testb $0x2, 0x2b4(%r13)
jne 0xf16d
addq $0xb6c, %r13            # imm = 0xB6C
leaq 0x160a3(%rip), %r14     # 0x251b4
leaq 0x19144(%rip), %r15     # 0x2825c
leaq 0x19369(%rip), %r12     # 0x28488
movq %r13, %rbx
xorl %r13d, %r13d
movl $0x0, -0x4(%rbx,%r13)
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x4c22
xorps %xmm0, %xmm0
movups %xmm0, 0x2c(%rbx,%r13)
movups %xmm0, 0x20(%rbx,%r13)
movups %xmm0, 0x10(%rbx,%r13)
movups %xmm0, (%rbx,%r13)
addq $0x84, %r13
cmpq $0x420, %r13            # imm = 0x420
jne 0xf125
jmp 0xf2bf
leaq 0xb6c(%r13), %rbx
movq $-0x8, %r14
leal 0x18(%r14), %ecx
movq -0x38(%rbp), %rdi
movq %r15, %rsi
movq %r13, %rdx
movq %rbx, %r8
movl $0xf, %r9d
callq 0xf465
testl %eax, %eax
js 0xf2c8
addq $0x84, %rbx
incq %r14
jne 0xf17b
jmp 0xf2bf
movq -0x38(%rbp), %rcx
movq 0x10dae0(%rcx), %rax
movl 0x10db44(%rcx), %ecx
addl 0x1034(%rax), %ecx
movl %ecx, 0x2b0(%r13)
movl $0x368, %r12d           # imm = 0x368
leaq 0x15fd9(%rip), %rbx     # 0x251b4
leaq 0x1907a(%rip), %r14     # 0x2825c
leaq 0x1929f(%rip), %r15     # 0x28488
movl $0x0, -0x40(%r13,%r12)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x4c22
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%r13,%r12)
movups %xmm0, 0x20(%r13,%r12)
movups %xmm0, 0x10(%r13,%r12)
movups %xmm0, (%r13,%r12)
addq $0x84, %r12
cmpq $0xba8, %r12            # imm = 0xBA8
jne 0xf1e9
leaq 0x15f80(%rip), %r14     # 0x251b4
leaq 0x19021(%rip), %r15     # 0x2825c
leaq 0x19246(%rip), %r12     # 0x28488
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x4c22
xorps %xmm0, %xmm0
movups %xmm0, 0x304(%r13)
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x4c22
xorps %xmm0, %xmm0
movups %xmm0, 0x314(%r13)
addq $0xb68, %r13            # imm = 0xB68
movq %r13, %rbx
xorl %r13d, %r13d
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x4c22
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rbx,%r13)
movups %xmm0, 0x20(%rbx,%r13)
movups %xmm0, 0x10(%rbx,%r13)
movups %xmm0, (%rbx,%r13)
addq $0x84, %r13
cmpq $0x420, %r13            # imm = 0x420
jne 0xf285
xorl %ebx, %ebx
jmp 0xf2cd
callq 0x29df
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x29bd
jmp 0xed86
movq 0x22ce1(%rip), %rax     # 0x31fd0
movq (%rax), %rdi
leaq 0x19030(%rip), %rsi     # 0x28329
xorl %eax, %eax
callq 0x2180
jmp 0xf2c8
callq 0x295f
jmp 0xf2c8
callq 0x298e
jmp 0xf2c8