//
// RewardsPage::init from 0x935350 to 0x9362e8 (3992 bytes)
//
// 3 xrefs:
// > RewardsPage::create @ 0x936404
// > ??> @ 0x49308
// > ??> @ 0x11b1600
//
// 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
//
bool RewardsPage::init(RewardsPage *a1)
{
char v2; // w25
int v4; // w22
cocos2d::CCDirector *v5; // x0
cocos2d::CCLayer *v6; // x0
cocos2d::CCNode *v7; // x23
void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x24
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24
cocos2d::CCSprite *v10; // x23
void (__fastcall *v11)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24
cocos2d::CCSprite *v12; // x24
void (__fastcall *v13)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x23
void (__fastcall *v14)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x22
cocos2d::CCSprite *v15; // x0
CCMenuItemSpriteExtra *v16; // x23
cocos2d::CCMenu *v17; // x24
CCMenuItemSpriteExtra_vtbl *v18; // x1
void (__fastcall *v19)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26
GameStatsManager *v20; // x24
unsigned __int8 isSpecialChestUnlocked; // w0
int v22; // w27
int v23; // w28
int v24; // w2
char *v25; // x0
char *v26; // x0
char *v27; // x0
cocos2d::CCLabelBMFont *v28; // x0
cocos2d::CCLabelBMFont *v29; // x0
cocos2d::CCLabelBMFont *m_rightLabel; // x27
void (__fastcall *v31)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28
const char *RewardFrame; // x0
cocos2d::CCSprite *v33; // x28
CCMenuItemSpriteExtra *v34; // x27
void *v35; // x0
const char *v36; // x0
__int64 v37; // x0
float v38; // s8
CCMenuItemSpriteExtra *v39; // x0
CCMenuItemSpriteExtra_vtbl *v40; // x2
CCMenuItemSpriteExtra *m_leftChest; // x28
void *v42; // x0
CCMenuItemSpriteExtra *v43; // x24
void (__fastcall *v44)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28
GameStatsManager *v45; // x0
GameLevelManager *v46; // x0
float v47; // s0
void (__fastcall *v48)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x23
GameStatsManager *v49; // x26
unsigned __int8 v50; // w0
GameStatsManager *v51; // x26
unsigned __int8 v52; // w0
int v53; // w26
GameStatsManager *v54; // x27
unsigned __int8 v55; // w0
char *v56; // x0
unsigned int *v57; // x1
int v58; // w3
cocos2d::CCSprite *v59; // x28
CCMenuItemSpriteExtra *v60; // x27
cocos2d::CCScaleTo *v61; // x0
cocos2d::CCActionInterval *v62; // x0
cocos2d::CCEaseInOut *v63; // x27
cocos2d::CCActionInterval *v64; // x0
cocos2d::CCEaseInOut *v65; // x0
cocos2d::CCActionInterval *v66; // x0
cocos2d::CCRepeatForever *v67; // x0
unsigned int *v68; // x1
int v69; // w3
unsigned int *v70; // x1
int v71; // w3
unsigned int *v72; // x1
int v73; // w3
unsigned int *v74; // x1
int v75; // w2
unsigned int *v76; // x1
int v77; // w2
GameStatsManager *v78; // x24
void *v79; // x0
unsigned int *v80; // x1
int v81; // w3
GameStatsManager *v82; // x28
int v83; // w2
void *v84; // x0
unsigned int *v85; // x3
int v86; // w1
cocos2d::CCLayer *m_mainLayer; // [xsp+A0h] [xbp+A0h]
CCMenuItemSpriteExtra *m_rightChest; // [xsp+A8h] [xbp+A8h]
cocos2d::CCLabelBMFont *m_leftLabel; // [xsp+B0h] [xbp+B0h]
cocos2d::CCMenu *v90; // [xsp+B0h] [xbp+B0h]
cocos2d::CCLayer *v91; // [xsp+B0h] [xbp+B0h]
cocos2d::CCMenu *m_buttonMenu; // [xsp+B0h] [xbp+B0h]
cocos2d::CCNode *v93; // [xsp+B8h] [xbp+B8h]
cocos2d::CCNode *v94; // [xsp+B8h] [xbp+B8h]
cocos2d::CCSprite *v95; // [xsp+B8h] [xbp+B8h]
cocos2d::CCMenu *v96; // [xsp+B8h] [xbp+B8h]
int v97; // [xsp+B8h] [xbp+B8h]
cocos2d::CCNode *v98; // [xsp+B8h] [xbp+B8h]
int v99; // [xsp+B8h] [xbp+B8h]
int v100; // [xsp+B8h] [xbp+B8h]
int v101; // [xsp+B8h] [xbp+B8h]
int v102; // [xsp+B8h] [xbp+B8h]
int v103; // [xsp+B8h] [xbp+B8h]
float v104; // [xsp+E8h] [xbp+E8h]
float v105; // [xsp+ECh] [xbp+ECh]
char *v106; // [xsp+F0h] [xbp+F0h] BYREF
char *v107; // [xsp+F8h] [xbp+F8h] BYREF
char *v108; // [xsp+100h] [xbp+100h] BYREF
cocos2d::CCPoint v109; // [xsp+108h] [xbp+108h] BYREF
cocos2d::CCPoint v110; // [xsp+110h] [xbp+110h] BYREF
char *v111; // [xsp+118h] [xbp+118h] BYREF
cocos2d::CCPoint v112; // [xsp+120h] [xbp+120h] BYREF
cocos2d::CCRect v113; // [xsp+128h] [xbp+128h] BYREF
cocos2d::CCPoint v114; // 0:kr08_8.8
cocos2d::CCPoint v115; // 0:kr18_8.8
cocos2d::CCPoint v116; // 0:kr28_8.8
cocos2d::CCPoint v117; // 0:kr30_8.8
cocos2d::SEL_SCHEDULE v118; // 0:x1.16
cocos2d::SEL_MenuHandler v119; // 0:x2.16
cocos2d::SEL_MenuHandler v120; // 0:x2.16
cocos2d::SEL_MenuHandler v121; // 0:x2.16
cocos2d::SEL_MenuHandler v122; // 0:x2.16
cocos2d::CCRect v123; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4
FLAlertLayer::incrementForcePrio(a1);
v113.origin.x = -1.034e-25;
v2 = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::_ccColor4B *)&v113);
if ( !v2 )
return v2;
v4 = 1;
a1->setTouchEnabled(a1, 1);
a1->setKeypadEnabled(a1, 1);
v5 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v5);
v6 = cocos2d::CCLayer::create();
a1->m_mainLayer = v6;
a1->addChild(a1, v6);
cocos2d::CCRect::CCRect(&v113, 0.0, 0.0, 80.0, 80.0);
v7 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create(
(cocos2d::extension::CCScale9Sprite *)"GJ_square02.png",
(const char *)&v113,
v123);
((void (__fastcall *)(cocos2d::CCNode *, __int64))v7->__vftable[1].~CCNode_0)(v7, 0xFFFFFFFFLL);
setContentSize = v7->setContentSize;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v113, 340.0, 220.0);
setContentSize(v7, (const cocos2d::CCSize *)&v113);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v7, -1);
setPosition = v7->setPosition;
cocos2d::CCPoint::CCPoint(&v113.origin, v104 * 0.5, v105 * 0.5);
setPosition(v7, &v113.origin);
v10 = cocos2d::CCSprite::createWithSpriteFrameName("rewardsLabel_001.png");
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v10, 20);
v11 = v10->setPosition;
cocos2d::CCPoint::CCPoint(&v113.origin, v104 * 0.5, (float)((float)(v105 * 0.5) + 110.0) - 32.0);
v11(v10, &v113.origin);
while ( 1 )
{
while ( 1 )
{
v12 = cocos2d::CCSprite::createWithSpriteFrameName("rewardCorner_001.png");
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v12, 8);
if ( v4 != 3 )
break;
cocos2d::CCSprite::setFlipX(v12, 1);
cocos2d::CCSprite::setFlipY(v12, 1);
v47 = 145.0;
LABEL_25:
++v4;
v48 = v12->setPosition;
cocos2d::CCPoint::CCPoint(&v113.origin, v47 + (float)(v104 * 0.5), (float)(v105 * 0.5) + 85.0);
v48(v12, &v113.origin);
}
if ( v4 == 4 )
break;
if ( v4 == 2 )
{
cocos2d::CCSprite::setFlipY(v12, 1);
v47 = -145.0;
goto LABEL_25;
}
v13 = v12->setPosition;
cocos2d::CCPoint::CCPoint(&v113.origin, (float)(v104 * 0.5) + -145.0, (float)(v105 * 0.5) + -85.0);
v13(v12, &v113.origin);
++v4;
}
cocos2d::CCSprite::setFlipX(v12, 1);
v14 = v12->setPosition;
cocos2d::CCPoint::CCPoint(&v113.origin, (float)(v104 * 0.5) + 145.0, (float)(v105 * 0.5) + -85.0);
v14(v12, &v113.origin);
a1->m_joystickConnected = -1;
v15 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png");
v119.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v119.adj = (size_t)RewardsPage::onClose;
v16 = CCMenuItemSpriteExtra::create(v15, nullptr, v119);
CCMenuItemSpriteExtra::setSizeMult(v16, 1.6);
v17 = (cocos2d::CCMenu *)cocos2d::CCMenu::create((cocos2d::CCMenu *)v16, nullptr);
v18 = v16->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_buttonMenu = v17;
v19 = v18->setPosition;
cocos2d::CCPoint::CCPoint(
&v112,
(float)((float)(v104 * 0.5) + -170.0) + 10.0,
(float)((float)(v105 * 0.5) + 110.0) - 10.0);
v114 = cocos2d::CCNode::convertToNodeSpace(v17, &v112);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v19)(v16, &v113, v114.x, v114.y);
v20 = GameStatsManager::sharedState();
sub_D153B8((int)&v111, "0007");
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked((__int64)v20, &v111);
v22 = isSpecialChestUnlocked;
v23 = 0;
if ( !isSpecialChestUnlocked )
goto LABEL_11;
v49 = GameStatsManager::sharedState();
sub_D153B8((int)&v106, "0008");
v50 = GameStatsManager::isSpecialChestUnlocked((__int64)v49, &v106);
v23 = v50;
if ( !v50 )
goto LABEL_11;
v51 = GameStatsManager::sharedState();
sub_D153B8((int)&v107, "0009");
v52 = GameStatsManager::isSpecialChestUnlocked((__int64)v51, &v107);
v53 = v52;
v22 = v23;
if ( !v52 )
goto LABEL_11;
v54 = GameStatsManager::sharedState();
sub_D153B8((int)&v108, "0010");
v55 = GameStatsManager::isSpecialChestUnlocked((__int64)v54, &v108);
v22 = v55;
if ( v55 )
{
v78 = GameStatsManager::sharedState();
sub_D153B8((int)&v112, "0011");
if ( (unsigned __int8)GameStatsManager::isSpecialChestUnlocked((__int64)v78, (char **)&v112) )
{
v82 = GameStatsManager::sharedState();
sub_D153B8((int)&v113, "0024");
v83 = (unsigned __int8)GameStatsManager::isSpecialChestUnlocked((__int64)v82, (char **)&v113);
v84 = (void *)(*(_QWORD *)&v113.origin - 24LL);
v24 = v83 ^ 1;
if ( (__int64 *)(*(_QWORD *)&v113.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v85 = (unsigned int *)(*(_QWORD *)&v113.origin - 8LL);
do
v86 = __ldaxr(v85);
while ( __stlxr(v86 - 1, v85) );
}
else
{
v86 = *(_DWORD *)(*(_QWORD *)&v113.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v113.origin - 8LL) = v86 - 1;
}
if ( v86 <= 0 )
{
v103 = v24;
operator delete(v84);
v24 = v103;
}
}
}
else
{
v24 = 1;
}
v79 = (void *)(*(_QWORD *)&v112 - 24LL);
if ( (__int64 *)(*(_QWORD *)&v112 - 24LL) == &qword_124B6B0 )
goto LABEL_75;
if ( &pthread_create )
{
v80 = (unsigned int *)(*(_QWORD *)&v112 - 8LL);
do
v81 = __ldaxr(v80);
while ( __stlxr(v81 - 1, v80) );
}
else
{
v81 = *(_DWORD *)(*(_QWORD *)&v112 - 8LL);
*(_DWORD *)(*(_QWORD *)&v112 - 8LL) = v81 - 1;
}
if ( v81 > 0 )
{
LABEL_75:
v23 = v22;
}
else
{
v102 = v24;
v23 = v22;
operator delete(v79);
v24 = v102;
}
LABEL_33:
v56 = v108 - 24;
if ( v108 - 24 == (char *)&qword_124B6B0 )
goto LABEL_12;
if ( &pthread_create )
{
v57 = (unsigned int *)(v108 - 8);
do
v58 = __ldaxr(v57);
while ( __stlxr(v58 - 1, v57) );
}
else
{
v58 = *((_DWORD *)v108 - 2);
*((_DWORD *)v108 - 2) = v58 - 1;
}
if ( v58 > 0 )
goto LABEL_12;
v97 = v24;
operator delete(v56);
v24 = v97;
if ( !v23 )
goto LABEL_14;
LABEL_13:
v25 = v107 - 24;
if ( v107 - 24 == (char *)&qword_124B6B0 )
goto LABEL_14;
if ( &pthread_create )
{
v70 = (unsigned int *)(v107 - 8);
do
v71 = __ldaxr(v70);
while ( __stlxr(v71 - 1, v70) );
}
else
{
v71 = *((_DWORD *)v107 - 2);
*((_DWORD *)v107 - 2) = v71 - 1;
}
if ( v71 > 0 )
goto LABEL_14;
v100 = v24;
operator delete(v25);
v24 = v100;
if ( v22 )
{
LABEL_15:
v26 = v106 - 24;
if ( v106 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v72 = (unsigned int *)(v106 - 8);
do
v73 = __ldaxr(v72);
while ( __stlxr(v73 - 1, v72) );
}
else
{
v73 = *((_DWORD *)v106 - 2);
*((_DWORD *)v106 - 2) = v73 - 1;
}
if ( v73 <= 0 )
{
v101 = v24;
operator delete(v26);
v24 = v101;
}
}
}
}
else
{
v23 = v53;
v22 = v53;
if ( v53 )
{
v24 = 1;
goto LABEL_33;
}
LABEL_11:
v24 = 1;
LABEL_12:
if ( v23 )
goto LABEL_13;
LABEL_14:
if ( v22 )
goto LABEL_15;
}
v27 = v111 - 24;
if ( v111 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v68 = (unsigned int *)(v111 - 8);
do
v69 = __ldaxr(v68);
while ( __stlxr(v69 - 1, v68) );
}
else
{
v69 = *((_DWORD *)v111 - 2);
*((_DWORD *)v111 - 2) = v69 - 1;
}
if ( v69 <= 0 )
{
v99 = v24;
operator delete(v27);
v24 = v99;
}
}
if ( v24 )
{
v59 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_freeChestBtn_001.png");
v122.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v122.adj = (size_t)RewardsPage::onFreeStuff;
v60 = CCMenuItemSpriteExtra::create(v59, nullptr, v122);
CCMenuItemSpriteExtra::setSizeMult(v60, 1.6);
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v60);
m_buttonMenu = a1->m_buttonMenu;
v98 = (cocos2d::CCNode *)v60->setPosition;
cocos2d::CCPoint::CCPoint(
&v112,
(float)((float)(v104 * 0.5) + 170.0) - 10.0,
(float)((float)(v105 * 0.5) + 110.0) - 10.0);
v117 = cocos2d::CCNode::convertToNodeSpace(m_buttonMenu, &v112);
v61 = (cocos2d::CCScaleTo *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v98)(
v60,
&v113,
v117.x,
v117.y);
v62 = (cocos2d::CCActionInterval *)cocos2d::CCScaleTo::create(v61, 0.5, 1.1);
v63 = cocos2d::CCEaseInOut::create(v62, 2.0);
v64 = (cocos2d::CCActionInterval *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)v63, 0.5, 1.0);
v65 = cocos2d::CCEaseInOut::create(v64, 2.0);
v66 = (cocos2d::CCActionInterval *)cocos2d::CCSequence::create((cocos2d::CCSequence *)v63, v65, 0);
v67 = cocos2d::CCRepeatForever::create(v66);
cocos2d::CCNode::runAction(v59, v67);
}
a1->m_mainLayer->addChild_0(a1->m_mainLayer, a1->m_buttonMenu, 10);
cocos2d::CCPoint::CCPoint(&v109, v104 * 0.5, (float)(v105 * 0.5) + -24.0);
v28 = cocos2d::CCLabelBMFont::create();
a1->m_leftLabel = v28;
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v28, 20);
a1->m_leftLabel->setScale(a1->m_leftLabel, 0.5);
m_leftLabel = a1->m_leftLabel;
v93 = (cocos2d::CCNode *)m_leftLabel->setPosition;
cocos2d::CCPoint::CCPoint(&v112, -70.0, -50.0);
cocos2d::CCPoint::operator+(&v113, &v109, &v112);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, cocos2d::CCRect *))v93)(m_leftLabel, &v113);
v29 = cocos2d::CCLabelBMFont::create();
a1->m_rightLabel = v29;
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v29, 20);
a1->m_rightLabel->setScale(a1->m_rightLabel, 0.5);
m_rightLabel = a1->m_rightLabel;
v31 = m_rightLabel->setPosition;
cocos2d::CCPoint::CCPoint(&v112, 70.0, -50.0);
cocos2d::CCPoint::operator+(&v113, &v109, &v112);
v31(m_rightLabel, &v113.origin);
RewardFrame = RewardsPage::getRewardFrame((int)&dword_0 + 2, 1);
v33 = cocos2d::CCSprite::createWithSpriteFrameName(RewardFrame);
v120.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v120.adj = (size_t)RewardsPage::onReward;
v34 = CCMenuItemSpriteExtra::create(v33, nullptr, v120);
a1->m_rightChest = v34;
sub_D153B8((int)&v113, "chestClick.ogg");
sub_D18EA8(&v34->m_selectSound, &v113);
v35 = (void *)(*(_QWORD *)&v113.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v113.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v74 = (unsigned int *)(*(_QWORD *)&v113.origin - 8LL);
do
v75 = __ldaxr(v74);
while ( __stlxr(v75 - 1, v74) );
}
else
{
v75 = *(_DWORD *)(*(_QWORD *)&v113.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v113.origin - 8LL) = v75 - 1;
}
if ( v75 <= 0 )
operator delete(v35);
}
a1->m_rightChest->setTag(a1->m_rightChest, 2);
a1->m_buttonMenu->addChild(a1->m_buttonMenu, a1->m_rightChest);
m_rightChest = a1->m_rightChest;
v90 = a1->m_buttonMenu;
v94 = (cocos2d::CCNode *)m_rightChest->setPosition;
m_mainLayer = a1->m_mainLayer;
cocos2d::CCPoint::CCPoint(&v110, 70.0, 14.0);
cocos2d::CCPoint::operator+(&v111, &v109, &v110);
cocos2d::CCNode::convertToWorldSpace(m_mainLayer, (const cocos2d::CCPoint *)&v111);
v115 = cocos2d::CCNode::convertToNodeSpace(v90, &v112);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v94)(
m_rightChest,
&v113,
v115.x,
v115.y);
a1->m_rightChest->m_scaleMultiplier = 1.08;
v36 = RewardsPage::getRewardFrame((int)&dword_0 + 1, (int)&dword_0 + 1);
v95 = cocos2d::CCSprite::createWithSpriteFrameName(v36);
v37 = (__int64)v33->getContentSize(v33);
v121.adj = (size_t)RewardsPage::onReward;
v121.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v38 = *(float *)(v37 + 4) * 0.2;
v39 = CCMenuItemSpriteExtra::create(v95, nullptr, v121);
v40 = v39->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_leftChest = v39;
v40->setTag(v39, 1);
m_leftChest = a1->m_leftChest;
sub_D153B8((int)&v113, "chestClick.ogg");
sub_D18EA8(&m_leftChest->m_selectSound, &v113);
v42 = (void *)(*(_QWORD *)&v113.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v113.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v76 = (unsigned int *)(*(_QWORD *)&v113.origin - 8LL);
do
v77 = __ldaxr(v76);
while ( __stlxr(v77 - 1, v76) );
}
else
{
v77 = *(_DWORD *)(*(_QWORD *)&v113.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v113.origin - 8LL) = v77 - 1;
}
if ( v77 <= 0 )
operator delete(v42);
}
a1->m_buttonMenu->addChild(a1->m_buttonMenu, a1->m_leftChest);
v43 = a1->m_leftChest;
v96 = a1->m_buttonMenu;
v91 = a1->m_mainLayer;
v44 = v43->setPosition;
cocos2d::CCPoint::CCPoint(&v110, -70.0, 14.0 - (float)(v38 * 0.5));
cocos2d::CCPoint::operator+(&v111, &v109, &v110);
cocos2d::CCNode::convertToWorldSpace(v91, (const cocos2d::CCPoint *)&v111);
v116 = cocos2d::CCNode::convertToNodeSpace(v96, &v112);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v44)(v43, &v113, v116.x, v116.y);
a1->m_leftChest->m_scaleMultiplier = 1.08;
GameLevelManager::sharedState()->m_GJRewardDelegate = &a1->GJRewardDelegate;
v45 = GameStatsManager::sharedState();
if ( GameStatsManager::areRewardsLoaded(v45) )
{
RewardsPage::updateTimers(a1, 0.0);
}
else
{
a1->m_leftLabel->setVisible(a1->m_leftLabel, 0);
a1->m_rightLabel->setVisible(a1->m_rightLabel, 0);
v46 = GameLevelManager::sharedState();
GameLevelManager::getGJRewards(v46, 0);
}
v118.adj = 0;
v118.ptr = (void (__cdecl *)(float))RewardsPage::updateTimers;
cocos2d::CCNode::schedule(a1, v118);
return v2;
}