// File: /workspace/github_c_makefile_star2_O2/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 $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r13
leaq 0x1055c(%rip), %rdi     # 0x1b1b4
leaq 0x1350d(%rip), %rsi     # 0x1e16c
leaq 0x13569(%rip), %rdx     # 0x1e1cf
xorl %eax, %eax
callq 0x39ba
movl 0x10db00(%r13), %eax
cmpq $0x3, %rax
jae 0xb353
leaq 0x134db(%rip), %rcx     # 0x1e160
movl (%rcx,%rax,4), %r14d
leaq 0x13830(%rip), %rcx     # 0x1e4c0
movq %r15, %rdi
movl (%rcx,%rax,4), %r15d
leaq 0x12c42(%rip), %rsi     # 0x1d8e0
movq %rdi, -0x30(%rbp)
callq 0xb3f4
movl %eax, %r12d
pushq $0xf
popq %rdx
cmpl %r15d, %eax
movq %r13, -0x38(%rbp)
jge 0xacd1
subl %r14d, %r12d
jl 0xb368
jne 0xaf4c
pushq $0x10
popq %rdx
movq -0x30(%rbp), %r15
jmp 0xb091
subl %r15d, %r12d
jne 0xad47
andl $0x0, 0x18(%rbx)
leaq 0x324(%rbx), %r15
xorl %r14d, %r14d
cmpq $0x10, %r14
je 0xad9d
movq -0x30(%rbp), %rdi
leaq 0x13556(%rip), %rsi     # 0x1e24f
callq 0xb467
movl %eax, %r13d
movq -0x38(%rbp), %rdi
movq %rbx, %rsi
movl %r14d, %edx
callq 0x5490
movl %eax, %r12d
testl %r13d, %r13d
jne 0xad38
movq -0x30(%rbp), %rdi
pushq $0x3
popq %rsi
leaq 0x13531(%rip), %rdx     # 0x1e257
callq 0xb4ba
xorl %ecx, %ecx
cmpl %r12d, %eax
setge %cl
addl %eax, %ecx
movl %ecx, %r12d
movl %r12d, (%r15)
incq %r14
addq $0x84, %r15
jmp 0xace4
cmpl $0x18, %r12d
jg 0xb05c
movl $0x1, 0x18(%rbx)
leal -0x1(%r12), %eax
movsbl %al, %ecx
movb $0x4, %sil
movl %ecx, %eax
idivb %sil
leal (,%rax,4), %esi
subb %sil, %cl
movsbl %cl, %ecx
movl %ecx, 0x2bc(%rbx)
cbtw
movb $0x3, %cl
idivb %cl
movsbl %ah, %eax
movl %eax, 0x2b4(%rbx)
addl $0xa, %r12d
xorl %eax, %eax
cmpl $0x17, %r12d
cmovbl %eax, %edx
movl %edx, 0x2b8(%rbx)
leaq 0x134ba(%rip), %rsi     # 0x1e25e
movq -0x30(%rbp), %rdi
callq 0xb3f4
movl %eax, 0x2c0(%rbx)
cmpl $0x1, 0x18(%rbx)
jne 0xadcb
movl 0x2b8(%rbx), %ecx
movb $0x1, %al
movq -0x38(%rbp), %r14
movq -0x30(%rbp), %r15
jmp 0xae21
leaq 0x134d4(%rip), %rsi     # 0x1e2a6
movq -0x30(%rbp), %r15
movq %r15, %rdi
callq 0xb3f4
cmpl $0x2f, %eax
movq -0x38(%rbp), %r14
jg 0xb37d
movl 0x18(%rbx), %edx
testl %edx, %edx
cltq
leaq 0x12e97(%rip), %rcx     # 0x1dc90
leaq 0x12f50(%rip), %rsi     # 0x1dd50
cmoveq %rcx, %rsi
movl (%rsi,%rax,4), %eax
movl %eax, %ecx
andl $0xf, %ecx
movl %ecx, 0x2b8(%rbx)
sarl $0x4, %eax
movl %eax, 0x2b4(%rbx)
cmpl $0x1, %edx
sete %al
testl %ecx, %ecx
jg 0xae39
cmpl $0x0, 0x2b4(%rbx)
setle %cl
xorb $0x1, %al
testb %al, %cl
jne 0xafc1
leaq 0x13479(%rip), %rsi     # 0x1e2b9
movq %r15, %rdi
callq 0xb5c8
movq 0x10dae0(%r14), %rcx
addl 0x1034(%rcx), %eax
addl 0x10db44(%r14), %eax
movl %eax, 0x2b0(%rbx)
cmpl $0x1, 0x18(%rbx)
jne 0xaee1
leaq 0x2c4(%rbx), %r8
pushq $-0x2
popq %rcx
pushq $0x10
popq %r9
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0xb607
pushq $-0x1
popq %r12
testl %eax, %eax
js 0xb39d
cmpl $0x0, 0x2b8(%rbx)
je 0xb13d
leaq 0x32c(%rbx), %r14
xorl %r15d, %r15d
pushq $0xf
popq %r13
cmpq $0x10, %r15
je 0xb16b
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq %rbx, %rdx
movl %r15d, %ecx
movq %r14, %r8
movl %r13d, %r9d
callq 0xb607
incq %r15
addq $0x84, %r14
testl %eax, %eax
jns 0xaeab
jmp 0xb39d
leaq 0x368(%rbx), %r14
xorl %r15d, %r15d
pushq $0x10
popq %r13
pushq $-0x1
popq %r12
cmpq $0x10, %r15
je 0xb16b
movl 0x2b8(%rbx), %eax
movl %r15d, %ecx
shrl $0x2, %ecx
btl %ecx, %eax
jae 0xaf30
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq %rbx, %rdx
movl %r15d, %ecx
movq %r14, %r8
movl %r13d, %r9d
callq 0xb607
testl %eax, %eax
jns 0xaf40
jmp 0xb39d
andl $0x0, -0x40(%r14)
movq %r14, %rdi
movl %r13d, %esi
callq 0xb9b8
incq %r15
addq $0x84, %r14
jmp 0xaef3
cmpl $0x1, %r12d
movq -0x30(%rbp), %r15
je 0xb08e
cmpl $0x2, %r12d
je 0xb091
leal -0x3(%r12), %eax
cmpl $0x2, %eax
jae 0xb3cc
movabsq $0xd00000004, %rax      # imm = 0xD00000004
movq %rax, 0x18(%rbx)
pushq $0x8
popq %r15
leaq 0x132e6(%rip), %r14     # 0x1e271
leaq 0x1353a(%rip), %r13     # 0x1e4cc
cmpq $0xc, %r15
je 0xb27c
movq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0xb3f4
cmpl $0x4, %eax
jae 0xb3e1
movl %eax, %eax
movl (%r13,%rax,4), %eax
movl %eax, (%rbx,%r15,4)
incq %r15
jmp 0xaf92
pushq $0x8
popq %r12
movq 0x10dae0(%r14), %rax
movl 0x10db44(%r14), %ecx
addl 0x1034(%rax), %ecx
movl %ecx, 0x2b0(%rbx)
leaq 0x368(%rbx), %r14
pushq $0x10
popq %r13
pushq $0x10
popq %r15
subq $0x1, %r13
jb 0xb00d
andl $0x0, -0x40(%r14)
movq %r14, %rdi
movl %r15d, %esi
callq 0xb9b8
addq $0x84, %r14
jmp 0xafee
leaq 0x304(%rbx), %rdi
pushq $0x4
popq %r14
movl %r14d, %esi
callq 0xb9b8
leaq 0x314(%rbx), %rdi
movl %r14d, %esi
callq 0xb9b8
addq $0xb6c, %rbx            # imm = 0xB6C
pushq $0xf
popq %r14
subq $0x1, %r12
jb 0xb221
movq %rbx, %rdi
movl %r14d, %esi
callq 0xb9b8
andl $0x0, -0x4(%rbx)
addq $0x84, %rbx
jmp 0xb03a
cmpl $0x19, %r12d
jne 0xb3af
movl $0x2, 0x18(%rbx)
leaq 0x10140(%rip), %rdi     # 0x1b1b4
leaq 0x130f1(%rip), %rsi     # 0x1e16c
leaq 0x1327b(%rip), %rdx     # 0x1e2fd
xorl %eax, %eax
callq 0x39ba
jmp 0xb399
pushq $0xe
popq %rdx
movl $0x3, 0x18(%rbx)
movl %edx, 0x1c(%rbx)
movl %edx, %eax
leaq 0x12b9c(%rip), %rcx     # 0x1dc40
movl (%rcx,%rax,4), %r12d
xorl %r14d, %r14d
testl %r12d, %r12d
cmovlel %r14d, %r12d
cmpl %r14d, %r12d
je 0xb0dc
movl 0x10db38(%r13), %esi
decl %esi
movq %r15, %rdi
callq 0xb560
movq %rbx, %rdi
xorl %esi, %esi
movl %r14d, %edx
movl %eax, %ecx
callq 0xa998
incl %r14d
jmp 0xb0b2
xorl %r14d, %r14d
leaq -0x40(%rbp), %r15
movq -0x30(%rbp), %r13
cmpl %r14d, %r12d
je 0xadb3
movq %rbx, %rdi
xorl %esi, %esi
movl %r14d, %edx
xorl %ecx, %ecx
movq %r15, %r8
callq 0x5acc
movq %r13, %rdi
leaq 0x1318e(%rip), %rsi     # 0x1e29a
callq 0xb5c8
addl %eax, -0x40(%rbp)
movq %r13, %rdi
leaq 0x13182(%rip), %rsi     # 0x1e2a0
callq 0xb5c8
addl %eax, -0x3c(%rbp)
movq %rbx, %rdi
xorl %esi, %esi
movl %r14d, %edx
xorl %ecx, %ecx
movq %r15, %r8
callq 0xab09
incl %r14d
jmp 0xb0e7
leaq 0x32c(%rbx), %r14
pushq $0x10
popq %r12
pushq $0xf
popq %r15
subq $0x1, %r12
jb 0xb16b
andl $0x0, -0x4(%r14)
movq %r14, %rdi
movl %r15d, %esi
callq 0xb9b8
addq $0x84, %r14
jmp 0xb14c
leaq 0x304(%rbx), %r8
testb $0x3, 0x2b4(%rbx)
je 0xb1cd
pushq $-0x1
popq %r12
pushq $0x4
popq %r9
movq -0x38(%rbp), %r14
movq %r14, %rdi
movq -0x30(%rbp), %r15
movq %r15, %rsi
movq %rbx, %rdx
movl %r12d, %ecx
callq 0xb607
testl %eax, %eax
js 0xb39d
leaq 0x314(%rbx), %r8
pushq $-0x1
popq %r12
pushq $0x4
popq %r9
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movl %r12d, %ecx
callq 0xb607
testl %eax, %eax
jns 0xb1eb
jmp 0xb39d
pushq $0x4
popq %r14
movq %r8, %rdi
movl %r14d, %esi
callq 0xb9b8
leaq 0x314(%rbx), %rdi
movl %r14d, %esi
callq 0xb9b8
testb $0x2, 0x2b4(%rbx)
jne 0xb229
addq $0xb6c, %rbx            # imm = 0xB6C
pushq $0x8
popq %r15
pushq $0xf
popq %r14
subq $0x1, %r15
jb 0xb221
andl $0x0, -0x4(%rbx)
movq %rbx, %rdi
movl %r14d, %esi
callq 0xb9b8
addq $0x84, %rbx
jmp 0xb203
xorl %r12d, %r12d
jmp 0xb39d
movl $0xb6c, %r15d           # imm = 0xB6C
xorl %r12d, %r12d
pushq $0xf
popq %r14
xorl %r13d, %r13d
cmpq $0xf8c, %r15            # imm = 0xF8C
je 0xb39d
movl %r13d, %ecx
orl $0x10, %ecx
leaq (%rbx,%r15), %r8
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq %rbx, %rdx
movl %r14d, %r9d
callq 0xb607
incq %r13
addq $0x84, %r15
testl %eax, %eax
jns 0xb239
pushq $-0x1
popq %rax
movl %eax, %r12d
jmp 0xb39d
xorl %r14d, %r14d
movq -0x38(%rbp), %r15
cmpl $0x4, %r14d
je 0xb2b7
xorl %ecx, %ecx
cmpl $0x4, %r12d
je 0xb2a5
movl 0x10db38(%r15), %esi
decl %esi
movq -0x30(%rbp), %rdi
callq 0xb560
movl %eax, %ecx
movq %rbx, %rdi
xorl %esi, %esi
movl %r14d, %edx
callq 0xa998
incl %r14d
jmp 0xb283
xorl %r12d, %r12d
leaq -0x40(%rbp), %r13
movq -0x30(%rbp), %r15
cmpq $0x4, %r12
je 0xadb3
andq $0x0, (%rsp)
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %esi, %esi
movl %r12d, %edx
xorl %ecx, %ecx
leaq -0x44(%rbp), %r8
xorl %r9d, %r9d
callq 0x5a03
movslq 0x20(%rbx,%r12,4), %rax
leaq 0x1294a(%rip), %rcx     # 0x1dc40
cmpl (%rcx,%rax,4), %r14d
jge 0xb34b
movq %rbx, %rdi
xorl %esi, %esi
movl %r12d, %edx
movl %r14d, %ecx
movq %r13, %r8
callq 0x5acc
movq %r15, %rdi
leaq 0x12f81(%rip), %rsi     # 0x1e29a
callq 0xb5c8
addl %eax, -0x40(%rbp)
movq %r15, %rdi
leaq 0x12f75(%rip), %rsi     # 0x1e2a0
callq 0xb5c8
addl %eax, -0x3c(%rbp)
movq %rbx, %rdi
xorl %esi, %esi
movl %r12d, %edx
movl %r14d, %ecx
movq %r13, %r8
callq 0xab09
incl %r14d
jmp 0xb2ea
incq %r12
jmp 0xb2c2
movq 0x1cc76(%rip), %rax     # 0x27fd0
movq (%rax), %rcx
leaq 0x12e86(%rip), %rdi     # 0x1e1ea
pushq $0x24
jmp 0xb390
movq 0x1cc61(%rip), %rax     # 0x27fd0
movq (%rax), %rcx
leaq 0x12e96(%rip), %rdi     # 0x1e20f
pushq $0x18
jmp 0xb390
movq 0x1cc4c(%rip), %rax     # 0x27fd0
movq (%rax), %rcx
leaq 0x12f1e(%rip), %rdi     # 0x1e2ac
pushq $0xc
popq %rsi
pushq $0x1
popq %rdx
callq 0x21e0
pushq $-0x1
popq %r12
movl %r12d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x1cc1a(%rip), %rax     # 0x27fd0
movq (%rax), %rdi
leaq 0x12e79(%rip), %rsi     # 0x1e239
movl %r12d, %edx
xorl %eax, %eax
callq 0x2170
jmp 0xb399
movq 0x1cbfd(%rip), %rax     # 0x27fd0
movq (%rax), %rcx
leaq 0x12e4b(%rip), %rdi     # 0x1e228
pushq $0x10
jmp 0xb390
movq 0x1cbe8(%rip), %rax     # 0x27fd0
movq (%rax), %rcx
leaq 0x12e8f(%rip), %rdi     # 0x1e281
jmp 0xb379