// File: /workspace/github_c_makefile_star2_O0/akumrao[P]videoAnalyzer/decoder/macroblock.c
// Function: x264_macroblock_decode_skip(x264_t*, x264_macroblock_t*)
void x264_macroblock_decode_skip(x264_t *h, x264_macroblock_t *mb) {LOG_CALL;
    int i;
    int x, y;
    int mv[2];

    /* decode it as a 16x16 with no luma/chroma */
    mb->i_type = P_L0;
    mb->i_partition = D_16x16;
    mb->i_cbp_luma = 0;
    mb->i_cbp_chroma = 0;
    for (i = 0; i < 16 + 8; i++)
    {
        mb->block[i].i_non_zero_count = 0;
    }
    for (i = 0; i < 16; i++)
    {
        array_zero_set(mb->block[i].luma4x4, 16);
    }
    array_zero_set(mb->chroma_dc[0], 4);
    array_zero_set(mb->chroma_dc[1], 4);
    for (i = 0; i < 8; i++)
    {
        array_zero_set(mb->block[16 + i].residual_ac, 15);
    }

    /* set ref0 */
    for (x = 0; x < 4; x++)
    {
        for (y = 0; y < 4; y++)
        {
            mb->partition[x][y].i_ref[0] = 0;
        }
    }
    /* get mv */
    x264_mb_predict_mv_pskip(mb, mv);

    x264_mb_partition_mv_set(mb, 0, 0, 0, mv);

    /* Motion compensation */
    x264_mb_mc(h, mb);

    mb->i_type = P_SKIP;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0x15509(%rip), %rdi     # 0x28eb0
leaq 0x18222(%rip), %rsi     # 0x2bbd0
leaq 0x18396(%rip), %rdx     # 0x2bd4b
movb $0x0, %al
callq 0x4d20
movq -0x10(%rbp), %rax
movl $0x3, 0x18(%rax)
movq -0x10(%rbp), %rax
movl $0x10, 0x1c(%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0x2b8(%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0x2b4(%rax)
movl $0x0, -0x14(%rbp)
cmpl $0x18, -0x14(%rbp)
jge 0x13a25
movq -0x10(%rbp), %rax
addq $0x324, %rax            # imm = 0x324
movslq -0x14(%rbp), %rcx
imulq $0x84, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x4(%rax)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x139f5
movl $0x0, -0x14(%rbp)
cmpl $0x10, -0x14(%rbp)
jge 0x13a64
movq -0x10(%rbp), %rdi
addq $0x324, %rdi            # imm = 0x324
movslq -0x14(%rbp), %rax
imulq $0x84, %rax, %rax
addq %rax, %rdi
addq $0x44, %rdi
movl $0x10, %esi
callq 0x12c30
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x13a2c
movq -0x10(%rbp), %rdi
addq $0x304, %rdi            # imm = 0x304
movl $0x4, %esi
callq 0x12c30
movq -0x10(%rbp), %rdi
addq $0x304, %rdi            # imm = 0x304
addq $0x10, %rdi
movl $0x4, %esi
callq 0x12c30
movl $0x0, -0x14(%rbp)
cmpl $0x8, -0x14(%rbp)
jge 0x13ad5
movq -0x10(%rbp), %rdi
addq $0x324, %rdi            # imm = 0x324
movl -0x14(%rbp), %eax
addl $0x10, %eax
cltq
imulq $0x84, %rax, %rax
addq %rax, %rdi
addq $0x8, %rdi
movl $0xf, %esi
callq 0x12c30
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x13a99
movl $0x0, -0x18(%rbp)
cmpl $0x4, -0x18(%rbp)
jge 0x13b2e
movl $0x0, -0x1c(%rbp)
cmpl $0x4, -0x1c(%rbp)
jge 0x13b21
movq -0x10(%rbp), %rax
addq $0x30, %rax
movslq -0x18(%rbp), %rcx
imulq $0xa0, %rcx, %rcx
addq %rcx, %rax
movslq -0x1c(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movl $0x0, (%rax)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x13ae9
jmp 0x13b23
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x13adc
movq -0x10(%rbp), %rdi
leaq -0x24(%rbp), %rsi
callq 0x8780
movq -0x10(%rbp), %rdi
leaq -0x24(%rbp), %r8
xorl %ecx, %ecx
movl %ecx, %esi
movl %ecx, %edx
callq 0x11240
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x8a40
movq -0x10(%rbp), %rax
movl $0x5, 0x18(%rax)
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)