LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/macroblock.c
// Function: x264_macroblocks_new(int, int)
x264_macroblock_t *x264_macroblocks_new(int i_mb_width, int i_mb_height) {LOG_CALL;
    x264_macroblock_t *mb =( x264_macroblock_t *) x264_aligned_alloc(i_mb_width * i_mb_height * sizeof ( x264_macroblock_t));
    int x, y;

    for (y = 0; y < i_mb_height; y++)
    {
        for (x = 0; x < i_mb_width; x++)
        {
            int i_mb_xy = y * i_mb_width + x;

            mb[i_mb_xy].i_mb_x = x;
            mb[i_mb_xy].i_mb_y = y;

            mb[i_mb_xy].i_neighbour = 0;
            mb[i_mb_xy].i_neighbour |= (x > 0) ? MB_LEFT : 0x00;
            mb[i_mb_xy].i_neighbour |= (y > 0) ? MB_TOP : 0x00;
            mb[i_mb_xy].i_neighbour |= (y > 0 && x + 1 < i_mb_width) ? MB_TOPRIGHT : 0;
        }
    }

    return mb;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %r14d
movl %edi, %ebx
leaq 0x20cf2(%rip), %rdi     # 0x271b4
leaq 0x21367(%rip), %rsi     # 0x27830
leaq 0x21372(%rip), %rdx     # 0x27842
xorl %eax, %eax
callq 0x4a56
movl %ebx, %eax
imull %r14d, %eax
imull $0xf88, %eax, %edi      # imm = 0xF88
callq 0x461e
testl %r14d, %r14d
jle 0x6568
movslq %ebx, %rcx
movl %ecx, %edx
movl %r14d, %esi
movq %rax, %rdi
addq $0x8, %rdi
imulq $0xf88, %rdx, %r8       # imm = 0xF88
xorl %r9d, %r9d
testl %ebx, %ebx
jle 0x655d
xorl %r10d, %r10d
testq %r9, %r9
setne %r10b
addl %r10d, %r10d
movq %rdi, %r11
xorl %r14d, %r14d
testq %r9, %r9
setne %r15b
movl %r14d, -0x8(%r11)
movl %r9d, -0x4(%r11)
xorl %r12d, %r12d
testq %r14, %r14
setne %r12b
orl %r10d, %r12d
incq %r14
cmpq %rcx, %r14
setl %r13b
andb %r15b, %r13b
movzbl %r13b, %r15d
leal (%r12,%r15,4), %r15d
movl %r15d, (%r11)
addq $0xf88, %r11            # imm = 0xF88
cmpq %r14, %rdx
jne 0x651d
incq %r9
addq %r8, %rdi
cmpq %rsi, %r9
jne 0x6506
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/macroblock.c
// Function: x264_mb_predict_intra4x4_mode(x264_t*, x264_macroblock_t*, int)
int x264_mb_predict_intra4x4_mode(x264_t *h, x264_macroblock_t *mb, int idx) {LOG_CALL;
    x264_macroblock_t *mba = mb->context->block[idx].mba;
    x264_macroblock_t *mbb = mb->context->block[idx].mbb;

    int i_mode_a = I_PRED_4x4_DC;
    int i_mode_b = I_PRED_4x4_DC;

    if (!mba || !mbb)
    {
        return I_PRED_4x4_DC;
    }

    if (mba->i_type == I_4x4)
    {
        i_mode_a = mb->context->block[idx].bka->i_intra4x4_pred_mode;
    }
    if (mbb->i_type == I_4x4)
    {
        i_mode_b = mb->context->block[idx].bkb->i_intra4x4_pred_mode;
    }

    return X264_MIN(i_mode_a, i_mode_b);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
leaq 0x20c2a(%rip), %rdi     # 0x271b4
leaq 0x2129f(%rip), %rsi     # 0x27830
leaq 0x212bf(%rip), %rdx     # 0x27857
xorl %eax, %eax
callq 0x4a56
movq 0x10(%r14), %rcx
movslq %ebx, %rdx
shlq $0x5, %rdx
movq 0x4e8(%rcx,%rdx), %rdi
movq 0x4f0(%rcx,%rdx), %rsi
testq %rdi, %rdi
setne %al
testq %rsi, %rsi
setne %r8b
andb %al, %r8b
movl $0x2, %eax
cmpb $0x1, %r8b
jne 0x660a
cmpl $0x0, 0x18(%rdi)
movl $0x2, %edi
jne 0x65f1
leaq (%rcx,%rdx), %rdi
addq $0x4e8, %rdi            # imm = 0x4E8
movq 0x10(%rdi), %rdi
movl (%rdi), %edi
cmpl $0x0, 0x18(%rsi)
jne 0x6605
addq $0x4e8, %rcx            # imm = 0x4E8
movq 0x18(%rcx,%rdx), %rax
movl (%rax), %eax
cmpl %eax, %edi
cmovll %edi, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/macroblock.c
// Function: x264_mb_predict_non_zero_code(x264_t*, x264_macroblock_t*, int)
int x264_mb_predict_non_zero_code(x264_t *h, x264_macroblock_t *mb, int idx) {LOG_CALL;
    int i_z_a = 0x80, i_z_b = 0x80;
    int i_ret;

    /* none avail -> 0, one avail -> this one, both -> (a+b+1)>>1 */
    if (mb->context->block[idx].mba)
    {
        i_z_a = mb->context->block[idx].bka->i_non_zero_count;
    }
    if (mb->context->block[idx].mbb)
    {
        i_z_b = mb->context->block[idx].bkb->i_non_zero_count;
    }

    i_ret = i_z_a + i_z_b;
    if (i_ret < 0x80)
    {
        i_ret = (i_ret + 1) >> 1;
    }
    return i_ret & 0x7f;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
leaq 0x20b92(%rip), %rdi     # 0x271b4
leaq 0x21207(%rip), %rsi     # 0x27830
leaq 0x21245(%rip), %rdx     # 0x27875
xorl %eax, %eax
callq 0x4a56
movq 0x10(%r14), %rax
movslq %ebx, %rcx
shlq $0x5, %rcx
leaq (%rax,%rcx), %rdx
addq $0x4e8, %rdx            # imm = 0x4E8
movl $0x80, %eax
cmpq $0x0, (%rdx)
movl $0x80, %ecx
je 0x6664
movq 0x10(%rdx), %rcx
movl 0x4(%rcx), %ecx
cmpq $0x0, 0x8(%rdx)
je 0x6672
movq 0x18(%rdx), %rax
movl 0x4(%rax), %eax
leal (%rax,%rcx), %edx
addl %ecx, %eax
incl %eax
shrl %eax
cmpl $0x80, %edx
cmovgel %edx, %eax
andl $0x7f, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/macroblock.c
// Function: x264_mb_dequant_2x2_dc(short (*) [2], int)
void x264_mb_dequant_2x2_dc(int16_t dct[2][2], int i_qscale) {LOG_CALL;
    const int i_qbits = i_qscale / 6 - 1;

    if (i_qbits >= 0)
    {
        const int i_dmf = dequant_mf[i_qscale % 6][0][0] << i_qbits;

        dct[0][0] = dct[0][0] * i_dmf;
        dct[0][1] = dct[0][1] * i_dmf;
        dct[1][0] = dct[1][0] * i_dmf;
        dct[1][1] = dct[1][1] * i_dmf;
    } else
    {
        const int i_dmf = dequant_mf[i_qscale % 6][0][0];

        dct[0][0] = (dct[0][0] * i_dmf) >> 1;
        dct[0][1] = (dct[0][1] * i_dmf) >> 1;
        dct[1][0] = (dct[1][0] * i_dmf) >> 1;
        dct[1][1] = (dct[1][1] * i_dmf) >> 1;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
leaq 0x20b14(%rip), %rdi     # 0x271b4
leaq 0x21189(%rip), %rsi     # 0x27830
leaq 0x211e5(%rip), %rdx     # 0x27893
xorl %eax, %eax
callq 0x4a56
cmpl $0x6, %r14d
jl 0x6714
movl %r14d, %eax
movl $0xaaaaaaab, %ecx       # imm = 0xAAAAAAAB
imulq %rax, %rcx
shrq $0x22, %rcx
leal (%rcx,%rcx), %eax
leal (%rax,%rax,2), %eax
subl %eax, %r14d
shll $0x6, %r14d
leaq 0x21421(%rip), %rax     # 0x27b00
movl (%r14,%rax), %eax
decb %cl
shll %cl, %eax
movzwl (%rbx), %ecx
imulw %ax, %cx
movw %cx, (%rbx)
movzwl 0x2(%rbx), %ecx
imulw %ax, %cx
movw %cx, 0x2(%rbx)
movzwl 0x4(%rbx), %ecx
imulw %ax, %cx
movw %cx, 0x4(%rbx)
imulw 0x6(%rbx), %ax
movw %ax, 0x6(%rbx)
jmp 0x6776
movslq %r14d, %rax
imulq $0x2aaaaaab, %rax, %rax # imm = 0x2AAAAAAB
movq %rax, %rcx
shrq $0x3f, %rcx
shrq $0x20, %rax
addl %ecx, %eax
addl %eax, %eax
leal (%rax,%rax,2), %eax
subl %eax, %r14d
movslq %r14d, %rax
shlq $0x6, %rax
leaq 0x213bf(%rip), %rcx     # 0x27b00
movl (%rax,%rcx), %eax
movswl (%rbx), %ecx
imull %eax, %ecx
shrl %ecx
movw %cx, (%rbx)
movswl 0x2(%rbx), %ecx
imull %eax, %ecx
shrl %ecx
movw %cx, 0x2(%rbx)
movswl 0x4(%rbx), %ecx
imull %eax, %ecx
shrl %ecx
movw %cx, 0x4(%rbx)
movswl 0x6(%rbx), %ecx
imull %eax, %ecx
shrl %ecx
movw %cx, 0x6(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/macroblock.c
// Function: x264_mb_dequant_4x4_dc(short (*) [4], int)
void x264_mb_dequant_4x4_dc(int16_t dct[4][4], int i_qscale) {LOG_CALL;
    const int i_qbits = i_qscale / 6 - 2;
    int x, y;

    if (i_qbits >= 0)
    {
        const int i_dmf = dequant_mf[i_qscale % 6][0][0] << i_qbits;

        for (y = 0; y < 4; y++)
        {
            for (x = 0; x < 4; x++)
            {
                dct[y][x] = dct[y][x] * i_dmf;
            }
        }
    } else
    {
        const int i_dmf = dequant_mf[i_qscale % 6][0][0];
        const int f = 1 << (1 + i_qbits);

        for (y = 0; y < 4; y++)
        {
            for (x = 0; x < 4; x++)
            {
                dct[y][x] = (dct[y][x] * i_dmf + f) >> (-i_qbits);
            }
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
leaq 0x20a25(%rip), %rdi     # 0x271b4
leaq 0x2109a(%rip), %rsi     # 0x27830
leaq 0x2110d(%rip), %rdx     # 0x278aa
xorl %eax, %eax
callq 0x4a56
movslq %r14d, %rax
imulq $0x2aaaaaab, %rax, %rax # imm = 0x2AAAAAAB
movq %rax, %rcx
shrq $0x3f, %rcx
shrq $0x20, %rax
addl %ecx, %eax
cmpl $0xc, %r14d
jl 0x6816
movl %r14d, %ecx
movl $0xaaaaaaab, %edx       # imm = 0xAAAAAAAB
imulq %rcx, %rdx
shrq $0x22, %rdx
addl %edx, %edx
leal (%rdx,%rdx,2), %ecx
subl %ecx, %r14d
shll $0x6, %r14d
leaq 0x2131c(%rip), %rcx     # 0x27b00
movl (%r14,%rcx), %edx
addb $-0x2, %al
movl %eax, %ecx
shll %cl, %edx
xorl %eax, %eax
xorl %ecx, %ecx
movzwl (%rbx,%rcx,2), %esi
imulw %dx, %si
movw %si, (%rbx,%rcx,2)
incq %rcx
cmpq $0x4, %rcx
jne 0x67f2
incq %rax
addq $0x8, %rbx
cmpq $0x4, %rax
jne 0x67f0
jmp 0x686f
leal (%rax,%rax), %ecx
leal (%rcx,%rcx,2), %ecx
subl %ecx, %r14d
movslq %r14d, %rsi
shlq $0x6, %rsi
leaq 0x212d3(%rip), %rdi     # 0x27b00
leal -0x1(%rax), %ecx
movl $0x1, %edx
shll %cl, %edx
movl (%rsi,%rdi), %esi
movl $0x2, %ecx
subl %eax, %ecx
xorl %eax, %eax
xorl %edi, %edi
movswl (%rbx,%rdi,2), %r8d
imull %esi, %r8d
addl %edx, %r8d
sarl %cl, %r8d
movw %r8w, (%rbx,%rdi,2)
incq %rdi
cmpq $0x4, %rdi
jne 0x6845
incq %rax
addq $0x8, %rbx
cmpq $0x4, %rax
jne 0x6843
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/macroblock.c
// Function: x264_mb_dequant_4x4(short (*) [4], int)
void x264_mb_dequant_4x4(int16_t dct[4][4], int i_qscale) {LOG_CALL;
    const int i_mf = i_qscale % 6;
    const int i_qbits = i_qscale / 6;
    int y;

    for (y = 0; y < 4; y++)
    {
        dct[y][0] = (dct[y][0] * dequant_mf[i_mf][y][0]) << i_qbits;
        dct[y][1] = (dct[y][1] * dequant_mf[i_mf][y][1]) << i_qbits;
        dct[y][2] = (dct[y][2] * dequant_mf[i_mf][y][2]) << i_qbits;
        dct[y][3] = (dct[y][3] * dequant_mf[i_mf][y][3]) << i_qbits;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %rbx
leaq 0x20929(%rip), %rdi     # 0x271b4
leaq 0x20f9e(%rip), %rsi     # 0x27830
leaq 0x21028(%rip), %rdx     # 0x278c1
xorl %r15d, %r15d
xorl %eax, %eax
callq 0x4a56
movslq %r14d, %rax
imulq $0x2aaaaaab, %rax, %rcx # imm = 0x2AAAAAAB
movq %rcx, %rdx
shrq $0x3f, %rdx
shrq $0x20, %rcx
addl %edx, %ecx
leal (%rcx,%rcx), %edx
leal (%rdx,%rdx,2), %edx
subl %edx, %eax
cltq
shlq $0x6, %rax
leaq 0x21231(%rip), %rdx     # 0x27b00
addq %rdx, %rax
addq $0xc, %rax
movzwl (%rbx,%r15), %edx
imull -0xc(%rax,%r15,2), %edx
shll %cl, %edx
movw %dx, (%rbx,%r15)
movzwl 0x2(%rbx,%r15), %edx
imull -0x8(%rax,%r15,2), %edx
shll %cl, %edx
movw %dx, 0x2(%rbx,%r15)
movzwl 0x4(%rbx,%r15), %edx
imull -0x4(%rax,%r15,2), %edx
shll %cl, %edx
movw %dx, 0x4(%rbx,%r15)
movzwl 0x6(%rbx,%r15), %edx
imull (%rax,%r15,2), %edx
shll %cl, %edx
movw %dx, 0x6(%rbx,%r15)
addq $0x8, %r15
cmpq $0x20, %r15
jne 0x68d6
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/macroblock.c
// Function: x264_mb_partition_set(x264_macroblock_t*, int, int, int, int, int, int)
void x264_mb_partition_set(x264_macroblock_t *mb, int i_list, int i_part, int i_sub, int i_ref, int mx, int my) {LOG_CALL;
    int x, y;
    int w, h;
    int dx, dy;

    x264_mb_partition_getxy(mb, i_part, i_sub, &x, &y);
    x264_mb_partition_size(mb, i_part, i_sub, &w, &h);

    for (dx = 0; dx < w; dx++)
    {
        for (dy = 0; dy < h; dy++)
        {
            mb->partition[x + dx][y + dy].i_ref[i_list] = i_ref;
            mb->partition[x + dx][y + dy].mv[i_list][0] = mx;
            mb->partition[x + dx][y + dy].mv[i_list][1] = my;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %ebx
movl %r8d, %r14d
movl %ecx, %r13d
movl %edx, %r12d
movl %esi, -0x2c(%rbp)
movq %rdi, %r15
leaq 0x20855(%rip), %rdi     # 0x271b4
leaq 0x20eca(%rip), %rsi     # 0x27830
leaq 0x20f68(%rip), %rdx     # 0x278d5
xorl %eax, %eax
callq 0x4a56
movl 0x1c(%r15), %eax
cmpl $0xd, %eax
je 0x69a8
movl $0x4, %edx
cmpl $0xf, %eax
je 0x6999
cmpl $0xe, %eax
jne 0x69ea
addl %r12d, %r12d
movl $0x2, %edx
movl %r12d, %eax
jmp 0x69ec
addl %r12d, %r12d
movl $0x2, %ecx
xorl %eax, %eax
jmp 0x6a58
movl %r12d, %eax
shrl $0x1f, %eax
addl %r12d, %eax
andl $-0x2, %eax
movslq %r12d, %rcx
subl %eax, %r12d
addl %r12d, %r12d
movl 0x20(%r15,%rcx,4), %ecx
cmpl $0xa, %ecx
ja 0x6a13
movl $0x111, %edx            # imm = 0x111
btl %ecx, %edx
jb 0x69f6
movl $0x222, %edx            # imm = 0x222
btl %ecx, %edx
jb 0x6a10
movl $0x444, %edx            # imm = 0x444
btl %ecx, %edx
jae 0x6a13
addl %r13d, %r12d
jmp 0x6a13
xorl %eax, %eax
movl $0x4, %ecx
xorl %r12d, %r12d
jmp 0x6a58
movl %r13d, %edx
shrl $0x1f, %edx
addl %r13d, %edx
movl %edx, %esi
andl $-0x2, %esi
subl %esi, %r13d
addl %r13d, %r12d
sarl %edx
addl %edx, %eax
jmp 0x6a13
addl %r13d, %eax
cmpl $0xa, %ecx
ja 0x6a4e
movl $0x1, %edx
movl $0x111, %esi            # imm = 0x111
btl %ecx, %esi
jb 0x6a40
movl $0x222, %esi            # imm = 0x222
btl %ecx, %esi
jb 0x6a47
movl $0x444, %edx            # imm = 0x444
btl %ecx, %edx
jae 0x6a4e
movl $0x2, %edx
movl $0x1, %ecx
jmp 0x6a58
movl $0x2, %ecx
jmp 0x6a58
movl $0x2, %ecx
movl $0x2, %edx
movl 0x10(%rbp), %esi
movslq -0x2c(%rbp), %rdi
cltq
movslq %r12d, %r8
leaq (%r8,%r8,4), %r8
shlq $0x5, %r8
leaq (%rax,%rax,4), %rax
leaq (%r8,%rax,8), %r8
leaq (%r8,%rdi,8), %rax
addq %r15, %rax
addq $0x3c, %rax
leaq (%r8,%rdi,4), %rdi
addq %r15, %rdi
addq $0x30, %rdi
shll $0x3, %edx
leaq (%rdx,%rdx,4), %rdx
xorl %r8d, %r8d
movl $0xa0, %r9d
xorl %r10d, %r10d
movl %r14d, (%rdi,%r10)
movl %ebx, -0x4(%rax,%r10)
movl %esi, (%rax,%r10)
addq $0x28, %r10
cmpq %r10, %rdx
jne 0x6a9d
incq %r8
addq %r9, %rax
addq %r9, %rdi
cmpq %rcx, %r8
jne 0x6a9a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/macroblock.c
// Function: x264_mb_partition_get(x264_macroblock_t*, int, int, int, int*, int*, int*)
void x264_mb_partition_get(x264_macroblock_t *mb, int i_list, int i_part, int i_sub, int *pi_ref, int *pi_mx, int *pi_my) {LOG_CALL;
    int x, y;

    x264_mb_partition_getxy(mb, i_part, i_sub, &x, &y);

    if (pi_ref)
    {
        *pi_ref = mb->partition[x][y].i_ref[i_list];
    }
    if (pi_mx && pi_my)
    {
        *pi_mx = mb->partition[x][y].mv[i_list][0];
        *pi_my = mb->partition[x][y].mv[i_list][1];
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %r15
movq %r8, -0x38(%rbp)
movl %ecx, %ebx
movl %edx, %r13d
movl %esi, -0x2c(%rbp)
movq %rdi, %r14
leaq 0x206ba(%rip), %rdi     # 0x271b4
leaq 0x20d2f(%rip), %rsi     # 0x27830
leaq 0x20de3(%rip), %rdx     # 0x278eb
xorl %r12d, %r12d
xorl %eax, %eax
callq 0x4a56
movl 0x1c(%r14), %eax
cmpl $0xd, %eax
je 0x6b3c
cmpl $0xf, %eax
je 0x6b37
cmpl $0xe, %eax
movq -0x38(%rbp), %r9
movl -0x2c(%rbp), %ecx
jne 0x6b32
movl %r13d, %r12d
addl %r13d, %r12d
xorl %r13d, %r13d
jmp 0x6ba2
addl %r13d, %r13d
jmp 0x6b9b
movl %r13d, %r12d
shrl $0x1f, %r12d
addl %r13d, %r12d
andl $-0x2, %r12d
movslq %r13d, %rax
subl %r12d, %r13d
addl %r13d, %r13d
movl 0x20(%r14,%rax,4), %eax
cmpl $0xa, %eax
ja 0x6b9b
movl $0x111, %ecx            # imm = 0x111
btl %eax, %ecx
jb 0x6b80
movl $0x222, %ecx            # imm = 0x222
btl %eax, %ecx
jb 0x6b98
movl $0x444, %ecx            # imm = 0x444
btl %eax, %ecx
jae 0x6b9b
addl %ebx, %r13d
jmp 0x6b9b
movl %ebx, %eax
shrl $0x1f, %eax
addl %ebx, %eax
movl %eax, %ecx
andl $-0x2, %ecx
subl %ecx, %ebx
addl %ebx, %r13d
sarl %eax
addl %eax, %r12d
jmp 0x6b9b
addl %ebx, %r12d
movq -0x38(%rbp), %r9
movl -0x2c(%rbp), %ecx
movq 0x10(%rbp), %rax
movslq %r13d, %rsi
movslq %r12d, %rdx
movslq %ecx, %rcx
testq %r9, %r9
je 0x6bce
leaq (%rsi,%rsi,4), %rdi
shlq $0x5, %rdi
addq %r14, %rdi
leaq (%rdx,%rdx,4), %r8
leaq (%rdi,%r8,8), %rdi
movl 0x30(%rdi,%rcx,4), %edi
movl %edi, (%r9)
testq %r15, %r15
sete %dil
testq %rax, %rax
sete %r8b
orb %dil, %r8b
jne 0x6c01
leaq (%rsi,%rsi,4), %rsi
shlq $0x5, %rsi
addq %rsi, %r14
leaq (%rdx,%rdx,4), %rdx
leaq (%r14,%rdx,8), %rdx
movl 0x38(%rdx,%rcx,8), %esi
movl %esi, (%r15)
movl 0x3c(%rdx,%rcx,8), %ecx
movl %ecx, (%rax)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/macroblock.c
// Function: x264_mb_predict_mv_pskip(x264_macroblock_t*, int*)
void x264_mb_predict_mv_pskip(x264_macroblock_t *mb, int mv[2]) {LOG_CALL;
    int x, y, xn, yn;

    int i_refa = -1;
    int i_refb = -1;

    int mvxa = 0, mvxb = 0;
    int mvya = 0, mvyb = 0;

    x264_macroblock_t *mbn;


    x264_mb_partition_getxy(mb, 0, 0, &x, &y);

    /* Left  pixel (-1,0)*/
    xn = x - 1;
    mbn = mb;
    if (xn < 0)
    {
        xn += 4;
        mbn = mb->context->mba;
    }
    if (mbn)
    {
        i_refa = -2;
        if (!IS_INTRA(mbn->i_type) && mbn->partition[xn][y].i_ref[0] != -1)
        {
            i_refa = mbn->partition[xn][y].i_ref[0];
            mvxa = mbn->partition[xn][y].mv[0][0];
            mvya = mbn->partition[xn][y].mv[0][1];
        }
    }

    /* Up ( pixel(0,-1)*/
    yn = y - 1;
    mbn = mb;
    if (yn < 0)
    {
        yn += 4;
        mbn = mb->context->mbb;
    }
    if (mbn)
    {
        i_refb = -2;
        if (!IS_INTRA(mbn->i_type) && mbn->partition[x][yn].i_ref[0] != -1)
        {
            i_refb = mbn->partition[x][yn].i_ref[0];
            mvxb = mbn->partition[x][yn].mv[0][0];
            mvyb = mbn->partition[x][yn].mv[0][1];
        }
    }

    if (i_refa == -1 || i_refb == -1 ||
            (i_refa == 0 && mvxa == 0 && mvya == 0) ||
            (i_refb == 0 && mvxb == 0 && mvyb == 0))
    {
        mv[0] = 0;
        mv[1] = 0;
    } else
    {
        x264_mb_predict_mv(mb, 0, 0, 0, mv);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x20080(%rip), %rdi     # 0x271b4
leaq 0x206f5(%rip), %rsi     # 0x27830
leaq 0x207d2(%rip), %rdx     # 0x27914
xorl %eax, %eax
callq 0x4a56
movq 0x10(%r14), %rsi
movq (%rsi), %rdi
movb $0x1, %al
testq %rdi, %rdi
je 0x718a
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
cmpl $0x2, 0x18(%rdi)
jb 0x718f
movl 0x210(%rdi), %r8d
movb $0x1, %dl
cmpl $-0x1, %r8d
je 0x7191
cmpl $0x0, 0x218(%rdi)
sete %al
cmpl $0x0, 0x21c(%rdi)
sete %dl
movl %r8d, %ecx
jmp 0x7191
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movb $0x1, %dl
movq 0x8(%rsi), %rsi
testq %rsi, %rsi
je 0x71d4
cmpl $0x2, 0x18(%rsi)
jb 0x71bd
movl 0xa8(%rsi), %edi
cmpl $-0x1, %edi
je 0x71bd
orl 0xb0(%rsi), %edi
orl 0xb4(%rsi), %edi
sete %sil
jmp 0x71bf
xorl %esi, %esi
cmpl $-0x1, %ecx
je 0x71d4
testl %ecx, %ecx
sete %cl
andb %dl, %al
andb %cl, %al
orb %sil, %al
testb $0x1, %al
je 0x71e0
movq $0x0, (%rbx)
popq %rbx
popq %r14
popq %rbp
retq
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %rbx, %r8
popq %rbx
popq %r14
popq %rbp
jmp 0x6c10
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/mc.c
// Function: motion_compensation_chroma(unsigned char*, int, unsigned char*, int, int, int, int, int)
static void motion_compensation_chroma( uint8_t *src, int i_src_stride,
                                        uint8_t *dst, int i_dst_stride,
                                        int mvx, int mvy,
                                        int i_width, int i_height )
{
    uint8_t *srcp;
    int x, y;

    const int d8x = mvx&0x07;
    const int d8y = mvy&0x07;

    const int cA = (8-d8x)*(8-d8y);
    const int cB = d8x    *(8-d8y);
    const int cC = (8-d8x)*d8y;
    const int cD = d8x    *d8y;

    src  += (mvy >> 3) * i_src_stride + (mvx >> 3);
    srcp = &src[i_src_stride];

    for( y = 0; y < i_height; y++ )
    {
        for( x = 0; x < i_width; x++ )
        {
            dst[x] = ( cA*src[x]  + cB*src[x+1] +
                       cC*srcp[x] + cD*srcp[x+1] + 32 ) >> 6;
        }
        dst  += i_dst_stride;

        src   = srcp;
        srcp += i_src_stride;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
cmpl $0x0, 0x18(%rbp)
jle 0x8709
movslq %esi, %rsi
movl %r9d, %r11d
sarl $0x3, %r11d
movl %esi, %ebx
imull %r11d, %ebx
movl %r8d, %r11d
sarl $0x3, %r11d
addl %ebx, %r11d
movslq %r11d, %r12
leaq (%rdi,%r12), %r11
andl $0x7, %r9d
movl $0x8, %ebx
movl $0x8, %r15d
subl %r9d, %r15d
andl $0x7, %r8d
subl %r8d, %ebx
movl %ebx, %r14d
imull %r9d, %r14d
imull %r8d, %r9d
imull %r15d, %ebx
imull %r15d, %r8d
movslq %ecx, %rax
movq %rax, -0x30(%rbp)
movl 0x10(%rbp), %r15d
addq %rsi, %r12
addq %r12, %rdi
incq %rdi
xorl %r12d, %r12d
cmpl $0x0, 0x10(%rbp)
jle 0x86f6
xorl %r13d, %r13d
movzbl (%r11,%r13), %eax
imull %ebx, %eax
movzbl 0x1(%r11,%r13), %r10d
imull %r8d, %r10d
addl %eax, %r10d
movzbl -0x1(%rdi,%r13), %eax
imull %r14d, %eax
movzbl (%rdi,%r13), %ecx
imull %r9d, %ecx
addl %eax, %ecx
leal (%r10,%rcx), %eax
addl $0x20, %eax
shrl $0x6, %eax
movb %al, (%rdx,%r13)
leaq 0x1(%r13), %rax
movq %rax, %r13
cmpq %rax, %r15
jne 0x86b2
addq %rsi, %r11
addq -0x30(%rbp), %rdx
incl %r12d
addq %rsi, %rdi
cmpl 0x18(%rbp), %r12d
jne 0x86a9
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/mc.c
// Function: mc_copy(unsigned char*, int, unsigned char*, int, int, int)
static void mc_copy( uint8_t *src, int i_src_stride, uint8_t *dst, int i_dst_stride, int i_width, int i_height )
{
    int y;

    for( y = 0; y < i_height; y++ )
    {
        memcpy( dst, src, i_width );

        src += i_src_stride;
        dst += i_dst_stride;
    }
}

// Assembly:
testl %r9d, %r9d
jle 0x8764
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %ebx
movq %rdx, %r14
movq %rdi, %r15
movslq %r8d, %rax
movq %rax, -0x30(%rbp)
movslq %esi, %r13
movslq %ecx, %r12
movq %r14, %rdi
movq %r15, %rsi
movq -0x30(%rbp), %rdx
callq 0x20a0
addq %r13, %r15
addq %r12, %r14
decl %ebx
jne 0x873d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/mc.c
// Function: mc_xy30(unsigned char*, int, unsigned char*, int, int, int)
static inline void mc_hh( uint8_t *src, int i_src_stride, uint8_t *dst, int i_dst_stride, int i_width, int i_height )
{
    int x, y;

    for( y = 0; y < i_height; y++ )
    {
        for( x = 0; x < i_width; x++ )
        {
            dst[x] = x264_mc_clip1( ( x264_tapfilter1( &src[x] ) + 16 ) >> 5 );
        }
        src += i_src_stride;
        dst += i_dst_stride;
    }
}

// Assembly:
testl %r9d, %r9d
jle 0x8a41
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl %ecx, -0x2c(%rbp)
movslq %esi, %r12
movslq %r8d, %r13
movl %r13d, %r10d
leaq -0x140(%rbp), %r11
xorl %ebx, %ebx
leaq 0x1f494(%rip), %r14     # 0x27df0
movq %rdi, %r15
movl %r8d, -0x34(%rbp)
movl %r9d, -0x30(%rbp)
movq %r13, %rsi
movq %r12, %rcx
testl %r8d, %r8d
jle 0x89cd
xorl %r12d, %r12d
movzbl -0x2(%r15,%r12), %r13d
movzbl -0x1(%r15,%r12), %eax
movzbl (%r15,%r12), %r8d
movzbl 0x1(%r15,%r12), %r9d
addl %r8d, %r9d
leal (%r9,%r9,4), %r8d
movzbl 0x2(%r15,%r12), %r9d
addl %eax, %r9d
movzbl 0x3(%r15,%r12), %eax
leal (%r9,%r9,4), %r9d
leal (%r13,%r8,4), %r8d
addl %eax, %r8d
subl %r9d, %r8d
addl $0x10, %r8d
sarl $0x5, %r8d
addl $0x50, %r8d
movb (%r8,%r14), %al
movb %al, (%r11,%r12)
incq %r12
cmpq %r12, %r10
jne 0x8975
movq %rcx, %r12
addq %rcx, %r15
movq %rsi, %r13
addq %rsi, %r11
incl %ebx
movl -0x30(%rbp), %r9d
cmpl %r9d, %ebx
movl -0x34(%rbp), %r8d
jne 0x8967
incq %rdi
movslq -0x2c(%rbp), %rsi
leaq -0x140(%rbp), %r11
xorl %ebx, %ebx
testl %r8d, %r8d
jle 0x8a20
xorl %r14d, %r14d
movzbl (%rdi,%r14), %eax
movzbl (%r11,%r14), %ecx
addl %ecx, %eax
incl %eax
shrl %eax
movb %al, (%rdx,%r14)
incq %r14
cmpq %r14, %r10
jne 0x8a04
addq %rsi, %rdx
addq %r12, %rdi
addq %r13, %r11
incl %ebx
cmpl %r9d, %ebx
jne 0x89fc
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/mc.c
// Function: mc_xy21(unsigned char*, int, unsigned char*, int, int, int)
static void mc_xy21( uint8_t *src, int i_src_stride, uint8_t *dst, int i_dst_stride, int i_width, int i_height )
{
    uint8_t tmp1[16*16];
    uint8_t tmp2[16*16];

    mc_hc( src, i_src_stride, tmp1, i_width, i_width, i_height );
    mc_hh( src, i_src_stride, tmp2, i_width, i_width, i_height );
    pixel_avg( dst, i_dst_stride, tmp1, i_width, tmp2, i_width, i_width, i_height );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movl %r9d, %ebx
movl %r8d, %r14d
movl %ecx, -0x30(%rbp)
movq %rdx, %r15
movq %rdi, %r13
leaq -0x240(%rbp), %r12
movl %esi, -0x2c(%rbp)
movq %r12, %rdx
movl %r8d, %ecx
callq 0x92ef
testl %ebx, %ebx
jle 0x8e85
movslq -0x2c(%rbp), %rax
movq %rax, -0x38(%rbp)
movslq %r14d, %rax
movl %r14d, -0x2c(%rbp)
movl %r14d, %ecx
leaq -0x140(%rbp), %rsi
xorl %edi, %edi
leaq 0x1f020(%rip), %r8      # 0x27df0
movl %ebx, %r14d
cmpl $0x0, -0x2c(%rbp)
jle 0x8e2d
xorl %r9d, %r9d
movzbl -0x2(%r13,%r9), %r10d
movzbl -0x1(%r13,%r9), %r11d
movzbl (%r13,%r9), %edx
movzbl 0x1(%r13,%r9), %ebx
addl %edx, %ebx
leal (%rbx,%rbx,4), %edx
movzbl 0x2(%r13,%r9), %ebx
addl %r11d, %ebx
movzbl 0x3(%r13,%r9), %r11d
leal (%rbx,%rbx,4), %ebx
leal (%r10,%rdx,4), %edx
addl %r11d, %edx
subl %ebx, %edx
addl $0x10, %edx
sarl $0x5, %edx
addl $0x50, %edx
movb (%rdx,%r8), %dl
movb %dl, (%rsi,%r9)
incq %r9
cmpq %r9, %rcx
jne 0x8ddc
addq -0x38(%rbp), %r13
addq %rax, %rsi
incl %edi
movl %r14d, %ebx
cmpl %r14d, %edi
jne 0x8dd0
movslq -0x30(%rbp), %rdx
leaq -0x140(%rbp), %rsi
xorl %edi, %edi
movl -0x2c(%rbp), %r11d
testl %r11d, %r11d
jle 0x8e76
xorl %r8d, %r8d
movzbl (%r12,%r8), %r9d
movzbl (%rsi,%r8), %r10d
addl %r10d, %r9d
incl %r9d
shrl %r9d
movb %r9b, (%r15,%r8)
incq %r8
cmpq %r8, %rcx
jne 0x8e57
addq %rdx, %r15
addq %rax, %r12
addq %rax, %rsi
incl %edi
cmpl %ebx, %edi
jne 0x8e4f
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/mc.c
// Function: mc_xy12(unsigned char*, int, unsigned char*, int, int, int)
static void mc_xy12( uint8_t *src, int i_src_stride, uint8_t *dst, int i_dst_stride, int i_width, int i_height )
{
    uint8_t tmp1[16*16];
    uint8_t tmp2[16*16];

    mc_hc( src, i_src_stride, tmp1, i_width, i_width, i_height );
    mc_hv( src, i_src_stride, tmp2, i_width, i_width, i_height );
    pixel_avg( dst, i_dst_stride, tmp1, i_width, tmp2, i_width, i_width, i_height );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movl %r9d, %ebx
movl %r8d, %r14d
movl %ecx, -0x2c(%rbp)
movq %rdx, -0x48(%rbp)
movq %rdi, %r13
leaq -0x260(%rbp), %r12
movq %rsi, %r15
movq %r12, %rdx
movl %r8d, %ecx
callq 0x92ef
testl %ebx, %ebx
jle 0x92dd
leal (%r15,%r15), %eax
movslq %eax, %rdx
negl %eax
movslq %eax, %rsi
movl %r15d, %eax
negl %eax
movslq %eax, %rdi
movslq %r15d, %r8
leal (%r15,%r15,2), %eax
movslq %eax, %r9
movslq %r14d, %rax
movq %rax, -0x40(%rbp)
movl %r14d, %ecx
addq %r13, %r9
addq %r13, %rdx
movq %r8, -0x50(%rbp)
leaq (%r8,%r13), %r10
addq %r13, %rdi
addq %r13, %rsi
leaq -0x160(%rbp), %r11
xorl %r8d, %r8d
movl %ebx, -0x34(%rbp)
movl %r14d, -0x30(%rbp)
leaq 0x1ebea(%rip), %r15     # 0x27df0
movq %r8, -0x58(%rbp)
testl %r14d, %r14d
jle 0x9262
xorl %eax, %eax
movzbl (%rdi,%rax), %r8d
movzbl (%r13,%rax), %ebx
movzbl (%r10,%rax), %r14d
addl %ebx, %r14d
movzbl (%rdx,%rax), %ebx
addl %r8d, %ebx
movzbl (%rsi,%rax), %r8d
leal (%r14,%r14,4), %r14d
leal (%r8,%r14,4), %r8d
movzbl (%r9,%rax), %r14d
addl %r14d, %r8d
leal (%rbx,%rbx,4), %ebx
subl %ebx, %r8d
addl $0x10, %r8d
sarl $0x5, %r8d
addl $0x50, %r8d
movb (%r8,%r15), %r8b
movb %r8b, (%r11,%rax)
incq %rax
cmpq %rax, %rcx
jne 0x9211
movq -0x50(%rbp), %rax
addq %rax, %r13
addq -0x40(%rbp), %r11
movq -0x58(%rbp), %r8
incl %r8d
addq %rax, %r9
addq %rax, %rdx
addq %rax, %r10
addq %rax, %rdi
addq %rax, %rsi
movl -0x34(%rbp), %ebx
cmpl %ebx, %r8d
movl -0x30(%rbp), %r14d
jne 0x9206
movslq -0x2c(%rbp), %rdx
leaq -0x160(%rbp), %rsi
xorl %edi, %edi
movq -0x48(%rbp), %r10
testl %r14d, %r14d
jle 0x92ca
xorl %eax, %eax
movzbl (%r12,%rax), %r8d
movzbl (%rsi,%rax), %r9d
addl %r9d, %r8d
incl %r8d
shrl %r8d
movb %r8b, (%r10,%rax)
incq %rax
cmpq %rax, %rcx
jne 0x92ab
addq %rdx, %r10
movq -0x40(%rbp), %rax
addq %rax, %r12
addq %rax, %rsi
incl %edi
cmpl %ebx, %edi
jne 0x92a4
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/mc.c
// Function: mc_xy32(unsigned char*, int, unsigned char*, int, int, int)
static void mc_xy32( uint8_t *src, int i_src_stride, uint8_t *dst, int i_dst_stride, int i_width, int i_height )
{
    uint8_t tmp1[16*16];
    uint8_t tmp2[16*16];

    mc_hc( src,   i_src_stride, tmp1, i_width, i_width, i_height );
    mc_hv( src+1, i_src_stride, tmp2, i_width, i_width, i_height );
    pixel_avg( dst, i_dst_stride, tmp1, i_width, tmp2, i_width, i_width, i_height );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movl %r9d, %ebx
movl %r8d, %r14d
movl %ecx, -0x2c(%rbp)
movq %rdx, -0x48(%rbp)
movq %rdi, %r13
leaq -0x260(%rbp), %r12
movq %rsi, %r15
movq %r12, %rdx
movl %r8d, %ecx
callq 0x92ef
testl %ebx, %ebx
jle 0x96ad
leaq 0x1(%r13), %rdx
leal (%r15,%r15), %eax
movslq %eax, %r8
negl %eax
cltq
movslq %r15d, %rsi
leal (%r15,%r15,2), %ecx
movslq %ecx, %rdi
movslq %r14d, %rcx
movq %rcx, -0x40(%rbp)
movl %r14d, %ecx
leaq 0x1(%r13,%rdi), %rdi
leaq 0x1(%r13,%r8), %r8
leaq (%rsi,%r13), %r9
incq %r9
leaq (%rax,%r13), %r10
incq %r10
movq %rsi, -0x50(%rbp)
subq %rsi, %r13
incq %r13
leaq -0x160(%rbp), %r11
xorl %esi, %esi
movl %ebx, -0x34(%rbp)
movl %r14d, -0x30(%rbp)
leaq 0x1e813(%rip), %r15     # 0x27df0
movq %rsi, -0x58(%rbp)
testl %r14d, %r14d
jle 0x9634
xorl %eax, %eax
movzbl (%r13,%rax), %esi
movzbl (%rdx,%rax), %ebx
movzbl (%r9,%rax), %r14d
addl %ebx, %r14d
movzbl (%r8,%rax), %ebx
addl %esi, %ebx
movzbl (%r10,%rax), %esi
leal (%r14,%r14,4), %r14d
leal (%rsi,%r14,4), %esi
movzbl (%rdi,%rax), %r14d
addl %r14d, %esi
leal (%rbx,%rbx,4), %ebx
subl %ebx, %esi
addl $0x10, %esi
sarl $0x5, %esi
addl $0x50, %esi
movb (%rsi,%r15), %sil
movb %sil, (%r11,%rax)
incq %rax
cmpq %rax, %rcx
jne 0x95e8
movq -0x50(%rbp), %rax
addq %rax, %rdx
addq -0x40(%rbp), %r11
movq -0x58(%rbp), %rsi
incl %esi
addq %rax, %rdi
addq %rax, %r8
addq %rax, %r9
addq %rax, %r13
addq %rax, %r10
movl -0x34(%rbp), %ebx
cmpl %ebx, %esi
movl -0x30(%rbp), %r14d
jne 0x95dd
movslq -0x2c(%rbp), %rdx
leaq -0x160(%rbp), %rsi
xorl %edi, %edi
movq -0x48(%rbp), %r10
testl %r14d, %r14d
jle 0x969a
xorl %eax, %eax
movzbl (%r12,%rax), %r8d
movzbl (%rsi,%rax), %r9d
addl %r9d, %r8d
incl %r8d
shrl %r8d
movb %r8b, (%r10,%rax)
incq %rax
cmpq %rax, %rcx
jne 0x967b
addq %rdx, %r10
movq -0x40(%rbp), %rax
addq %rax, %r12
addq %rax, %rsi
incl %edi
cmpl %ebx, %edi
jne 0x9674
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/mc.c
// Function: mc_xy23(unsigned char*, int, unsigned char*, int, int, int)
static void mc_xy23( uint8_t *src, int i_src_stride, uint8_t *dst, int i_dst_stride, int i_width, int i_height )
{
    uint8_t tmp1[16*16];
    uint8_t tmp2[16*16];

    mc_hc( src,              i_src_stride, tmp1, i_width, i_width, i_height );
    mc_hh( src+i_src_stride, i_src_stride, tmp2, i_width, i_width, i_height );
    pixel_avg( dst, i_dst_stride, tmp1, i_width, tmp2, i_width, i_width, i_height );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movl %r9d, %ebx
movl %r8d, %r14d
movl %ecx, -0x30(%rbp)
movq %rdx, %r15
movq %rdi, %r13
leaq -0x240(%rbp), %r12
movl %esi, -0x2c(%rbp)
movq %r12, %rdx
movl %r8d, %ecx
callq 0x92ef
testl %ebx, %ebx
jle 0x9b0d
movslq -0x2c(%rbp), %rdx
movslq %r14d, %rax
movl %r14d, -0x2c(%rbp)
movl %r14d, %ecx
movq %rdx, -0x38(%rbp)
addq %rdx, %r13
leaq -0x140(%rbp), %rsi
xorl %edi, %edi
leaq 0x1e398(%rip), %r8      # 0x27df0
movl %ebx, %r14d
cmpl $0x0, -0x2c(%rbp)
jle 0x9ab5
xorl %r9d, %r9d
movzbl -0x2(%r13,%r9), %r10d
movzbl -0x1(%r13,%r9), %r11d
movzbl (%r13,%r9), %edx
movzbl 0x1(%r13,%r9), %ebx
addl %edx, %ebx
leal (%rbx,%rbx,4), %edx
movzbl 0x2(%r13,%r9), %ebx
addl %r11d, %ebx
movzbl 0x3(%r13,%r9), %r11d
leal (%rbx,%rbx,4), %ebx
leal (%r10,%rdx,4), %edx
addl %r11d, %edx
subl %ebx, %edx
addl $0x10, %edx
sarl $0x5, %edx
addl $0x50, %edx
movb (%rdx,%r8), %dl
movb %dl, (%rsi,%r9)
incq %r9
cmpq %r9, %rcx
jne 0x9a64
addq %rax, %rsi
incl %edi
addq -0x38(%rbp), %r13
movl %r14d, %ebx
cmpl %r14d, %edi
jne 0x9a58
movslq -0x30(%rbp), %rdx
leaq -0x140(%rbp), %rsi
xorl %edi, %edi
movl -0x2c(%rbp), %r11d
testl %r11d, %r11d
jle 0x9afe
xorl %r8d, %r8d
movzbl (%r12,%r8), %r9d
movzbl (%rsi,%r8), %r10d
addl %r10d, %r9d
incl %r9d
shrl %r9d
movb %r9b, (%r15,%r8)
incq %r8
cmpq %r8, %rcx
jne 0x9adf
addq %rdx, %r15
addq %rax, %r12
addq %rax, %rsi
incl %edi
cmpl %ebx, %edi
jne 0x9ad7
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/pixel.c
// Function: pixel_sub_4x4(short (*) [4], unsigned char*, int, unsigned char*, int)
static void pixel_sub_4x4( int16_t diff[4][4], uint8_t *pix1, int i_pix1, uint8_t *pix2, int i_pix2 )
{
    int y, x;
    for( y = 0; y < 4; y++ )
    {
        for( x = 0; x < 4; x++ )
        {
            diff[y][x] = pix1[x] - pix2[x];
        }
        pix1 += i_pix1;
        pix2 += i_pix2;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq %edx, %rax
movslq %r8d, %rdx
xorl %r8d, %r8d
xorl %r9d, %r9d
movzbl (%rsi,%r9), %r10d
movzbl (%rcx,%r9), %r11d
subl %r11d, %r10d
movw %r10w, (%rdi,%r9,2)
incq %r9
cmpq $0x4, %r9
jne 0xa2f1
addq %rax, %rsi
addq %rdx, %rcx
incq %r8
addq $0x8, %rdi
cmpq $0x4, %r8
jne 0xa2ee
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/pixel.c
// Function: pixel_sub_8x8(short (*) [4][4], unsigned char*, int, unsigned char*, int)
static void pixel_sub_8x8( int16_t diff[4][4][4], uint8_t *pix1, int i_pix1, uint8_t *pix2, int i_pix2 )
{
    pixel_sub_4x4( diff[0], &pix1[0],          i_pix1, &pix2[0],          i_pix2 );
    pixel_sub_4x4( diff[1], &pix1[4],          i_pix1, &pix2[4],          i_pix2 );
    pixel_sub_4x4( diff[2], &pix1[4*i_pix1],   i_pix1, &pix2[4*i_pix2],   i_pix2 );
    pixel_sub_4x4( diff[3], &pix1[4*i_pix1+4], i_pix1, &pix2[4*i_pix2+4], i_pix2 );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movslq %edx, %rax
movslq %r8d, %r9
xorl %r10d, %r10d
movq %rdi, %r11
movq %rsi, %rbx
movq %rcx, %r14
xorl %r15d, %r15d
movzbl (%rbx,%r15), %r12d
movzbl (%r14,%r15), %r13d
subl %r13d, %r12d
movw %r12w, (%r11,%r15,2)
incq %r15
cmpq $0x4, %r15
jne 0xa343
addq %rax, %rbx
addq %r9, %r14
incq %r10
addq $0x8, %r11
cmpq $0x4, %r10
jne 0xa340
leaq 0x20(%rdi), %r10
leaq 0x4(%rsi), %r11
leaq 0x4(%rcx), %rbx
xorl %r14d, %r14d
xorl %r15d, %r15d
movzbl (%r11,%r15), %r12d
movzbl (%rbx,%r15), %r13d
subl %r13d, %r12d
movw %r12w, (%r10,%r15,2)
incq %r15
cmpq $0x4, %r15
jne 0xa383
addq %rax, %r11
addq %r9, %rbx
incq %r14
addq $0x8, %r10
cmpq $0x4, %r14
jne 0xa380
leaq 0x40(%rdi), %r10
shll $0x2, %edx
movslq %edx, %rdx
addq %rdx, %rsi
shll $0x2, %r8d
movslq %r8d, %rdx
addq %rdx, %rcx
xorl %edx, %edx
movq %rsi, %r8
movq %rcx, %r11
xorl %ebx, %ebx
movzbl (%r8,%rbx), %r14d
movzbl (%r11,%rbx), %r15d
subl %r15d, %r14d
movw %r14w, (%r10,%rbx,2)
incq %rbx
cmpq $0x4, %rbx
jne 0xa3d2
addq %rax, %r8
addq %r9, %r11
incq %rdx
addq $0x8, %r10
cmpq $0x4, %rdx
jne 0xa3d0
addq $0x60, %rdi
addq $0x4, %rsi
addq $0x4, %rcx
xorl %edx, %edx
xorl %r8d, %r8d
movzbl (%rsi,%r8), %r10d
movzbl (%rcx,%r8), %r11d
subl %r11d, %r10d
movw %r10w, (%rdi,%r8,2)
incq %r8
cmpq $0x4, %r8
jne 0xa411
addq %rax, %rsi
addq %r9, %rcx
incq %rdx
addq $0x8, %rdi
cmpq $0x4, %rdx
jne 0xa40e
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/pixel.c
// Function: pixel_sub_16x16(short (*) [4][4], unsigned char*, int, unsigned char*, int)
static void pixel_sub_16x16( int16_t diff[16][4][4], uint8_t *pix1, int i_pix1, uint8_t *pix2, int i_pix2 )
{
    pixel_sub_8x8( &diff[ 0], &pix1[0],          i_pix1, &pix2[0],          i_pix2 );
    pixel_sub_8x8( &diff[ 4], &pix1[8],          i_pix1, &pix2[8],          i_pix2 );
    pixel_sub_8x8( &diff[ 8], &pix1[8*i_pix1],   i_pix1, &pix2[8*i_pix2],   i_pix2 );
    pixel_sub_8x8( &diff[12], &pix1[8*i_pix1+8], i_pix1, &pix2[8*i_pix2+8], i_pix2 );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %ebx
movq %rcx, %r15
movq %rcx, -0x30(%rbp)
movl %edx, %r14d
movq %rsi, %r13
movq %rdi, %r12
callq 0xa321
leaq 0x80(%r12), %rdi
leaq 0x8(%r13), %rsi
leaq 0x8(%r15), %rcx
movl %r14d, %edx
movl %ebx, %r8d
callq 0xa321
leaq 0x100(%r12), %rdi
leal (,%r14,8), %eax
cltq
movq %rax, -0x38(%rbp)
leaq (%r13,%rax), %rsi
leal (,%rbx,8), %eax
movslq %eax, %r15
movq -0x30(%rbp), %rax
leaq (%rax,%r15), %rcx
movl %r14d, %edx
movl %ebx, %r8d
callq 0xa321
addq $0x180, %r12            # imm = 0x180
movq -0x38(%rbp), %rax
leaq (%rax,%r13), %rsi
addq $0x8, %rsi
movq -0x30(%rbp), %rax
leaq 0x8(%rax,%r15), %rcx
movq %r12, %rdi
movl %r14d, %edx
movl %ebx, %r8d
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xa321
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/pixel.c
// Function: pixel_add_8x8(unsigned char*, int, short (*) [4][4])
static void pixel_add_8x8( uint8_t *dst, int i_dst, int16_t diff[4][4][4] )
{
    pixel_add_4x4( &dst[0],         i_dst, diff[0] );
    pixel_add_4x4( &dst[4],         i_dst, diff[1] );
    pixel_add_4x4( &dst[0+4*i_dst], i_dst, diff[2] );
    pixel_add_4x4( &dst[4+4*i_dst], i_dst, diff[3] );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
movslq %esi, %rax
xorl %ecx, %ecx
movl $0xff, %r8d
movq %rdx, %r9
xorl %r10d, %r10d
movq %rdi, %r11
xorl %ebx, %ebx
movzbl (%r11,%rbx), %r14d
movswl (%r9,%rbx,2), %r15d
addl %r14d, %r15d
cmpl %r8d, %r15d
movl $0xff, %r14d
cmovbl %r15d, %r14d
testl %r15d, %r15d
cmovsl %ecx, %r14d
movb %r14b, (%r11,%rbx)
incq %rbx
cmpq $0x4, %rbx
jne 0xa571
addq %rax, %r11
incq %r10
addq $0x8, %r9
cmpq $0x4, %r10
jne 0xa56f
leaq 0x4(%rdi), %rcx
leaq 0x20(%rdx), %r8
xorl %r9d, %r9d
movl $0xff, %r10d
xorl %r11d, %r11d
xorl %ebx, %ebx
movzbl (%rcx,%rbx), %r14d
movswl (%r8,%rbx,2), %r15d
addl %r14d, %r15d
cmpl %r10d, %r15d
movl $0xff, %r14d
cmovbl %r15d, %r14d
testl %r15d, %r15d
cmovsl %r9d, %r14d
movb %r14b, (%rcx,%rbx)
incq %rbx
cmpq $0x4, %rbx
jne 0xa5c5
addq %rax, %rcx
incq %r11
addq $0x8, %r8
cmpq $0x4, %r11
jne 0xa5c3
shll $0x2, %esi
movslq %esi, %rcx
addq %rcx, %rdi
leaq 0x40(%rdx), %rcx
xorl %esi, %esi
movl $0xff, %r8d
xorl %r9d, %r9d
movq %rdi, %r10
xorl %r11d, %r11d
movzbl (%r10,%r11), %ebx
movswl (%rcx,%r11,2), %r14d
addl %ebx, %r14d
cmpl %r8d, %r14d
movl $0xff, %ebx
cmovbl %r14d, %ebx
testl %r14d, %r14d
cmovsl %esi, %ebx
movb %bl, (%r10,%r11)
incq %r11
cmpq $0x4, %r11
jne 0xa621
addq %rax, %r10
incq %r9
addq $0x8, %rcx
cmpq $0x4, %r9
jne 0xa61e
addq $0x4, %rdi
addq $0x60, %rdx
xorl %ecx, %ecx
movl $0xff, %esi
xorl %r8d, %r8d
xorl %r9d, %r9d
movzbl (%rdi,%r9), %r10d
movswl (%rdx,%r9,2), %r11d
addl %r10d, %r11d
cmpl %esi, %r11d
movl $0xff, %r10d
cmovbl %r11d, %r10d
testl %r11d, %r11d
cmovsl %ecx, %r10d
movb %r10b, (%rdi,%r9)
incq %r9
cmpq $0x4, %r9
jne 0xa672
addq %rax, %rdi
incq %r8
addq $0x8, %rdx
cmpq $0x4, %r8
jne 0xa66f
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/pixel.c
// Function: pixel_add_16x16(unsigned char*, int, short (*) [4][4])
static void pixel_add_16x16( uint8_t *dst, int i_dst, int16_t diff[16][4][4] )
{
    pixel_add_8x8( &dst[0],         i_dst, &diff[ 0] );
    pixel_add_8x8( &dst[8],         i_dst, &diff[ 4] );
    pixel_add_8x8( &dst[0+8*i_dst], i_dst, &diff[ 8] );
    pixel_add_8x8( &dst[8+8*i_dst], i_dst, &diff[12] );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movl %esi, %r14d
movq %rdi, %r15
callq 0xa552
leaq 0x8(%r15), %rdi
leaq 0x80(%rbx), %rdx
movl %r14d, %esi
callq 0xa552
leal (,%r14,8), %eax
movslq %eax, %r12
leaq (%r15,%r12), %rdi
leaq 0x100(%rbx), %rdx
movl %r14d, %esi
callq 0xa552
leaq (%r15,%r12), %rdi
addq $0x8, %rdi
addq $0x180, %rbx            # imm = 0x180
movl %r14d, %esi
movq %rbx, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xa552
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/predict.c
// Function: x264_predict_16x16_init(int, void (**)(unsigned char*, int))
void x264_predict_16x16_init( int cpu, x264_predict_t pf[7] )
{
    pf[I_PRED_16x16_V ]     = predict_16x16_v;
    pf[I_PRED_16x16_H ]     = predict_16x16_h;
    pf[I_PRED_16x16_DC]     = predict_16x16_dc;
    pf[I_PRED_16x16_P ]     = predict_16x16_p;
    pf[I_PRED_16x16_DC_LEFT]= predict_16x16_dc_left;
    pf[I_PRED_16x16_DC_TOP ]= predict_16x16_dc_top;
    pf[I_PRED_16x16_DC_128 ]= predict_16x16_dc_128;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x47(%rip), %rax        # 0xa92e
movq %rax, (%rsi)
leaq 0x6d(%rip), %rax        # 0xa95e
movq %rax, 0x8(%rsi)
leaq 0x91(%rip), %rax        # 0xa98d
movq %rax, 0x10(%rsi)
leaq 0xe4(%rip), %rax        # 0xa9eb
movq %rax, 0x18(%rsi)
leaq 0x1db(%rip), %rax       # 0xaaed
movq %rax, 0x20(%rsi)
leaq 0x21e(%rip), %rax       # 0xab3b
movq %rax, 0x28(%rsi)
leaq 0x262(%rip), %rax       # 0xab8a
movq %rax, 0x30(%rsi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_16x16_v(unsigned char*, int)
static void predict_16x16_v( uint8_t *src, int i_stride )
{
    int i,j;

    for( i = 0; i < 16; i++ )
    {
        for( j = 0; j < 16; j++ )
        {
            src[i * i_stride +j] = src[j - i_stride];
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq %esi, %rax
movq %rdi, %rcx
subq %rax, %rcx
xorl %edx, %edx
xorl %esi, %esi
movb (%rcx,%rsi), %r8b
movb %r8b, (%rdi,%rsi)
incq %rsi
cmpq $0x10, %rsi
jne 0xa93f
incq %rdx
addq %rax, %rdi
cmpq $0x10, %rdx
jne 0xa93d
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_16x16_dc_left(unsigned char*, int)
static void predict_16x16_dc_left( uint8_t *src, int i_stride )
{
    int dc = 0;
    int i,j;

    for( i = 0; i < 16; i++ )
    {
        dc += src[-1 + i * i_stride];
    }
    dc = ( dc + 8 ) >> 4;

    for( i = 0; i < 16; i++ )
    {
        for( j = 0; j < 16; j++ )
        {
            src[j] = dc;
        }
        src += i_stride;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x1(%rdi), %rdx
movslq %esi, %rax
xorl %ecx, %ecx
movl $0x10, %esi
movzbl (%rdx), %r8d
addl %r8d, %ecx
addq %rax, %rdx
decq %rsi
jne 0xaaff
addl $0x8, %ecx
shrl $0x4, %ecx
movl $0x10, %edx
movzbl %cl, %ecx
movd %ecx, %xmm0
punpcklbw %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
pshuflw $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0,4,5,6,7]
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movdqu %xmm0, (%rdi)
addq %rax, %rdi
decl %edx
jne 0xab2e
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/predict.c
// Function: x264_predict_8x8_init(int, void (**)(unsigned char*, int))
void x264_predict_8x8_init( int cpu, x264_predict_t pf[7] )
{
    pf[I_PRED_CHROMA_V ]     = predict_8x8_v;
    pf[I_PRED_CHROMA_H ]     = predict_8x8_h;
    pf[I_PRED_CHROMA_DC]     = predict_8x8_dc;
    pf[I_PRED_CHROMA_P ]     = predict_8x8_p;
    pf[I_PRED_CHROMA_DC_LEFT]= predict_8x8_dc_left;
    pf[I_PRED_CHROMA_DC_TOP ]= predict_8x8_dc_top;
    pf[I_PRED_CHROMA_DC_128 ]= predict_8x8_dc_128;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x47(%rip), %rax        # 0xabfb
movq %rax, 0x10(%rsi)
leaq 0x6c(%rip), %rax        # 0xac2b
movq %rax, 0x8(%rsi)
leaq 0x8b(%rip), %rax        # 0xac55
movq %rax, (%rsi)
leaq 0x132(%rip), %rax       # 0xad06
movq %rax, 0x18(%rsi)
leaq 0x22d(%rip), %rax       # 0xae0c
movq %rax, 0x20(%rsi)
leaq 0x28b(%rip), %rax       # 0xae75
movq %rax, 0x28(%rsi)
leaq 0x2f1(%rip), %rax       # 0xaee6
movq %rax, 0x30(%rsi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_8x8_v(unsigned char*, int)
static void predict_8x8_v( uint8_t *src, int i_stride )
{
    int i,j;

    for( i = 0; i < 8; i++ )
    {
        for( j = 0; j < 8; j++ )
        {
            src[i * i_stride +j] = src[j - i_stride];
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq %esi, %rax
movq %rdi, %rcx
subq %rax, %rcx
xorl %edx, %edx
xorl %esi, %esi
movb (%rcx,%rsi), %r8b
movb %r8b, (%rdi,%rsi)
incq %rsi
cmpq $0x8, %rsi
jne 0xac0c
incq %rdx
addq %rax, %rdi
cmpq $0x8, %rdx
jne 0xac0a
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_8x8_dc(unsigned char*, int)
static void predict_8x8_dc( uint8_t *src, int i_stride )
{
    int x,y;
    int s0 = 0, s1 = 0, s2 = 0, s3 = 0;
    int dc0, dc1, dc2, dc3;
    int i;

    /* First do :
          s0 s1
       s2
       s3
    */
    for( i = 0; i < 4; i++ )
    {
        s0 += src[i - i_stride];
        s1 += src[i + 4 - i_stride];
        s2 += src[-1 + i * i_stride];
        s3 += src[-1 + (i+4)*i_stride];
    }
    /* now calculate
       dc0 dc1
       dc2 dc3
     */
    dc0 = ( s0 + s2 + 4 ) >> 3;
    dc1 = ( s1 + 2 ) >> 2;
    dc2 = ( s3 + 2 ) >> 2;
    dc3 = ( s1 + s3 + 4 ) >> 3;

    for( y = 0; y < 4; y++ )
    {
        for( x = 0; x < 4; x++ )
        {
            src[             x    ] = dc0;
            src[             x + 4] = dc1;
            src[4*i_stride + x    ] = dc2;
            src[4*i_stride + x + 4] = dc3;
        }
        src += i_stride;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
leaq -0x1(%rdi), %rcx
movslq %esi, %rax
movq %rdi, %r8
subq %rax, %r8
addq $0x4, %r8
xorl %r10d, %r10d
movq $-0x4, %r11
xorl %edx, %edx
xorl %ebx, %ebx
xorl %r9d, %r9d
movzbl (%r8,%r11), %r14d
addl %r14d, %r10d
movzbl 0x4(%r8,%r11), %r14d
addl %r14d, %r9d
movzbl (%rcx), %r14d
addl %r14d, %ebx
movzbl (%rcx,%rax,4), %r14d
addl %r14d, %edx
addq %rax, %rcx
incq %r11
jne 0xac7e
leal (%rbx,%r10), %ecx
addl $0x4, %ecx
shrl $0x3, %ecx
leal 0x2(%r9), %r8d
shrl $0x2, %r8d
leal 0x2(%rdx), %r10d
shrl $0x2, %r10d
addl %r9d, %edx
addl $0x4, %edx
shrl $0x3, %edx
shll $0x2, %esi
movslq %esi, %rsi
xorl %r9d, %r9d
leaq (%rdi,%rsi), %r11
movl $0x4, %ebx
movb %cl, -0x4(%rdi,%rbx)
movb %r8b, (%rdi,%rbx)
movb %r10b, -0x4(%r11,%rbx)
movb %dl, (%r11,%rbx)
incq %rbx
cmpq $0x8, %rbx
jne 0xacdb
addq %rax, %rdi
incl %r9d
cmpl $0x4, %r9d
jne 0xacd2
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_8x8_dc_left(unsigned char*, int)
static void predict_8x8_dc_left( uint8_t *src, int i_stride )
{
    int x,y;
    int dc0 = 0, dc1 = 0;

    for( y = 0; y < 4; y++ )
    {
        dc0 += src[y * i_stride     - 1];
        dc1 += src[(y+4) * i_stride - 1];
    }
    dc0 = ( dc0 + 2 ) >> 2;
    dc1 = ( dc1 + 2 ) >> 2;

    for( y = 0; y < 4; y++ )
    {
        for( x = 0; x < 8; x++ )
        {
            src[           x] = dc0;
            src[4*i_stride+x] = dc1;
        }
        src += i_stride;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x1(%rdi), %r8
movslq %esi, %rax
xorl %ecx, %ecx
movl $0x4, %r9d
xorl %edx, %edx
movzbl (%r8), %r10d
addl %r10d, %edx
movzbl (%r8,%rax,4), %r10d
addl %r10d, %ecx
addq %rax, %r8
decq %r9
jne 0xae21
addl $0x2, %edx
shrl $0x2, %edx
addl $0x2, %ecx
shrl $0x2, %ecx
shll $0x2, %esi
movslq %esi, %rsi
addq %rdi, %rsi
xorl %r8d, %r8d
xorl %r9d, %r9d
movb %dl, (%rdi,%r9)
movb %cl, (%rsi,%r9)
incq %r9
cmpq $0x8, %r9
jne 0xae53
addq %rax, %rdi
incl %r8d
addq %rax, %rsi
cmpl $0x4, %r8d
jne 0xae50
popq %rbp
retq