int __fastcall ImageRenderNextLine(int *Pool, int a2)
{
int v2; // edi
int v3; // esi
int v4; // ecx
v2 = Pool[1];
v3 = a2;
if ( a2 >= v2 )
{
v4 = *Pool;
do
v3 = ((v3 - v2) >> v4) + (v2 & (v3 - v2));
while ( v3 >= v2 );
}
return v3;
}