//
// CurrencySprite::create from 0xa69da4 to 0xa69eb0 (268 bytes)
//
// 4 xrefs:
// > CurrencyRewardLayer::createObjectsFull @ 0xa6a6e8
// > CurrencyRewardLayer::init @ 0xa6c16c
// > CurrencyRewardLayer::init @ 0xa6c43c
// > ??> @ 0xe08f0
//
// 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:19 +0000
//
__int64 __fastcall CurrencySprite::create(int a1, unsigned __int8 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_1491840;
*(_QWORD *)(v4 + 320) = &off_1491D38;
*(_QWORD *)(v4 + 344) = &off_1491DB8;
*(_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 ( (unsigned __int8)CurrencySprite::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return v4;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 16LL))(v4);
return 0;
}
}