// File: /workspace/github_c_makefile_star2_O0/akumrao[P]videoAnalyzer/core/frame.c
// Function: x264_frame_copy_picture(x264_frame_t*, x264_picture_t*)
void x264_frame_copy_picture( x264_frame_t *dst, x264_picture_t *src )
{
    int i;
    int ch;
    int i_stride;

    /* y */
    i_stride = X264_MIN( src->i_stride[0], dst->i_stride[0] );
    for( i = 0; i < src->i_height; i++ )
    {
        memcpy( &dst->plane[0][ i * dst->i_stride[0]],
                &src->plane[0][ i * src->i_stride[0]],
                i_stride );
    }

    /* uv */
    for( ch = 0; ch < 2; ch++ )
    {
        i_stride = X264_MIN( src->i_stride[1+ch], dst->i_stride[1+ch] );
        for( i = 0; i < src->i_height/2; i++ )
        {
            memcpy( &dst->plane[1+ch][ i * dst->i_stride[1+ch]],
                    &src->plane[1+ch][ i * src->i_stride[1+ch]],
                    i_stride );
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movl 0xc(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x24(%rcx), %eax
jge 0x54bc
movq -0x10(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x20(%rbp)
jmp 0x54c6
movq -0x8(%rbp), %rax
movl 0x24(%rax), %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jge 0x5523
movq -0x8(%rbp), %rax
movq 0x48(%rax), %rdi
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
imull 0x24(%rcx), %eax
cltq
addq %rax, %rdi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rsi
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
imull 0xc(%rcx), %eax
cltq
addq %rax, %rsi
movslq -0x1c(%rbp), %rdx
callq 0x20a0
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x54d3
movl $0x0, -0x18(%rbp)
cmpl $0x2, -0x18(%rbp)
jge 0x562c
movq -0x10(%rbp), %rax
movl -0x18(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movl 0xc(%rax,%rcx,4), %eax
movq -0x8(%rbp), %rcx
movl -0x18(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
cmpl 0x24(%rcx,%rdx,4), %eax
jge 0x556e
movq -0x10(%rbp), %rax
movl -0x18(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movl 0xc(%rax,%rcx,4), %eax
movl %eax, -0x24(%rbp)
jmp 0x5582
movq -0x8(%rbp), %rax
movl -0x18(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movl 0x24(%rax,%rcx,4), %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x28(%rbp), %eax
cmpl %ecx, %eax
jge 0x561c
movq -0x8(%rbp), %rax
movl -0x18(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq 0x48(%rax,%rcx,8), %rdi
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
movl -0x18(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
imull 0x24(%rcx,%rdx,4), %eax
cltq
addq %rax, %rdi
movq -0x10(%rbp), %rax
movl -0x18(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq 0x20(%rax,%rcx,8), %rsi
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
movl -0x18(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
imull 0xc(%rcx,%rdx,4), %eax
cltq
addq %rax, %rsi
movslq -0x1c(%rbp), %rdx
callq 0x20a0
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x558f
jmp 0x561e
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x552a
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)