//
// CurrencySprite::create from 0x100320364 to 0x1003203d4 (112 bytes)
//
// 3 xrefs:
// > CurrencyRewardLayer::init @ 0x10031fb54
// > CurrencyRewardLayer::init @ 0x10031fde0
// > CurrencyRewardLayer::createObjectsFull @ 0x1003208c0
//
// 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::create(CurrencySpriteType a1, bool a2)
{
CurrencySprite *v4; // x19
v4 = (CurrencySprite *)operator new(0x2A0u);
CurrencySprite::CurrencySprite(v4);
if ( CurrencySprite::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
((void (__fastcall *)(CurrencySprite *))v4->~CurrencySprite_0)(v4);
return nullptr;
}
return v4;
}