//
// LoadingCircle::init from 0x140078890 to 0x14007896e (222 bytes)
//
// 5 xrefs:
// > LoadingCircle::create @ 0x140078850
// > LoadingCircle::create @ 0x140078857
// > LoadingCircle::create @ 0x140078841
// > ??> @ 0x14070fd50
// > ??> @ 0x140911cb4
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:25:52 +0000
//
bool __fastcall LoadingCircle::init(cocos2d::CCLayerColor *a1)
{
bool result; // al
__int64 v3; // rax
struct cocos2d::CCSprite *v4; // rax
float v5; // xmm1_4
struct cocos2d::CCSprite *v6; // rdi
float v7; // xmm2_4
__int64 v8; // rbx
__int64 v9; // rax
void (__fastcall ***v10)(_QWORD, __int64); // rcx
__int64 v11; // [rsp+38h] [rbp+10h] BYREF
float v12; // [rsp+40h] [rbp+18h] BYREF
float v13; // [rsp+44h] [rbp+1Ch]
LODWORD(v11) = 0;
result = cocos2d::CCLayerColor::initWithColor(a1, (const struct cocos2d::_ccColor4B *)&v11);
if ( result )
{
v3 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v3, &v12);
v4 = cocos2d::CCSprite::create("loadingCircle.png");
v5 = v12;
v6 = v4;
v7 = v13 * 0.5;
*((_QWORD *)a1 + 68) = v4;
v8 = *(_QWORD *)v4;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, v5 * 0.5, v7);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v8 + 184))(v6, v9);
v10 = (void (__fastcall ***)(_QWORD, __int64))(*((_QWORD *)a1 + 68) + 344LL);
v11 = 0x100000302LL;
(**v10)(v10, 0x100000302LL);
(*(void (__fastcall **)(cocos2d::CCLayerColor *, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, *((_QWORD *)a1 + 68));
return 1;
}
return result;
}