// File: /workspace/github_c_makefile_star2_O3/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, -0x9c(%rbp)
movq 0x8ed8(%rdi), %rax
movl 0x440(%rax), %ecx
imull 0x43c(%rax), %ecx
testl %ecx, %ecx
jle 0x6050
leaq 0x2200b(%rip), %r9      # 0x27300
xorl %ecx, %ecx
movq %rdi, -0x78(%rbp)
movq 0x10efe8(%rdi), %rax
movq %rcx, -0xc0(%rbp)
imulq $0xf88, %rcx, %rcx      # imm = 0xF88
leaq (%rax,%rcx), %rdx
leaq (%rax,%rcx), %rsi
addq $0x324, %rsi            # imm = 0x324
movq %rsi, -0xf0(%rbp)
leaq 0x30(%rax,%rcx), %rax
movq %rax, -0xd0(%rbp)
movb $0x1, %sil
leaq -0xf88(%rdx), %rax
movq %rax, -0xc8(%rbp)
xorl %eax, %eax
movq %rdx, -0x80(%rbp)
movl %eax, %ecx
movl %esi, %eax
notb %al
movzbl %al, %eax
andl $0x1, %eax
xorl %r8d, %r8d
cmpl $0x0, (%rdx,%rax,4)
sete %r8b
movl %ecx, -0xa4(%rbp)
xorl $0x1, %ecx
movl %ecx, -0xa0(%rbp)
movl %esi, -0x5c(%rbp)
testl %r8d, %r8d
setne %al
movq -0xc8(%rbp), %rcx
cmovneq %rdx, %rcx
orb %sil, %al
testb $0x1, %al
jne 0x53a5
movq 0x8ed8(%rdi), %rax
movslq 0x43c(%rax), %rax
negq %rax
imulq $0xf88, %rax, %rcx      # imm = 0xF88
addq %rdx, %rcx
cmpl $0x2, 0x18(%rdx)
movq %r8, -0x40(%rbp)
movq %rcx, -0x88(%rbp)
jb 0x53bc
cmpl $0x2, 0x18(%rcx)
jae 0x53d9
cmpl $0x1, %r8d
movl $0x0, %eax
adcl $0x3, %eax
movl %eax, -0x64(%rbp)
movl %eax, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
movl %eax, -0x70(%rbp)
jmp 0x54ed
leaq 0x324(%rcx), %rax
addq $0x30, %rcx
xorl %edx, %edx
testb $0x1, %sil
movl %edx, %r8d
movq -0x40(%rbp), %rdi
cmovnel %edi, %r8d
cmovnel %edx, %edi
leaq (%r9,%r8,4), %rsi
movzbl (%rdi,%rsi), %esi
movq %r9, %r11
movl %esi, %r9d
shll $0x7, %r9d
leaq (%r9,%rsi,4), %r9
movl $0x2, %esi
movq -0xf0(%rbp), %r10
cmpl $0x0, 0x4(%r10,%r9)
jne 0x54d2
movl %edi, %r9d
subl -0xa4(%rbp), %r9d
andl $0x3, %r9d
movl %r8d, %r10d
subl -0xa0(%rbp), %r10d
andl $0x3, %r10d
leaq (%r11,%r10,4), %r11
movzbl (%r9,%r11), %r11d
movl %r11d, %ebx
shll $0x7, %ebx
leaq (%rbx,%r11,4), %r11
cmpl $0x0, 0x4(%rax,%r11)
jne 0x54d2
cmpl $0x1, -0x9c(%rbp)
je 0x6047
leaq (%r8,%r8,4), %r8
shlq $0x5, %r8
addq -0xd0(%rbp), %r8
leaq (%rdi,%rdi,4), %rdi
movl (%r8,%rdi,8), %r11d
leaq (%r10,%r10,4), %r10
shll $0x5, %r10d
addq %rcx, %r10
leaq (%r9,%r9,4), %r9
movl $0x1, %esi
cmpl (%r10,%r9,8), %r11d
jne 0x54d2
leaq (%r8,%rdi,8), %r8
leaq (%r10,%r9,8), %rdi
movl 0x8(%r8), %r9d
subl 0x8(%rdi), %r9d
movl %r9d, %r10d
negl %r10d
cmovsl %r9d, %r10d
cmpl $0x3, %r10d
ja 0x54d2
movl 0xc(%r8), %esi
subl 0xc(%rdi), %esi
movl %esi, %edi
negl %edi
cmovsl %esi, %edi
xorl %esi, %esi
cmpl $0x4, %edi
setae %sil
movl %esi, -0x70(%rbp,%rdx,4)
incq %rdx
cmpq $0x4, %rdx
leaq 0x21e1c(%rip), %r9      # 0x27300
movl -0x5c(%rbp), %esi
jne 0x53e6
movl %esi, %r9d
movq -0x80(%rbp), %r8
movl 0x2b0(%r8), %eax
movq -0x88(%rbp), %rcx
movl 0x2b0(%rcx), %ecx
leal (%rax,%rcx), %esi
incl %esi
sarl %esi
movq -0x78(%rbp), %rdi
movq 0x10efe0(%rdi), %rdx
movq 0x48(%rdx), %rcx
movl 0x4(%r8), %eax
testb $0x1, %r9b
je 0x59c6
movslq 0x24(%rdx), %rdx
imull %edx, %eax
addl (%r8), %eax
shll $0x4, %eax
movq -0x40(%rbp), %r8
leal (%rax,%r8,4), %eax
cltq
addq %rax, %rcx
movl 0x10db54(%rdi), %r10d
addl %esi, %r10d
movl $0x33, %r9d
cmpl %r9d, %r10d
cmovgel %r9d, %r10d
testl %r10d, %r10d
movl $0x0, %r8d
cmovlel %r8d, %r10d
leaq 0x21eaf(%rip), %rax     # 0x27420
movq %r10, -0x58(%rbp)
movl (%rax,%r10,4), %eax
addl 0x10db58(%rdi), %esi
cmpl %r9d, %esi
cmovgel %r9d, %esi
testl %esi, %esi
cmovlel %r8d, %esi
leaq 0x21f5d(%rip), %rdi     # 0x274f0
movl (%rdi,%rsi,4), %edi
movl %eax, %esi
shrl $0x2, %esi
addl $0x2, %esi
movl %esi, -0x50(%rbp)
leaq (,%rdx,4), %rsi
movq %rsi, -0x98(%rbp)
xorl %esi, %esi
movq %rsi, -0x30(%rbp)
movslq -0x70(%rbp,%rsi,4), %rsi
testq %rsi, %rsi
je 0x576e
cmpl $0x4, %esi
jge 0x577a
movq -0x58(%rbp), %r8
leaq (%r8,%r8,2), %r8
leaq 0x21fe4(%rip), %r9      # 0x275c0
leaq (%r9,%r8,4), %r8
movl -0x4(%r8,%rsi,4), %r11d
movl %r11d, %esi
negl %esi
movl %esi, -0x38(%rbp)
leal 0x1(%r11), %esi
movl %esi, -0x48(%rbp)
movl $0x4, %r15d
movzbl -0x1(%rcx), %r13d
movzbl (%rcx), %r12d
movl %r13d, %esi
subl %r12d, %esi
movl %esi, %r8d
negl %r8d
cmovsl %esi, %r8d
movzbl %r8b, %esi
cmpl %eax, %esi
jge 0x575d
movzbl -0x2(%rcx), %r9d
movl %r9d, %esi
subl %r13d, %esi
movl %esi, %r8d
negl %r8d
cmovsl %esi, %r8d
cmpl %edi, %r8d
jge 0x575d
movzbl 0x1(%rcx), %esi
movl %esi, %r8d
subl %r12d, %r8d
movl %r8d, %ebx
negl %ebx
cmovsl %r8d, %ebx
cmpl %edi, %ebx
jae 0x575d
movzbl -0x3(%rcx), %r8d
movl %r8d, %r14d
subl %r13d, %r14d
movl %r14d, %ebx
negl %ebx
cmovsl %r14d, %ebx
movl %r11d, %r14d
cmpl %edi, %ebx
jae 0x56aa
leal (%r12,%r13), %ebx
incl %ebx
shrl %ebx
subl %r9d, %r8d
subl %r9d, %r8d
movzbl %bl, %ebx
addl %r8d, %ebx
sarl %ebx
movl %ebx, %r8d
cmpl %r11d, %ebx
jl 0x5694
movl %r11d, %r8d
movl -0x38(%rbp), %r10d
cmpl %r10d, %ebx
cmovll %r10d, %r8d
addb %r9b, %r8b
movb %r8b, -0x2(%rcx)
movl -0x48(%rbp), %r14d
movzbl 0x2(%rcx), %r10d
movl %r10d, %r8d
subl %r12d, %r8d
movl %r8d, %ebx
negl %ebx
cmovsl %r8d, %ebx
cmpl %edi, %ebx
jae 0x56f9
leal (%r12,%r13), %r8d
incl %r8d
shrl %r8d
movzbl %r8b, %ebx
addl %r10d, %ebx
subl %esi, %ebx
subl %esi, %ebx
sarl %ebx
movl %ebx, %r8d
cmpl %r11d, %ebx
jl 0x56e4
movl %r11d, %r8d
movl -0x38(%rbp), %r10d
cmpl %r10d, %ebx
cmovll %r10d, %r8d
addb %sil, %r8b
movb %r8b, 0x1(%rcx)
incl %r14d
movl %r12d, %r8d
subl %r13d, %r8d
subl %esi, %r9d
leal (%r9,%r8,4), %esi
addl $0x4, %esi
sarl $0x3, %esi
movl %r14d, %r8d
negl %r8d
cmpl %r14d, %esi
cmovll %esi, %r14d
cmpl %r8d, %esi
cmovll %r8d, %r14d
addl %r14d, %r13d
testl %r13d, %r13d
setg %sil
negb %sil
movl $0x100, %r8d            # imm = 0x100
cmpl %r8d, %r13d
movzbl %sil, %esi
cmovbl %r13d, %esi
movb %sil, -0x1(%rcx)
subl %r14d, %r12d
testl %r12d, %r12d
setg %sil
negb %sil
cmpl %r8d, %r12d
movzbl %sil, %esi
cmovbl %r12d, %esi
movb %sil, (%rcx)
addq %rdx, %rcx
decl %r15d
jne 0x55fa
jmp 0x58f8
addq -0x98(%rbp), %rcx
jmp 0x58f8
movl $0x4, %r11d
movzbl -0x1(%rcx), %r15d
movzbl (%rcx), %ebx
movl %r15d, %esi
subl %ebx, %esi
movl %esi, %r8d
negl %r8d
cmovsl %esi, %r8d
movzbl %r8b, %esi
cmpl %eax, %esi
jge 0x58ec
movzbl -0x2(%rcx), %r14d
movl %r14d, %r8d
subl %r15d, %r8d
movl %r8d, %r9d
negl %r9d
cmovsl %r8d, %r9d
cmpl %edi, %r9d
jge 0x58ec
movzbl 0x1(%rcx), %r9d
movl %r9d, %r8d
subl %ebx, %r8d
movl %r8d, %r10d
negl %r10d
cmovsl %r8d, %r10d
cmpl %edi, %r10d
jae 0x58ec
cmpl -0x50(%rbp), %esi
jae 0x5849
movzbl -0x3(%rcx), %r8d
movl %r8d, %esi
subl %r15d, %esi
movl %esi, %r10d
negl %r10d
cmovsl %esi, %r10d
cmpl %edi, %r10d
jae 0x5867
movzbl -0x4(%rcx), %r12d
leal (%rbx,%r15), %r10d
leal (%r10,%r14), %esi
leal (%r9,%r8), %r13d
leal 0x4(%r13,%rsi,2), %esi
shrl $0x3, %esi
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 0x5874
leal (%r15,%r14,2), %esi
addl %r9d, %esi
addl $0x2, %esi
shrl $0x2, %esi
movb %sil, -0x1(%rcx)
addl %r14d, %ebx
leal (%rbx,%r9,2), %r8d
addl $0x2, %r8d
jmp 0x58e2
leal (%r15,%r14,2), %esi
addl %r9d, %esi
addl $0x2, %esi
shrl $0x2, %esi
movzbl 0x2(%rcx), %r8d
movb %sil, -0x1(%rcx)
movl %r8d, %esi
subl %ebx, %esi
movl %esi, %r10d
negl %r10d
cmovsl %esi, %r10d
cmpl %edi, %r10d
jae 0x58d7
leaq 0x2(%rcx), %rsi
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 0x58e9
addl %ebx, %r14d
leal (%r14,%r9,2), %r8d
addl $0x2, %r8d
shrl $0x2, %r8d
movq %rcx, %rsi
movb %r8b, (%rsi)
addq %rdx, %rcx
decl %r11d
jne 0x5780
movq -0x30(%rbp), %rsi
incq %rsi
cmpq $0x4, %rsi
jne 0x55b2
movq -0x40(%rbp), %r8
testb $0x1, %r8b
jne 0x5fe3
movq -0x80(%rbp), %r13
movslq 0x2b0(%r13), %rax
leaq 0x21a27(%rip), %rdx     # 0x27350
movl (%rdx,%rax,4), %eax
movq -0x88(%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), %ecx
movl 0x4(%r13), %edx
imull %ecx, %edx
addl (%r13), %edx
sarl %r12d
leal (%r8,%r8), %ebx
leal (%rbx,%rdx,8), %edx
movslq %edx, %rdx
addq 0x50(%rax), %rdx
movl 0x10db54(%r14), %edi
movl 0x10db58(%r14), %esi
leaq -0x70(%rbp), %r15
movq %r15, %r8
movl %r12d, %r9d
callq 0x6062
movq 0x10efe0(%r14), %rax
movl 0x2c(%rax), %ecx
movl 0x4(%r13), %edx
imull %ecx, %edx
addl (%r13), %edx
leal (%rbx,%rdx,8), %edx
movslq %edx, %rdx
addq 0x58(%rax), %rdx
movl 0x10db54(%r14), %edi
movl 0x10db58(%r14), %esi
movq %r15, %r8
movl %r12d, %r9d
callq 0x6062
jmp 0x5fdf
shll $0x4, %eax
movq -0x40(%rbp), %r9
leal (%rax,%r9,4), %eax
movslq 0x24(%rdx), %r13
imull %r13d, %eax
movslq (%r8), %rdx
shlq $0x4, %rdx
cltq
addq %rdx, %rcx
addq %rax, %rcx
movl 0x10db54(%rdi), %r8d
addl %esi, %r8d
movl $0x33, %edx
cmpl %edx, %r8d
cmovgel %edx, %r8d
testl %r8d, %r8d
movl $0x0, %eax
cmovlel %eax, %r8d
addl 0x10db58(%rdi), %esi
cmpl %edx, %esi
cmovgel %edx, %esi
testl %esi, %esi
cmovlel %eax, %esi
leaq 0x219ff(%rip), %rax     # 0x27420
movq %r8, -0xe8(%rbp)
movl (%rax,%r8,4), %edi
leaq 0x21abd(%rip), %rax     # 0x274f0
movl (%rax,%rsi,4), %r8d
movl %r13d, %eax
negl %eax
movslq %eax, %r9
leal (,%r13,2), %eax
movslq %eax, %rdx
movq %rdx, -0x58(%rbp)
negl %eax
movslq %eax, %rsi
leal (%r13,%r13,2), %eax
movslq %eax, %rdx
movq %rdx, -0xe0(%rbp)
negl %eax
cltq
movq %rax, -0xb8(%rbp)
leal (,%r13,4), %eax
negl %eax
cltq
movq %rax, -0xd8(%rbp)
movl %edi, %eax
shrl $0x2, %eax
addl $0x2, %eax
movl %eax, -0xa8(%rbp)
xorl %edx, %edx
movq %r13, -0x90(%rbp)
movq %rsi, -0x50(%rbp)
movq %r9, -0xb0(%rbp)
movslq -0x70(%rbp,%rdx,4), %rax
testq %rax, %rax
movq %rdx, -0x98(%rbp)
je 0x5c87
cmpl $0x4, %eax
jge 0x5c90
movq -0xe8(%rbp), %rdx
leaq (%rdx,%rdx,2), %rdx
leaq 0x21aee(%rip), %rsi     # 0x275c0
leaq (%rsi,%rdx,4), %rdx
movq -0x50(%rbp), %rsi
movl -0x4(%rdx,%rax,4), %eax
movl %eax, %edx
negl %edx
movl %edx, -0x38(%rbp)
movq %rax, -0x30(%rbp)
incl %eax
movl %eax, -0x48(%rbp)
movl $0x4, %ebx
movzbl (%rcx,%r9), %r15d
movzbl (%rcx), %r14d
movl %r15d, %edx
subl %r14d, %edx
movl %edx, %r10d
negl %r10d
cmovsl %edx, %r10d
movzbl %r10b, %edx
cmpl %edi, %edx
jge 0x5c77
movzbl (%rcx,%rsi), %edx
movl %edx, %r10d
subl %r15d, %r10d
movl %r10d, %r11d
negl %r11d
cmovsl %r10d, %r11d
cmpl %r8d, %r11d
jge 0x5c77
movzbl (%rcx,%r13), %r11d
movl %r11d, %r10d
subl %r14d, %r10d
movl %r10d, %r12d
negl %r12d
cmovsl %r10d, %r12d
cmpl %r8d, %r12d
jae 0x5c77
movq -0xb8(%rbp), %rax
movzbl (%rcx,%rax), %esi
movq -0x58(%rbp), %rax
movzbl (%rcx,%rax), %r10d
movl %esi, %r12d
subl %r15d, %r12d
movl %r12d, %r13d
negl %r13d
cmovsl %r12d, %r13d
movq -0x30(%rbp), %rax
cmpl %r8d, %r13d
jae 0x5bbe
leal (%r15,%r14), %eax
incl %eax
shrl %eax
subl %edx, %esi
subl %edx, %esi
movzbl %al, %r13d
addl %esi, %r13d
sarl %r13d
movl %r13d, %r12d
cmpl -0x30(%rbp), %r13d
jl 0x5ba6
movq -0x30(%rbp), %rax
movl %eax, %r12d
movl -0x38(%rbp), %eax
cmpl %eax, %r13d
cmovll %eax, %r12d
addb %dl, %r12b
movq -0x50(%rbp), %rax
movb %r12b, (%rcx,%rax)
movl -0x48(%rbp), %eax
movl %r10d, %esi
subl %r14d, %esi
movl %esi, %r12d
negl %r12d
cmovsl %esi, %r12d
cmpl %r8d, %r12d
jae 0x5c17
leal (%r15,%r14), %esi
incl %esi
shrl %esi
movzbl %sil, %r12d
addl %r10d, %r12d
subl %r11d, %r12d
subl %r11d, %r12d
sarl %r12d
movl %r12d, %r10d
cmpl -0x30(%rbp), %r12d
movq -0x90(%rbp), %r13
jl 0x5c02
movq -0x30(%rbp), %rsi
movl %esi, %r10d
movl -0x38(%rbp), %esi
cmpl %esi, %r12d
cmovll %esi, %r10d
addb %r11b, %r10b
movb %r10b, (%rcx,%r13)
incl %eax
jmp 0x5c1e
movq -0x90(%rbp), %r13
movl %r14d, %esi
subl %r15d, %esi
subl %r11d, %edx
leal (%rdx,%rsi,4), %edx
addl $0x4, %edx
sarl $0x3, %edx
movl %eax, %esi
negl %esi
cmpl %eax, %edx
cmovll %edx, %eax
cmpl %esi, %edx
cmovll %esi, %eax
addl %eax, %r15d
testl %r15d, %r15d
setg %dl
negb %dl
movl $0x100, %esi            # imm = 0x100
cmpl %esi, %r15d
movzbl %dl, %edx
cmovbl %r15d, %edx
movb %dl, (%rcx,%r9)
subl %eax, %r14d
testl %r14d, %r14d
setg %al
negb %al
cmpl %esi, %r14d
movzbl %al, %eax
cmovbl %r14d, %eax
movb %al, (%rcx)
movq -0x50(%rbp), %rsi
incq %rcx
decl %ebx
jne 0x5af3
jmp 0x5f09
addq $0x4, %rcx
jmp 0x5f09
movq -0xe0(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x128(%rbp)
movq -0xd8(%rbp), %rax
leaq (%rcx,%rax), %rax
movq %rax, -0x110(%rbp)
movq -0x58(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x120(%rbp)
leaq (%rcx,%r13), %rax
movq %rax, -0x38(%rbp)
movq -0xb8(%rbp), %rax
leaq (%rcx,%rax), %r14
leaq (%rcx,%rsi), %rax
movq %rax, -0x30(%rbp)
leaq (%rcx,%r9), %rax
xorl %r13d, %r13d
movq %rcx, %r10
movq %r14, -0x108(%rbp)
movzbl (%rax,%r13), %r11d
movzbl (%rcx,%r13), %r15d
movl %r11d, %edx
subl %r15d, %edx
movl %edx, %esi
negl %esi
cmovsl %edx, %esi
movzbl %sil, %r12d
cmpl %edi, %r12d
jge 0x5ee4
movq -0x30(%rbp), %rdx
movzbl (%rdx,%r13), %edx
movl %edx, %esi
subl %r11d, %esi
movl %esi, %ebx
negl %ebx
cmovsl %esi, %ebx
cmpl %r8d, %ebx
jge 0x5ee4
movq -0x38(%rbp), %rsi
movzbl (%rsi,%r13), %ebx
movq %r14, %r9
movl %ebx, %r14d
subl %r15d, %r14d
movl %r14d, %esi
negl %esi
cmovsl %r14d, %esi
movq %r9, %r14
cmpl %r8d, %esi
jae 0x5ee4
leaq (%rcx,%r13), %rsi
movq %rsi, -0x48(%rbp)
cmpl -0xa8(%rbp), %r12d
jae 0x5e26
movzbl (%r14,%r13), %r12d
movq -0x120(%rbp), %rsi
movzbl (%rsi,%r13), %esi
movq %rsi, -0x130(%rbp)
movq -0x128(%rbp), %rsi
movzbl (%rsi,%r13), %esi
movq %rsi, -0x118(%rbp)
movl %r12d, %esi
subl %r11d, %esi
movl %esi, %r14d
negl %r14d
cmovsl %esi, %r14d
cmpl %r8d, %r14d
jae 0x5e48
leal (%r15,%r11), %esi
movq %rsi, -0xf8(%rbp)
addl %edx, %esi
leal (%rbx,%r12), %r14d
leal 0x4(%r14,%rsi,2), %r14d
movq -0x110(%rbp), %rsi
movzbl (%rsi,%r13), %esi
movq %rsi, -0x100(%rbp)
shrl $0x3, %r14d
movb %r14b, (%rax,%r13)
leal (%rdx,%r12), %r14d
movq -0xf8(%rbp), %rsi
addl %r14d, %esi
addl $0x2, %esi
shrl $0x2, %esi
movq -0x30(%rbp), %r14
movb %sil, (%r14,%r13)
leal (%r12,%r12,2), %esi
addl %edx, %esi
addl %r11d, %esi
addl %r15d, %esi
movq -0x100(%rbp), %r14
leal (%rsi,%r14,2), %esi
addl $0x4, %esi
movq -0x108(%rbp), %r14
leaq (%r14,%r13), %r12
shrl $0x3, %esi
jmp 0x5e5f
leal (%r11,%rdx,2), %esi
addl %ebx, %esi
addl $0x2, %esi
shrl $0x2, %esi
movb %sil, (%rax,%r13)
addl %edx, %r15d
leal (%r15,%rbx,2), %edx
addl $0x2, %edx
shrl $0x2, %edx
jmp 0x5ede
movq -0xb0(%rbp), %rsi
leaq (%r10,%rsi), %r12
leal (%r11,%rdx,2), %esi
addl %ebx, %esi
addl $0x2, %esi
shrl $0x2, %esi
movb %sil, (%r12)
movq -0x130(%rbp), %r12
movl %r12d, %esi
subl %r15d, %esi
movl %esi, %r14d
negl %r14d
cmovsl %esi, %r14d
cmpl %r8d, %r14d
jae 0x5ecf
addl %r11d, %r15d
addl %ebx, %r15d
addl %r12d, %edx
leal (%rdx,%r15,2), %edx
addl $0x4, %edx
shrl $0x3, %edx
movq -0x48(%rbp), %rsi
movb %dl, (%rsi)
movq -0x58(%rbp), %rdx
leaq (%r10,%rdx), %rsi
leal (%r12,%r15), %edx
addl $0x2, %edx
shrl $0x2, %edx
movq -0x38(%rbp), %r11
movb %dl, (%r11,%r13)
leal (%r12,%r12,2), %edx
addl %r15d, %edx
movq -0x118(%rbp), %r11
leal (%rdx,%r11,2), %edx
addl $0x4, %edx
shrl $0x3, %edx
movq %r9, %r14
jmp 0x5ee2
addl %r15d, %edx
leal (%rdx,%rbx,2), %edx
addl $0x2, %edx
shrl $0x2, %edx
movq %r9, %r14
movq -0x48(%rbp), %rsi
movb %dl, (%rsi)
incq %r10
incq %r13
cmpl $0x4, %r13d
jne 0x5ced
addq %r13, %rcx
movq -0x90(%rbp), %r13
movq -0x50(%rbp), %rsi
movq -0xb0(%rbp), %r9
movq -0x98(%rbp), %rdx
incq %rdx
cmpq $0x4, %rdx
jne 0x5aa2
movq -0x40(%rbp), %r8
testb $0x1, %r8b
jne 0x5fe3
movq -0x80(%rbp), %r13
movslq 0x2b0(%r13), %rax
leaq 0x21413(%rip), %rdx     # 0x27350
movl (%rdx,%rax,4), %eax
movq -0x88(%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), %ecx
movl 0x4(%r13), %edx
imull %ecx, %edx
addl (%r13), %edx
leal (%r8,%r8), %ebx
movl %ecx, %esi
imull %ebx, %esi
leal (%rsi,%rdx,8), %edx
movslq %edx, %rdx
addq 0x50(%rax), %rdx
movl 0x10db54(%r14), %edi
movl 0x10db58(%r14), %esi
leaq -0x70(%rbp), %r15
movq %r15, %r8
movl %r12d, %r9d
callq 0x6279
movq 0x10efe0(%r14), %rax
movl 0x2c(%rax), %ecx
movl 0x4(%r13), %edx
imull %ecx, %edx
addl (%r13), %edx
imull %ecx, %ebx
leal (%rbx,%rdx,8), %edx
movslq %edx, %rdx
addq 0x58(%rax), %rdx
movl 0x10db54(%r14), %edi
movl 0x10db58(%r14), %esi
movq %r15, %r8
movl %r12d, %r9d
callq 0x6279
movq -0x40(%rbp), %r8
incl %r8d
cmpl $0x4, %r8d
movq -0x78(%rbp), %rdi
leaq 0x2130b(%rip), %r9      # 0x27300
movq -0x80(%rbp), %rdx
movl -0x5c(%rbp), %esi
jne 0x5372
movl $0x1, %eax
testb $0x1, %sil
movl $0x0, %esi
jne 0x5349
movq -0xc0(%rbp), %rdx
incq %rdx
movq 0x8ed8(%rdi), %rax
movslq 0x43c(%rax), %rcx
movslq 0x440(%rax), %rax
imulq %rcx, %rax
movq %rdx, %rcx
cmpq %rax, %rdx
jl 0x52fb
jmp 0x6050
leaq -0x70(%rbp), %rdi
callq 0x24f5
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq