int __fastcall ImageRenderBits(unsigned int *p_count_1, char *count, int a3)
{
unsigned int *p_count; // eax
unsigned int *p_count_2; // edi
unsigned int v7; // edx
bool *v8; // ebx
bool v9; // al
p_count = ImageRenderAllocContext();
p_count_2 = p_count;
if ( !p_count || ImageRenderCheckContext(p_count, count) )
return -1;
v7 = 1 << ((_BYTE)count - 1);
v8 = (bool *)p_count_2[1];
if ( (int)count > 0 )
{
do
{
v9 = (v7 & a3) != 0;
v7 >>= 1;
*v8++ = v9;
--count;
}
while ( count );
}
return ImageRenderSetPixel(p_count_1, p_count_2);
}