//
// CurrencyRewardLayer::create from 0x140139bb0 to 0x140139df9 (585 bytes)
//
// 8 xrefs:
// > ChallengesPage::claimItem @ 0x14009f31d
// > DailyLevelPage::claimLevelReward @ 0x140172785
// > EndLevelLayer::playEndEffect @ 0x140208088
// > GJGarageLayer::dialogClosed @ 0x14038117e
// > LevelListLayer::onClaimReward @ 0x14042e1b3
// > PlayLayer::showNewBest @ 0x140509e5b
// > RewardUnlockLayer::playRewardEffect @ 0x14056511f
// > ??> @ 0x140917264
//
// 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 11:27:06 +0000
//
// Hidden C++ exception states: #wind=2
char *__fastcall CurrencyRewardLayer::create(
int a1,
int a2,
int a3,
int a4,
int a5,
int a6,
int a7,
int a8,
const struct cocos2d::CCPoint *a9,
int a10,
int a11,
int a12)
{
char *v16; // r14
__int64 v17; // rax
char *v19; // [rsp+70h] [rbp-28h] BYREF
v16 = (char *)operator new(0x280u);
v19 = v16;
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v16);
*(_QWORD *)v16 = &CurrencyRewardLayer::`vftable';
*((_QWORD *)v16 + 40) = &CurrencyRewardLayer::`vftable';
*((_QWORD *)v16 + 41) = &CurrencyRewardLayer::`vftable';
*((_QWORD *)v16 + 42) = &CurrencyRewardLayer::`vftable';
*((_QWORD *)v16 + 43) = &CurrencyRewardLayer::`vftable';
*((_QWORD *)v16 + 44) = &CurrencyRewardLayer::`vftable';
*((_QWORD *)v16 + 51) = 0;
*((_QWORD *)v16 + 52) = 0;
*((_QWORD *)v16 + 53) = 0;
*((_QWORD *)v16 + 54) = 0;
*((_QWORD *)v16 + 56) = 0;
*((_QWORD *)v16 + 57) = 0;
*((_QWORD *)v16 + 58) = 0;
*((_QWORD *)v16 + 59) = 0;
*((_QWORD *)v16 + 60) = 0;
*((_QWORD *)v16 + 62) = 0;
*((_QWORD *)v16 + 63) = 0;
*((_QWORD *)v16 + 64) = 0;
*((_QWORD *)v16 + 65) = 0;
*((_QWORD *)v16 + 66) = 0;
*((_QWORD *)v16 + 67) = 0;
*((_QWORD *)v16 + 68) = 0;
*((_QWORD *)v16 + 69) = 0;
*((_QWORD *)v16 + 70) = 0;
*((_DWORD *)v16 + 142) = 1065353216;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v16 + 572));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v16 + 580));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v16 + 588));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v16 + 596));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v16 + 604));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v16 + 612));
*((_WORD *)v16 + 310) = 0;
*((_QWORD *)v16 + 78) = 0;
*((_QWORD *)v16 + 79) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v19, a9);
if ( (unsigned __int8)CurrencyRewardLayer::init((_DWORD)v16, a1, a2, a3, a4, a5, a6, a7, a8, v17, a10, a11, a12) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v16);
return v16;
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v16 + 8LL))(v16, 1);
return nullptr;
}
}