//
// cocos2d::CCProgressTimer::setMidpoint from 0x18005dfe0 to 0x18005e036 (86 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800f9bd0
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b3234
//
// 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
//
_DWORD *__fastcall cocos2d::CCProgressTimer::setMidpoint(cocos2d::CCProgressTimer *this, struct cocos2d::CCPoint a2)
{
const struct cocos2d::CCPoint *v4; // rax
_DWORD *v5; // rax
float v7; // [rsp+30h] [rbp+8h] BYREF
char v8; // [rsp+40h] [rbp+18h] BYREF
v4 = (const struct cocos2d::CCPoint *)kmVec2Fill(&v7, 1.0, 1.0);
v5 = (_DWORD *)cocos2d::ccpClamp(
(cocos2d *)&v8,
*(const struct cocos2d::CCPoint **)&a2,
(const struct cocos2d::CCPoint *)dword_1801A83F8,
v4);
return cocos2d::CCSize::operator=(&this->m_tMidpoint, v5);
}