//
// LoadingCircleSprite::create from 0x1004b8420 to 0x1004b84df (191 bytes)
//
// 5 xrefs:
// > SFXBrowser::init @ 0x10042dcbe
// > SecretLayer5::init @ 0x10046f472
// > MusicBrowser::init @ 0x1006e867f
// > AudioAssetsBrowser::init @ 0x1008998e8
// > PlatformerControlsPopup::init @ 0x10095dff1
//
// 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
//
__int64 *__fastcall LoadingCircleSprite::create(float a1)
{
__int64 *v1; // rbx
char v2; // al
__int64 v3; // rcx
_OWORD *v4; // rax
_DWORD *v5; // rax
v1 = (__int64 *)operator new(0x258u);
cocos2d::CCSprite::CCSprite((__int64)v1);
*v1 = (__int64)off_100B595B0;
v1[40] = (__int64)off_100B59A98;
v1[43] = (__int64)off_100B59B18;
v2 = cocos2d::CCSprite::initWithFile_1((__int64)v1, (__int64)"loadingCircle.png");
v3 = *v1;
if ( v2 )
{
(*(void (__fastcall **)(__int64 *, __int64))(v3 + 1080))(v1, 0x100000302LL);
v4 = cocos2d::CCRotateBy::create_1((__m128)0x3F800000u, a1 * 360.0);
v5 = cocos2d::CCRepeatForever::create((__int64)v4);
cocos2d::CCNode::runAction((__int64)v1, (__int64)v5);
cocos2d::CCObject::autorelease((__int64)v1);
}
else
{
(*(void (__fastcall **)(__int64 *))(v3 + 16))(v1);
return nullptr;
}
return v1;
}