// File: /workspace/github_c_makefile_star2_O0/akumrao[P]videoAnalyzer/encoder/macroblock.c
// Function: x264_cabac_mb_cbp_chroma(x264_t*, x264_macroblock_t*)
static void x264_cabac_mb_cbp_chroma(x264_t *h, x264_macroblock_t *mb) {LOG_CALL;
    x264_macroblock_t *mba = mb->context->mba;
    x264_macroblock_t *mbb = mb->context->mbb;
    int i_ctxIdxInc = 0;

    if (mba != NULL && !IS_SKIP(mba->i_type) &&
            (mba->i_type == I_PCM || mba->i_cbp_chroma != 0))
    {
        i_ctxIdxInc++;
    }
    if (mbb != NULL && !IS_SKIP(mbb->i_type) &&
            (mbb->i_type == I_PCM || mbb->i_cbp_chroma != 0))
    {
        i_ctxIdxInc += 2;
    }
    x264_cabac_encode_decision(&h->cabac, 77 + i_ctxIdxInc, (mb->i_cbp_chroma > 0 ? 1 : 0));
    if (mb->i_cbp_chroma > 0)
    {
        i_ctxIdxInc = 4;
        if (mba != NULL && !IS_SKIP(mba->i_type) &&
                (mba->i_type == I_PCM || mba->i_cbp_chroma == 2))
        {
            i_ctxIdxInc++;
        }
        if (mbb != NULL && !IS_SKIP(mbb->i_type) &&
                (mbb->i_type == I_PCM || mbb->i_cbp_chroma == 2))
        {
            i_ctxIdxInc += 2;
        }
        x264_cabac_encode_decision(&h->cabac, 77 + i_ctxIdxInc, (mb->i_cbp_chroma > 1 ? 1 : 0));
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0x9449(%rip), %rdi      # 0x28eb0
leaq 0x10066(%rip), %rsi     # 0x2fad4
leaq 0x1065b(%rip), %rdx     # 0x300d0
movb $0x0, %al
callq 0x4d20
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x1fadd
movq -0x18(%rbp), %rax
cmpl $0x5, 0x18(%rax)
je 0x1fadd
movq -0x18(%rbp), %rax
cmpl $0x11, 0x18(%rax)
je 0x1fadd
movq -0x18(%rbp), %rax
cmpl $0x2, 0x18(%rax)
je 0x1fad4
movq -0x18(%rbp), %rax
cmpl $0x0, 0x2b4(%rax)
je 0x1fadd
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x1fb18
movq -0x20(%rbp), %rax
cmpl $0x5, 0x18(%rax)
je 0x1fb18
movq -0x20(%rbp), %rax
cmpl $0x11, 0x18(%rax)
je 0x1fb18
movq -0x20(%rbp), %rax
cmpl $0x2, 0x18(%rax)
je 0x1fb0f
movq -0x20(%rbp), %rax
cmpl $0x0, 0x2b4(%rax)
je 0x1fb18
movl -0x24(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x24(%rbp)
movq -0x8(%rbp), %rdi
addq $0x10db60, %rdi         # imm = 0x10DB60
movl -0x24(%rbp), %esi
addl $0x4d, %esi
movq -0x10(%rbp), %rax
movl 0x2b4(%rax), %ecx
xorl %edx, %edx
movl $0x1, %eax
cmpl $0x0, %ecx
cmovgl %eax, %edx
callq 0x3970
movq -0x10(%rbp), %rax
cmpl $0x0, 0x2b4(%rax)
jle 0x1fc00
movl $0x4, -0x24(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x1fb98
movq -0x18(%rbp), %rax
cmpl $0x5, 0x18(%rax)
je 0x1fb98
movq -0x18(%rbp), %rax
cmpl $0x11, 0x18(%rax)
je 0x1fb98
movq -0x18(%rbp), %rax
cmpl $0x2, 0x18(%rax)
je 0x1fb8f
movq -0x18(%rbp), %rax
cmpl $0x2, 0x2b4(%rax)
jne 0x1fb98
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x1fbd3
movq -0x20(%rbp), %rax
cmpl $0x5, 0x18(%rax)
je 0x1fbd3
movq -0x20(%rbp), %rax
cmpl $0x11, 0x18(%rax)
je 0x1fbd3
movq -0x20(%rbp), %rax
cmpl $0x2, 0x18(%rax)
je 0x1fbca
movq -0x20(%rbp), %rax
cmpl $0x2, 0x2b4(%rax)
jne 0x1fbd3
movl -0x24(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x24(%rbp)
movq -0x8(%rbp), %rdi
addq $0x10db60, %rdi         # imm = 0x10DB60
movl -0x24(%rbp), %esi
addl $0x4d, %esi
movq -0x10(%rbp), %rax
movl 0x2b4(%rax), %ecx
xorl %edx, %edx
movl $0x1, %eax
cmpl $0x1, %ecx
cmovgl %eax, %edx
callq 0x3970
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)