//
// CurrencySprite::create from 0x1007a7c40 to 0x1007a7d15 (213 bytes)
//
// 3 xrefs:
// > CurrencyRewardLayer::init @ 0x1007a7214
// > CurrencyRewardLayer::init @ 0x1007a74c3
// > CurrencyRewardLayer::createObjectsFull @ 0x1007a8706
//
// 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
//
// local variable allocation has failed, the output may be wrong!
CurrencySprite *__fastcall CurrencySprite::create(CurrencySpriteType a1, bool a2)
{
char *v2; // rbx
v2 = (char *)operator new(0x2A0u);
cocos2d::CCSprite::CCSprite((__int64)v2, a2);
*(_OWORD *)(v2 + 600) = 0;
*(_DWORD *)(v2 + 615) = 0;
*(_QWORD *)v2 = off_100991618;
*((_QWORD *)v2 + 40) = off_100991B00;
*((_QWORD *)v2 + 43) = off_100991B80;
*(_OWORD *)(v2 + 620) = 0;
*((_DWORD *)v2 + 159) = 1;
*((_QWORD *)v2 + 80) = 0;
*((_DWORD *)v2 + 162) = 1;
sub_10028CC30(v2 + 652);
*((_QWORD *)v2 + 83) = 0;
if ( CurrencySprite::init((CurrencySprite *)v2, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (CurrencySprite *)v2;
}