//
// CurrencySprite::createWithSprite from 0x10088bcf0 to 0x10088bdb5 (197 bytes)
//
// 1 xrefs:
// > CurrencyRewardLayer::createObjectsFull @ 0x10088b5c3
//
// 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:02 +0000
//
char *__fastcall CurrencySprite::createWithSprite(__int64 a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x2A0u);
cocos2d::CCSprite::CCSprite((__int64)v1);
*(_OWORD *)(v1 + 600) = 0;
*(_DWORD *)(v1 + 615) = 0;
*(_QWORD *)v1 = off_100BA6D40;
*((_QWORD *)v1 + 40) = off_100BA7238;
*((_QWORD *)v1 + 43) = off_100BA72B8;
*(_OWORD *)(v1 + 620) = 0;
*((_DWORD *)v1 + 159) = 1;
*((_QWORD *)v1 + 80) = 0;
*((_DWORD *)v1 + 162) = 1;
sub_1002782A0(v1 + 652);
*((_QWORD *)v1 + 83) = 0;
if ( (unsigned __int8)CurrencySprite::initWithSprite(v1, a1) )
{
cocos2d::CCObject::autorelease((__int64)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}