//
// CurrencySprite::create from 0x10088aee0 to 0x10088afb5 (213 bytes)
//
// 3 xrefs:
// > CurrencyRewardLayer::init @ 0x10088a4b4
// > CurrencyRewardLayer::init @ 0x10088a763
// > CurrencyRewardLayer::createObjectsFull @ 0x10088b9a6
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:37:01 +0000
//
char *__fastcall CurrencySprite::create(unsigned int a1, unsigned __int8 a2)
{
char *v2; // rbx
v2 = (char *)operator new(0x2A0u);
cocos2d::CCSprite::CCSprite((__int64)v2);
*(_OWORD *)(v2 + 600) = 0;
*(_DWORD *)(v2 + 615) = 0;
*(_QWORD *)v2 = off_100BA6D40;
*((_QWORD *)v2 + 40) = off_100BA7238;
*((_QWORD *)v2 + 43) = off_100BA72B8;
*(_OWORD *)(v2 + 620) = 0;
*((_DWORD *)v2 + 159) = 1;
*((_QWORD *)v2 + 80) = 0;
*((_DWORD *)v2 + 162) = 1;
sub_1002782A0(v2 + 652);
*((_QWORD *)v2 + 83) = 0;
if ( (unsigned __int8)CurrencySprite::init(v2, a1, a2) )
{
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}