//
// LoadingCircle::init from 0x588d7c to 0x588e84 (264 bytes)
//
// 3 xrefs:
// > LoadingCircle::create @ 0x588ef8
// > ??> @ 0x62928
// > ??> @ 0x113c520
//
// 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
//
bool LoadingCircle::init(LoadingCircle *a1)
{
char v2; // w20
cocos2d::CCDirector *v3; // x0
const char *v4; // x1
cocos2d::CCSprite *v5; // x23
void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24
float v8; // [xsp+48h] [xbp+48h]
float v9; // [xsp+4Ch] [xbp+4Ch]
cocos2d::CCPoint v10; // [xsp+50h] [xbp+50h] BYREF
v10.x = 0.0;
v2 = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::_ccColor4B *)&v10);
if ( v2 )
{
v3 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v3);
v5 = (cocos2d::CCSprite *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"loadingCircle.png", v4);
a1->m_sprite = v5;
setPosition = v5->setPosition;
cocos2d::CCPoint::CCPoint(&v10, v8 * 0.5, v9 * 0.5);
setPosition(v5, &v10);
((void (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_sprite->setBlendFunc)(a1->m_sprite, 0x100000302LL);
a1->addChild(a1, a1->m_sprite);
}
return v2;
}