//
// CurrencyRewardLayer::create from 0x14009fc10 to 0x14009fe53 (579 bytes)
//
// 8 xrefs:
// > ChallengesPage::claimItem @ 0x140086c30
// > DailyLevelPage::claimLevelReward @ 0x1400d1cca
// > EndLevelLayer::playEndEffect @ 0x140136d3b
// > GJGarageLayer::dialogClosed @ 0x140278839
// > LevelListLayer::onClaimReward @ 0x140306342
// > PlayLayer::showNewBest @ 0x1403ab5af
// > RewardUnlockLayer::playRewardEffect @ 0x1403cf7c3
// > ??> @ 0x1406c76a4
//
// 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
//
// Hidden C++ exception states: #wind=2
CurrencyRewardLayer *CurrencyRewardLayer::create(
int a1,
int a2,
int a3,
int a4,
CurrencySpriteType a5,
int a6,
CurrencySpriteType a7,
int a8,
cocos2d::CCPoint a9,
CurrencyRewardType a10,
float a11,
float a12)
{
CurrencyRewardLayer *v16; // r14
cocos2d::CCPoint v17; // rax
CurrencyRewardLayer *v19; // [rsp+70h] [rbp-28h] BYREF
v16 = (CurrencyRewardLayer *)operator new(0x280u);
v19 = v16;
cocos2d::CCLayer::CCLayer(v16);
v16->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CurrencyRewardLayer_vtbl *)&CurrencyRewardLayer::`vftable';
v16->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&CurrencyRewardLayer::`vftable';
v16->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&CurrencyRewardLayer::`vftable';
v16->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&CurrencyRewardLayer::`vftable';
v16->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&CurrencyRewardLayer::`vftable';
v16->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&CurrencyRewardLayer::`vftable';
v16->m_delegate = nullptr;
v16->m_objects = nullptr;
v16->m_orbsLabel = nullptr;
v16->m_starsLabel = nullptr;
v16->m_diamondsLabel = nullptr;
v16->m_keysLabel = nullptr;
v16->m_shardsLabel = nullptr;
v16->m_orbsSprite = nullptr;
v16->m_starsSprite = nullptr;
v16->m_diamondsSprite = nullptr;
v16->m_keysSprite = nullptr;
v16->m_shardsSprite = nullptr;
v16->m_currencyBatchNode = nullptr;
v16->m_orbBatchNode = nullptr;
*(_QWORD *)&v16->m_orbs = 0;
*(_QWORD *)&v16->m_moons = 0;
*(_QWORD *)&v16->m_keys = 0;
*(_QWORD *)&v16->m_elapsed = 0;
v16->m_time = 1.0;
cocos2d::CCPoint::CCPoint(&v16->m_orbsPosition);
cocos2d::CCPoint::CCPoint(&v16->m_starsPosition);
cocos2d::CCPoint::CCPoint(&v16->m_moonsPosition);
cocos2d::CCPoint::CCPoint(&v16->m_diamondsPosition);
cocos2d::CCPoint::CCPoint(&v16->m_keysPosition);
cocos2d::CCPoint::CCPoint(&v16->m_shardsPosition);
*(_WORD *)&v16->m_particlesAdded = 0;
v16->m_mainNode = nullptr;
*(_QWORD *)&v16->m_rewardCount = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v19, *(const struct cocos2d::CCPoint **)&a9);
if ( CurrencyRewardLayer::init(v16, a1, a2, a3, a4, a5, a6, a7, a8, v17, a10, a11, a12) )
{
cocos2d::CCObject::autorelease(v16);
return v16;
}
else
{
((void (__fastcall *)(CurrencyRewardLayer *, __int64))v16->~CurrencyRewardLayer)(v16, 1);
return nullptr;
}
}