//
// LoadingCircle::init from 0x1004b8170 to 0x1004b8232 (194 bytes)
//
// 2 xrefs:
// > LoadingCircle::create @ 0x1004b809c
// > ??> @ 0x100b58f20
//
// 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 12:31:01 +0000
//
char __fastcall LoadingCircle::init(_QWORD *a1)
{
char result; // al
char v2; // r12
__int64 v3; // rax
char *v4; // r14
float v5; // [rsp+0h] [rbp-30h] BYREF
_QWORD v6[5]; // [rsp+8h] [rbp-28h] BYREF
LODWORD(v6[0]) = 0;
result = cocos2d::CCLayerColor::initWithColor((__int64)a1, (__int64)v6);
if ( result )
{
v2 = result;
v3 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v6, v3);
v4 = cocos2d::CCSprite::create_1((__int64)"loadingCircle.png");
a1[68] = v4;
sub_100278250(&v5, *(float *)v6 * 0.5, 0.5 * *((float *)v6 + 1));
(*(void (__fastcall **)(char *, float *))(*(_QWORD *)v4 + 184LL))(v4, &v5);
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[68] + 1080LL))(a1[68], 0x100000302LL);
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 456LL))(a1, a1[68]);
return v2;
}
return result;
}