//
// CurrencySprite::create from 0x90f8a8 to 0x90f9b4 (268 bytes)
//
// 4 xrefs:
// > CurrencyRewardLayer::createObjectsFull @ 0x9101ec
// > CurrencyRewardLayer::init @ 0x911c5c
// > CurrencyRewardLayer::init @ 0x911f2c
// > ??> @ 0xab5a0
//
// 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::create(CurrencySpriteType a1, bool a2)
{
__int64 v4; // x19
v4 = operator new(0x2A0u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v4);
*(_QWORD *)(v4 + 600) = 0;
*(_QWORD *)(v4 + 608) = 0;
*(_BYTE *)(v4 + 616) = 0;
*(_BYTE *)(v4 + 617) = 0;
*(_BYTE *)(v4 + 618) = 0;
*(_DWORD *)(v4 + 636) = 1;
*(_QWORD *)v4 = &off_11AA6C0;
*(_QWORD *)(v4 + 320) = &off_11AABA8;
*(_QWORD *)(v4 + 344) = &off_11AAC28;
*(_QWORD *)(v4 + 640) = 0;
*(_DWORD *)(v4 + 648) = 1;
*(_DWORD *)(v4 + 620) = 0;
*(_DWORD *)(v4 + 624) = 0;
*(_DWORD *)(v4 + 628) = 0;
*(_DWORD *)(v4 + 632) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v4 + 652));
*(_QWORD *)(v4 + 664) = 0;
if ( CurrencySprite::init((CurrencySprite *)v4, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return (CurrencySprite *)v4;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
}