LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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 0xafd9
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 0xb00b
addq %rax, %rdi
incl %r8d
addq %rax, %rsi
cmpl $0x4, %r8d
jne 0xb008
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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
movzbl (%r8,%r9), %r10d
addl %r10d, %edx
leal (%rsi,%r9), %r10d
movslq %r10d, %r10
movzbl (%rdi,%r10), %r10d
addl %r10d, %ecx
incq %r9
cmpq $0x4, %r9
jne 0xb044
pushq %rbp
movq %rsp, %rbp
addl $0x2, %edx
shrl $0x2, %edx
addl $0x2, %ecx
shrl $0x2, %ecx
addq $0x4, %rdi
movl $0x8, %esi
movzbl %dl, %edx
imull $0x1010101, %edx, %edx  # imm = 0x1010101
movzbl %cl, %ecx
imull $0x1010101, %ecx, %ecx  # imm = 0x1010101
movl %edx, -0x4(%rdi)
movl %ecx, (%rdi)
addq %rax, %rdi
decq %rsi
jne 0xb08f
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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        # 0xb149
movq %rax, (%rsi)
leaq 0xa4(%rip), %rax        # 0xb179
movq %rax, 0x8(%rsi)
leaq 0xba(%rip), %rax        # 0xb19a
movq %rax, 0x10(%rsi)
leaq 0x113(%rip), %rax       # 0xb1fe
movq %rax, 0x18(%rsi)
leaq 0x1f1(%rip), %rax       # 0xb2e7
movq %rax, 0x20(%rsi)
leaq 0x2ed(%rip), %rax       # 0xb3ee
movq %rax, 0x28(%rsi)
leaq 0x3fc(%rip), %rax       # 0xb508
movq %rax, 0x30(%rsi)
leaq 0x506(%rip), %rax       # 0xb61d
movq %rax, 0x38(%rsi)
leaq 0x5e9(%rip), %rax       # 0xb70b
movq %rax, 0x40(%rsi)
leaq 0x695(%rip), %rax       # 0xb7c2
movq %rax, 0x48(%rsi)
leaq 0x6cd(%rip), %rax       # 0xb805
movq %rax, 0x50(%rsi)
leaq 0x703(%rip), %rax       # 0xb846
movq %rax, 0x58(%rsi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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
xorl %esi, %esi
movb (%rcx,%rsi), %r8b
movb %r8b, (%rdi,%rsi)
incq %rsi
cmpq $0x4, %rsi
jne 0xb15a
incq %rdx
addq %rax, %rdi
cmpq $0x4, %rdx
jne 0xb158
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 %ecx, %edx
addl $0x4, %edx
shrl $0x3, %edx
movl $0x4, %ecx
movzbl %dl, %edx
imull $0x1010101, %edx, %edx  # imm = 0x1010101
movl %edx, (%rdi)
addq %rax, %rdi
decl %ecx
jne 0xb1f3
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_4x4_ddl(unsigned char*, int)
static void predict_4x4_ddl( uint8_t *src, int i_stride )
{
    PREDICT_4x4_LOAD_TOP
    PREDICT_4x4_LOAD_TOP_RIGHT

    src[0*i_stride+0] = ( t0 + 2*t1+ t2 + 2 ) >> 2;

    src[0*i_stride+1] =
    src[1*i_stride+0] = ( t1 + 2*t2+ t3 + 2 ) >> 2;

    src[0*i_stride+2] =
    src[1*i_stride+1] =
    src[2*i_stride+0] = ( t2 + 2*t3+ t4 + 2 ) >> 2;

    src[0*i_stride+3] =
    src[1*i_stride+2] =
    src[2*i_stride+1] =
    src[3*i_stride+0] = ( t3 + 2*t4+ t5 + 2 ) >> 2;

    src[1*i_stride+3] =
    src[2*i_stride+2] =
    src[3*i_stride+1] = ( t4 + 2*t5+ t6 + 2 ) >> 2;

    src[2*i_stride+3] =
    src[3*i_stride+2] = ( t5 + 2*t6+ t7 + 2 ) >> 2;

    src[3*i_stride+3] = ( t6 + 3 * t7 + 2 ) >> 2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
movslq %esi, %rax
movq %rdi, %rdx
subq %rax, %rdx
movzbl (%rdx), %r10d
movzbl 0x1(%rdx), %r11d
movzbl 0x2(%rdx), %ebx
movzbl 0x3(%rdx), %r9d
movzbl 0x4(%rdx), %r8d
movzbl 0x5(%rdx), %esi
movzbl 0x6(%rdx), %ecx
movzbl 0x7(%rdx), %edx
addl %ebx, %r10d
addl $0x2, %r10d
leal (%r10,%r11,2), %r10d
shrl $0x2, %r10d
movb %r10b, (%rdi)
leal (%r9,%r11), %r10d
addl $0x2, %r10d
leal (%r10,%rbx,2), %r10d
shrl $0x2, %r10d
movb %r10b, (%rdi,%rax)
movb %r10b, 0x1(%rdi)
leal (%rbx,%r9,2), %r10d
addl $0x2, %r10d
addl %r8d, %r10d
shrl $0x2, %r10d
leaq (%rax,%rax), %r11
movb %r10b, (%rdi,%rax,2)
movb %r10b, 0x1(%rdi,%rax)
movb %r10b, 0x2(%rdi)
leal (%r9,%r8,2), %r10d
addl $0x2, %r10d
addl %esi, %r10d
shrl $0x2, %r10d
leaq (%rax,%rax,2), %r9
movb %r10b, (%rdi,%r9)
movslq %r11d, %r11
movb %r10b, 0x1(%rdi,%r11)
movb %r10b, 0x2(%rdi,%rax)
movb %r10b, 0x3(%rdi)
leal (%r8,%rsi,2), %r8d
addl %ecx, %r8d
addl $0x2, %r8d
shrl $0x2, %r8d
movb %r8b, 0x1(%rdi,%r9)
movb %r8b, 0x2(%rdi,%rax,2)
movb %r8b, 0x3(%rdi,%rax)
leal (%rsi,%rcx,2), %esi
addl %edx, %esi
addl $0x2, %esi
shrl $0x2, %esi
movb %sil, 0x2(%rdi,%r9)
movb %sil, 0x3(%rdi,%rax,2)
leal (%rdx,%rdx,2), %eax
addl %ecx, %eax
addl $0x2, %eax
shrl $0x2, %eax
movb %al, 0x3(%rdi,%r9)
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_4x4_ddr(unsigned char*, int)
static void predict_4x4_ddr( uint8_t *src, int i_stride )
{
    const int lt = src[-1-i_stride];
    PREDICT_4x4_LOAD_LEFT
    PREDICT_4x4_LOAD_TOP

    src[0*i_stride+0] =
    src[1*i_stride+1] =
    src[2*i_stride+2] =
    src[3*i_stride+3] = ( t0 + 2*lt +l0 + 2 ) >> 2;

    src[0*i_stride+1] =
    src[1*i_stride+2] =
    src[2*i_stride+3] = ( lt + 2 * t0 + t1 + 2 ) >> 2;

    src[0*i_stride+2] =
    src[1*i_stride+3] = ( t0 + 2 * t1 + t2 + 2 ) >> 2;

    src[0*i_stride+3] = ( t1 + 2 * t2 + t3 + 2 ) >> 2;

    src[1*i_stride+0] =
    src[2*i_stride+1] =
    src[3*i_stride+2] = ( lt + 2 * l0 + l1 + 2 ) >> 2;

    src[2*i_stride+0] =
    src[3*i_stride+1] = ( l0 + 2 * l1 + l2 + 2 ) >> 2;

    src[3*i_stride+0] = ( l1 + 2 * l2 + l3 + 2 ) >> 2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movslq %esi, %rax
notl %esi
movslq %esi, %rcx
movzbl (%rdi,%rcx), %r10d
movzbl -0x1(%rdi), %r9d
movzbl -0x1(%rdi,%rax), %edx
movzbl -0x1(%rdi,%rax,2), %r8d
leaq (%rax,%rax,2), %rcx
movzbl -0x1(%rdi,%rcx), %esi
movq %rdi, %r11
subq %rax, %r11
movzbl (%r11), %r15d
movzbl 0x1(%r11), %ebx
movzbl 0x2(%r11), %r14d
movzbl 0x3(%r11), %r11d
leal (%r9,%r10,2), %r12d
addl $0x2, %r12d
addl %r15d, %r12d
shrl $0x2, %r12d
movb %r12b, 0x3(%rdi,%rcx)
movb %r12b, 0x2(%rdi,%rax,2)
movb %r12b, 0x1(%rdi,%rax)
movb %r12b, (%rdi)
leal (%r10,%r15,2), %r12d
addl $0x2, %r12d
addl %ebx, %r12d
shrl $0x2, %r12d
movb %r12b, 0x3(%rdi,%rax,2)
movb %r12b, 0x2(%rdi,%rax)
movb %r12b, 0x1(%rdi)
leal (%r15,%rbx,2), %r15d
addl %r14d, %r15d
addl $0x2, %r15d
shrl $0x2, %r15d
movb %r15b, 0x3(%rdi,%rax)
movb %r15b, 0x2(%rdi)
leal (%rbx,%r14,2), %ebx
addl %ebx, %r11d
addl $0x2, %r11d
shrl $0x2, %r11d
movb %r11b, 0x3(%rdi)
leaq (%rax,%rax), %r11
leal (%r10,%r9,2), %r10d
addl $0x2, %r10d
addl %edx, %r10d
shrl $0x2, %r10d
movb %r10b, 0x2(%rdi,%rcx)
movslq %r11d, %r11
movb %r10b, 0x1(%rdi,%r11)
movb %r10b, (%rdi,%rax)
leal (%r9,%rdx,2), %r9d
addl $0x2, %r9d
addl %r8d, %r9d
shrl $0x2, %r9d
movb %r9b, 0x1(%rdi,%rcx)
movb %r9b, (%rdi,%rax,2)
leal (%rdx,%r8,2), %eax
addl %esi, %eax
addl $0x2, %eax
shrl $0x2, %eax
movb %al, (%rdi,%rcx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_4x4_vr(unsigned char*, int)
static void predict_4x4_vr( uint8_t *src, int i_stride )
{
    const int lt = src[-1-i_stride];
    PREDICT_4x4_LOAD_LEFT
    PREDICT_4x4_LOAD_TOP
    /* produce warning as l3 is unused */

    src[0*i_stride+0]=
    src[2*i_stride+1]= ( lt + t0 + 1 ) >> 1;

    src[0*i_stride+1]=
    src[2*i_stride+2]= ( t0 + t1 + 1 ) >> 1;

    src[0*i_stride+2]=
    src[2*i_stride+3]= ( t1 + t2 + 1 ) >> 1;

    src[0*i_stride+3]= ( t2 + t3 + 1 ) >> 1;

    src[1*i_stride+0]=
    src[3*i_stride+1]= ( l0 + 2 * lt + t0 + 2 ) >> 2;

    src[1*i_stride+1]=
    src[3*i_stride+2]= ( lt + 2 * t0 + t1 + 2 ) >> 2;

    src[1*i_stride+2]=
    src[3*i_stride+3]= ( t0 + 2 * t1 + t2 + 2) >> 2;

    src[1*i_stride+3]= ( t1 + 2 * t2 + t3 + 2 ) >> 2;
    src[2*i_stride+0]= ( lt + 2 * l0 + l1 + 2 ) >> 2;
    src[3*i_stride+0]= ( l0 + 2 * l1 + l2 + 2 ) >> 2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movslq %esi, %rax
notl %esi
movslq %esi, %rcx
movzbl (%rdi,%rcx), %r9d
movzbl -0x1(%rdi), %edx
movzbl -0x1(%rdi,%rax), %r8d
leaq (%rax,%rax), %r15
movzbl -0x1(%rdi,%rax,2), %esi
leaq (%rax,%rax,2), %rcx
movq %rdi, %r11
subq %rax, %r11
movzbl (%r11), %r14d
movzbl 0x1(%r11), %r10d
movzbl 0x2(%r11), %ebx
movzbl 0x3(%r11), %r11d
leal (%r14,%r9), %r12d
incl %r12d
shrl %r12d
movslq %r15d, %r15
movb %r12b, 0x1(%rdi,%r15)
movb %r12b, (%rdi)
leal (%r14,%r10), %r15d
incl %r15d
shrl %r15d
movb %r15b, 0x2(%rdi,%rax,2)
movb %r15b, 0x1(%rdi)
leal (%r10,%rbx), %r15d
incl %r15d
shrl %r15d
movb %r15b, 0x3(%rdi,%rax,2)
movb %r15b, 0x2(%rdi)
leal (%rbx,%r11), %r15d
incl %r15d
shrl %r15d
movb %r15b, 0x3(%rdi)
leal (%rdx,%r9,2), %r15d
addl $0x2, %r15d
addl %r14d, %r15d
shrl $0x2, %r15d
movb %r15b, 0x1(%rdi,%rcx)
movb %r15b, (%rdi,%rax)
leal (%r9,%r14,2), %r15d
addl $0x2, %r15d
addl %r10d, %r15d
shrl $0x2, %r15d
movb %r15b, 0x2(%rdi,%rcx)
movb %r15b, 0x1(%rdi,%rax)
leal (%r14,%r10,2), %r14d
addl %ebx, %r14d
addl $0x2, %r14d
shrl $0x2, %r14d
movb %r14b, 0x3(%rdi,%rcx)
movb %r14b, 0x2(%rdi,%rax)
leal (%r10,%rbx,2), %r10d
addl %r11d, %r10d
addl $0x2, %r10d
shrl $0x2, %r10d
movb %r10b, 0x3(%rdi,%rax)
leal (%r9,%rdx,2), %r9d
addl $0x2, %r9d
addl %r8d, %r9d
shrl $0x2, %r9d
movb %r9b, (%rdi,%rax,2)
leal (%rdx,%r8,2), %eax
addl $0x2, %eax
addl %esi, %eax
shrl $0x2, %eax
movb %al, (%rdi,%rcx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_4x4_hd(unsigned char*, int)
static void predict_4x4_hd( uint8_t *src, int i_stride )
{
    const int lt= src[-1-1*i_stride];
    PREDICT_4x4_LOAD_LEFT
    PREDICT_4x4_LOAD_TOP
    /* produce warning as t3 is unused */

    src[0*i_stride+0]=
    src[1*i_stride+2]= ( lt + l0 + 1 ) >> 1;
    src[0*i_stride+1]=
    src[1*i_stride+3]= ( l0 + 2 * lt + t0 + 2 ) >> 2;
    src[0*i_stride+2]= ( lt + 2 * t0 + t1 + 2 ) >> 2;
    src[0*i_stride+3]= ( t0 + 2 * t1 + t2 + 2 ) >> 2;
    src[1*i_stride+0]=
    src[2*i_stride+2]= ( l0 + l1 + 1 ) >> 1;
    src[1*i_stride+1]=
    src[2*i_stride+3]= ( lt + 2 * l0 + l1 + 2 ) >> 2;
    src[2*i_stride+0]=
    src[3*i_stride+2]= ( l1 + l2+ 1 ) >> 1;
    src[2*i_stride+1]=
    src[3*i_stride+3]= ( l0 + 2 * l1 + l2 + 2 ) >> 2;
    src[3*i_stride+0]= ( l2 + l3 + 1 ) >> 1;
    src[3*i_stride+1]= ( l1 + 2 * l2 + l3 + 2 ) >> 2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movslq %esi, %r9
notl %esi
movslq %esi, %rax
movzbl (%rdi,%rax), %r11d
movzbl -0x1(%rdi), %r10d
movzbl -0x1(%rdi,%r9), %ecx
leaq (%r9,%r9), %r8
movzbl -0x1(%rdi,%r9,2), %edx
leaq (%r9,%r9,2), %rax
movzbl -0x1(%rdi,%rax), %esi
movq %rdi, %rbx
subq %r9, %rbx
movzbl (%rbx), %r14d
movzbl 0x1(%rbx), %r15d
movzbl 0x2(%rbx), %ebx
leal (%r10,%r11), %r12d
incl %r12d
shrl %r12d
movb %r12b, 0x2(%rdi,%r9)
movb %r12b, (%rdi)
leal (%r10,%r11,2), %r12d
addl $0x2, %r12d
addl %r14d, %r12d
shrl $0x2, %r12d
movb %r12b, 0x3(%rdi,%r9)
movb %r12b, 0x1(%rdi)
leal (%r11,%r14,2), %r12d
addl $0x2, %r12d
addl %r15d, %r12d
shrl $0x2, %r12d
movb %r12b, 0x2(%rdi)
leal (%r14,%r15,2), %r14d
addl %r14d, %ebx
addl $0x2, %ebx
shrl $0x2, %ebx
movb %bl, 0x3(%rdi)
leal (%r10,%rcx), %ebx
incl %ebx
shrl %ebx
movb %bl, 0x2(%rdi,%r9,2)
movb %bl, (%rdi,%r9)
leal (%r11,%r10,2), %r11d
addl $0x2, %r11d
addl %ecx, %r11d
shrl $0x2, %r11d
movb %r11b, 0x3(%rdi,%r9,2)
movb %r11b, 0x1(%rdi,%r9)
leal (%rcx,%rdx), %r11d
incl %r11d
shrl %r11d
movb %r11b, 0x2(%rdi,%rax)
movb %r11b, (%rdi,%r9,2)
leal (%r10,%rcx,2), %r9d
addl $0x2, %r9d
addl %edx, %r9d
shrl $0x2, %r9d
movb %r9b, 0x3(%rdi,%rax)
movslq %r8d, %r8
movb %r9b, 0x1(%rdi,%r8)
leal (%rdx,%rsi), %r8d
incl %r8d
shrl %r8d
movb %r8b, (%rdi,%rax)
leal (%rcx,%rdx,2), %ecx
addl %esi, %ecx
addl $0x2, %ecx
shrl $0x2, %ecx
movb %cl, 0x1(%rdi,%rax)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_4x4_vl(unsigned char*, int)
static void predict_4x4_vl( uint8_t *src, int i_stride )
{
    PREDICT_4x4_LOAD_TOP
    PREDICT_4x4_LOAD_TOP_RIGHT
    /* produce warning as t7 is unused */

    src[0*i_stride+0]= ( t0 + t1 + 1 ) >> 1;
    src[0*i_stride+1]=
    src[2*i_stride+0]= ( t1 + t2 + 1 ) >> 1;
    src[0*i_stride+2]=
    src[2*i_stride+1]= ( t2 + t3 + 1 ) >> 1;
    src[0*i_stride+3]=
    src[2*i_stride+2]= ( t3 + t4+ 1 ) >> 1;
    src[2*i_stride+3]= ( t4 + t5+ 1 ) >> 1;
    src[1*i_stride+0]= ( t0 + 2 * t1 + t2 + 2 ) >> 2;
    src[1*i_stride+1]=
    src[3*i_stride+0]= ( t1 + 2 * t2 + t3 + 2 ) >> 2;
    src[1*i_stride+2]=
    src[3*i_stride+1]= ( t2 + 2 * t3 + t4 + 2 ) >> 2;
    src[1*i_stride+3]=
    src[3*i_stride+2]= ( t3 + 2 * t4 + t5 + 2 ) >> 2;
    src[3*i_stride+3]= ( t4 + 2 * t5 + t6 + 2 ) >> 2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movslq %esi, %rax
movq %rdi, %rcx
subq %rax, %rcx
movzbl (%rcx), %r11d
movzbl 0x1(%rcx), %r10d
movzbl 0x2(%rcx), %r9d
movzbl 0x3(%rcx), %r8d
movzbl 0x4(%rcx), %edx
movzbl 0x5(%rcx), %esi
movzbl 0x6(%rcx), %ecx
leal (%r10,%r11), %ebx
incl %ebx
shrl %ebx
movb %bl, (%rdi)
leal (%r10,%r9), %ebx
incl %ebx
shrl %ebx
leaq (%rax,%rax), %r14
movb %bl, (%rdi,%rax,2)
movb %bl, 0x1(%rdi)
leal (%r9,%r8), %ebx
incl %ebx
shrl %ebx
movslq %r14d, %r14
movb %bl, 0x1(%rdi,%r14)
movb %bl, 0x2(%rdi)
leal (%r8,%rdx), %ebx
incl %ebx
shrl %ebx
movb %bl, 0x2(%rdi,%rax,2)
movb %bl, 0x3(%rdi)
leal (%rdx,%rsi), %ebx
incl %ebx
shrl %ebx
movb %bl, 0x3(%rdi,%rax,2)
addl %r9d, %r11d
addl $0x2, %r11d
leal (%r11,%r10,2), %r11d
shrl $0x2, %r11d
movb %r11b, (%rdi,%rax)
addl %r8d, %r10d
addl $0x2, %r10d
leal (%r10,%r9,2), %r10d
shrl $0x2, %r10d
leaq (%rax,%rax,2), %r11
movb %r10b, (%rdi,%r11)
movb %r10b, 0x1(%rdi,%rax)
leal (%r9,%r8,2), %r9d
addl $0x2, %r9d
addl %edx, %r9d
shrl $0x2, %r9d
movb %r9b, 0x1(%rdi,%r11)
movb %r9b, 0x2(%rdi,%rax)
leal (%r8,%rdx,2), %r8d
addl $0x2, %r8d
addl %esi, %r8d
shrl $0x2, %r8d
movb %r8b, 0x2(%rdi,%r11)
movb %r8b, 0x3(%rdi,%rax)
leal (%rdx,%rsi,2), %eax
addl %ecx, %eax
addl $0x2, %eax
shrl $0x2, %eax
movb %al, 0x3(%rdi,%r11)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/akumrao[P]videoAnalyzer/core/predict.c
// Function: predict_4x4_hu(unsigned char*, int)
static void predict_4x4_hu( uint8_t *src, int i_stride )
{
    PREDICT_4x4_LOAD_LEFT

    src[0*i_stride+0]= ( l0 + l1 + 1 ) >> 1;
    src[0*i_stride+1]= ( l0 + 2 * l1 + l2 + 2 ) >> 2;

    src[0*i_stride+2]=
    src[1*i_stride+0]= ( l1 + l2 + 1 ) >> 1;

    src[0*i_stride+3]=
    src[1*i_stride+1]= ( l1 + 2*l2 + l3 + 2 ) >> 2;

    src[1*i_stride+2]=
    src[2*i_stride+0]= ( l2 + l3 + 1 ) >> 1;

    src[1*i_stride+3]=
    src[2*i_stride+1]= ( l2 + 2 * l3 + l3 + 2 ) >> 2;

    src[2*i_stride+3]=
    src[3*i_stride+1]=
    src[3*i_stride+0]=
    src[2*i_stride+2]=
    src[3*i_stride+2]=
    src[3*i_stride+3]= l3;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movzbl -0x1(%rdi), %r10d
movslq %esi, %rax
movzbl -0x1(%rdi,%rax), %r9d
leaq (%rax,%rax), %rsi
movzbl -0x1(%rdi,%rax,2), %r8d
leaq (%rax,%rax,2), %rcx
movzbl -0x1(%rdi,%rcx), %edx
leal (%r9,%r10), %r11d
incl %r11d
shrl %r11d
movb %r11b, (%rdi)
addl %r8d, %r10d
addl $0x2, %r10d
leal (%r10,%r9,2), %r10d
shrl $0x2, %r10d
movb %r10b, 0x1(%rdi)
leal (%r9,%r8), %r10d
incl %r10d
shrl %r10d
movb %r10b, (%rdi,%rax)
movb %r10b, 0x2(%rdi)
addl %edx, %r9d
leal (%r9,%r8,2), %r9d
addl $0x2, %r9d
shrl $0x2, %r9d
movb %r9b, 0x1(%rdi,%rax)
movb %r9b, 0x3(%rdi)
leal (%r8,%rdx), %r9d
incl %r9d
shrl %r9d
movb %r9b, (%rdi,%rax,2)
movb %r9b, 0x2(%rdi,%rax)
addl %edx, %r8d
addl $0x2, %r8d
leal (%r8,%rdx,2), %r8d
shrl $0x2, %r8d
movslq %esi, %rsi
movb %r8b, 0x1(%rdi,%rsi)
movb %r8b, 0x3(%rdi,%rax)
movb %dl, 0x3(%rdi,%rcx)
movb %dl, 0x2(%rdi,%rcx)
movb %dl, 0x2(%rdi,%rax,2)
movb %dl, (%rdi,%rcx)
movb %dl, 0x1(%rdi,%rcx)
movb %dl, 0x3(%rdi,%rax,2)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 %ecx, %edx
addl $0x2, %edx
shrl $0x2, %edx
movl $0x4, %ecx
movzbl %dl, %edx
imull $0x1010101, %edx, %edx  # imm = 0x1010101
movl %edx, (%rdi)
addq %rax, %rdi
decl %ecx
jne 0xb7fa
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 %ecx, %edx
addl $0x2, %edx
shrl $0x2, %edx
movl $0x4, %ecx
movzbl %dl, %edx
imull $0x1010101, %edx, %edx  # imm = 0x1010101
movl %edx, (%rdi)
addq %rax, %rdi
decl %ecx
jne 0xb83b
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x19936(%rip), %rdi     # 0x251b4
leaq 0x1bf1f(%rip), %rsi     # 0x277a4
leaq 0x1bf2a(%rip), %rdx     # 0x277b6
xorl %eax, %eax
callq 0x4c22
movq 0x10(%rbx), %rax
movzbl (%r14), %ecx
andl $0x1f, %ecx
movl %ecx, 0x4(%rbx)
movzbl (%r14), %ecx
shrl $0x5, %ecx
andl $0x3, %ecx
movl %ecx, (%rbx)
cmpl $0x2, %r15d
jl 0xb8f9
movslq %r15d, %rcx
addq %r14, %rcx
incq %r14
leaq -0x3(%rcx), %rdx
cmpq %rdx, %r14
jae 0xb8e8
cmpb $0x0, (%r14)
jne 0xb8e8
cmpb $0x0, 0x1(%r14)
jne 0xb8e8
cmpb $0x3, 0x2(%r14)
jne 0xb8e8
movw $0x0, (%rax)
addq $0x2, %rax
addq $0x3, %r14
jmp 0xb8f4
movb (%r14), %sil
incq %r14
movb %sil, (%rax)
incq %rax
cmpq %rcx, %r14
jb 0xb8c0
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_O1/akumrao[P]videoAnalyzer/decoder/decoder.c
// Function: x264_slice_idr(x264_t*)
static void x264_slice_idr(x264_t *h) {LOG_CALL;
    int i;

    h->i_poc_msb = 0;
    h->i_poc_lsb = 0;
    h->i_frame_offset = 0;
    h->i_frame_num = 0;

    if (h->sps)
    {
        for (i = 0; i < h->sps->i_num_ref_frames + 1; i++)
        {
            h->freference[i]->i_poc = -1;
        }

        h->fdec = h->freference[0];
        h->i_ref0 = 0;
        h->i_ref1 = 0;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x17656(%rip), %rdi     # 0x251b4
leaq 0x19c3f(%rip), %rsi     # 0x277a4
leaq 0x19d69(%rip), %rdx     # 0x278d5
xorl %eax, %eax
callq 0x4c22
xorps %xmm0, %xmm0
movups %xmm0, 0xc8(%rbx)
movq 0x8ed8(%rbx), %rax
testq %rax, %rax
je 0xdbcb
movl 0x434(%rax), %eax
testl %eax, %eax
js 0xdbaf
incq %rax
xorl %ecx, %ecx
movq 0x10eff0(%rbx,%rcx,8), %rdx
movl $0xffffffff, 0x68(%rdx) # imm = 0xFFFFFFFF
incq %rcx
cmpq %rcx, %rax
jne 0xdb98
movq 0x10eff0(%rbx), %rax
movq %rax, 0x10efe0(%rbx)
xorl %eax, %eax
movl %eax, 0x10f078(%rbx)
movl %eax, 0x10f100(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x175d1(%rip), %rdi     # 0x251b4
leaq 0x19bba(%rip), %rsi     # 0x277a4
leaq 0x19cb4(%rip), %rdx     # 0x278a5
xorl %eax, %eax
callq 0x4c22
movq 0x10ee48(%rbx), %rax
cmpl $0x0, (%rax)
je 0xdc50
cmpl $0x0, 0x4(%rax)
je 0xdc50
movq 0x8ed8(%rbx), %rax
cmpl $0x0, 0x434(%rax)
js 0xdc44
movq $-0x1, %r14
movq 0x10eff8(%rbx,%r14,8), %rdi
callq 0x513e
movq 0x8ed8(%rbx), %rax
movslq 0x434(%rax), %rax
incq %r14
cmpq %rax, %r14
jl 0xdc21
movq 0x10efe8(%rbx), %rdi
callq 0x4838
movl $0x21e79, %r14d         # imm = 0x21E79
movq (%rbx,%r14,8), %rdi
callq 0x12f6d
incq %r14
cmpq $0x21e7e, %r14          # imm = 0x21E7E
jne 0xdc56
movq 0x10f3f0(%rbx), %rdi
callq 0x12f6d
movl $0x21e7f, %r14d         # imm = 0x21E7F
movq (%rbx,%r14,8), %rdi
callq 0x12f6d
incq %r14
cmpq $0x21e8e, %r14          # imm = 0x21E8E
jne 0xdc7d
movl $0x21e8e, %r14d         # imm = 0x21E8E
movq (%rbx,%r14,8), %rdi
callq 0x12f6d
incq %r14
cmpq $0x21e91, %r14          # imm = 0x21E91
jne 0xdc98
movl $0x21e91, %r14d         # imm = 0x21E91
movq (%rbx,%r14,8), %rdi
callq 0x12f6d
incq %r14
cmpq $0x21e98, %r14          # imm = 0x21E98
jne 0xdcb3
movq 0x10ee48(%rbx), %rdi
callq 0x4838
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x4838
// File: /workspace/github_c_makefile_star2_O1/akumrao[P]videoAnalyzer/decoder/decoder.c
// Function: x264_slice_header_dec_ref_pic_marking(x264_t*, bs_s*, int)
static int x264_slice_header_dec_ref_pic_marking(x264_t *h, bs_t *s, int i_nal_type) {LOG_CALL;
    if (i_nal_type == NAL_SLICE_IDR)
    {
        int b_no_output_of_prior_pics = bs_read1(s,"b_no_output_of_prior_pics");
        int b_long_term_reference_flag = bs_read1(s,"b_long_term_reference_flag");

        /* TODO */
        if (b_no_output_of_prior_pics)
        {

        }

        if (b_long_term_reference_flag)
        {

        }
    } else
    {
        int b_adaptive_ref_pic_marking_mode = bs_read1(s,"b_adaptive_ref_pic_marking_mode");
        if (b_adaptive_ref_pic_marking_mode)
        {
            return -1;
        }
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r15d
movq %rdi, %rbx
leaq 0x174bd(%rip), %rdi     # 0x251b4
leaq 0x19aa6(%rip), %rsi     # 0x277a4
leaq 0x19e59(%rip), %rdx     # 0x27b5e
xorl %r14d, %r14d
xorl %eax, %eax
callq 0x4c22
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
cmpl $0x5, %r15d
jne 0xdda5
cmpq %rcx, %rax
jae 0xdd4d
movl 0x18(%rbx), %ecx
decl %ecx
movl %ecx, 0x18(%rbx)
movzbl (%rax), %edx
xorl %r14d, %r14d
btl %ecx, %edx
setb %r14b
testl %ecx, %ecx
jne 0xdd4d
incq %rax
movq %rax, 0x8(%rbx)
movl $0x8, 0x18(%rbx)
leaq 0x19d94(%rip), %rdi     # 0x27ae8
leaq 0x19e29(%rip), %rdx     # 0x27b84
movl %r14d, %esi
xorl %eax, %eax
callq 0x4c22
movq 0x8(%rbx), %rax
cmpq 0x10(%rbx), %rax
jae 0xdde0
movl 0x18(%rbx), %ecx
decl %ecx
movl %ecx, 0x18(%rbx)
movzbl (%rax), %edx
xorl %esi, %esi
btl %ecx, %edx
setb %sil
testl %ecx, %ecx
jne 0xdd95
incq %rax
movq %rax, 0x8(%rbx)
movl $0x8, 0x18(%rbx)
leaq 0x19d4c(%rip), %rdi     # 0x27ae8
leaq 0x19dfb(%rip), %rdx     # 0x27b9e
jmp 0xde00
cmpq %rcx, %rax
jae 0xddf0
movl 0x18(%rbx), %ecx
decl %ecx
movl %ecx, 0x18(%rbx)
movzbl (%rax), %edx
xorl %esi, %esi
btl %ecx, %edx
setb %sil
testl %ecx, %ecx
jne 0xddd0
incq %rax
movq %rax, 0x8(%rbx)
movl $0x8, 0x18(%rbx)
leaq 0x19d11(%rip), %rdi     # 0x27ae8
leaq 0x19ddb(%rip), %rdx     # 0x27bb9
jmp 0xde00
leaq 0x19d01(%rip), %rdi     # 0x27ae8
leaq 0x19db0(%rip), %rdx     # 0x27b9e
jmp 0xddfe
leaq 0x19cf1(%rip), %rdi     # 0x27ae8
leaq 0x19dbb(%rip), %rdx     # 0x27bb9
xorl %esi, %esi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x4c22
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/akumrao[P]videoAnalyzer/decoder/macroblock.c
// Function: x264_mb_partition_ref_set(x264_macroblock_t*, int, int, int)
void x264_mb_partition_ref_set(x264_macroblock_t *mb, int i_list, int i_part, int i_ref) {LOG_CALL;
    int x, y;
    int w, h;
    int dx, dy;

    x264_mb_partition_getxy(mb, i_part, 0, &x, &y);
    if (mb->i_partition == D_16x16)
    {
        w = 4;
        h = 4;
    } else if (mb->i_partition == D_16x8)
    {
        w = 4;
        h = 2;
    } else if (mb->i_partition == D_8x16)
    {
        w = 2;
        h = 4;
    } else
    {
        /* D_8x8 */
        w = 2;
        h = 2;
    }

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movl %edx, %r12d
movl %esi, %r15d
movq %rdi, %r14
leaq 0x17380(%rip), %rdi     # 0x251b4
leaq 0x1a421(%rip), %rsi     # 0x2825c
leaq 0x1a42f(%rip), %rdx     # 0x28271
xorl %r13d, %r13d
xorl %eax, %eax
callq 0x4c22
movl 0x1c(%r14), %ecx
cmpl $0xd, %ecx
je 0xde69
cmpl $0xf, %ecx
je 0xde7a
cmpl $0xe, %ecx
jne 0xde82
addl %r12d, %r12d
xorl %esi, %esi
movl %r12d, %r13d
jmp 0xde84
movl %r12d, %r13d
shrl $0x1f, %r13d
addl %r12d, %r13d
andl $-0x2, %r13d
subl %r13d, %r12d
addl %r12d, %r12d
movl %r12d, %esi
jmp 0xde84
xorl %esi, %esi
addl $-0xe, %ecx
movl $0x2, %eax
movl $0x2, %edx
cmpl $0x2, %ecx
ja 0xdeae
movl %ecx, %ecx
leaq 0x1a2d1(%rip), %rax     # 0x28170
movq (%rax,%rcx,8), %rax
leaq 0x1a2de(%rip), %rdx     # 0x28188
movq (%rdx,%rcx,8), %rdx
movslq %r15d, %rcx
movslq %r13d, %rdi
movslq %esi, %rsi
leaq (%rsi,%rsi,4), %rsi
shlq $0x5, %rsi
leaq (%rdi,%rdi,4), %rdi
leaq (%rsi,%rdi,8), %rsi
leaq (%rsi,%rcx,4), %rcx
addq %r14, %rcx
addq $0x30, %rcx
xorl %esi, %esi
movq %rdx, %rdi
movq %rcx, %r8
movl %ebx, (%r8)
addq $0x28, %r8
decq %rdi
jne 0xdeda
incq %rsi
addq $0xa0, %rcx
cmpq %rax, %rsi
jne 0xded4
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/akumrao[P]videoAnalyzer/decoder/macroblock.c
// Function: x264_mb_partition_mv_set(x264_macroblock_t*, int, int, int, int*)
void x264_mb_partition_mv_set(x264_macroblock_t *mb, int i_list, int i_part, int i_sub, int mv[2]) {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].mv[i_list][0] = mv[0];
            mb->partition[x + dx][y + dy].mv[i_list][1] = mv[1];
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movl %ecx, %r13d
movl %edx, %r12d
movl %esi, -0x2c(%rbp)
movq %rdi, %r14
leaq 0x1728c(%rip), %rdi     # 0x251b4
leaq 0x1a32d(%rip), %rsi     # 0x2825c
leaq 0x1a355(%rip), %rdx     # 0x2828b
xorl %r15d, %r15d
xorl %eax, %eax
callq 0x4c22
movl 0x1c(%r14), %ecx
cmpl $0xd, %ecx
je 0xdf65
cmpl $0xf, %ecx
je 0xdf5f
cmpl $0xe, %ecx
movl -0x2c(%rbp), %r13d
jne 0xdf5b
leal (%r12,%r12), %r15d
xorl %eax, %eax
jmp 0xdfcd
leal (%r12,%r12), %eax
jmp 0xdfc9
movl %r12d, %r15d
shrl $0x1f, %r15d
addl %r12d, %r15d
andl $-0x2, %r15d
movl %r12d, %eax
subl %r15d, %eax
addl %eax, %eax
movslq %r12d, %rdx
movl 0x20(%r14,%rdx,4), %edx
cmpl $0xa, %edx
ja 0xdfc9
movl $0x111, %esi            # imm = 0x111
btl %edx, %esi
jb 0xdfab
movl $0x222, %esi            # imm = 0x222
btl %edx, %esi
jb 0xdfc6
movl $0x444, %esi            # imm = 0x444
btl %edx, %esi
jae 0xdfc9
addl %r13d, %eax
jmp 0xdfc9
movl %r13d, %edx
shrl $0x1f, %edx
addl %r13d, %edx
movl %edx, %esi
andl $-0x2, %esi
subl %esi, %r13d
addl %r13d, %eax
sarl %edx
addl %edx, %r15d
jmp 0xdfc9
addl %r13d, %r15d
movl -0x2c(%rbp), %r13d
cmpl $0xd, %ecx
je 0xdff4
movl $0x4, %edx
cmpl $0xf, %ecx
je 0xdfed
cmpl $0xe, %ecx
jne 0xdfe6
movl $0x2, %edx
movl $0x4, %ecx
jmp 0xe022
movl $0x2, %ecx
jmp 0xe022
movslq %r12d, %rcx
movl 0x20(%r14,%rcx,4), %esi
movl $0x2, %ecx
movl $0x2, %edx
cmpq $0xa, %rsi
ja 0xe022
leaq 0x1a18d(%rip), %rcx     # 0x281a0
movq (%rcx,%rsi,8), %rcx
leaq 0x1a1da(%rip), %rdx     # 0x281f8
movq (%rdx,%rsi,8), %rdx
movslq %r13d, %rsi
movslq %r15d, %rdi
cltq
leaq (%rax,%rax,4), %rax
shlq $0x5, %rax
leaq (%rdi,%rdi,4), %rdi
leaq (%rax,%rdi,8), %rax
leaq (%rax,%rsi,8), %rax
addq %r14, %rax
addq $0x3c, %rax
xorl %esi, %esi
movq %rdx, %rdi
movq %rax, %r8
movl (%rbx), %r9d
movl %r9d, -0x4(%r8)
movl 0x4(%rbx), %r9d
movl %r9d, (%r8)
addq $0x28, %r8
decq %rdi
jne 0xe04d
incq %rsi
addq $0xa0, %rax
cmpq %rcx, %rsi
jne 0xe047
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/akumrao[P]videoAnalyzer/decoder/../core/bs.h
// Function: bs_read_te(bs_s*, int, char const*)
static inline int
bs_read_te(bs_t *s, int x, const char str[]) {LOG_CALL;
    if (x == 1)
    {
        return 1 - _bs_read1(s);
    }
    else if (x > 1)
    {
        return _bs_read_ue(s);
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r15d
movq %rdi, %rbx
leaq 0x15e8d(%rip), %rdi     # 0x251b4
leaq 0x1858a(%rip), %rsi     # 0x278b8
leaq 0x190d4(%rip), %rdx     # 0x28409
xorl %r14d, %r14d
xorl %eax, %eax
callq 0x4c22
cmpl $0x1, %r15d
jne 0xf382
movq 0x8(%rbx), %rax
xorl %r14d, %r14d
cmpq 0x10(%rbx), %rax
jae 0xf379
movl 0x18(%rbx), %ecx
decl %ecx
movl %ecx, 0x18(%rbx)
movzbl (%rax), %edx
xorl %r14d, %r14d
btl %ecx, %edx
setb %r14b
testl %ecx, %ecx
jne 0xf379
incq %rax
movq %rax, 0x8(%rbx)
movl $0x8, 0x18(%rbx)
xorl $0x1, %r14d
jmp 0xf457
jle 0xf457
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rdx
xorl %eax, %eax
cmpq %rdx, %rcx
jae 0xf3c1
movl 0x18(%rbx), %edi
decl %edi
movl %edi, 0x18(%rbx)
movzbl (%rcx), %r8d
xorl %esi, %esi
btl %edi, %r8d
setb %sil
testl %edi, %edi
jne 0xf3c3
incq %rcx
movq %rcx, 0x8(%rbx)
movl $0x8, 0x18(%rbx)
jmp 0xf3c3
xorl %esi, %esi
testl %esi, %esi
jne 0xf3d5
cmpq %rdx, %rcx
jae 0xf3d5
cmpl $0x1f, %eax
ja 0xf3d5
incl %eax
jmp 0xf392
testl %eax, %eax
je 0xf41f
movq 0x8(%rbx), %rdi
xorl %esi, %esi
leaq 0x18bea(%rip), %r9      # 0x27fd0
movl %eax, %r8d
cmpq %rdx, %rdi
jae 0xf446
movslq 0x18(%rbx), %r10
movl %r10d, %ecx
subl %r8d, %ecx
movzbl (%rdi), %r11d
jns 0xf423
andl (%r9,%r10,4), %r11d
negb %cl
shll %cl, %r11d
orl %r11d, %esi
incq %rdi
movq %rdi, 0x8(%rbx)
movl $0x8, 0x18(%rbx)
subl %r10d, %r8d
jg 0xf3e9
jmp 0xf446
xorl %esi, %esi
jmp 0xf446
shrl %cl, %r11d
movl %r8d, %edx
andl (%r9,%rdx,4), %r11d
orl %r11d, %esi
movl %ecx, 0x18(%rbx)
cmpl %r8d, %r10d
jne 0xf446
incq %rdi
movq %rdi, 0x8(%rbx)
movl $0x8, 0x18(%rbx)
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movl %eax, %ecx
shll %cl, %r14d
notl %r14d
addl %esi, %r14d
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/akumrao[P]videoAnalyzer/decoder/../core/bs.h
// Function: bs_read1(bs_s*, char const*)
static inline uint32_t
bs_read1(bs_t *s, const char str[]) {

    if (s->p < s->p_end)
    {
        unsigned int i_result;

        s->i_left--;
        i_result = (*s->p >> s->i_left)&0x01;
        if (s->i_left == 0)
        {
            s->p++;
            s->i_left = 8;
        }
        

        myPrintf("bs_read1 %u %s\n", i_result, str);
    
        return i_result;
    }
    myPrintf("bs_read1 %u %s\n", 0,str);
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rsi, %rdx
movq 0x8(%rdi), %rax
xorl %ebx, %ebx
cmpq 0x10(%rdi), %rax
jae 0x11bd6
movl 0x18(%rdi), %ecx
decl %ecx
movl %ecx, 0x18(%rdi)
movzbl (%rax), %esi
xorl %ebx, %ebx
btl %ecx, %esi
setb %bl
testl %ecx, %ecx
jne 0x11bd6
incq %rax
movq %rax, 0x8(%rdi)
movl $0x8, 0x18(%rdi)
leaq 0x15f0b(%rip), %rdi     # 0x27ae8
movl %ebx, %esi
xorl %eax, %eax
callq 0x4c22
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/akumrao[P]videoAnalyzer/decoder/../core/bs.h
// Function: bs_read_ue(bs_s*, char const*)
static inline int
bs_read_ue(bs_t *s, const char str[]) {
    int i = 0;

    while (_bs_read1(s) == 0 && s->p < s->p_end && i < 32)
    {
        i++;
    }
    int ret =( (1 << i) - 1 + _bs_read(s, i));
    myPrintf("bs_read_ue %d %s\n", ret, str);
    return ret;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rdx
movq 0x8(%rdi), %rcx
movq 0x10(%rdi), %rsi
xorl %eax, %eax
cmpq %rsi, %rcx
jae 0x11c37
movl 0x18(%rdi), %r9d
decl %r9d
movl %r9d, 0x18(%rdi)
movzbl (%rcx), %r10d
xorl %r8d, %r8d
btl %r9d, %r10d
setb %r8b
testl %r9d, %r9d
jne 0x11c3a
incq %rcx
movq %rcx, 0x8(%rdi)
movl $0x8, 0x18(%rdi)
jmp 0x11c3a
xorl %r8d, %r8d
testl %r8d, %r8d
jne 0x11c4d
cmpq %rsi, %rcx
jae 0x11c4d
cmpl $0x1f, %eax
ja 0x11c4d
incl %eax
jmp 0x11c03
testl %eax, %eax
je 0x11c97
movq 0x8(%rdi), %r9
xorl %r8d, %r8d
leaq 0x16961(%rip), %r11     # 0x285c0
movl %eax, %r10d
cmpq %rsi, %r9
jae 0x11cbf
movslq 0x18(%rdi), %rbx
movl %ebx, %ecx
subl %r10d, %ecx
movzbl (%r9), %r14d
jns 0x11c9c
andl (%r11,%rbx,4), %r14d
negb %cl
shll %cl, %r14d
orl %r14d, %r8d
incq %r9
movq %r9, 0x8(%rdi)
movl $0x8, 0x18(%rdi)
subl %ebx, %r10d
jg 0x11c62
jmp 0x11cbf
xorl %r8d, %r8d
jmp 0x11cbf
shrl %cl, %r14d
movl %r10d, %esi
andl (%r11,%rsi,4), %r14d
orl %r14d, %r8d
movl %ecx, 0x18(%rdi)
cmpl %r10d, %ebx
jne 0x11cbf
incq %r9
movq %r9, 0x8(%rdi)
movl $0x8, 0x18(%rdi)
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %eax, %ecx
shll %cl, %ebx
notl %ebx
addl %r8d, %ebx
leaq 0x15dd2(%rip), %rdi     # 0x27aa6
movl %ebx, %esi
xorl %eax, %eax
callq 0x4c22
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/akumrao[P]videoAnalyzer/decoder/vlc.c
// Function: x264_vlc_table_lookup_new(vlc_t const*, int, int)
x264_vlc_table_t *x264_vlc_table_lookup_new( const vlc_t *vlc, int i_vlc, int i_lookup_bits )
{
    x264_vlc_table_t *table = (x264_vlc_table_t *)x264_aligned_alloc( sizeof( x264_vlc_table_t ) );

    table->i_lookup_bits = i_lookup_bits;
    table->i_lookup = 0;
    table->lookup   = NULL;

    vlc_table_create_part( table, vlc, i_lookup_bits, i_vlc, 0, 0 );

    return table;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebx
movl %esi, %r14d
movq %rdi, %r15
movl $0x10, %edi
callq 0x47e2
movq %rax, %r12
movl %ebx, (%rax)
movl $0x0, 0x4(%rax)
movq $0x0, 0x8(%rax)
movq %rax, %rdi
movq %r15, %rsi
movl %ebx, %edx
movl %r14d, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x12d93
movq %r12, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/akumrao[P]videoAnalyzer/encoder/encoder.c
// Function: x264_nal_encode(unsigned char*, int*, int, x264_nal_t*)
int x264_nal_encode(uint8_t *p_data, int *pi_data, int b_annexeb, x264_nal_t *nal) {LOG_CALL;
    uint8_t *dst = p_data;
    uint8_t *src = nal->p_payload;
    uint8_t *end = &nal->p_payload[nal->i_payload];

    int i_count = 0;

    /* FIXME this code doesn't check overflow */

    if (b_annexeb)
    {
        /* long nal start code (we always use long ones)*/
        *dst++ = 0x00;
        *dst++ = 0x00;
        *dst++ = 0x00;
        *dst++ = 0x01;
    }

    /* nal header */
    *dst++ = (0x00 << 7) | (nal->i_ref_idc << 5) | nal->i_type;

    while (src < end)
    {
        if (i_count == 2 && *src <= 0x03)
        {
            *dst++ = 0x03;
            i_count = 0;
        }
        if (*src == 0)
        {
            i_count++;
        } else
        {
            i_count = 0;
        }
        *dst++ = *src++;
    }
    *pi_data = dst - (uint8_t*) p_data;

    return *pi_data;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r15
movl %edx, %r12d
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x105f9(%rip), %rdi     # 0x251b4
leaq 0x14566(%rip), %rsi     # 0x29128
leaq 0x14605(%rip), %rdx     # 0x291ce
xorl %eax, %eax
callq 0x4c22
movq 0x10(%r15), %rcx
movslq 0x8(%r15), %rdx
movq %r14, %rsi
testl %r12d, %r12d
je 0x14beb
movl $0x1000000, (%r14)      # imm = 0x1000000
leaq 0x4(%r14), %rsi
movl (%r15), %eax
shll $0x5, %eax
orl 0x4(%r15), %eax
movb %al, (%rsi)
leaq 0x1(%rsi), %rax
testl %edx, %edx
jle 0x14c41
addq %rcx, %rdx
xorl %edi, %edi
xorl %r8d, %r8d
cmpl $0x2, %r8d
jne 0x14c25
movl $0x2, %r8d
cmpb $0x3, (%rcx)
ja 0x14c25
addq $0x2, %rsi
movb $0x3, (%rax)
xorl %r8d, %r8d
movq %rsi, %rax
movq %rax, %rsi
movb (%rcx), %al
incl %r8d
testb %al, %al
cmovnel %edi, %r8d
incq %rcx
movb %al, (%rsi)
leaq 0x1(%rsi), %rax
cmpq %rdx, %rcx
jb 0x14c07
subl %r14d, %eax
movl %eax, (%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/akumrao[P]videoAnalyzer/encoder/encoder.c
// Function: x264_encoder_headers(x264_t*, x264_nal_t**, int*)
int x264_encoder_headers(x264_t *h, x264_nal_t **pp_nal, int *pi_nal) {LOG_CALL;
    /* init bitstream context */
    h->i_nal = 0;
    bs_init(&h->bs, h->p_bitstream, h->i_bitstream);

    /* Put SPS and PPS */
    if (h->i_frame == 0)
    {
        /* generate sequence parameters */
        x264_nal_start(h, NAL_SPS, NAL_PRIORITY_HIGHEST);
        x264_sps_write(&h->bs, h->sps);
        x264_nal_end(h);

        /* generate picture parameters */
        x264_nal_start(h, NAL_PPS, NAL_PRIORITY_HIGHEST);
        x264_pps_write(&h->bs, h->pps);
        x264_nal_end(h);
    }
    /* now set output*/
    *pi_nal = h->i_nal;
    *pp_nal = &h->nal[0];

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, -0x30(%rbp)
movq %rdi, %r14
leaq 0x10546(%rip), %r12     # 0x251b4
leaq 0x144b3(%rip), %rsi     # 0x29128
leaq 0x14562(%rip), %rdx     # 0x291de
movq %r12, %rdi
xorl %eax, %eax
callq 0x4c22
movl $0x0, 0x4(%r14)
movq 0x58(%r14), %r13
movslq 0x50(%r14), %rbx
leaq 0x1443f(%rip), %rsi     # 0x290dc
leaq 0x12c29(%rip), %rdx     # 0x278cd
movq %r12, %rdi
xorl %eax, %eax
callq 0x4c22
movq %r13, 0x60(%r14)
movq %r13, 0x68(%r14)
addq %r13, %rbx
movq %rbx, 0x70(%r14)
movl $0x8, 0x78(%r14)
cmpl $0x0, 0xc0(%r14)
jne 0x14d25
leaq 0x60(%r14), %r12
movq %r14, %rdi
movl $0x7, %esi
movl $0x3, %edx
callq 0x14d48
movq 0x8ed8(%r14), %rsi
movq %r12, %rdi
callq 0x1ebf9
movq %r14, %rdi
callq 0x14e49
movq %r14, %rdi
movl $0x8, %esi
movl $0x3, %edx
callq 0x14d48
movq 0x10dae0(%r14), %rsi
movq %r12, %rdi
callq 0x1fac9
movq %r14, %rdi
callq 0x14e49
movl 0x4(%r14), %eax
movl %eax, (%r15)
addq $0x8, %r14
movq -0x30(%rbp), %rax
movq %r14, (%rax)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/akumrao[P]videoAnalyzer/encoder/encoder.c
// Function: x264_nal_start(x264_t*, int, int)
static void x264_nal_start(x264_t *h, int i_type, int i_ref_idc) {LOG_CALL;
    x264_nal_t *nal = &h->nal[h->i_nal];

    nal->i_ref_idc = i_ref_idc;
    nal->i_type = i_type;

    bs_align_0(&h->bs); /* not needed */

    nal->i_payload = 0;
    nal->p_payload = &h->p_bitstream[bs_pos(&h->bs) / 8];
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r14d
movl %esi, %r15d
movq %rdi, %rbx
leaq 0x1044e(%rip), %r12     # 0x251b4
leaq 0x143bb(%rip), %rsi     # 0x29128
leaq 0x14582(%rip), %rdx     # 0x292f6
movq %r12, %rdi
xorl %eax, %eax
callq 0x4c22
movslq 0x4(%rbx), %rax
leaq (%rax,%rax,2), %rax
leaq (%rbx,%rax,8), %r13
addq $0x8, %r13
movl %r14d, (%r13)
movl %r15d, 0x4(%r13)
leaq 0x1433f(%rip), %rsi     # 0x290dc
leaq 0x10417(%rip), %rdx     # 0x251bb
movq %r12, %rdi
xorl %eax, %eax
callq 0x4c22
movl 0x78(%rbx), %eax
cmpl $0x8, %eax
je 0x14def
testl %eax, %eax
jle 0x14def
incl %eax
movq 0x68(%rbx), %rdx
cmpq 0x70(%rbx), %rdx
jae 0x14def
movb 0x78(%rbx), %cl
decb %cl
movl $0x1, %esi
shll %cl, %esi
notb %sil
andb %sil, (%rdx)
decl 0x78(%rbx)
jne 0x14de8
incq 0x68(%rbx)
movl $0x8, 0x78(%rbx)
decl %eax
cmpl $0x1, %eax
jg 0x14dbc
movl $0x0, 0x8(%r13)
movq 0x58(%rbx), %r14
leaq 0x103b2(%rip), %rdi     # 0x251b4
leaq 0x142d3(%rip), %rsi     # 0x290dc
leaq 0x14681(%rip), %rdx     # 0x29491
xorl %eax, %eax
callq 0x4c22
movl 0x68(%rbx), %eax
subl 0x60(%rbx), %eax
shll $0x3, %eax
subl 0x78(%rbx), %eax
leal 0x8(%rax), %ecx
addl $0xf, %eax
testl %ecx, %ecx
cmovnsl %ecx, %eax
sarl $0x3, %eax
cltq
addq %r14, %rax
movq %rax, 0x10(%r13)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/akumrao[P]videoAnalyzer/encoder/encoder.c
// Function: x264_nal_end(x264_t*)
static void x264_nal_end(x264_t *h) {LOG_CALL;
    x264_nal_t *nal = &h->nal[h->i_nal];

    bs_align_0(&h->bs); /* not needed */

    nal->i_payload = &h->p_bitstream[bs_pos(&h->bs) / 8] - nal->p_payload;

    h->i_nal++;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10357(%rip), %r14     # 0x251b4
leaq 0x142c4(%rip), %rsi     # 0x29128
leaq 0x1449a(%rip), %rdx     # 0x29305
movq %r14, %rdi
xorl %eax, %eax
callq 0x4c22
movslq 0x4(%rbx), %r15
leaq 0x1425c(%rip), %rsi     # 0x290dc
leaq 0x10334(%rip), %rdx     # 0x251bb
movq %r14, %rdi
xorl %eax, %eax
callq 0x4c22
movl 0x78(%rbx), %eax
cmpl $0x8, %eax
je 0x14ed2
testl %eax, %eax
jle 0x14ed2
incl %eax
movq 0x68(%rbx), %rdx
cmpq 0x70(%rbx), %rdx
jae 0x14ed2
movb 0x78(%rbx), %cl
decb %cl
movl $0x1, %esi
shll %cl, %esi
notb %sil
andb %sil, (%rdx)
decl 0x78(%rbx)
jne 0x14ecb
incq 0x68(%rbx)
movl $0x8, 0x78(%rbx)
decl %eax
cmpl $0x1, %eax
jg 0x14e9f
leaq (%r15,%r15,2), %r14
movl 0x58(%rbx), %r15d
leaq 0x102d3(%rip), %rdi     # 0x251b4
leaq 0x141f4(%rip), %rsi     # 0x290dc
leaq 0x145a2(%rip), %rdx     # 0x29491
xorl %eax, %eax
callq 0x4c22
movl 0x68(%rbx), %eax
subl 0x60(%rbx), %eax
shll $0x3, %eax
subl 0x78(%rbx), %eax
leal 0x8(%rax), %ecx
addl $0xf, %eax
testl %ecx, %ecx
cmovnsl %ecx, %eax
sarl $0x3, %eax
addl %r15d, %eax
subl 0x18(%rbx,%r14,8), %eax
movl %eax, 0x10(%rbx,%r14,8)
incl 0x4(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/akumrao[P]videoAnalyzer/encoder/encoder.c
// Function: x264_encoder_frame_put(x264_frame_t**, x264_frame_t*)
static void x264_encoder_frame_put(x264_frame_t *buffer[X264_BFRAME_MAX], x264_frame_t *frame) {LOG_CALL;
    int i;

    /* put the frame in buffer */
    for (i = 0; buffer[i] != NULL; i++)
    {
        if (i >= X264_BFRAME_MAX)
        {
            fprintf(stderr, "not enough room\n");
            return;
        }
    }
    buffer[i] = frame;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xef32(%rip), %rdi      # 0x251b4
leaq 0x12e9f(%rip), %rsi     # 0x29128
leaq 0x130bd(%rip), %rdx     # 0x2934d
xorl %r15d, %r15d
xorl %eax, %eax
callq 0x4c22
cmpq $0x0, (%r14)
je 0x162b7
xorl %eax, %eax
cmpq $0x10, %rax
je 0x162c6
leaq 0x1(%rax), %r15
cmpq $0x0, 0x8(%r14,%rax,8)
movq %r15, %rax
jne 0x162a2
movq %rbx, (%r14,%r15,8)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x2f4d
jmp 0x162bb