//
// CurrencySprite::createWithSprite from 0x4d05bc to 0x4d05fa (62 bytes)
//
// 1 xrefs:
// > CurrencyRewardLayer::createObjectsFull @ 0x4d1aa6
//
// 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 *CurrencySprite::createWithSprite(cocos2d::CCSprite *a1)
{
CurrencySprite *v2; // r4
CurrencySprite_vtbl *v3; // r3
CurrencySprite *v4; // r0
v2 = (CurrencySprite *)operator new(0x230u);
CurrencySprite::CurrencySprite(v2);
if ( CurrencySprite::initWithSprite(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
v3 = v2->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v4 = v2;
v2 = nullptr;
v3->~CurrencySprite_0(v4);
}
return v2;
}