//
// CurrencySprite::createWithSprite from 0xa682d0 to 0xa683c8 (248 bytes)
//
// 2 xrefs:
// > CurrencyRewardLayer::createObjectsFull @ 0xa6a114
// > ??> @ 0x80ef0
//
// This function is hookable on this platform (idp: arm, 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 13:00:18 +0000
//
__int64 __fastcall CurrencySprite::createWithSprite(CurrencySprite *this, cocos2d::CCSprite *a2)
{
__int64 v3; // x19
v3 = operator new(0x2A0u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v3);
*(_QWORD *)(v3 + 600) = 0;
*(_QWORD *)(v3 + 608) = 0;
*(_BYTE *)(v3 + 616) = 0;
*(_BYTE *)(v3 + 617) = 0;
*(_BYTE *)(v3 + 618) = 0;
*(_DWORD *)(v3 + 636) = 1;
*(_QWORD *)v3 = &off_1491840;
*(_QWORD *)(v3 + 320) = &off_1491D38;
*(_QWORD *)(v3 + 344) = &off_1491DB8;
*(_QWORD *)(v3 + 640) = 0;
*(_DWORD *)(v3 + 648) = 1;
*(_DWORD *)(v3 + 620) = 0;
*(_DWORD *)(v3 + 624) = 0;
*(_DWORD *)(v3 + 628) = 0;
*(_DWORD *)(v3 + 632) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 652));
*(_QWORD *)(v3 + 664) = 0;
if ( (unsigned __int8)CurrencySprite::initWithSprite((cocos2d::CCNode **)v3, this) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
return v3;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 16LL))(v3);
return 0;
}
}