LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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, -0x38(%rbp)
movq %r8, %r15
movl %ecx, %r12d
movl %edx, %r13d
movl %esi, %ebx
movq %rdi, %r14
leaq 0x15787(%rip), %rdi     # 0x1b1b4
leaq 0x16164(%rip), %rsi     # 0x1bb98
leaq 0x16218(%rip), %rdx     # 0x1bc53
xorl %eax, %eax
callq 0x39ba
leaq -0x30(%rbp), %rcx
leaq -0x2c(%rbp), %r8
movq %r14, %rdi
movl %r13d, %esi
movl %r12d, %edx
callq 0x58f5
movslq %ebx, %rax
testq %r15, %r15
je 0x5a80
movslq -0x30(%rbp), %rcx
imulq $0xa0, %rcx, %rcx
addq %r14, %rcx
movslq -0x2c(%rbp), %rdx
imulq $0x28, %rdx, %rdx
addq %rcx, %rdx
movl 0x30(%rdx,%rax,4), %ecx
movl %ecx, (%r15)
movq -0x38(%rbp), %rsi
testq %rsi, %rsi
sete %cl
movq 0x10(%rbp), %rdi
testq %rdi, %rdi
sete %dl
orb %cl, %dl
jne 0x5abd
movslq -0x30(%rbp), %rcx
imulq $0xa0, %rcx, %rcx
addq %rcx, %r14
movslq -0x2c(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %r14, %rcx
movl 0x38(%rcx,%rax,8), %edx
movl %edx, (%rsi)
movl 0x3c(%rcx,%rax,8), %eax
movl %eax, (%rdi)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %r10d
movl %r8d, %r15d
andl $0x7, %r15d
movl %r9d, %r11d
andl $0x7, %r11d
movl $0x8, %ebx
movl %ebx, %r14d
subl %r15d, %r14d
subl %r11d, %ebx
sarl $0x3, %r9d
imull %esi, %r9d
sarl $0x3, %r8d
addl %r9d, %r8d
movslq %r8d, %r12
leaq (%rdi,%r12), %r9
movslq %esi, %rsi
movl %r14d, %r8d
imull %r11d, %r8d
imull %r15d, %r11d
imull %ebx, %r14d
imull %r15d, %ebx
movslq %ecx, %rcx
movq %rcx, -0x38(%rbp)
xorl %r15d, %r15d
testl %r10d, %r10d
cmovlel %r15d, %r10d
testl %eax, %eax
cmovlel %r15d, %eax
movl %eax, -0x2c(%rbp)
addq %rsi, %r12
addq %r12, %rdi
incq %rdi
cmpl -0x2c(%rbp), %r15d
je 0x73f8
movq %rsi, %r12
leaq (%r9,%rsi), %rax
movq %rax, -0x40(%rbp)
xorl %r13d, %r13d
cmpq %r13, %r10
je 0x73e5
movzbl (%r9,%r13), %eax
imull %r14d, %eax
movzbl 0x1(%r9,%r13), %ecx
imull %ebx, %ecx
addl %eax, %ecx
movzbl -0x1(%rdi,%r13), %eax
imull %r8d, %eax
movzbl (%rdi,%r13), %esi
imull %r11d, %esi
addl %eax, %esi
leal (%rcx,%rsi), %eax
addl $0x20, %eax
shrl $0x6, %eax
movb %al, (%rdx,%r13)
incq %r13
jmp 0x73a5
addq -0x38(%rbp), %rdx
incl %r15d
movq %r12, %rsi
addq %r12, %rdi
movq -0x40(%rbp), %r9
jmp 0x7391
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
movslq %r8d, %rax
movq %rax, -0x30(%rbp)
movslq %esi, %r12
movslq %ecx, %r13
xorl %r15d, %r15d
testl %r9d, %r9d
cmovgl %r9d, %r15d
subl $0x1, %r15d
jb 0x744b
movq %rbx, %rdi
movq %r14, %rsi
movq -0x30(%rbp), %rdx
callq 0x20a0
addq %r12, %r14
addq %r13, %rbx
jmp 0x742e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/mc.c
// Function: mc_hh(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:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r8d, %r14d
movq %rdx, %r15
movq %rdi, %r12
movslq %esi, %rax
movq %rax, -0x40(%rbp)
movslq %ecx, %rax
movq %rax, -0x38(%rbp)
xorl %eax, %eax
testl %r8d, %r8d
cmovlel %eax, %r14d
testl %r9d, %r9d
cmovlel %eax, %r9d
movl %r9d, -0x2c(%rbp)
leaq 0x1495c(%rip), %rbx     # 0x1be60
cmpl -0x2c(%rbp), %eax
je 0x7543
movq %rax, -0x48(%rbp)
xorl %r13d, %r13d
cmpq %r13, %r14
je 0x7533
leaq (%r12,%r13), %rdi
callq 0x7d74
addl $0x10, %eax
sarl $0x5, %eax
addl $0x50, %eax
movb (%rax,%rbx), %al
movb %al, (%r15,%r13)
incq %r13
jmp 0x7510
addq -0x40(%rbp), %r12
addq -0x38(%rbp), %r15
movq -0x48(%rbp), %rax
incl %eax
jmp 0x7504
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/mc.c
// Function: mc_xy11(unsigned char*, int, unsigned char*, int, int, int)
static void mc_xy11( 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_hv( 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 $0x208, %rsp            # imm = 0x208
movl %r9d, %r14d
movl %r8d, %ebx
movl %ecx, -0x2c(%rbp)
movq %rdx, %r12
movl %esi, %r13d
movq %rdi, %r15
leaq -0x130(%rbp), %rdx
movl %r8d, %ecx
callq 0x77af
leaq -0x230(%rbp), %rdx
movq %r15, %rdi
movl %r13d, %esi
movq %rdx, %r15
movl %ebx, %ecx
movl %ebx, %r8d
movl %r14d, %r9d
callq 0x74c1
movq %r12, %rdi
movl -0x2c(%rbp), %esi
leaq -0x130(%rbp), %rdx
movl %ebx, %ecx
movq %r15, %r8
movl %ebx, %r9d
pushq %r14
pushq %rbx
callq 0x7d0e
popq %rax
popq %rcx
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/mc.c
// Function: mc_hc(unsigned char*, int, unsigned char*, int, int, int)
static inline void mc_hc( uint8_t *src, int i_src_stride, uint8_t *dst, int i_dst_stride, int i_width, int i_height )
{
    uint8_t *out;
    uint8_t *pix;
    int x, y;

    for( x = 0; x < i_width; x++ )
    {
        int tap[6];

        pix = &src[x];
        out = &dst[x];

        tap[0] = x264_tapfilter1( &pix[-2*i_src_stride] );
        tap[1] = x264_tapfilter1( &pix[-1*i_src_stride] );
        tap[2] = x264_tapfilter1( &pix[ 0*i_src_stride] );
        tap[3] = x264_tapfilter1( &pix[ 1*i_src_stride] );
        tap[4] = x264_tapfilter1( &pix[ 2*i_src_stride] );

        for( y = 0; y < i_height; y++ )
        {
            tap[5] = x264_tapfilter1( &pix[ 3*i_src_stride] );

            *out = x264_mc_clip1( ( tap[0] - 5*tap[1] + 20 * tap[2] + 20 * tap[3] -5*tap[4] + tap[5] + 512 ) >> 10 );

            /* Next line */
            pix += i_src_stride;
            out += i_dst_stride;
            tap[0] = tap[1];
            tap[1] = tap[2];
            tap[2] = tap[3];
            tap[3] = tap[4];
            tap[4] = tap[5];
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, -0x68(%rbp)
leal (%rsi,%rsi), %eax
movslq %eax, %rdx
movq %rdx, -0x58(%rbp)
negl %eax
cltq
movq %rax, -0x50(%rbp)
movslq %esi, %rax
negl %esi
movslq %esi, %rdx
movq %rdx, -0x48(%rbp)
movq %rax, -0x38(%rbp)
leal (%rax,%rax,2), %eax
movslq %eax, %rbx
movslq %ecx, %rax
movq %rax, -0x88(%rbp)
xorl %ecx, %ecx
testl %r9d, %r9d
cmovlel %ecx, %r9d
movl %r9d, -0x30(%rbp)
testl %r8d, %r8d
cmovlel %ecx, %r8d
movq %r8, -0x70(%rbp)
movq %rdi, -0x60(%rbp)
addq %rdi, %rbx
cmpq -0x70(%rbp), %rcx
je 0x7a7a
movq -0x60(%rbp), %rax
leaq (%rax,%rcx), %r14
movq -0x68(%rbp), %rax
movq %rcx, -0x78(%rbp)
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x50(%rbp), %rax
leaq (%r14,%rax), %rdi
callq 0x7d74
movl %eax, -0x2c(%rbp)
movq -0x48(%rbp), %rax
leaq (%r14,%rax), %rdi
callq 0x7d74
movl %eax, %r12d
movq %r14, %rdi
callq 0x7d74
movl %eax, %r15d
movq -0x38(%rbp), %rax
leaq (%r14,%rax), %rdi
callq 0x7d74
movl %eax, %r13d
addq -0x58(%rbp), %r14
movq %r14, %rdi
callq 0x7d74
movq %r12, %rsi
movl -0x30(%rbp), %r14d
movq %rbx, -0x80(%rbp)
movq %rbx, %r12
subl $0x1, %r14d
jb 0x7a67
movl %eax, %ebx
movq %r12, %rdi
movq %rsi, -0x90(%rbp)
callq 0x7d74
movq %r15, %rsi
movq %r13, %r15
movq %rbx, %r13
leal (%rsi,%r15), %ecx
imull $0x14, %ecx, %ecx
movl -0x2c(%rbp), %edx
addl %ecx, %edx
movq -0x90(%rbp), %rdi
leal (%rdi,%rbx), %ecx
imull $-0x5, %ecx, %ecx
addl %edx, %ecx
addl %eax, %ecx
addl $0x200, %ecx            # imm = 0x200
sarl $0xa, %ecx
movslq %ecx, %rcx
leaq 0x14417(%rip), %rdx     # 0x1be60
movb 0x50(%rcx,%rdx), %cl
movq -0x40(%rbp), %rdx
movb %cl, (%rdx)
addq -0x88(%rbp), %rdx
movq %rdx, -0x40(%rbp)
addq -0x38(%rbp), %r12
movl %edi, -0x2c(%rbp)
jmp 0x79f9
movq -0x78(%rbp), %rcx
incq %rcx
movq -0x80(%rbp), %rbx
incq %rbx
jmp 0x7983
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/mc.c
// Function: mc_xy13(unsigned char*, int, unsigned char*, int, int, int)
static void mc_xy13( 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_hv( 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 $0x208, %rsp            # imm = 0x208
movl %r9d, %r14d
movl %r8d, %ebx
movl %ecx, -0x2c(%rbp)
movq %rdx, %r12
movl %esi, %r13d
movq %rdi, %r15
leaq -0x130(%rbp), %rdx
movl %r8d, %ecx
callq 0x77af
movslq %r13d, %rsi
addq %rsi, %r15
leaq -0x230(%rbp), %r13
movq %r15, %rdi
movq %r13, %rdx
movl %ebx, %ecx
movl %ebx, %r8d
movl %r14d, %r9d
callq 0x74c1
movq %r12, %rdi
movl -0x2c(%rbp), %esi
leaq -0x130(%rbp), %rdx
movl %ebx, %ecx
movq %r13, %r8
movl %ebx, %r9d
pushq %r14
pushq %rbx
callq 0x7d0e
popq %rax
popq %rcx
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/mc.c
// Function: pixel_avg(unsigned char*, int, unsigned char*, int, unsigned char*, int, int, int)
static inline void pixel_avg( uint8_t *dst,  int i_dst_stride,
                              uint8_t *src1, int i_src1_stride,
                              uint8_t *src2, int i_src2_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] = ( src1[x] + src2[x] + 1 ) >> 1;
        }
        dst  += i_dst_stride;
        src1 += i_src1_stride;
        src2 += i_src2_stride;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %r10d
movslq %esi, %rsi
movslq %ecx, %rcx
xorl %r11d, %r11d
testl %r10d, %r10d
cmovlel %r11d, %r10d
movslq %r9d, %r9
testl %eax, %eax
cmovlel %r11d, %eax
cmpl %eax, %r11d
je 0x7d6d
xorl %ebx, %ebx
cmpq %rbx, %r10
je 0x7d5f
movzbl (%rdx,%rbx), %r14d
movzbl (%r8,%rbx), %r15d
addl %r15d, %r14d
incl %r14d
shrl %r14d
movb %r14b, (%rdi,%rbx)
incq %rbx
jmp 0x7d3e
addq %rsi, %rdi
addq %rcx, %rdx
addq %r9, %r8
incl %r11d
jmp 0x7d37
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
cmpq $0x4, %r8
je 0x82a5
xorl %r9d, %r9d
cmpq $0x4, %r9
je 0x8296
movzbl (%rsi,%r9), %r10d
movzbl (%rcx,%r9), %r11d
subl %r11d, %r10d
movw %r10w, (%rdi,%r9,2)
incq %r9
jmp 0x8279
addq %rax, %rsi
addq %rdx, %rcx
incq %r8
addq $0x8, %rdi
jmp 0x8270
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
subq $0x18, %rsp
movl %r8d, %ebx
movq %rcx, %r15
movq %rcx, -0x30(%rbp)
movl %edx, %r14d
movq %rsi, %r13
movq %rdi, %r12
callq 0x8263
leaq 0x20(%r12), %rdi
leaq 0x4(%r13), %rsi
leaq 0x4(%r15), %rcx
movl %r14d, %edx
movl %ebx, %r8d
callq 0x8263
leaq 0x40(%r12), %rdi
leal (,%r14,4), %eax
cltq
movq %rax, -0x38(%rbp)
leaq (%r13,%rax), %rsi
leal (,%rbx,4), %eax
movslq %eax, %r15
movq -0x30(%rbp), %rax
leaq (%rax,%r15), %rcx
movl %r14d, %edx
movl %ebx, %r8d
callq 0x8263
addq $0x60, %r12
movq -0x38(%rbp), %rax
leaq (%rax,%r13), %rsi
addq $0x4, %rsi
movq -0x30(%rbp), %rax
leaq 0x4(%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 0x8263
// File: /workspace/github_c_makefile_star2_O2/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 0x82a7
leaq 0x80(%r12), %rdi
leaq 0x8(%r13), %rsi
leaq 0x8(%r15), %rcx
movl %r14d, %edx
movl %ebx, %r8d
callq 0x82a7
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 0x82a7
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 0x82a7
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/pixel.c
// Function: pixel_add_4x4(unsigned char*, int, short (*) [4])
static void pixel_add_4x4( uint8_t *dst, int i_dst, int16_t diff[4][4] )
{
    int x, y;

    for( y = 0; y < 4; y++ )
    {
        for( x = 0; x < 4; x++ )
        {
            int pix;

            pix = dst[x] + diff[y][x];
            if( pix < 0 )
            {
                dst[x] = 0;
            }
            else if( pix > 255 )
            {
                dst[x] = 255;
            }
            else
            {
                dst[x] = pix;

            }
        }
        dst += i_dst;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq %esi, %rax
xorl %ecx, %ecx
movl $0xff, %esi
xorl %r8d, %r8d
cmpq $0x4, %r8
je 0x845c
xorl %r9d, %r9d
cmpq $0x4, %r9
je 0x8450
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
jmp 0x8420
addq %rax, %rdi
incq %r8
addq $0x8, %rdx
jmp 0x8417
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r12
pushq %rbx
movq %rdx, %rbx
movl %esi, %r14d
movq %rdi, %r15
callq 0x8406
leaq 0x4(%r15), %rdi
leaq 0x20(%rbx), %rdx
movl %r14d, %esi
callq 0x8406
leal (,%r14,4), %eax
movslq %eax, %r12
leaq (%r15,%r12), %rdi
leaq 0x40(%rbx), %rdx
movl %r14d, %esi
callq 0x8406
leaq (%r15,%r12), %rdi
addq $0x4, %rdi
addq $0x60, %rbx
movl %r14d, %esi
movq %rbx, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x8406
// File: /workspace/github_c_makefile_star2_O2/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 0x845e
leaq 0x8(%r15), %rdi
leaq 0x80(%rbx), %rdx
movl %r14d, %esi
callq 0x845e
leal (,%r14,8), %eax
movslq %eax, %r12
leaq (%r15,%r12), %rdi
leaq 0x100(%rbx), %rdx
movl %r14d, %esi
callq 0x845e
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 0x845e
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/pixel.c
// Function: pixel_avg_wxh(unsigned char*, int, unsigned char*, int, int, int)
static inline void pixel_avg_wxh( uint8_t *dst, int i_dst, uint8_t *src, int i_src, int width, int height )
{
    int x, y;
    for( y = 0; y < height; y++ )
    {
        for( x = 0; x < width; x++ )
        {
            dst[x] = ( dst[x] + src[x] + 1 ) >> 1;
        }
        dst += i_dst;
        src += i_src;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
movslq %esi, %rax
xorl %esi, %esi
testl %r8d, %r8d
cmovlel %esi, %r8d
movslq %ecx, %rcx
testl %r9d, %r9d
cmovlel %esi, %r9d
cmpl %r9d, %esi
je 0x86ed
xorl %r10d, %r10d
cmpq %r10, %r8
je 0x86e3
movzbl (%rdi,%r10), %r11d
movzbl (%rdx,%r10), %ebx
addl %ebx, %r11d
incl %r11d
shrl %r11d
movb %r11b, (%rdi,%r10)
incq %r10
jmp 0x86c2
addq %rax, %rdi
addq %rcx, %rdx
incl %esi
jmp 0x86ba
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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        # 0x8742
movq %rax, (%rsi)
leaq 0x71(%rip), %rax        # 0x8776
movq %rax, 0x8(%rsi)
leaq 0x90(%rip), %rax        # 0x87a0
movq %rax, 0x10(%rsi)
leaq 0xde(%rip), %rax        # 0x87f9
movq %rax, 0x18(%rsi)
leaq 0x1d8(%rip), %rax       # 0x88fe
movq %rax, 0x20(%rsi)
leaq 0x21c(%rip), %rax       # 0x894d
movq %rax, 0x28(%rsi)
leaq 0x25b(%rip), %rax       # 0x8997
movq %rax, 0x30(%rsi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
cmpq $0x10, %rdx
je 0x8774
xorl %esi, %esi
cmpq $0x10, %rsi
je 0x876c
movb (%rcx,%rsi), %r8b
movb %r8b, (%rdi,%rsi)
incq %rsi
jmp 0x8759
incq %rdx
addq %rax, %rdi
jmp 0x8751
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_16x16_h(unsigned char*, int)
static void predict_16x16_h( uint8_t *src, int i_stride )
{
    int i,j;

    for( i = 0; i < 16; i++ )
    {
        uint8_t v;

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

    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq %esi, %rax
xorl %ecx, %ecx
cmpl $0x10, %ecx
je 0x879e
movb -0x1(%rdi), %dl
xorl %esi, %esi
cmpq $0x10, %rsi
je 0x8797
movb %dl, (%rdi,%rsi)
incq %rsi
jmp 0x8789
addq %rax, %rdi
incl %ecx
jmp 0x877f
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_16x16_dc(unsigned char*, int)
static void predict_16x16_dc( uint8_t *src, int i_stride )
{
    int dc = 0;
    int i, j;

    /* calculate DC value */
    for( i = 0; i < 16; i++ )
    {
        dc += src[-1 + i * i_stride];
        dc += src[i - i_stride];
    }
    dc = ( dc + 16 ) >> 5;

    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
movq %rdi, %rsi
subq %rax, %rsi
xorl %r8d, %r8d
xorl %ecx, %ecx
cmpq $0x10, %r8
je 0x87d3
movzbl (%rdx), %r9d
addl %r9d, %ecx
movzbl (%rsi,%r8), %r9d
addl %r9d, %ecx
incq %r8
addq %rax, %rdx
jmp 0x87b6
addl $0x10, %ecx
shrl $0x5, %ecx
xorl %edx, %edx
cmpl $0x10, %edx
je 0x87f7
xorl %esi, %esi
cmpq $0x10, %rsi
je 0x87f0
movb %cl, (%rdi,%rsi)
incq %rsi
jmp 0x87e2
addq %rax, %rdi
incl %edx
jmp 0x87db
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_16x16_p(unsigned char*, int)
static void predict_16x16_p( uint8_t *src, int i_stride )
{
    int x, y, i;
    int a, b, c;
    int H = 0;
    int V = 0;
    int i00;

    /* calcule H and V */
    for( i = 0; i <= 7; i++ )
    {
        H += ( i + 1 ) * ( src[ 8 + i - i_stride ] - src[6 -i -i_stride] );
        V += ( i + 1 ) * ( src[-1 + (8+i)*i_stride] - src[-1 + (6-i)*i_stride] );
    }

    a = 16 * ( src[-1 + 15*i_stride] + src[15 - i_stride] );
    b = ( 5 * H + 32 ) >> 6;
    c = ( 5 * V + 32 ) >> 6;

    i00 = a - b * 7 - c * 7 + 16;

    for( y = 0; y < 16; y++ )
    {
        for( x = 0; x < 16; x++ )
        {
            int pix;

            pix = (i00+b*x)>>5;

            src[x] = X264_CLIP3( pix, 0, 255 );
        }
        src += i_stride;
        i00 += c;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movslq %esi, %rax
movq %rax, %rsi
negq %rsi
movq %rdi, %rdx
subq %rax, %rdx
leaq (%rdi,%rax,8), %r9
decq %r9
imulq $0x6, %rax, %rcx
leaq (%rcx,%rdi), %r10
decq %r10
xorl %ecx, %ecx
movabsq $0x8, %r11
movq %r11, %r14
xorl %r8d, %r8d
movq %r11, %rbx
subq $0x1, %rbx
jb 0x8879
movzbl (%rdx,%r11), %r15d
movzbl -0x2(%rdx,%r14), %r14d
subl %r14d, %r15d
leal -0x7(%r11), %r14d
imull %r14d, %r15d
addl %r15d, %ecx
movzbl (%r9), %r15d
movzbl (%r10), %r12d
subl %r12d, %r15d
imull %r14d, %r15d
addl %r15d, %r8d
incq %r11
addq %rax, %r9
addq %rsi, %r10
movq %rbx, %r14
jmp 0x883a
imulq $0xf, %rax, %rsi
movzbl -0x1(%rdi,%rsi), %esi
movzbl 0xf(%rdx), %r9d
addl %esi, %r9d
shll $0x4, %r9d
leal (%rcx,%rcx,4), %ecx
addl $0x20, %ecx
sarl $0x6, %ecx
leal (%r8,%r8,4), %edx
addl $0x20, %edx
sarl $0x6, %edx
leal (%rdx,%rcx), %esi
imull $-0x7, %esi, %esi
addl %r9d, %esi
addl $0x10, %esi
xorl %r8d, %r8d
movl $0xff, %r9d
xorl %r10d, %r10d
cmpl $0x10, %r10d
je 0x88f5
movl %esi, %r11d
xorl %ebx, %ebx
cmpq $0x10, %rbx
je 0x88eb
movl %r11d, %r14d
sarl $0x5, %r14d
cmpl %r9d, %r14d
cmovgel %r9d, %r14d
testl %r14d, %r14d
cmovlel %r8d, %r14d
movb %r14b, (%rdi,%rbx)
incq %rbx
addl %ecx, %r11d
jmp 0x88c4
addq %rax, %rdi
incl %r10d
addl %edx, %esi
jmp 0x88b9
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
movabsq $0x10, %rsi
subq $0x1, %rsi
jb 0x8927
movzbl (%rdx), %r8d
addl %r8d, %ecx
addq %rax, %rdx
jmp 0x8915
addl $0x8, %ecx
shrl $0x4, %ecx
xorl %edx, %edx
cmpl $0x10, %edx
je 0x894b
xorl %esi, %esi
cmpq $0x10, %rsi
je 0x8944
movb %cl, (%rdi,%rsi)
incq %rsi
jmp 0x8936
addq %rax, %rdi
incl %edx
jmp 0x892f
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_16x16_dc_128(unsigned char*, int)
static void predict_16x16_dc_128( uint8_t *src, int i_stride )
{
    int i,j;

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq %esi, %rax
xorl %ecx, %ecx
cmpl $0x10, %ecx
je 0x89bd
xorl %edx, %edx
cmpq $0x10, %rdx
je 0x89b6
movb $-0x80, (%rdi,%rdx)
incq %rdx
jmp 0x89a7
addq %rax, %rdi
incl %ecx
jmp 0x89a0
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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        # 0x8a11
movq %rax, 0x10(%rsi)
leaq 0x70(%rip), %rax        # 0x8a45
movq %rax, 0x8(%rsi)
leaq 0x8f(%rip), %rax        # 0x8a6f
movq %rax, (%rsi)
leaq 0x14d(%rip), %rax       # 0x8b37
movq %rax, 0x18(%rsi)
leaq 0x242(%rip), %rax       # 0x8c37
movq %rax, 0x20(%rsi)
leaq 0x2a9(%rip), %rax       # 0x8ca9
movq %rax, 0x28(%rsi)
leaq 0x318(%rip), %rax       # 0x8d23
movq %rax, 0x30(%rsi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
cmpq $0x8, %rdx
je 0x8a43
xorl %esi, %esi
cmpq $0x8, %rsi
je 0x8a3b
movb (%rcx,%rsi), %r8b
movb %r8b, (%rdi,%rsi)
incq %rsi
jmp 0x8a28
incq %rdx
addq %rax, %rdi
jmp 0x8a20
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_8x8_h(unsigned char*, int)
static void predict_8x8_h( uint8_t *src, int i_stride )
{
    int i,j;

    for( i = 0; i < 8; i++ )
    {
        uint8_t v;

        v = src[-1];

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq %esi, %rax
xorl %ecx, %ecx
cmpl $0x8, %ecx
je 0x8a6d
movb -0x1(%rdi), %dl
xorl %esi, %esi
cmpq $0x8, %rsi
je 0x8a66
movb %dl, (%rdi,%rsi)
incq %rsi
jmp 0x8a58
addq %rax, %rdi
incl %ecx
jmp 0x8a4e
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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, %rdx
subq %rax, %rdx
addq $0x4, %rdx
xorl %r8d, %r8d
movabsq $-0x4, %r9
xorl %r11d, %r11d
xorl %r10d, %r10d
xorl %ebx, %ebx
testq %r9, %r9
je 0x8ac9
movzbl (%rdx,%r9), %r14d
addl %r14d, %ebx
movzbl 0x4(%rdx,%r9), %r14d
addl %r14d, %r8d
movzbl (%rcx), %r14d
addl %r14d, %r11d
movzbl (%rcx,%rax,4), %r14d
addl %r14d, %r10d
incq %r9
addq %rax, %rcx
jmp 0x8a9c
leal (%r11,%rbx), %ecx
addl $0x4, %ecx
shrl $0x3, %ecx
leal 0x2(%r8), %edx
shrl $0x2, %edx
leal 0x2(%r10), %r9d
shrl $0x2, %r9d
addl %r10d, %r8d
addl $0x4, %r8d
shrl $0x3, %r8d
shll $0x2, %esi
movslq %esi, %rsi
addq %rdi, %rsi
xorl %r10d, %r10d
movabsq $0x4, %r11
cmpl $0x4, %r10d
je 0x8b32
movq %r11, %rbx
cmpq $0x8, %rbx
je 0x8b27
movb %cl, -0x4(%rdi,%rbx)
movb %dl, (%rdi,%rbx)
movb %r9b, -0x4(%rsi,%rbx)
movb %r8b, (%rsi,%rbx)
incq %rbx
jmp 0x8b0c
addq %rax, %rdi
incl %r10d
addq %rax, %rsi
jmp 0x8b03
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_8x8_p(unsigned char*, int)
static void predict_8x8_p( uint8_t *src, int i_stride )
{
    int i;
    int x,y;
    int a, b, c;
    int H = 0;
    int V = 0;
    int i00;

    for( i = 0; i < 4; i++ )
    {
        H += ( i + 1 ) * ( src[4+i - i_stride] - src[2 - i -i_stride] );
        V += ( i + 1 ) * ( src[-1 +(i+4)*i_stride] - src[-1+(2-i)*i_stride] );
    }

    a = 16 * ( src[-1+7*i_stride] + src[7 - i_stride] );
    b = ( 17 * H + 16 ) >> 5;
    c = ( 17 * V + 16 ) >> 5;
    i00 = a -3*b -3*c + 16;

    for( y = 0; y < 8; y++ )
    {
        for( x = 0; x < 8; x++ )
        {
            int pix;

            pix = (i00 +b*x) >> 5;
            src[x] = X264_CLIP3( pix, 0, 255 );
        }
        src += i_stride;
        i00 += c;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movslq %esi, %rax
movq %rax, %r8
negq %r8
movq %rdi, %rdx
subq %rax, %rdx
leaq (%rdi,%rax,4), %r9
decq %r9
leaq (%rdi,%rax,2), %r10
decq %r10
xorl %ecx, %ecx
movabsq $0x4, %r11
movq %r11, %r14
xorl %esi, %esi
movq %r11, %rbx
subq $0x1, %rbx
jb 0x8bb2
movzbl (%rdx,%r11), %r15d
movzbl -0x2(%rdx,%r14), %r14d
subl %r14d, %r15d
leal -0x3(%r11), %r14d
imull %r14d, %r15d
addl %r15d, %ecx
movzbl (%r9), %r15d
movzbl (%r10), %r12d
subl %r12d, %r15d
imull %r14d, %r15d
addl %r15d, %esi
incq %r11
addq %rax, %r9
addq %r8, %r10
movq %rbx, %r14
jmp 0x8b73
imulq $0x7, %rax, %r8
movzbl -0x1(%rdi,%r8), %r8d
movzbl 0x7(%rdx), %r9d
addl %r8d, %r9d
shll $0x4, %r9d
imull $0x11, %ecx, %ecx
addl $0x10, %ecx
sarl $0x5, %ecx
imull $0x11, %esi, %edx
addl $0x10, %edx
sarl $0x5, %edx
leal (%rdx,%rcx), %esi
imull $-0x3, %esi, %esi
addl %r9d, %esi
addl $0x10, %esi
xorl %r8d, %r8d
movl $0xff, %r9d
xorl %r10d, %r10d
cmpl $0x8, %r10d
je 0x8c2e
movl %esi, %r11d
xorl %ebx, %ebx
cmpq $0x8, %rbx
je 0x8c24
movl %r11d, %r14d
sarl $0x5, %r14d
cmpl %r9d, %r14d
cmovgel %r9d, %r14d
testl %r14d, %r14d
cmovlel %r8d, %r14d
movb %r14b, (%rdi,%rbx)
incq %rbx
addl %ecx, %r11d
jmp 0x8bfd
addq %rax, %rdi
incl %r10d
addl %edx, %esi
jmp 0x8bf2
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
movabsq $0x4, %r9
xorl %edx, %edx
subq $0x1, %r9
jb 0x8c6a
movzbl (%r8), %r10d
addl %r10d, %ecx
movzbl (%r8,%rax,4), %r10d
addl %r10d, %edx
addq %rax, %r8
jmp 0x8c50
addl $0x2, %ecx
shrl $0x2, %ecx
addl $0x2, %edx
shrl $0x2, %edx
shll $0x2, %esi
movslq %esi, %rsi
xorl %r8d, %r8d
cmpl $0x4, %r8d
je 0x8ca7
leaq (%rdi,%rsi), %r9
xorl %r10d, %r10d
cmpq $0x8, %r10
je 0x8c9f
movb %cl, (%rdi,%r10)
movb %dl, (%r9,%r10)
incq %r10
jmp 0x8c8c
addq %rax, %rdi
incl %r8d
jmp 0x8c7f
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_8x8_dc_top(unsigned char*, int)
static void predict_8x8_dc_top( uint8_t *src, int i_stride )
{
    int x,y;
    int dc0 = 0, dc1 = 0;

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

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

// Assembly:
movslq %esi, %rax
movl $0x4, %esi
subl %eax, %esi
movq %rdi, %r8
subq %rax, %r8
xorl %r9d, %r9d
xorl %ecx, %ecx
xorl %edx, %edx
cmpq $0x4, %r9
je 0x8ce2
movzbl (%r8,%r9), %r10d
addl %r10d, %ecx
leal (%rsi,%r9), %r10d
movslq %r10d, %r10
movzbl (%rdi,%r10), %r10d
addl %r10d, %edx
incq %r9
jmp 0x8cc0
pushq %rbp
movq %rsp, %rbp
addl $0x2, %ecx
shrl $0x2, %ecx
addl $0x2, %edx
shrl $0x2, %edx
xorl %esi, %esi
movabsq $0x4, %r8
cmpl $0x8, %esi
je 0x8d21
movq %r8, %r9
cmpq $0x8, %r9
je 0x8d1a
movb %cl, -0x4(%rdi,%r9)
movb %dl, (%rdi,%r9)
incq %r9
jmp 0x8d06
addq %rax, %rdi
incl %esi
jmp 0x8cfe
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_8x8_dc_128(unsigned char*, int)
static void predict_8x8_dc_128( uint8_t *src, int i_stride )
{
    int x,y;

    for( y = 0; y < 8; y++ )
    {
        for( x = 0; x < 8; x++ )
        {
            src[x] = 128;
        }
        src += i_stride;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq %esi, %rax
xorl %ecx, %ecx
cmpl $0x8, %ecx
je 0x8d49
xorl %edx, %edx
cmpq $0x8, %rdx
je 0x8d42
movb $-0x80, (%rdi,%rdx)
incq %rdx
jmp 0x8d33
addq %rax, %rdi
incl %ecx
jmp 0x8d2c
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/predict.c
// Function: x264_predict_4x4_init(int, void (**)(unsigned char*, int))
void x264_predict_4x4_init( int cpu, x264_predict_t pf[12] )
{
    pf[I_PRED_4x4_V]      = predict_4x4_v;
    pf[I_PRED_4x4_H]      = predict_4x4_h;
    pf[I_PRED_4x4_DC]     = predict_4x4_dc;
    pf[I_PRED_4x4_DDL]    = predict_4x4_ddl;
    pf[I_PRED_4x4_DDR]    = predict_4x4_ddr;
    pf[I_PRED_4x4_VR]     = predict_4x4_vr;
    pf[I_PRED_4x4_HD]     = predict_4x4_hd;
    pf[I_PRED_4x4_VL]     = predict_4x4_vl;
    pf[I_PRED_4x4_HU]     = predict_4x4_hu;
    pf[I_PRED_4x4_DC_LEFT]= predict_4x4_dc_left;
    pf[I_PRED_4x4_DC_TOP] = predict_4x4_dc_top;
    pf[I_PRED_4x4_DC_128] = predict_4x4_dc_128;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x7e(%rip), %rax        # 0x8dd4
movq %rax, (%rsi)
leaq 0xa8(%rip), %rax        # 0x8e08
movq %rax, 0x8(%rsi)
leaq 0xc7(%rip), %rax        # 0x8e32
movq %rax, 0x10(%rsi)
leaq 0x127(%rip), %rax       # 0x8e9d
movq %rax, 0x18(%rsi)
leaq 0x205(%rip), %rax       # 0x8f86
movq %rax, 0x20(%rsi)
leaq 0x301(%rip), %rax       # 0x908d
movq %rax, 0x28(%rsi)
leaq 0x410(%rip), %rax       # 0x91a7
movq %rax, 0x30(%rsi)
leaq 0x51a(%rip), %rax       # 0x92bc
movq %rax, 0x38(%rsi)
leaq 0x5fd(%rip), %rax       # 0x93aa
movq %rax, 0x40(%rsi)
leaq 0x6a9(%rip), %rax       # 0x9461
movq %rax, 0x48(%rsi)
leaq 0x6e8(%rip), %rax       # 0x94ab
movq %rax, 0x50(%rsi)
leaq 0x725(%rip), %rax       # 0x94f3
movq %rax, 0x58(%rsi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_4x4_v(unsigned char*, int)
static void predict_4x4_v( uint8_t *src, int i_stride )
{
    int i,j;

    for( i = 0; i < 4; i++ )
    {
        for( j = 0; j < 4; 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
cmpq $0x4, %rdx
je 0x8e06
xorl %esi, %esi
cmpq $0x4, %rsi
je 0x8dfe
movb (%rcx,%rsi), %r8b
movb %r8b, (%rdi,%rsi)
incq %rsi
jmp 0x8deb
incq %rdx
addq %rax, %rdi
jmp 0x8de3
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_4x4_h(unsigned char*, int)
static void predict_4x4_h( uint8_t *src, int i_stride )
{
    int i,j;

    for( i = 0; i < 4; i++ )
    {
        uint8_t v;

        v = src[-1];

        for( j = 0; j < 4; j++ )
        {
            src[j] = v;
        }
        src += i_stride;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq %esi, %rax
xorl %ecx, %ecx
cmpl $0x4, %ecx
je 0x8e30
movb -0x1(%rdi), %dl
xorl %esi, %esi
cmpq $0x4, %rsi
je 0x8e29
movb %dl, (%rdi,%rsi)
incq %rsi
jmp 0x8e1b
addq %rax, %rdi
incl %ecx
jmp 0x8e11
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_4x4_dc(unsigned char*, int)
static void predict_4x4_dc( uint8_t *src, int i_stride )
{
    int x,y;
    int dc = ( src[-1+0*i_stride] + src[-1+i_stride]+
               src[-1+2*i_stride] + src[-1+3*i_stride] +
               src[0 - i_stride]  + src[1 - i_stride] +
               src[2 - i_stride]  + src[3 - i_stride] + 4 ) >> 3;

    for( y = 0; y < 4; y++ )
    {
        for( x = 0; x < 4; x++ )
        {
            src[x] = dc;
        }
        src += i_stride;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movzbl -0x1(%rdi), %ecx
movslq %esi, %rax
movzbl -0x1(%rdi,%rax), %edx
addl %ecx, %edx
movzbl -0x1(%rdi,%rax,2), %ecx
addl %edx, %ecx
leaq (%rax,%rax,2), %rdx
movzbl -0x1(%rdi,%rdx), %edx
movq %rdi, %rsi
subq %rax, %rsi
movzbl (%rsi), %r8d
addl %edx, %r8d
addl %ecx, %r8d
movzbl 0x1(%rsi), %ecx
movzbl 0x2(%rsi), %edx
addl %ecx, %edx
addl %r8d, %edx
movzbl 0x3(%rsi), %ecx
addl %edx, %ecx
addl $0x4, %ecx
shrl $0x3, %ecx
xorl %edx, %edx
cmpl $0x4, %edx
je 0x8e9b
xorl %esi, %esi
cmpq $0x4, %rsi
je 0x8e94
movb %cl, (%rdi,%rsi)
incq %rsi
jmp 0x8e86
addq %rax, %rdi
incl %edx
jmp 0x8e7f
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_4x4_dc_left(unsigned char*, int)
static void predict_4x4_dc_left( uint8_t *src, int i_stride )
{
    int x,y;
    int dc = ( src[-1+0*i_stride] + src[-1+i_stride]+
               src[-1+2*i_stride] + src[-1+3*i_stride] + 2 ) >> 2;

    for( y = 0; y < 4; y++ )
    {
        for( x = 0; x < 4; x++ )
        {
            src[x] = dc;
        }
        src += i_stride;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movzbl -0x1(%rdi), %ecx
movslq %esi, %rax
movzbl -0x1(%rdi,%rax), %edx
addl %ecx, %edx
movzbl -0x1(%rdi,%rax,2), %ecx
addl %edx, %ecx
leaq (%rax,%rax,2), %rdx
movzbl -0x1(%rdi,%rdx), %edx
addl %edx, %ecx
addl $0x2, %ecx
shrl $0x2, %ecx
xorl %edx, %edx
cmpl $0x4, %edx
je 0x94a9
xorl %esi, %esi
cmpq $0x4, %rsi
je 0x94a2
movb %cl, (%rdi,%rsi)
incq %rsi
jmp 0x9494
addq %rax, %rdi
incl %edx
jmp 0x948d
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_4x4_dc_top(unsigned char*, int)
static void predict_4x4_dc_top( uint8_t *src, int i_stride )
{
    int x,y;
    int dc = ( src[0 - i_stride] + src[1 - i_stride] +
               src[2 - i_stride] + src[3 - i_stride] + 2 ) >> 2;

    for( y = 0; y < 4; y++ )
    {
        for( x = 0; x < 4; x++ )
        {
            src[x] = dc;
        }
        src += i_stride;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq %esi, %rax
movq %rdi, %rcx
subq %rax, %rcx
movzbl (%rcx), %edx
movzbl 0x1(%rcx), %esi
addl %edx, %esi
movzbl 0x2(%rcx), %edx
addl %esi, %edx
movzbl 0x3(%rcx), %ecx
addl %edx, %ecx
addl $0x2, %ecx
shrl $0x2, %ecx
xorl %edx, %edx
cmpl $0x4, %edx
je 0x94f1
xorl %esi, %esi
cmpq $0x4, %rsi
je 0x94ea
movb %cl, (%rdi,%rsi)
incq %rsi
jmp 0x94dc
addq %rax, %rdi
incl %edx
jmp 0x94d5
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_4x4_dc_128(unsigned char*, int)
static void predict_4x4_dc_128( uint8_t *src, int i_stride )
{
    int x,y;
    for( y = 0; y < 4; y++ )
    {
        for( x = 0; x < 4; x++ )
        {
            src[x] = 128;
        }
        src += i_stride;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq %esi, %rax
xorl %ecx, %ecx
cmpl $0x4, %ecx
je 0x9519
xorl %edx, %edx
cmpq $0x4, %rdx
je 0x9512
movb $-0x80, (%rdi,%rdx)
incq %rdx
jmp 0x9503
addq %rax, %rdi
incl %ecx
jmp 0x94fc
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/decoder/decoder.c
// Function: x264_nal_decode(x264_nal_t*, unsigned char*, int)
int x264_nal_decode(x264_nal_t *nal, uint8_t *p_data, int i_data) {LOG_CALL;
    uint8_t *src = p_data;
    uint8_t *end = &src[i_data];
    uint8_t *dst = nal->p_payload;

    nal->i_type = src[0]&0x1f;
    nal->i_ref_idc = (src[0] >> 5)&0x03;

    src++;

    while (src < end)
    {
        if (src < end - 3 && src[0] == 0x00 && src[1] == 0x00 && src[2] == 0x03)
        {
            *dst++ = 0x00;
            *dst++ = 0x00;

            src += 3;
            continue;
        }
        *dst++ = *src++;
    }

    //nal->i_payload = (int)(dst - (uint8_t*)p_data);
    nal->i_payload = (int) (dst - (uint8_t*) nal->p_payload);
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x11c7e(%rip), %rdi     # 0x1b1b4
leaq 0x141b7(%rip), %rsi     # 0x1d6f4
leaq 0x141c2(%rip), %rdx     # 0x1d706
xorl %eax, %eax
callq 0x39ba
movslq %r15d, %rdx
leaq (%r14,%rdx), %rcx
movq 0x10(%rbx), %rax
movzbl (%r14), %esi
andl $0x1f, %esi
movl %esi, 0x4(%rbx)
movzbl (%r14), %esi
shrl $0x5, %esi
andl $0x3, %esi
movl %esi, (%rbx)
addq %r14, %rdx
addq $-0x3, %rdx
incq %r14
cmpq %rcx, %r14
jae 0x95bc
cmpq %rdx, %r14
setb %dil
movb (%r14), %sil
testb %sil, %sil
sete %r8b
andb %dil, %r8b
cmpb $0x1, %r8b
jne 0x95b1
cmpb $0x0, 0x1(%r14)
jne 0x95b1
cmpb $0x3, 0x2(%r14)
jne 0x95b1
andw $0x0, (%rax)
addq $0x2, %rax
addq $0x3, %r14
jmp 0x9576
incq %r14
movb %sil, (%rax)
incq %rax
jmp 0x9576
subl 0x10(%rbx), %eax
movl %eax, 0x8(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/decoder/decoder.c
// Function: x264_decoder_close(x264_t*)
void x264_decoder_close(x264_t *h) {LOG_CALL;
    int i;

    if (h->picture->i_width != 0 && h->picture->i_height != 0)
    {
        for (i = 0; i < h->sps->i_num_ref_frames + 1; i++)
        {
            x264_frame_delete(h->freference[i]);
        }
        x264_free(h->mb);
    }

    /* free vlc table */
    for (i = 0; i < 5; i++)
    {
        x264_vlc_table_lookup_delete(h->x264_coeff_token_lookup[i]);
    }
    x264_vlc_table_lookup_delete(h->x264_level_prefix_lookup);

    for (i = 0; i < 15; i++)
    {
        x264_vlc_table_lookup_delete(h->x264_total_zeros_lookup[i]);
    }
    for (i = 0; i < 3; i++)
    {
        x264_vlc_table_lookup_delete(h->x264_total_zeros_dc_lookup[i]);
    }
    for (i = 0; i < 7; i++)
    {
        x264_vlc_table_lookup_delete(h->x264_run_before_lookup[i]);
    }

    x264_free(h->picture);
    x264_free(h);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x10bef(%rip), %rdi     # 0x1b1b4
leaq 0x13128(%rip), %rsi     # 0x1d6f4
leaq 0x13222(%rip), %rdx     # 0x1d7f5
xorl %eax, %eax
callq 0x39ba
movq 0x10ee48(%rbx), %rax
cmpl $0x0, (%rax)
je 0xa620
cmpl $0x0, 0x4(%rax)
je 0xa620
xorl %r14d, %r14d
movq 0x8ed8(%rbx), %rax
movslq 0x434(%rax), %rax
cmpq %rax, %r14
jg 0xa614
movq 0x10eff0(%rbx,%r14,8), %rdi
callq 0x3ecd
incq %r14
jmp 0xa5ef
movq 0x10efe8(%rbx), %rdi
callq 0x351a
movl $0x21e79, %r14d         # imm = 0x21E79
cmpq $0x21e7e, %r14          # imm = 0x21E7E
je 0xa63d
movq (%rbx,%r14,8), %rdi
callq 0xd192
incq %r14
jmp 0xa626
movq 0x10f3f0(%rbx), %rdi
callq 0xd192
movl $0x21e7f, %r14d         # imm = 0x21E7F
cmpq $0x21e8e, %r14          # imm = 0x21E8E
je 0xa666
movq (%rbx,%r14,8), %rdi
callq 0xd192
incq %r14
jmp 0xa64f
movl $0x21e8e, %r14d         # imm = 0x21E8E
cmpq $0x21e91, %r14          # imm = 0x21E91
je 0xa683
movq (%rbx,%r14,8), %rdi
callq 0xd192
incq %r14
jmp 0xa66c
movl $0x21e91, %r14d         # imm = 0x21E91
cmpq $0x21e98, %r14          # imm = 0x21E98
je 0xa6a0
movq (%rbx,%r14,8), %rdi
callq 0xd192
incq %r14
jmp 0xa689
movq 0x10ee48(%rbx), %rdi
callq 0x351a
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x351a