//
// cocos2d::CCProgressTimer::boundaryTexCoord from 0x100606660 to 0x1006066ef (143 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
cocos2d::CCPoint __fastcall cocos2d::CCProgressTimer::boundaryTexCoord(cocos2d::CCProgressTimer *a1, char a2)
{
char v2; // dl
unsigned int v3; // eax
int v4; // edx
unsigned __int8 v6; // cf
int v7; // ecx
int v8; // ecx
cocos2d::CCPoint result; // 0:xmm0_8.8
if ( v2 > 3 )
{
*(double *)&result = sub_10028CC60(a1, &dbl_1009A33E0);
}
else
{
v3 = 2 * v2;
if ( *(_BYTE *)(a2 + 392LL) == 1 )
{
v4 = 75;
result.x = (float)_bittest(&v4, (unsigned __int8)(7 - v3));
v6 = _bittest(&v4, (unsigned __int8)(6 - v3));
}
else
{
v7 = 37;
result.x = (float)_bittest(&v7, v3);
v8 = 75;
v6 = _bittest(&v8, v3);
}
sub_10028CBE0((float *)a1, result.x, (float)v6);
}
return result;
}