//
// CurrencySprite::createWithSprite from 0x100320f30 to 0x100320f90 (96 bytes)
//
// 1 xrefs:
// > CurrencyRewardLayer::createObjectsFull @ 0x100320894
//
// 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
//
CurrencySprite *__fastcall CurrencySprite::createWithSprite(cocos2d::CCSprite *a1)
{
CurrencySprite *v2; // x19
v2 = (CurrencySprite *)operator new(0x2A0u);
CurrencySprite::CurrencySprite(v2);
if ( CurrencySprite::initWithSprite(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
((void (__fastcall *)(CurrencySprite *))v2->~CurrencySprite_0)(v2);
return nullptr;
}
return v2;
}