//
// cocos2d::CCProgressTimer::setMidpoint from 0x1003fe2ec to 0x1003fe348 (92 bytes)
//
// 1 xrefs:
// > ??> @ 0x100815e78
//
// 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!
void __fastcall cocos2d::CCProgressTimer::setMidpoint(cocos2d::CCProgressTimer *a1, cocos2d::CCPoint a2)
{
const cocos2d::CCPoint *v2; // x1
const cocos2d::CCPoint *v3; // x19
cocos2d::CCPoint v5; // [xsp+0h] [xbp-20h] BYREF
double v6; // [xsp+8h] [xbp-18h] BYREF
v3 = v2;
a2.x = 1.0;
a2.y = 1.0;
sub_100022980(*(__n128 *)&a2.x, *(__n128 *)&a2.y, &v5);
cocos2d::ccpClamp(v3, (const cocos2d::CCPoint *)&qword_10086E8F0, &v5);
sub_1000229D0(&a1->m_tMidpoint, &v6);
}