//
// CurrencyRewardLayer::create from 0xa6c878 to 0xa6caa8 (560 bytes)
//
// 10 xrefs:
// > PlayLayer::showNewBest @ 0x6fe45c
// > PlayLayer::showNewBest @ 0x6fe7d4
// > GJGarageLayer::dialogClosed @ 0x8be180
// > EndLevelLayer::playEndEffect @ 0x8fb86c
// > ChallengesPage::claimItem @ 0xa645a4
// > DailyLevelPage::claimLevelReward @ 0xa6f00c
// > RewardUnlockLayer::playRewardEffect @ 0xa87df4
// > RewardUnlockLayer::playRewardEffect @ 0xa8893c
// > LevelListLayer::onClaimReward @ 0xbac1d4
// > ??> @ 0xcefc8
//
// 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:21 +0000
//
__int64 __fastcall CurrencyRewardLayer::create(
int a1,
int a2,
int a3,
int a4,
int a5,
int a6,
int a7,
int a8,
float a9,
float a10,
const cocos2d::CCPoint *a11,
unsigned int a12)
{
__int64 v21; // x19
__int64 v22; // x1
__int64 v23; // x0
_BYTE v26[8]; // [xsp+A0h] [xbp+80h] BYREF
v21 = operator new(0x280u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v21);
*(_QWORD *)(v21 + 408) = 0;
*(_QWORD *)v21 = &off_14912B0;
*(_QWORD *)(v21 + 320) = off_1491740;
*(_DWORD *)(v21 + 560) = 0;
*(_QWORD *)(v21 + 328) = &off_14917B0;
*(_DWORD *)(v21 + 564) = 0;
*(_QWORD *)(v21 + 336) = off_14917C8;
*(_QWORD *)(v21 + 344) = off_14917E8;
*(_QWORD *)(v21 + 352) = off_1491810;
*(_QWORD *)(v21 + 416) = 0;
*(_QWORD *)(v21 + 424) = 0;
*(_QWORD *)(v21 + 432) = 0;
*(_QWORD *)(v21 + 448) = 0;
*(_QWORD *)(v21 + 456) = 0;
*(_QWORD *)(v21 + 464) = 0;
*(_QWORD *)(v21 + 472) = 0;
*(_QWORD *)(v21 + 480) = 0;
*(_QWORD *)(v21 + 496) = 0;
*(_QWORD *)(v21 + 504) = 0;
*(_QWORD *)(v21 + 512) = 0;
*(_QWORD *)(v21 + 520) = 0;
*(_QWORD *)(v21 + 528) = 0;
*(_DWORD *)(v21 + 536) = 0;
*(_DWORD *)(v21 + 540) = 0;
*(_DWORD *)(v21 + 544) = 0;
*(_DWORD *)(v21 + 548) = 0;
*(_DWORD *)(v21 + 552) = 0;
*(_DWORD *)(v21 + 556) = 0;
*(float *)(v21 + 568) = 1.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v21 + 572));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v21 + 580));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v21 + 588));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v21 + 596));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v21 + 604));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v21 + 612));
*(_BYTE *)(v21 + 620) = 0;
*(_BYTE *)(v21 + 621) = 0;
*(_QWORD *)(v21 + 624) = 0;
*(_DWORD *)(v21 + 632) = 0;
*(_DWORD *)(v21 + 636) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, a11);
if ( (unsigned __int8)CurrencyRewardLayer::init(
v21,
a1,
a2,
a3,
a4,
a5,
a6,
a7,
a9,
a10,
a8,
(const cocos2d::CCPoint *)v26,
a12) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v21);
}
else
{
v22 = *(_QWORD *)v21;
v23 = v21;
v21 = 0;
(*(void (__fastcall **)(__int64))(v22 + 16))(v23);
}
return v21;
}