// File: /workspace/github_c_makefile_star2_O0/akumrao[P]videoAnalyzer/core/frame.c
// Function: deblocking_filter_edgev(x264_t*, unsigned char*, int, int*, int)
static inline void deblocking_filter_edgev( x264_t *h, uint8_t *pix, int i_pix_stride, int bS[4], int i_QP )
{
    int i, d;
    const int i_index_a = x264_clip3( i_QP + h->sh.i_alpha_c0_offset, 0, 51 );
    const int alpha = i_alpha_table[i_index_a];
    const int beta  = i_beta_table[x264_clip3( i_QP + h->sh.i_beta_offset, 0, 51 )];

    for( i = 0; i < 4; i++ )
    {
        if( bS[i] == 0 )
        {
            pix += 4 * i_pix_stride;
            continue;
        }

        if( bS[i] < 4 )
        {
            const int tc0 = i_tc0_table[i_index_a][bS[i] - 1];

            /* 4px edge length */
            for( d = 0; d < 4; d++ )
            {
                const int p0 = pix[-1];
                const int p1 = pix[-2];
                const int p2 = pix[-3];
                const int q0 = pix[0];
                const int q1 = pix[1];
                const int q2 = pix[2];

                if( abs( p0 - q0 ) < alpha &&
                    abs( p1 - p0 ) < beta &&
                    abs( q1 - q0 ) < beta )
                {
                    int tc = tc0;
                    int i_delta;

                    if( abs( p2 - p0 ) < beta )
                    {
                        pix[-2] = p1 + x264_clip3( ( p2 + ( ( p0 + q0 + 1 ) >> 1 ) - ( p1 << 1 ) ) >> 1, -tc0, tc0 );
                        tc++;
                    }
                    if( abs( q2 - q0 ) < beta )
                    {
                        pix[1] = q1 + x264_clip3( ( q2 + ( ( p0 + q0 + 1 ) >> 1 ) - ( q1 << 1 ) ) >> 1, -tc0, tc0 );
                        tc++;
                    }

                    i_delta = x264_clip3( (((q0 - p0 ) << 2) + (p1 - q1) + 4) >> 3, -tc, tc );
                    pix[-1] = clip_uint8( p0 + i_delta );    /* p0' */
                    pix[0]  = clip_uint8( q0 - i_delta );    /* q0' */
                }
                pix += i_pix_stride;
            }
        }
        else
        {
            /* 4px edge length */
            for( d = 0; d < 4; d++ )
            {
                const int p0 = pix[-1];
                const int p1 = pix[-2];
                const int p2 = pix[-3];

                const int q0 = pix[0];
                const int q1 = pix[1];
                const int q2 = pix[2];

                if( abs( p0 - q0 ) < alpha &&
                    abs( p1 - p0 ) < beta &&
                    abs( q1 - q0 ) < beta )
                {
                    if( abs( p0 - q0 ) < (( alpha >> 2 ) + 2 ) )
                    {
                        if( abs( p2 - p0 ) < beta )
                        {
                            const int p3 = pix[-4];
                            /* p0', p1', p2' */
                            pix[-1] = ( p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4 ) >> 3;
                            pix[-2] = ( p2 + p1 + p0 + q0 + 2 ) >> 2;
                            pix[-3] = ( 2*p3 + 3*p2 + p1 + p0 + q0 + 4 ) >> 3;
                        }
                        else
                        {
                            /* p0' */
                            pix[-1] = ( 2*p1 + p0 + q1 + 2 ) >> 2;
                        }
                        if( abs( q2 - q0 ) < beta )
                        {
                            const int q3 = pix[3];
                            /* q0', q1', q2' */
                            pix[0] = ( p1 + 2*p0 + 2*q0 + 2*q1 + q2 + 4 ) >> 3;
                            pix[1] = ( p0 + q0 + q1 + q2 + 2 ) >> 2;
                            pix[2] = ( 2*q3 + 3*q2 + q1 + q0 + p0 + 4 ) >> 3;
                        }
                        else
                        {
                            /* q0' */
                            pix[0] = ( 2*q1 + q0 + p1 + 2 ) >> 2;
                        }
                    }
                    else
                    {
                        /* p0', q0' */
                        pix[-1] = ( 2*p1 + p0 + q1 + 2 ) >> 2;
                        pix[0] = ( 2*q1 + q0 + p1 + 2 ) >> 2;
                    }
                }
                pix += i_pix_stride;
            }
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movl -0x24(%rbp), %edi
movq -0x8(%rbp), %rax
addl 0x10db54(%rax), %edi
xorl %esi, %esi
movl $0x33, %edx
callq 0x7210
movl %eax, -0x30(%rbp)
movslq -0x30(%rbp), %rcx
leaq 0x22eeb(%rip), %rax     # 0x290a0
movl (%rax,%rcx,4), %eax
movl %eax, -0x34(%rbp)
movl -0x24(%rbp), %edi
movq -0x8(%rbp), %rax
addl 0x10db58(%rax), %edi
xorl %esi, %esi
movl $0x33, %edx
callq 0x7210
movslq %eax, %rcx
leaq 0x22f92(%rip), %rax     # 0x29170
movl (%rax,%rcx,4), %eax
movl %eax, -0x38(%rbp)
movl $0x0, -0x28(%rbp)
cmpl $0x4, -0x28(%rbp)
jge 0x6671
movq -0x20(%rbp), %rax
movslq -0x28(%rbp), %rcx
cmpl $0x0, (%rax,%rcx,4)
jne 0x621c
movl -0x14(%rbp), %ecx
shll $0x2, %ecx
movq -0x10(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
jmp 0x6663
movq -0x20(%rbp), %rax
movslq -0x28(%rbp), %rcx
cmpl $0x4, (%rax,%rcx,4)
jge 0x6417
movslq -0x30(%rbp), %rcx
leaq 0x23007(%rip), %rax     # 0x29240
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq -0x20(%rbp), %rcx
movslq -0x28(%rbp), %rdx
movl (%rcx,%rdx,4), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x3c(%rbp)
movl $0x0, -0x2c(%rbp)
cmpl $0x4, -0x2c(%rbp)
jge 0x6412
movq -0x10(%rbp), %rax
movzbl -0x1(%rax), %eax
movl %eax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movzbl -0x2(%rax), %eax
movl %eax, -0x44(%rbp)
movq -0x10(%rbp), %rax
movzbl -0x3(%rax), %eax
movl %eax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
movl %eax, -0x4c(%rbp)
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %eax
movl %eax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movzbl 0x2(%rax), %eax
movl %eax, -0x54(%rbp)
movl -0x40(%rbp), %eax
subl -0x4c(%rbp), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
cmpl -0x34(%rbp), %eax
jge 0x63f3
movl -0x44(%rbp), %eax
subl -0x40(%rbp), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
cmpl -0x38(%rbp), %eax
jge 0x63f3
movl -0x50(%rbp), %eax
subl -0x4c(%rbp), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
cmpl -0x38(%rbp), %eax
jge 0x63f3
movl -0x3c(%rbp), %eax
movl %eax, -0x58(%rbp)
movl -0x48(%rbp), %eax
subl -0x40(%rbp), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
cmpl -0x38(%rbp), %eax
jge 0x6348
movl -0x44(%rbp), %eax
movl %eax, -0x80(%rbp)
movl -0x48(%rbp), %edi
movl -0x40(%rbp), %eax
addl -0x4c(%rbp), %eax
addl $0x1, %eax
sarl %eax
addl %eax, %edi
movl -0x44(%rbp), %eax
shll %eax
subl %eax, %edi
sarl %edi
xorl %esi, %esi
subl -0x3c(%rbp), %esi
movl -0x3c(%rbp), %edx
callq 0x7210
movl %eax, %ecx
movl -0x80(%rbp), %eax
addl %ecx, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, -0x2(%rax)
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
movl -0x54(%rbp), %eax
subl -0x4c(%rbp), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
cmpl -0x38(%rbp), %eax
jge 0x63a5
movl -0x50(%rbp), %eax
movl %eax, -0x84(%rbp)
movl -0x54(%rbp), %edi
movl -0x40(%rbp), %eax
addl -0x4c(%rbp), %eax
addl $0x1, %eax
sarl %eax
addl %eax, %edi
movl -0x50(%rbp), %eax
shll %eax
subl %eax, %edi
sarl %edi
xorl %esi, %esi
subl -0x3c(%rbp), %esi
movl -0x3c(%rbp), %edx
callq 0x7210
movl %eax, %ecx
movl -0x84(%rbp), %eax
addl %ecx, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
movl -0x4c(%rbp), %edi
subl -0x40(%rbp), %edi
shll $0x2, %edi
movl -0x44(%rbp), %eax
subl -0x50(%rbp), %eax
addl %eax, %edi
addl $0x4, %edi
sarl $0x3, %edi
xorl %esi, %esi
subl -0x58(%rbp), %esi
movl -0x58(%rbp), %edx
callq 0x7210
movl %eax, -0x5c(%rbp)
movl -0x40(%rbp), %edi
addl -0x5c(%rbp), %edi
callq 0x7250
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, -0x1(%rax)
movl -0x4c(%rbp), %edi
subl -0x5c(%rbp), %edi
callq 0x7250
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movl -0x14(%rbp), %ecx
movq -0x10(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x625e
jmp 0x6661
movl $0x0, -0x2c(%rbp)
cmpl $0x4, -0x2c(%rbp)
jge 0x665f
movq -0x10(%rbp), %rax
movzbl -0x1(%rax), %eax
movl %eax, -0x60(%rbp)
movq -0x10(%rbp), %rax
movzbl -0x2(%rax), %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rax
movzbl -0x3(%rax), %eax
movl %eax, -0x68(%rbp)
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
movl %eax, -0x6c(%rbp)
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %eax
movl %eax, -0x70(%rbp)
movq -0x10(%rbp), %rax
movzbl 0x2(%rax), %eax
movl %eax, -0x74(%rbp)
movl -0x60(%rbp), %eax
subl -0x6c(%rbp), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
cmpl -0x34(%rbp), %eax
jge 0x6640
movl -0x64(%rbp), %eax
subl -0x60(%rbp), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
cmpl -0x38(%rbp), %eax
jge 0x6640
movl -0x70(%rbp), %eax
subl -0x6c(%rbp), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
cmpl -0x38(%rbp), %eax
jge 0x6640
movl -0x60(%rbp), %eax
subl -0x6c(%rbp), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
movl -0x34(%rbp), %ecx
sarl $0x2, %ecx
addl $0x2, %ecx
cmpl %ecx, %eax
jge 0x660b
movl -0x68(%rbp), %eax
subl -0x60(%rbp), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
cmpl -0x38(%rbp), %eax
jge 0x6550
movq -0x10(%rbp), %rax
movzbl -0x4(%rax), %eax
movl %eax, -0x78(%rbp)
movl -0x68(%rbp), %eax
movl -0x64(%rbp), %ecx
shll %ecx
addl %ecx, %eax
movl -0x60(%rbp), %ecx
shll %ecx
addl %ecx, %eax
movl -0x6c(%rbp), %ecx
shll %ecx
addl %ecx, %eax
addl -0x70(%rbp), %eax
addl $0x4, %eax
sarl $0x3, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, -0x1(%rax)
movl -0x68(%rbp), %eax
addl -0x64(%rbp), %eax
addl -0x60(%rbp), %eax
addl -0x6c(%rbp), %eax
addl $0x2, %eax
sarl $0x2, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, -0x2(%rax)
movl -0x78(%rbp), %eax
shll %eax
imull $0x3, -0x68(%rbp), %ecx
addl %ecx, %eax
addl -0x64(%rbp), %eax
addl -0x60(%rbp), %eax
addl -0x6c(%rbp), %eax
addl $0x4, %eax
sarl $0x3, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, -0x3(%rax)
jmp 0x656a
movl -0x64(%rbp), %eax
shll %eax
addl -0x60(%rbp), %eax
addl -0x70(%rbp), %eax
addl $0x2, %eax
sarl $0x2, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, -0x1(%rax)
movl -0x74(%rbp), %eax
subl -0x6c(%rbp), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
cmpl -0x38(%rbp), %eax
jge 0x65f0
movq -0x10(%rbp), %rax
movzbl 0x3(%rax), %eax
movl %eax, -0x7c(%rbp)
movl -0x64(%rbp), %eax
movl -0x60(%rbp), %ecx
shll %ecx
addl %ecx, %eax
movl -0x6c(%rbp), %ecx
shll %ecx
addl %ecx, %eax
movl -0x70(%rbp), %ecx
shll %ecx
addl %ecx, %eax
addl -0x74(%rbp), %eax
addl $0x4, %eax
sarl $0x3, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movl -0x60(%rbp), %eax
addl -0x6c(%rbp), %eax
addl -0x70(%rbp), %eax
addl -0x74(%rbp), %eax
addl $0x2, %eax
sarl $0x2, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1(%rax)
movl -0x7c(%rbp), %eax
shll %eax
imull $0x3, -0x74(%rbp), %ecx
addl %ecx, %eax
addl -0x70(%rbp), %eax
addl -0x6c(%rbp), %eax
addl -0x60(%rbp), %eax
addl $0x4, %eax
sarl $0x3, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, 0x2(%rax)
jmp 0x6609
movl -0x70(%rbp), %eax
shll %eax
addl -0x6c(%rbp), %eax
addl -0x64(%rbp), %eax
addl $0x2, %eax
sarl $0x2, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
jmp 0x663e
movl -0x64(%rbp), %eax
shll %eax
addl -0x60(%rbp), %eax
addl -0x70(%rbp), %eax
addl $0x2, %eax
sarl $0x2, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, -0x1(%rax)
movl -0x70(%rbp), %eax
shll %eax
addl -0x6c(%rbp), %eax
addl -0x64(%rbp), %eax
addl $0x2, %eax
sarl $0x2, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
jmp 0x6640
movl -0x14(%rbp), %ecx
movq -0x10(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x641e
jmp 0x6661
jmp 0x6663
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x61eb
addq $0x90, %rsp
popq %rbp
retq
nopw (%rax,%rax)