//
// LoadingCircle::init from 0x1004bf270 to 0x1004bf332 (194 bytes)
//
// 2 xrefs:
// > LoadingCircle::create @ 0x1004bf19c
// > ??> @ 0x10094deb0
//
// 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 __fastcall LoadingCircle::init(LoadingCircle *a1)
{
bool result; // al
bool v2; // r12
cocos2d::CCSprite *v3; // r14
float v4; // [rsp+0h] [rbp-30h] BYREF
cocos2d::ccColor4B v5[10]; // [rsp+8h] [rbp-28h] BYREF
v5[0] = 0;
result = cocos2d::CCLayerColor::initWithColor(a1, v5);
if ( result )
{
v2 = result;
cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v5);
v3 = cocos2d::CCSprite::create_1("loadingCircle.png");
a1->m_sprite = v3;
sub_10028CBE0(&v4, *(float *)v5 * 0.5, 0.5 * *(float *)&v5[1]);
((void (__fastcall *)(cocos2d::CCSprite *, float *))v3->setPosition)(v3, &v4);
((void (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_sprite->setBlendFunc)(a1->m_sprite, 0x100000302LL);
((void (__fastcall *)(LoadingCircle *, cocos2d::CCSprite *))a1->addChild)(a1, a1->m_sprite);
return v2;
}
return result;
}