// File: /workspace/github_c_makefile_star2_O2/akumrao[P]videoAnalyzer/core/frame.c
// Function: x264_frame_deblocking_filter(x264_t*, int)
void x264_frame_deblocking_filter( x264_t *h, int i_slice_type )
{
    int mb_xy;

    for( mb_xy = 0; mb_xy < h->sps->i_mb_width * h->sps->i_mb_height; mb_xy++ )
    {
        x264_macroblock_t *mb;  /* current macroblock */
        int i_edge;
        int i_dir;

        mb = &h->mb[mb_xy];

        /* i_dir == 0 -> vertical edge
         * i_dir == 1 -> horizontal edge */
        for( i_dir = 0; i_dir < 2; i_dir++ )
        {
            int i_start;
            int i_QP;

            i_start = (( i_dir == 0 && mb->i_mb_x != 0 ) || ( i_dir == 1 && mb->i_mb_y != 0 ) ) ? 0 : 1;

            for( i_edge = i_start; i_edge < 4; i_edge++ )
            {
                x264_macroblock_t *mbn;
                int bS[4];  /* filtering strength */

                /* *** neighbour macroblock for the current edge (or current) *** */
                mbn = i_edge > 0 ? mb : ( i_dir == 0 ? mb - 1 : mb - h->sps->i_mb_width );

                /* *** Get bS for each 4px for the current edge *** */
                if( IS_INTRA( mb->i_type ) || IS_INTRA( mbn->i_type ) )
                {
                    bS[0] = bS[1] = bS[2] = bS[3] = ( i_edge == 0 ? 4 : 3 );
                }
                else
                {
                    int i;
                    for( i = 0; i < 4; i++ )
                    {
                        int x, y;
                        int xn, yn;

                        x = i_dir == 0 ? i_edge : i;
                        y = i_dir == 0 ? i      : i_edge;

                        xn = (x - (i_dir == 0 ? 1 : 0 ))&0x03;
                        yn = (y - (i_dir == 0 ? 0 : 1 ))&0x03;

                        if( mb->block[block_idx_xy[x][y]].i_non_zero_count != 0 ||
                            mbn->block[block_idx_xy[xn][yn]].i_non_zero_count != 0 )
                        {
                            bS[i] = 2;
                        }
                        else if( i_slice_type == SLICE_TYPE_B )
                        {
                            /* FIXME */
                            fprintf( stderr, "deblocking filter doesn't work yet with B slice\n" );
                            return;
                        }
                        else    /* SLICE_TYPE_P */
                        {
                            if( mb->partition[x][y].i_ref[0]  != mbn->partition[xn][yn].i_ref[0] ||
                                abs( mb->partition[x][y].mv[0][0] - mbn->partition[xn][yn].mv[0][0] ) >= 4 ||
                                abs( mb->partition[x][y].mv[0][1] - mbn->partition[xn][yn].mv[0][1] ) >= 4 )
                            {
                                bS[i] = 1;
                            }
                            else
                            {
                                bS[i] = 0;
                            }
                        }
                    }
                }

                /* *** filter *** */
                /* Y plane */
                i_QP = ( mb->i_qp + mbn->i_qp + 1 ) >> 1;
                if( i_dir == 0 )
                {
                    /* vertical edge */
                    deblocking_filter_edgev( h, &h->fdec->plane[0][16 * mb->i_mb_y * h->fdec->i_stride[0]+ 16 * mb->i_mb_x + 4 * i_edge],
                                                h->fdec->i_stride[0], bS, i_QP );
                    if( (i_edge % 2) == 0  )
                    {
                        /* U/V planes */
                        i_QP = ( i_chroma_qp_table[mb->i_qp] + i_chroma_qp_table[mbn->i_qp] + 1 ) >> 1;
                        deblocking_filter_edgecv( h, &h->fdec->plane[1][8*(mb->i_mb_y*h->fdec->i_stride[1]+mb->i_mb_x)+i_edge*2],
                                                      h->fdec->i_stride[1], bS, i_QP );
                        deblocking_filter_edgecv( h, &h->fdec->plane[2][8*(mb->i_mb_y*h->fdec->i_stride[2]+mb->i_mb_x)+i_edge*2],
                                                  h->fdec->i_stride[2], bS, i_QP );
                    }
                }
                else
                {
                    /* horizontal edge */
                    deblocking_filter_edgeh( h, &h->fdec->plane[0][(16*mb->i_mb_y + 4 * i_edge) * h->fdec->i_stride[0]+ 16 * mb->i_mb_x],
                                                h->fdec->i_stride[0], bS, i_QP );
                    /* U/V planes */
                    if( ( i_edge % 2  ) == 0 )
                    {
                        i_QP = ( i_chroma_qp_table[mb->i_qp] + i_chroma_qp_table[mbn->i_qp] + 1 ) >> 1;
                        deblocking_filter_edgech( h, &h->fdec->plane[1][8*(mb->i_mb_y*h->fdec->i_stride[1]+mb->i_mb_x)+i_edge*2*h->fdec->i_stride[1]],
                                                 h->fdec->i_stride[1], bS, i_QP );
                        deblocking_filter_edgech( h, &h->fdec->plane[2][8*(mb->i_mb_y*h->fdec->i_stride[2]+mb->i_mb_x)+i_edge*2*h->fdec->i_stride[2]],
                                                 h->fdec->i_stride[2], bS, i_QP );
                    }
                }
            }
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movl %esi, -0xac(%rbp)
xorl %edx, %edx
movq %rdi, -0x78(%rbp)
movq 0x8ed8(%rdi), %rax
movslq 0x43c(%rax), %rcx
movslq 0x440(%rax), %rax
imulq %rcx, %rax
cmpq %rax, %rdx
jge 0x4f71
movq 0x10efe8(%rdi), %rax
movq %rdx, -0xc8(%rbp)
imulq $0xf88, %rdx, %rcx      # imm = 0xF88
leaq (%rax,%rcx), %rdx
leaq (%rax,%rcx), %rsi
addq $0x324, %rsi            # imm = 0x324
movq %rsi, -0xf8(%rbp)
leaq 0x30(%rax,%rcx), %rax
movq %rax, -0xd8(%rbp)
leaq -0xf88(%rdx), %rax
movq %rax, -0xd0(%rbp)
xorl %esi, %esi
movq %rdx, -0x38(%rbp)
cmpl $0x2, %esi
je 0x4f42
xorl %eax, %eax
testl %esi, %esi
setne %al
xorl %r8d, %r8d
cmpl $0x0, (%rdx,%rax,4)
sete %r8b
movl %esi, %eax
xorl $0x1, %eax
movl %eax, -0xb0(%rbp)
movl %esi, -0x54(%rbp)
cmpl $0x4, %r8d
je 0x4f3b
testl %esi, %esi
sete %al
testl %r8d, %r8d
setne %cl
movq -0xd0(%rbp), %rdi
cmovneq %rdx, %rdi
movq %rdi, -0x60(%rbp)
orb %al, %cl
jne 0x42f4
movq -0x78(%rbp), %rax
movq 0x8ed8(%rax), %rax
movslq 0x43c(%rax), %rax
negq %rax
imulq $0xf88, %rax, %rax      # imm = 0xF88
addq %rdx, %rax
movq %rax, -0x60(%rbp)
cmpl $0x2, 0x18(%rdx)
movq %r8, -0x48(%rbp)
jb 0x430c
movq -0x60(%rbp), %rax
cmpl $0x2, 0x18(%rax)
jae 0x4e21
cmpl $0x1, %r8d
movl $0x0, %eax
adcl $0x3, %eax
movl %eax, -0x84(%rbp)
movl %eax, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
movl %eax, -0x90(%rbp)
movq -0x38(%rbp), %r8
movl 0x2b0(%r8), %eax
movq -0x60(%rbp), %rcx
movl 0x2b0(%rcx), %ecx
addl %ecx, %eax
incl %eax
sarl %eax
movl %esi, %r9d
movq -0x78(%rbp), %rdi
movq 0x10efe0(%rdi), %rdx
movq 0x48(%rdx), %rcx
movl 0x4(%r8), %esi
testl %r9d, %r9d
je 0x4982
shll $0x4, %esi
movq -0x48(%rbp), %r9
leal (%rsi,%r9,4), %esi
movslq 0x24(%rdx), %r9
imull %r9d, %esi
movslq (%r8), %rdx
shlq $0x4, %rdx
movslq %esi, %rsi
addq %rdx, %rcx
addq %rsi, %rcx
movl 0x10db54(%rdi), %r8d
addl %eax, %r8d
pushq $0x33
popq %rdx
cmpl %edx, %r8d
cmovgel %edx, %r8d
testl %r8d, %r8d
movl $0x0, %esi
cmovlel %esi, %r8d
addl 0x10db58(%rdi), %eax
cmpl %edx, %eax
cmovgel %edx, %eax
testl %eax, %eax
cmovlel %esi, %eax
leaq 0x1705c(%rip), %rdx     # 0x1b420
movq %r8, -0xf0(%rbp)
movl (%rdx,%r8,4), %edi
leaq 0x1711a(%rip), %rdx     # 0x1b4f0
movl (%rdx,%rax,4), %r8d
movl %r9d, %eax
negl %eax
movslq %eax, %r10
leal (%r9,%r9), %eax
movslq %eax, %rdx
movq %rdx, -0xa0(%rbp)
negl %eax
cltq
movq %rax, -0x70(%rbp)
imull $-0x3, %r9d, %eax
cltq
movq %rax, -0xc0(%rbp)
leal (,%r9,4), %eax
negl %eax
cltq
movq %rax, -0xe8(%rbp)
movq %r9, -0x80(%rbp)
leal (%r9,%r9,2), %eax
cltq
movq %rax, -0xe0(%rbp)
movl %edi, %eax
shrl $0x2, %eax
addl $0x2, %eax
movl %eax, -0xb4(%rbp)
xorl %r9d, %r9d
movq %r10, -0xa8(%rbp)
movl %r8d, -0x2c(%rbp)
cmpq $0x4, %r9
je 0x48c9
movslq -0x90(%rbp,%r9,4), %rax
testq %rax, %rax
je 0x4630
cmpl $0x4, %eax
movq %r9, -0x68(%rbp)
jge 0x4639
imulq $0xc, -0xf0(%rbp), %rdx
leaq 0x17144(%rip), %rsi     # 0x1b5c0
addq %rsi, %rdx
movl -0x4(%rdx,%rax,4), %eax
movl %eax, %edx
negl %edx
movl %edx, -0x50(%rbp)
movq %rax, -0x40(%rbp)
incl %eax
movl %eax, -0x98(%rbp)
pushq $0x4
popq %r14
subl $0x1, %r14d
jb 0x48c1
movzbl (%rcx,%r10), %r12d
movzbl (%rcx), %r15d
movl %r12d, %eax
subl %r15d, %eax
movl %eax, %edx
negl %edx
cmovsl %eax, %edx
movzbl %dl, %eax
cmpl %edi, %eax
jge 0x4628
movq -0x70(%rbp), %rax
movzbl (%rcx,%rax), %eax
movl %eax, %edx
subl %r12d, %edx
movl %edx, %r11d
negl %r11d
cmovsl %edx, %r11d
cmpl %r8d, %r11d
jge 0x4628
movq -0x80(%rbp), %rdx
movzbl (%rcx,%rdx), %edx
movl %edx, %r11d
subl %r15d, %r11d
movl %r11d, %ebx
negl %ebx
cmovsl %r11d, %ebx
cmpl %r8d, %ebx
jae 0x4628
movq -0xc0(%rbp), %rsi
movzbl (%rcx,%rsi), %r10d
movq -0xa0(%rbp), %rsi
movzbl (%rcx,%rsi), %r13d
movl %r10d, %ebx
subl %r12d, %ebx
movl %ebx, %r11d
negl %r11d
cmovsl %ebx, %r11d
movq -0x40(%rbp), %rsi
cmpl %r8d, %r11d
jae 0x4575
leal (%r12,%r15), %esi
incl %esi
shrl %esi
subl %eax, %r10d
subl %eax, %r10d
movzbl %sil, %r11d
addl %r10d, %r11d
sarl %r11d
movl %r11d, %ebx
cmpl -0x40(%rbp), %r11d
jl 0x455d
movq -0x40(%rbp), %rsi
movl %esi, %ebx
movl -0x50(%rbp), %esi
cmpl %esi, %r11d
cmovll %esi, %ebx
addb %al, %bl
movq -0x70(%rbp), %rsi
movb %bl, (%rcx,%rsi)
movl -0x98(%rbp), %esi
movl %r13d, %r10d
subl %r15d, %r10d
movl %r10d, %r11d
negl %r11d
cmovsl %r10d, %r11d
cmpl %r8d, %r11d
jae 0x45cc
leal (%r12,%r15), %r10d
incl %r10d
shrl %r10d
movzbl %r10b, %ebx
addl %r13d, %ebx
subl %edx, %ebx
subl %edx, %ebx
sarl %ebx
movl %ebx, %r13d
cmpl -0x40(%rbp), %ebx
jl 0x45b0
movq -0x40(%rbp), %r9
movl %r9d, %r13d
movl -0x50(%rbp), %r9d
cmpl %r9d, %ebx
cmovll %r9d, %r13d
addb %dl, %r13b
movq -0x80(%rbp), %r9
movb %r13b, (%rcx,%r9)
incl %esi
movq -0x68(%rbp), %r9
movl %r15d, %r10d
subl %r12d, %r10d
subl %edx, %eax
leal (%rax,%r10,4), %eax
addl $0x4, %eax
sarl $0x3, %eax
movl %esi, %edx
negl %edx
cmpl %esi, %eax
cmovll %eax, %esi
cmpl %edx, %eax
cmovll %edx, %esi
addl %esi, %r12d
testl %r12d, %r12d
setg %al
negb %al
movl $0x100, %edx            # imm = 0x100
cmpl %edx, %r12d
movzbl %al, %eax
cmovbl %r12d, %eax
movq -0xa8(%rbp), %r10
movb %al, (%rcx,%r10)
subl %esi, %r15d
testl %r15d, %r15d
setg %al
negb %al
cmpl %edx, %r15d
movzbl %al, %eax
cmovbl %r15d, %eax
movb %al, (%rcx)
incq %rcx
jmp 0x449a
addq $0x4, %rcx
jmp 0x48c1
movq -0xe0(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x130(%rbp)
movq -0xe8(%rbp), %rax
leaq (%rcx,%rax), %rax
movq %rax, -0x118(%rbp)
movq -0xa0(%rbp), %rax
leaq (%rcx,%rax), %rax
movq %rax, -0x128(%rbp)
movq -0x80(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0xc0(%rbp), %rax
leaq (%rcx,%rax), %rbx
movq -0x70(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x40(%rbp)
addq %rcx, %r10
xorl %r12d, %r12d
movq %rcx, %r15
movq %rbx, -0x110(%rbp)
cmpl $0x4, %r12d
je 0x48b3
leaq (%rcx,%r12), %rsi
movzbl (%r10,%r12), %eax
movzbl (%rsi), %r14d
movl %eax, %edx
subl %r14d, %edx
movl %edx, %r11d
negl %r11d
cmovsl %edx, %r11d
movzbl %r11b, %r13d
cmpl %edi, %r13d
jge 0x48a8
movq -0x40(%rbp), %rdx
movzbl (%rdx,%r12), %edx
movl %edx, %r11d
subl %eax, %r11d
movq %rbx, %r8
movl %r11d, %ebx
negl %ebx
cmovsl %r11d, %ebx
cmpl -0x2c(%rbp), %ebx
movq %r8, %rbx
jge 0x48a8
movq -0x50(%rbp), %r9
movzbl (%r9,%r12), %r11d
movl %r11d, %r9d
subl %r14d, %r9d
movl %r9d, %ebx
negl %ebx
cmovsl %r9d, %ebx
movq -0x68(%rbp), %r9
cmpl -0x2c(%rbp), %ebx
movq %r8, %rbx
jae 0x48a8
cmpl -0xb4(%rbp), %r13d
jae 0x47ec
movzbl (%rbx,%r12), %r13d
movq -0x128(%rbp), %r9
movzbl (%r9,%r12), %r9d
movq %r9, -0x98(%rbp)
movq -0x130(%rbp), %r9
movzbl (%r9,%r12), %r9d
movq %r9, -0x120(%rbp)
movl %r13d, %r9d
subl %eax, %r9d
movl %r9d, %ebx
negl %ebx
cmovsl %r9d, %ebx
cmpl -0x2c(%rbp), %ebx
jae 0x480e
leal (%r14,%rax), %r9d
movq %r9, -0x100(%rbp)
addl %edx, %r9d
leal (%r11,%r13), %ebx
leal 0x4(%rbx,%r9,2), %ebx
movq -0x118(%rbp), %r9
movzbl (%r9,%r12), %r9d
movq %r9, -0x108(%rbp)
shrl $0x3, %ebx
movb %bl, (%r10,%r12)
leal (%rdx,%r13), %ebx
movq -0x100(%rbp), %r9
addl %ebx, %r9d
addl $0x2, %r9d
shrl $0x2, %r9d
movq -0x40(%rbp), %rbx
movb %r9b, (%rbx,%r12)
leal (%r13,%r13,2), %r9d
addl %edx, %r9d
addl %eax, %r9d
addl %r14d, %r9d
movq -0x108(%rbp), %rbx
leal (%r9,%rbx,2), %ebx
addl $0x4, %ebx
movq -0x110(%rbp), %r9
leaq (%r9,%r12), %r13
shrl $0x3, %ebx
jmp 0x4827
leal (%rax,%rdx,2), %eax
addl %r11d, %eax
addl $0x2, %eax
shrl $0x2, %eax
movb %al, (%r10,%r12)
addl %edx, %r14d
leal (%r14,%r11,2), %eax
addl $0x2, %eax
shrl $0x2, %eax
jmp 0x48a6
movq -0xa8(%rbp), %r9
leaq (%r15,%r9), %r13
leal (%rax,%rdx,2), %r9d
leal (%r11,%r9), %ebx
addl $0x2, %ebx
shrl $0x2, %ebx
movb %bl, (%r13)
movq -0x98(%rbp), %r13
movl %r13d, %r9d
subl %r14d, %r9d
movl %r9d, %ebx
negl %ebx
cmovsl %r9d, %ebx
cmpl -0x2c(%rbp), %ebx
jae 0x4892
addl %eax, %r14d
addl %r11d, %r14d
addl %r13d, %edx
leal (%rdx,%r14,2), %eax
addl $0x4, %eax
shrl $0x3, %eax
movb %al, (%rsi)
movq -0xa0(%rbp), %rax
leaq (%r15,%rax), %rsi
leal (%r14,%r13), %eax
addl $0x2, %eax
shrl $0x2, %eax
movq -0x50(%rbp), %rdx
movb %al, (%rdx,%r12)
leal (%r13,%r13,2), %eax
addl %r14d, %eax
movq -0x120(%rbp), %rdx
leal (%rax,%rdx,2), %eax
addl $0x4, %eax
shrl $0x3, %eax
jmp 0x489f
addl %r14d, %edx
leal (%rdx,%r11,2), %eax
addl $0x2, %eax
shrl $0x2, %eax
movq -0x68(%rbp), %r9
movq %r8, %rbx
movb %al, (%rsi)
incq %r15
incq %r12
jmp 0x469f
addq %r12, %rcx
movq -0xa8(%rbp), %r10
movl -0x2c(%rbp), %r8d
incq %r9
jmp 0x4445
movq -0x48(%rbp), %r8
testb $0x1, %r8b
movq -0x38(%rbp), %rdx
jne 0x4e16
movslq 0x2b0(%rdx), %rax
leaq 0x16a67(%rip), %rdx     # 0x1b350
movl (%rdx,%rax,4), %eax
movq -0x60(%rbp), %rcx
movslq 0x2b0(%rcx), %rcx
movl (%rdx,%rcx,4), %ecx
leal 0x1(%rax,%rcx), %r12d
movq -0x78(%rbp), %r14
movq 0x10efe0(%r14), %rax
movl 0x28(%rax), %edx
movq -0x38(%rbp), %rcx
movl 0x4(%rcx), %ecx
imull %edx, %ecx
movq -0x38(%rbp), %rsi
addl (%rsi), %ecx
sarl %r12d
leal (%r8,%r8), %ebx
movl %edx, %esi
imull %ebx, %esi
leal (%rsi,%rcx,8), %ecx
movslq %ecx, %rsi
addq 0x50(%rax), %rsi
movq %r14, %rdi
leaq -0x90(%rbp), %r15
movq %r15, %rcx
movl %r12d, %r8d
callq 0x5199
movq 0x10efe0(%r14), %rax
movl 0x2c(%rax), %edx
movq -0x38(%rbp), %rcx
movl 0x4(%rcx), %ecx
imull %edx, %ecx
movq -0x38(%rbp), %rsi
addl (%rsi), %ecx
imull %edx, %ebx
leal (%rbx,%rcx,8), %ecx
movslq %ecx, %rsi
addq 0x58(%rax), %rsi
movq %r14, %rdi
movq %r15, %rcx
movl %r12d, %r8d
callq 0x5199
jmp 0x4e0e
movslq 0x24(%rdx), %rdx
imull %edx, %esi
addl (%r8), %esi
shll $0x4, %esi
movq -0x48(%rbp), %r8
leal (%rsi,%r8,4), %esi
movslq %esi, %rsi
addq %rsi, %rcx
movl 0x10db54(%rdi), %r10d
addl %eax, %r10d
pushq $0x33
popq %r8
cmpl %r8d, %r10d
cmovgel %r8d, %r10d
testl %r10d, %r10d
movl $0x0, %r9d
cmovlel %r9d, %r10d
leaq 0x16a5a(%rip), %rsi     # 0x1b420
movq %r10, -0x50(%rbp)
movl (%rsi,%r10,4), %esi
addl 0x10db58(%rdi), %eax
cmpl %r8d, %eax
cmovgel %r8d, %eax
testl %eax, %eax
cmovlel %r9d, %eax
leaq 0x16b08(%rip), %rdi     # 0x1b4f0
movl (%rdi,%rax,4), %edi
movl %esi, %eax
shrl $0x2, %eax
addl $0x2, %eax
movl %eax, -0x40(%rbp)
leaq (,%rdx,4), %rax
movq %rax, -0x80(%rbp)
xorl %r8d, %r8d
cmpq $0x4, %r8
je 0x4d60
movslq -0x90(%rbp,%r8,4), %rax
testq %rax, %rax
je 0x4bcb
movq %r8, -0x70(%rbp)
cmpl $0x4, %eax
jge 0x4bd4
imulq $0xc, -0x50(%rbp), %r8
leaq 0x16b87(%rip), %r9      # 0x1b5c0
addq %r9, %r8
movl -0x4(%r8,%rax,4), %r11d
movl %r11d, %eax
negl %eax
movl %eax, -0x2c(%rbp)
leal 0x1(%r11), %eax
movl %eax, -0x68(%rbp)
pushq $0x4
popq %r15
subl $0x1, %r15d
jb 0x4d54
movzbl -0x1(%rcx), %r13d
movzbl (%rcx), %r12d
movl %r13d, %eax
subl %r12d, %eax
movl %eax, %r8d
negl %r8d
cmovsl %eax, %r8d
movzbl %r8b, %eax
cmpl %esi, %eax
jge 0x4bc3
movzbl -0x2(%rcx), %r9d
movl %r9d, %eax
subl %r13d, %eax
movl %eax, %r8d
negl %r8d
cmovsl %eax, %r8d
cmpl %edi, %r8d
jge 0x4bc3
movzbl 0x1(%rcx), %eax
movl %eax, %r8d
subl %r12d, %r8d
movl %r8d, %r10d
negl %r10d
cmovsl %r8d, %r10d
cmpl %edi, %r10d
jae 0x4bc3
movzbl -0x3(%rcx), %r8d
movl %r8d, %r14d
subl %r13d, %r14d
movl %r14d, %r10d
negl %r10d
cmovsl %r14d, %r10d
movl %r11d, %r14d
cmpl %edi, %r10d
jae 0x4b15
leal (%r12,%r13), %r10d
incl %r10d
shrl %r10d
subl %r9d, %r8d
subl %r9d, %r8d
movzbl %r10b, %r10d
addl %r8d, %r10d
sarl %r10d
movl %r10d, %r8d
cmpl %r11d, %r10d
jl 0x4b00
movl %r11d, %r8d
movl -0x2c(%rbp), %ebx
cmpl %ebx, %r10d
cmovll %ebx, %r8d
addb %r9b, %r8b
movb %r8b, -0x2(%rcx)
movl -0x68(%rbp), %r14d
movzbl 0x2(%rcx), %ebx
movl %ebx, %r8d
subl %r12d, %r8d
movl %r8d, %r10d
negl %r10d
cmovsl %r8d, %r10d
cmpl %edi, %r10d
jae 0x4b67
leal (%r12,%r13), %r8d
incl %r8d
shrl %r8d
movzbl %r8b, %r10d
addl %ebx, %r10d
subl %eax, %r10d
subl %eax, %r10d
sarl %r10d
movl %r10d, %r8d
cmpl %r11d, %r10d
jl 0x4b53
movl %r11d, %r8d
movl -0x2c(%rbp), %ebx
cmpl %ebx, %r10d
cmovll %ebx, %r8d
addb %al, %r8b
movb %r8b, 0x1(%rcx)
incl %r14d
movl %r12d, %r8d
subl %r13d, %r8d
subl %eax, %r9d
leal (%r9,%r8,4), %eax
addl $0x4, %eax
sarl $0x3, %eax
movl %r14d, %r8d
negl %r8d
cmpl %r14d, %eax
cmovll %eax, %r14d
cmpl %r8d, %eax
cmovll %r8d, %r14d
addl %r14d, %r13d
testl %r13d, %r13d
setg %al
negb %al
movl $0x100, %r8d            # imm = 0x100
cmpl %r8d, %r13d
movzbl %al, %eax
cmovbl %r13d, %eax
movb %al, -0x1(%rcx)
subl %r14d, %r12d
testl %r12d, %r12d
setg %al
negb %al
cmpl %r8d, %r12d
movzbl %al, %eax
cmovbl %r12d, %eax
movb %al, (%rcx)
addq %rdx, %rcx
jmp 0x4a54
addq -0x80(%rbp), %rcx
jmp 0x4d58
pushq $0x4
popq %r11
subl $0x1, %r11d
jb 0x4d54
movzbl -0x1(%rcx), %r15d
movzbl (%rcx), %ebx
movl %r15d, %eax
subl %ebx, %eax
movl %eax, %r8d
negl %r8d
cmovsl %eax, %r8d
movzbl %r8b, %eax
cmpl %esi, %eax
jge 0x4d4c
movzbl -0x2(%rcx), %r14d
movl %r14d, %r8d
subl %r15d, %r8d
movl %r8d, %r9d
negl %r9d
cmovsl %r8d, %r9d
cmpl %edi, %r9d
jge 0x4d4c
movzbl 0x1(%rcx), %r9d
movl %r9d, %r8d
subl %ebx, %r8d
movl %r8d, %r10d
negl %r10d
cmovsl %r8d, %r10d
cmpl %edi, %r10d
jae 0x4d4c
cmpl -0x40(%rbp), %eax
jae 0x4cab
movzbl -0x3(%rcx), %r8d
movl %r8d, %eax
subl %r15d, %eax
movl %eax, %r10d
negl %r10d
cmovsl %eax, %r10d
cmpl %edi, %r10d
jae 0x4cc8
movzbl -0x4(%rcx), %r12d
leal (%rbx,%r15), %r10d
leal (%r10,%r14), %eax
leal (%r9,%r8), %r13d
leal 0x4(%r13,%rax,2), %eax
shrl $0x3, %eax
leal (%r14,%r8), %r13d
addl %r13d, %r10d
addl $0x2, %r10d
shrl $0x2, %r10d
movb %r10b, -0x2(%rcx)
leal (%r8,%r8,2), %r8d
addl %r14d, %r8d
addl %r15d, %r8d
addl %ebx, %r8d
leal (%r8,%r12,2), %r8d
addl $0x4, %r8d
shrl $0x3, %r8d
movb %r8b, -0x3(%rcx)
jmp 0x4cd5
leal (%r15,%r14,2), %eax
addl %r9d, %eax
addl $0x2, %eax
shrl $0x2, %eax
movb %al, -0x1(%rcx)
addl %r14d, %ebx
leal (%rbx,%r9,2), %r8d
addl $0x2, %r8d
jmp 0x4d42
leal (%r15,%r14,2), %eax
addl %r9d, %eax
addl $0x2, %eax
shrl $0x2, %eax
movzbl 0x2(%rcx), %r8d
movb %al, -0x1(%rcx)
movl %r8d, %eax
subl %ebx, %eax
movl %eax, %r10d
negl %r10d
cmovsl %eax, %r10d
cmpl %edi, %r10d
jae 0x4d37
leaq 0x2(%rcx), %rax
movzbl 0x3(%rcx), %r10d
addl %r15d, %ebx
addl %r9d, %ebx
addl %r8d, %r14d
leal (%r14,%rbx,2), %r9d
addl $0x4, %r9d
shrl $0x3, %r9d
movb %r9b, (%rcx)
leal (%r8,%rbx), %r9d
addl $0x2, %r9d
shrl $0x2, %r9d
movb %r9b, 0x1(%rcx)
leal (%r8,%r8,2), %r8d
addl %ebx, %r8d
leal (%r8,%r10,2), %r8d
addl $0x4, %r8d
shrl $0x3, %r8d
jmp 0x4d49
addl %ebx, %r14d
leal (%r14,%r9,2), %r8d
addl $0x2, %r8d
shrl $0x2, %r8d
movq %rcx, %rax
movb %r8b, (%rax)
addq %rdx, %rcx
jmp 0x4bd8
movq -0x70(%rbp), %r8
incq %r8
jmp 0x4a05
movq -0x48(%rbp), %r8
testb $0x1, %r8b
movq -0x38(%rbp), %rdx
jne 0x4e16
movslq 0x2b0(%rdx), %rax
leaq 0x165d0(%rip), %rdx     # 0x1b350
movl (%rdx,%rax,4), %eax
movq -0x60(%rbp), %rcx
movslq 0x2b0(%rcx), %rcx
movl (%rdx,%rcx,4), %ecx
leal (%rax,%rcx), %r12d
incl %r12d
sarl %r12d
movq -0x78(%rbp), %r14
movq 0x10efe0(%r14), %rax
movl 0x28(%rax), %edx
movq -0x38(%rbp), %rcx
movl 0x4(%rcx), %ecx
imull %edx, %ecx
movq -0x38(%rbp), %rsi
addl (%rsi), %ecx
leal (%r8,%r8), %ebx
leal (%rbx,%rcx,8), %ecx
movslq %ecx, %rsi
addq 0x50(%rax), %rsi
movq %r14, %rdi
leaq -0x90(%rbp), %r15
movq %r15, %rcx
movl %r12d, %r8d
callq 0x4f83
movq 0x10efe0(%r14), %rax
movl 0x2c(%rax), %edx
movq -0x38(%rbp), %rcx
movl 0x4(%rcx), %ecx
imull %edx, %ecx
movq -0x38(%rbp), %rsi
addl (%rsi), %ecx
leal (%rbx,%rcx,8), %ecx
movslq %ecx, %rsi
addq 0x58(%rax), %rsi
movq %r14, %rdi
movq %r15, %rcx
movl %r12d, %r8d
callq 0x4f83
movq -0x48(%rbp), %r8
movq -0x38(%rbp), %rdx
incl %r8d
movl -0x54(%rbp), %esi
jmp 0x42a9
movq -0x60(%rbp), %rcx
leaq 0x324(%rcx), %rax
addq $0x30, %rcx
xorl %edx, %edx
cmpq $0x4, %rdx
je 0x4330
testl %esi, %esi
movl %edx, %edi
cmovel %r8d, %edi
movl %r8d, %esi
cmovel %edx, %esi
leaq 0x164af(%rip), %r8      # 0x1b300
leaq (%r8,%rdi,4), %r8
movzbl (%rsi,%r8), %r8d
imulq $0x84, %r8, %r8
movq -0xf8(%rbp), %r9
cmpl $0x0, 0x4(%r9,%r8)
pushq $0x2
popq %r10
jne 0x4f24
movl %esi, %r8d
subl -0x54(%rbp), %r8d
andl $0x3, %r8d
movl %edi, %r9d
subl -0xb0(%rbp), %r9d
andl $0x3, %r9d
leaq 0x16468(%rip), %r10     # 0x1b300
leaq (%r10,%r9,4), %r10
movzbl (%r8,%r10), %r10d
imulq $0x84, %r10, %r10
cmpl $0x0, 0x4(%rax,%r10)
pushq $0x2
popq %r10
jne 0x4f24
cmpl $0x1, -0xac(%rbp)
je 0x4f55
imulq $0xa0, %rdi, %rdi
addq -0xd8(%rbp), %rdi
imulq $0x28, %rsi, %r11
movl (%r11,%rdi), %ebx
imulq $0xa0, %r9, %rsi
addq %rcx, %rsi
imulq $0x28, %r8, %r8
pushq $0x1
popq %r10
cmpl (%r8,%rsi), %ebx
jne 0x4f24
addq %r11, %rdi
addq %r8, %rsi
movl 0x8(%rdi), %r8d
subl 0x8(%rsi), %r8d
movl %r8d, %r9d
negl %r9d
cmovsl %r8d, %r9d
cmpl $0x3, %r9d
ja 0x4f24
movl 0xc(%rdi), %edi
subl 0xc(%rsi), %edi
movl %edi, %esi
negl %esi
cmovsl %edi, %esi
xorl %r10d, %r10d
cmpl $0x4, %esi
setae %r10b
movl %r10d, -0x90(%rbp,%rdx,4)
incq %rdx
movl -0x54(%rbp), %esi
movq -0x48(%rbp), %r8
jmp 0x4e32
incl %esi
jmp 0x4280
movq -0xc8(%rbp), %rdx
incq %rdx
movq -0x78(%rbp), %rdi
jmp 0x4213
movq 0x23074(%rip), %rax     # 0x27fd0
movq (%rax), %rcx
leaq 0x163aa(%rip), %rdi     # 0x1b310
pushq $0x30
popq %rsi
pushq $0x1
popq %rdx
callq 0x21e0
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq