//
// cocos2d::CCProgressTimer::boundaryTexCoord from 0x1003fe348 to 0x1003fe3c0 (120 bytes)
//
// 3 xrefs:
// > cocos2d::CCProgressTimer::updateRadial @ 0x1003fdb58
// > cocos2d::CCProgressTimer::updateRadial @ 0x1003fdb6c
// > cocos2d::CCProgressTimer::updateRadial @ 0x1003fdd58
//
// 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
//
cocos2d::CCPoint __fastcall cocos2d::CCProgressTimer::boundaryTexCoord(cocos2d::CCProgressTimer *a1, char a2)
{
__int64 *v2; // x8
__n128 v3; // q0
__n128 v4; // q1
__int64 *v6; // x0
char v7; // w8
unsigned int v8; // w8
cocos2d::CCPoint result; // 0:s0.4,4:s1.4
v6 = v2;
if ( a2 > 3 )
{
result.x = sub_1000229B8(v2, &qword_10086E8F0);
}
else
{
v7 = 2 * a2;
if ( a1->m_bReverseDirection )
{
v3.n128_f32[0] = (float)((0x4Bu >> (7 - v7)) & 1);
v8 = 0x4Bu >> (6 - v7);
}
else
{
v3.n128_f32[0] = (float)((0x25u >> v7) & 1);
v8 = 0x4Bu >> v7;
}
v4.n128_f32[0] = (float)(v8 & 1);
sub_100022980(v3, v4, v6);
}
return result;
}