//
// CurrencySprite::createWithSprite from 0x603864 to 0x6038a2 (62 bytes)
//
// 1 xrefs:
// > CurrencyRewardLayer::createObjectsFull @ 0x604da2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:54:42 +0000
//
CurrencySprite *__fastcall CurrencySprite::createWithSprite(CurrencySprite *this, cocos2d::CCSprite *a2)
{
CurrencySprite *v3; // r4
int v4; // r3
CurrencySprite *v5; // r0
v3 = (CurrencySprite *)operator new(0x230u);
CurrencySprite::CurrencySprite(v3);
if ( CurrencySprite::initWithSprite((cocos2d::CCNode **)v3, this) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
v4 = *(_DWORD *)v3;
v5 = v3;
v3 = nullptr;
(*(void (__fastcall **)(CurrencySprite *))(v4 + 8))(v5);
}
return v3;
}