//
// CurrencySprite::createWithSprite from 0x90dd9c to 0x90de94 (248 bytes)
//
// 2 xrefs:
// > CurrencyRewardLayer::createObjectsFull @ 0x90fc18
// > ??> @ 0x5e4e8
//
// 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)
{
__int64 v2; // x19
v2 = operator new(0x2A0u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v2);
*(_QWORD *)(v2 + 600) = 0;
*(_QWORD *)(v2 + 608) = 0;
*(_BYTE *)(v2 + 616) = 0;
*(_BYTE *)(v2 + 617) = 0;
*(_BYTE *)(v2 + 618) = 0;
*(_DWORD *)(v2 + 636) = 1;
*(_QWORD *)v2 = &off_11AA6C0;
*(_QWORD *)(v2 + 320) = &off_11AABA8;
*(_QWORD *)(v2 + 344) = &off_11AAC28;
*(_QWORD *)(v2 + 640) = 0;
*(_DWORD *)(v2 + 648) = 1;
*(_DWORD *)(v2 + 620) = 0;
*(_DWORD *)(v2 + 624) = 0;
*(_DWORD *)(v2 + 628) = 0;
*(_DWORD *)(v2 + 632) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v2 + 652));
*(_QWORD *)(v2 + 664) = 0;
if ( CurrencySprite::initWithSprite((CurrencySprite *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return (CurrencySprite *)v2;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
}