//
// LoadingCircleSprite::create from 0x1004bf520 to 0x1004bf5df (191 bytes)
//
// 4 xrefs:
// > SFXBrowser::init @ 0x10043f410
// > SecretLayer5::init @ 0x10047ab12
// > MusicBrowser::init @ 0x10060e7ef
// > AudioAssetsBrowser::init @ 0x1007b43c8
//
// 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
//
LoadingCircleSprite *__fastcall LoadingCircleSprite::create(float a1)
{
__int64 v1; // rsi
LoadingCircleSprite *v2; // rbx
bool v3; // al
LoadingCircleSprite_vtbl *v4; // rcx
cocos2d::CCRotateBy *v5; // rax
cocos2d::CCRepeatForever *v6; // rax
v2 = (LoadingCircleSprite *)operator new(0x258u);
cocos2d::CCSprite::CCSprite((__int64)v2, v1);
v2->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (LoadingCircleSprite_vtbl *)off_10094E520;
v2->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_10094E9F8;
v2->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)off_10094EA78;
v3 = cocos2d::CCSprite::initWithFile_1(v2, "loadingCircle.png");
v4 = v2->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
if ( v3 )
{
((void (__fastcall *)(LoadingCircleSprite *, __int64))v4->setBlendFunc)(v2, 0x100000302LL);
v5 = cocos2d::CCRotateBy::create_1(1.0, a1 * 360.0);
v6 = cocos2d::CCRepeatForever::create(v5);
cocos2d::CCNode::runAction(v2, v6);
cocos2d::CCObject::autorelease(v2);
}
else
{
((void (__fastcall *)(LoadingCircleSprite *))v4->~LoadingCircleSprite_0)(v2);
return nullptr;
}
return v2;
}