//
// LoadingCircle::init from 0x2f0620 to 0x2f06d8 (184 bytes)
//
// 1 xrefs:
// > LoadingCircle::create @ 0x2f0748
//
// 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)
{
int v2; // r8
cocos2d::CCDirector *v3; // r0
const char *v4; // r1
cocos2d::CCSprite *v5; // r0
float v6; // r1
float v7; // s15
cocos2d::CCSprite_vtbl *v8; // r3
cocos2d::CCSprite *v9; // r7
void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9
cocos2d::CCSize v12; // [sp+4h] [bp-18h] BYREF
cocos2d::CCPoint v13; // [sp+Ch] [bp-10h] BYREF
v13.x = 0.0;
v2 = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::_ccColor4B *)&v13);
if ( v2 )
{
v3 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v12, v3);
v5 = (cocos2d::CCSprite *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"loadingCircle.png", v4);
v6 = v12.width * 0.5;
v7 = v12.height * 0.5;
v8 = v5->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v9 = v5;
a1->m_sprite = v5;
setPosition = v8->setPosition;
cocos2d::CCPoint::CCPoint(&v13, v6, v7);
setPosition(v9, &v13);
LODWORD(v13.x) = 770;
LODWORD(v13.y) = 1;
((void (__fastcall *)(cocos2d::CCSprite *, int, int))a1->m_sprite->setBlendFunc)(a1->m_sprite, 770, 1);
a1->addChild(a1, a1->m_sprite);
}
return v2;
}