// File: /workspace/github_c_makefile_star2_O1/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 0x14e97(%rip), %rdi     # 0x251b4
leaq 0x17f38(%rip), %rsi     # 0x2825c
leaq 0x180a6(%rip), %rdx     # 0x283d1
xorl %eax, %eax
callq 0x4c22
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 0x10350
movl $0x368, %r14d           # imm = 0x368
leaq 0x14e42(%rip), %r15     # 0x251b4
leaq 0x17ee3(%rip), %r12     # 0x2825c
leaq 0x18108(%rip), %r13     # 0x28488
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x4c22
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 0x10380
leaq 0x14df3(%rip), %r15     # 0x251b4
leaq 0x17e94(%rip), %r12     # 0x2825c
leaq 0x180b9(%rip), %r13     # 0x28488
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x4c22
xorps %xmm0, %xmm0
movups %xmm0, 0x304(%rbx)
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x4c22
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 0x4c22
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 0x10409
leaq 0x30(%rbx), %rax
xorl %ecx, %ecx
xorl %edx, %edx
movl $0x0, (%rax,%rdx)
addq $0x28, %rdx
cmpq $0xa0, %rdx
jne 0x1044b
incq %rcx
addq $0xa0, %rax
cmpq $0x4, %rcx
jne 0x10449
leaq -0x38(%rbp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x730c
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r15, %r8
callq 0xdf04
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
callq 0x7415
movl $0x5, 0x18(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq