// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, -0x30(%rbp)
leaq 0x17089(%rip), %rdi     # 0x271b4
leaq 0x19f1e(%rip), %rsi     # 0x2a050
leaq 0x1a08c(%rip), %rdx     # 0x2a1c5
xorl %eax, %eax
callq 0x4a56
movabsq $0x1000000003, %rax     # imm = 0x1000000003
movq %rax, 0x18(%rbx)
movq $0x0, 0x2b4(%rbx)
movl $0x328, %eax            # imm = 0x328
movl $0x0, (%rbx,%rax)
addq $0x84, %rax
cmpq $0xf88, %rax            # imm = 0xF88
jne 0x1015e
movl $0x368, %r14d           # imm = 0x368
leaq 0x17034(%rip), %r15     # 0x271b4
leaq 0x19ec9(%rip), %r12     # 0x2a050
leaq 0x1a0ee(%rip), %r13     # 0x2a27c
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x4a56
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rbx,%r14)
movups %xmm0, 0x20(%rbx,%r14)
movups %xmm0, 0x10(%rbx,%r14)
movups %xmm0, (%rbx,%r14)
addq $0x84, %r14
cmpq $0xba8, %r14            # imm = 0xBA8
jne 0x1018e
leaq 0x16fe5(%rip), %r15     # 0x271b4
leaq 0x19e7a(%rip), %r12     # 0x2a050
leaq 0x1a09f(%rip), %r13     # 0x2a27c
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x4a56
xorps %xmm0, %xmm0
movups %xmm0, 0x304(%rbx)
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x4a56
xorps %xmm0, %xmm0
movups %xmm0, 0x314(%rbx)
movl $0xb6c, %r14d           # imm = 0xB6C
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x4a56
xorps %xmm0, %xmm0
movups %xmm0, 0x2c(%rbx,%r14)
movups %xmm0, 0x20(%rbx,%r14)
movups %xmm0, 0x10(%rbx,%r14)
movups %xmm0, (%rbx,%r14)
addq $0x84, %r14
cmpq $0xf8c, %r14            # imm = 0xF8C
jne 0x10217
leaq 0x30(%rbx), %rax
xorl %ecx, %ecx
xorl %edx, %edx
movl $0x0, (%rax,%rdx)
addq $0x28, %rdx
cmpq $0xa0, %rdx
jne 0x10259
incq %rcx
addq $0xa0, %rax
cmpq $0x4, %rcx
jne 0x10257
leaq -0x38(%rbp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7120
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r15, %r8
callq 0xddf2
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
callq 0x71f5
movl $0x5, 0x18(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq