//
// RewardUnlockLayer::playRewardEffect from 0x10021cf40 to 0x10021e123 (4579 bytes)
//
// 3 xrefs:
// > RewardsPage::rewardsStatusFinished @ 0x10021b669
// > RewardUnlockLayer::showCollectReward @ 0x10021b7a5
// > RewardUnlockLayer::step3 @ 0x10021f045
//
// 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
//
void __fastcall RewardUnlockLayer::playRewardEffect(RewardUnlockLayer *a1)
{
double v1; // xmm0_8
float v2; // xmm2_4
GJRewardType m_rewardType; // eax
FMODAudioEngine *v5; // rax
char *v6; // rax
FMODAudioEngine *v7; // rax
unsigned int v8; // ebx
GJRewardItem *m_rewardItem; // rdi
cocos2d::CCArray *m_rewardObjects; // r14
int v11; // eax
int v12; // ecx
int v13; // r13d
bool v14; // zf
unsigned int v15; // eax
unsigned int v16; // ebx
unsigned int v17; // r15d
int v18; // r12d
unsigned int v19; // eax
__int64 v20; // r15
int v21; // r15d
CurrencySpriteType v22; // ebx
CurrencySpriteType v23; // r15d
FMODAudioEngine *v24; // rax
char *v25; // rax
FMODAudioEngine *v26; // rax
FMODAudioEngine *v27; // rax
FMODAudioEngine *v28; // rax
FMODAudioEngine *v29; // rax
FMODAudioEngine *v30; // rax
FMODAudioEngine *v31; // rax
FMODAudioEngine *v32; // rax
FMODAudioEngine *v33; // rbx
FMODAudioEngine *v34; // rbx
RewardUnlockLayer *v35; // r15
cocos2d::CCPoint m_unkFloat_low; // xmm0_8
CurrencyRewardLayer *v37; // rbx
unsigned int v38; // r15d
_DWORD *v39; // rax
GJItemIcon *v40; // r12
RewardUnlockLayer *v41; // r15
cocos2d::CCDirector *v42; // rsi
char v43; // r12
unsigned int v44; // eax
unsigned int v45; // ebx
__int64 v46; // rax
cocos2d::CCObject *v47; // r15
cocos2d::CCObject *v48; // r14
cocos2d::CCObject *v49; // r14
cocos2d::CCObject *v50; // r14
cocos2d::CCObject *v51; // r14
int v52; // r14d
float v53; // xmm1_4
__int64 v54; // rsi
cocos2d::CCPoint v55; // xmm0_8
int v56; // r13d
RewardUnlockLayer *v57; // rdi
int v58; // edx
int v59; // r15d
__int64 v60; // rax
GJItemIcon *v61; // r15
RewardUnlockLayer *v62; // r12
__int64 v63; // rsi
int v64; // r13d
cocos2d::CCArray *v65; // rbx
int v66; // eax
int v67; // eax
cocos2d::CCMoveTo *v68; // rax
cocos2d::CCDelayTime *v69; // rax
cocos2d::CCMoveTo *v70; // rax
cocos2d::CCSequence *v71; // rax
int v72; // eax
cocos2d::CCPoint v73; // xmm1_8
cocos2d::CCLightning *v74; // r14
unsigned int v75; // ebx
unsigned int v76; // eax
int v77; // ecx
int v78; // r8d
int v79; // r9d
cocos2d::CCAction *v80; // rax
char v81[8]; // [rsp+50h] [rbp-220h] BYREF
char v82[8]; // [rsp+58h] [rbp-218h] BYREF
void *v83[3]; // [rsp+60h] [rbp-210h] BYREF
_QWORD v84[2]; // [rsp+78h] [rbp-1F8h] BYREF
char v85; // [rsp+88h] [rbp-1E8h] BYREF
char v86[8]; // [rsp+90h] [rbp-1E0h] BYREF
std::string v87; // [rsp+98h] [rbp-1D8h] BYREF
char v88[8]; // [rsp+B0h] [rbp-1C0h] BYREF
char v89[8]; // [rsp+B8h] [rbp-1B8h] BYREF
char v90[8]; // [rsp+C0h] [rbp-1B0h] BYREF
char v91; // [rsp+C8h] [rbp-1A8h] BYREF
char v92[23]; // [rsp+C9h] [rbp-1A7h] BYREF
char v93; // [rsp+E0h] [rbp-190h] BYREF
char v94[23]; // [rsp+E1h] [rbp-18Fh] BYREF
char v95; // [rsp+F8h] [rbp-178h] BYREF
char v96[23]; // [rsp+F9h] [rbp-177h] BYREF
char v97; // [rsp+110h] [rbp-160h] BYREF
_BYTE v98[23]; // [rsp+111h] [rbp-15Fh] BYREF
char v99; // [rsp+128h] [rbp-148h] BYREF
char v100[23]; // [rsp+129h] [rbp-147h] BYREF
char v101; // [rsp+140h] [rbp-130h] BYREF
_BYTE v102[23]; // [rsp+141h] [rbp-12Fh] BYREF
char v103; // [rsp+158h] [rbp-118h] BYREF
char v104[23]; // [rsp+159h] [rbp-117h] BYREF
void *v105[3]; // [rsp+170h] [rbp-100h] BYREF
char v106; // [rsp+188h] [rbp-E8h] BYREF
char v107[23]; // [rsp+189h] [rbp-E7h] BYREF
char v108; // [rsp+1A0h] [rbp-D0h] BYREF
char v109[23]; // [rsp+1A1h] [rbp-CFh] BYREF
__int64 v110; // [rsp+1B8h] [rbp-B8h]
char v111[8]; // [rsp+1C0h] [rbp-B0h] BYREF
__int16 v112; // [rsp+1C8h] [rbp-A8h] BYREF
char v113; // [rsp+1CAh] [rbp-A6h]
char v114[8]; // [rsp+1D0h] [rbp-A0h] BYREF
char v115[8]; // [rsp+1D8h] [rbp-98h] BYREF
CurrencySpriteType v116; // [rsp+1E0h] [rbp-90h]
CurrencySpriteType v117; // [rsp+1E4h] [rbp-8Ch]
__int64 v118; // [rsp+1E8h] [rbp-88h]
unsigned int v119; // [rsp+1F4h] [rbp-7Ch]
float v120; // [rsp+1F8h] [rbp-78h] BYREF
float v121; // [rsp+1FCh] [rbp-74h]
int v122; // [rsp+200h] [rbp-70h]
int RewardCount; // [rsp+204h] [rbp-6Ch]
unsigned __int64 v124; // [rsp+208h] [rbp-68h] BYREF
unsigned int v125; // [rsp+214h] [rbp-5Ch]
__int64 v126; // [rsp+218h] [rbp-58h]
RewardUnlockLayer *v127; // [rsp+220h] [rbp-50h]
cocos2d::CCPoint v128; // [rsp+22Ch] [rbp-44h] BYREF
cocos2d::CCPoint v129; // [rsp+234h] [rbp-3Ch] BYREF
int v130; // [rsp+23Ch] [rbp-34h]
bool v131; // [rsp+243h] [rbp-2Dh]
unsigned int v132; // [rsp+244h] [rbp-2Ch]
m_rewardType = a1->m_rewardItem->m_rewardType;
switch ( m_rewardType )
{
case Gold:
v8 = (unsigned int)FMODAudioEngine::sharedEngine();
MusicDownloadManager::sharedState();
MusicDownloadManager::pathForSFX(&v87);
*(float *)&v1 = (float)((float)((float)rand() * 4.6566129e-10) * 0.2) + 0.89999998;
v2 = 0.69999999;
FMODAudioEngine::playEffectAdvanced(v8, (unsigned int)&v87, 0, 0, 120, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
if ( (*(_BYTE *)&v87.__r_.__value_.__s.0 & 1) == 0 )
break;
v6 = &v87.__r_.__value_.__s.__data_[15];
goto LABEL_10;
case Key100Treasure:
v7 = FMODAudioEngine::sharedEngine();
v93 = 22;
strcpy(v94, "chest08.ogg");
FMODAudioEngine::playEffect_1(v7, &v93);
if ( (v93 & 1) == 0 )
break;
v6 = &v94[15];
goto LABEL_10;
case Key50Treasure:
v5 = FMODAudioEngine::sharedEngine();
v91 = 22;
strcpy(v92, "chest07.ogg");
FMODAudioEngine::playEffect_1(v5, &v91);
if ( (v91 & 1) != 0 )
{
v6 = &v92[15];
LABEL_10:
operator delete(*(void **)v6);
}
break;
}
GJChestSprite::switchToState(a1->m_chestSprite, Opened, 0);
m_rewardItem = a1->m_rewardItem;
m_rewardObjects = m_rewardItem->m_rewardObjects;
RewardCount = GJRewardItem::getRewardCount(m_rewardItem, BonusKey|FireShard);
v122 = GJRewardItem::getRewardCount(a1->m_rewardItem, Diamonds);
v130 = GJRewardItem::getRewardCount(a1->m_rewardItem, CustomItem);
v127 = a1;
if ( m_rewardObjects )
{
v11 = sub_100720070(m_rewardObjects);
*(float *)&v132 = 0.0;
v12 = 0;
v13 = 0;
v14 = v11 == 0;
v15 = 0;
if ( !v14 )
{
v13 = 0;
*(float *)&v132 = 0.0;
v16 = 0;
do
{
v20 = sub_1007200C0(m_rewardObjects, v16);
if ( GJRewardObject::isSpecialType((GJRewardObject *)v20) )
{
v18 = *(_DWORD *)(v20 + 56);
v17 = *(unsigned int *)(v20 + 68);
v15 = v17;
v12 = v18;
if ( v13 )
goto LABEL_21;
}
else
{
v17 = v132;
v18 = v13;
}
++v16;
v19 = sub_100720070(m_rewardObjects);
v13 = v18;
v132 = v17;
}
while ( v16 < v19 );
v15 = 0;
v132 = v17;
v12 = 0;
v13 = v18;
}
}
else
{
*(float *)&v132 = 0.0;
v12 = 0;
v13 = 0;
v15 = 0;
}
LABEL_21:
v119 = v15;
LODWORD(v118) = v13;
v21 = v12;
v22 = CurrencySprite::rewardToSpriteType(v13);
LODWORD(v126) = v21;
v23 = CurrencySprite::rewardToSpriteType(v21);
v116 = v22;
v117 = v23;
if ( v130 <= 0 )
{
if ( v22 == 16 || v23 == 16 )
{
v26 = FMODAudioEngine::sharedEngine();
v97 = 20;
strcpy(v98, "gold01.ogg");
FMODAudioEngine::playEffect_1(v26, &v97);
if ( (v97 & 1) != 0 )
operator delete(*(void **)&v98[15]);
v27 = FMODAudioEngine::sharedEngine();
v99 = 22;
strcpy(v100, "goldKey.ogg");
FMODAudioEngine::playEffect_1(v27, &v99);
if ( (v99 & 1) != 0 )
{
v25 = &v100[15];
goto LABEL_47;
}
}
else if ( v22 == DemonKey || v23 == DemonKey )
{
v28 = FMODAudioEngine::sharedEngine();
v101 = 20;
strcpy(v102, "gold01.ogg");
FMODAudioEngine::playEffect_1(v28, &v101);
if ( (v101 & 1) != 0 )
operator delete(*(void **)&v102[15]);
v29 = FMODAudioEngine::sharedEngine();
v103 = 26;
strcpy(v104, "secretKey.ogg");
FMODAudioEngine::playEffect_1(v29, &v103);
if ( (v103 & 1) != 0 )
{
v25 = &v104[15];
goto LABEL_47;
}
}
else if ( v22 )
{
v30 = FMODAudioEngine::sharedEngine();
strcpy((char *)v105, "$magicExplosion.ogg");
FMODAudioEngine::playEffect_1(v30, v105);
if ( ((__int64)v105[0] & 1) != 0 )
operator delete(v105[2]);
v31 = FMODAudioEngine::sharedEngine();
v106 = 26;
strcpy(v107, "crystal01.ogg");
FMODAudioEngine::playEffect_1(v31, &v106);
if ( (v106 & 1) != 0 )
{
v25 = &v107[15];
goto LABEL_47;
}
}
else if ( v122 <= 0 )
{
if ( RewardCount > 0 )
{
v33 = FMODAudioEngine::sharedEngine();
sub_100030790(v83, "gold01.ogg", v1);
FMODAudioEngine::playEffect_1(v33, v83);
if ( ((__int64)v83[0] & 1) != 0 )
operator delete(v83[2]);
v34 = FMODAudioEngine::sharedEngine();
sub_100030790(v84, "magicExplosion.ogg", v1);
FMODAudioEngine::playEffect_1(v34, v84);
if ( (v84[0] & 1) != 0 )
{
v25 = &v85;
goto LABEL_47;
}
}
}
else
{
v32 = FMODAudioEngine::sharedEngine();
v108 = 20;
strcpy(v109, "gold02.ogg");
FMODAudioEngine::playEffect_1(v32, &v108);
if ( (v108 & 1) != 0 )
{
v25 = &v109[15];
goto LABEL_47;
}
}
}
else
{
v24 = FMODAudioEngine::sharedEngine();
v95 = 24;
strcpy(v96, "reward01.ogg");
FMODAudioEngine::playEffect_1(v24, &v95);
if ( (v95 & 1) != 0 )
{
v25 = &v96[15];
LABEL_47:
operator delete(*(void **)v25);
}
}
v35 = v127;
((void (__fastcall *)(GJChestSprite *))v127->m_chestSprite->getPosition)(v127->m_chestSprite);
sub_10028CC60(&v120);
m_unkFloat_low = (cocos2d::CCPoint)LODWORD(v35->m_unkFloat);
v125 = 0;
v37 = CurrencyRewardLayer::create(
RewardCount,
0,
0,
v122,
v116,
v132,
v117,
v119,
m_unkFloat_low,
(CurrencyRewardType)&v120,
1.0,
v2);
if ( v130 > 0 && (unsigned int)sub_100720070(m_rewardObjects) )
{
v38 = 0;
do
{
v39 = (_DWORD *)sub_1007200C0(m_rewardObjects, v38);
if ( v39[14] == 9 )
{
v40 = GJItemIcon::create(
(UnlockType)v39[15],
v39[16],
(cocos2d::ccColor3B)-5263441,
(cocos2d::ccColor3B)-1,
0,
0,
1,
(cocos2d::ccColor3B)-1);
((void (__fastcall *)(GJChestSprite *))v127->m_chestSprite->getPosition)(v127->m_chestSprite);
sub_10028CC60(&v120);
CurrencyRewardLayer::createUnlockObject(v37, v40, (cocos2d::CCPoint)1053609165LL, 1.0);
}
++v38;
}
while ( v38 < (unsigned int)sub_100720070(m_rewardObjects) );
}
v41 = v127;
((void (__fastcall *)(RewardUnlockLayer *, CurrencyRewardLayer *, __int64))v127->addChild_0)(v127, v37, 100);
v37->m_delegate = &v41->CurrencyRewardDelegate;
v42 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v120);
v131 = (int)v126 > 0;
v43 = (_DWORD)v118 == (_DWORD)v126 && (int)v126 > 0 && (int)v118 > 0;
v44 = v125;
if ( v43 )
v44 = v119;
v125 = v44;
v126 = sub_10071F9E0(&v120, v42);
v110 = sub_10071F9E0(&v120, v42);
if ( v130 > 0 && (unsigned int)sub_100720070(m_rewardObjects) )
{
v45 = 0;
do
{
v46 = sub_1007200C0(m_rewardObjects, v45);
if ( *(_DWORD *)(v46 + 56) == 9 )
{
sub_10071FCD0(v110, v46);
v47 = (cocos2d::CCObject *)operator new(0x40u);
cocos2d::CCObject::CCObject(v47);
v47->__vftable = (cocos2d::CCObject_vtbl *)off_1008B8348;
LODWORD(v47[1].__vftable) = 0;
cocos2d::CCObject::autorelease(v47);
sub_10071FCD0(v126, v47);
}
++v45;
}
while ( v45 < (unsigned int)sub_100720070(m_rewardObjects) );
}
if ( RewardCount > 0 )
{
v48 = (cocos2d::CCObject *)operator new(0x40u);
cocos2d::CCObject::CCObject(v48);
v48->__vftable = (cocos2d::CCObject_vtbl *)off_1008B8348;
LODWORD(v48[1].__vftable) = 1;
cocos2d::CCObject::autorelease(v48);
sub_10071FCD0(v126, v48);
}
if ( v122 > 0 )
{
v49 = (cocos2d::CCObject *)operator new(0x40u);
cocos2d::CCObject::CCObject(v49);
v49->__vftable = (cocos2d::CCObject_vtbl *)off_1008B8348;
LODWORD(v49[1].__vftable) = 3;
cocos2d::CCObject::autorelease(v49);
sub_10071FCD0(v126, v49);
}
if ( (int)v118 > 0 )
{
v50 = (cocos2d::CCObject *)operator new(0x40u);
cocos2d::CCObject::CCObject(v50);
v50->__vftable = (cocos2d::CCObject_vtbl *)off_1008B8348;
LODWORD(v50[1].__vftable) = 9998;
cocos2d::CCObject::autorelease(v50);
sub_10071FCD0(v126, v50);
}
if ( (v131 & (unsigned __int8)~v43) != 0 )
{
v51 = (cocos2d::CCObject *)operator new(0x40u);
cocos2d::CCObject::CCObject(v51);
v51->__vftable = (cocos2d::CCObject_vtbl *)off_1008B8348;
LODWORD(v51[1].__vftable) = 9999;
cocos2d::CCObject::autorelease(v51);
sub_10071FCD0(v126, v51);
}
v52 = sub_100720070(v126);
sub_10028CC30(v115);
sub_10028CC30(v114);
sub_10028CC30(v111);
sub_10028CC30(v88);
sub_10028CC30(v89);
sub_10028CC30(v90);
v53 = (float)(v121 * 0.5) + 68.0;
sub_10028CBE0(&v124, v120 * 0.5, v53);
v130 = v52;
switch ( v52 )
{
case 3:
*(float *)&v124 = *(float *)&v124 + -75.0;
sub_10028CBE0(&v128, 0.0, -10.0);
sub_10028CCE0(&v129, &v124);
sub_10028CC90();
sub_10028CBE0(&v128, 75.0, 10.0);
sub_10028CCE0(&v129, &v124);
sub_10028CC90();
v53 = -10.0;
sub_10028CBE0(&v128, 150.0, -10.0);
sub_10028CCE0(&v129, &v124);
goto LABEL_73;
case 2:
*(float *)&v124 = *(float *)&v124 + -45.0;
sub_10028CC90();
v53 = 0.0;
sub_10028CBE0(&v128, 90.0, 0.0);
sub_10028CCE0(&v129, &v124);
goto LABEL_73;
case 1:
LABEL_73:
sub_10028CC90();
LABEL_77:
v125 += v132;
v118 = 0;
v56 = 0;
while ( 1 )
{
v59 = *(_DWORD *)(sub_1007200C0(v126, (unsigned int)v56) + 56);
sub_10028CC30(&v129);
v54 = (__int64)v115;
switch ( v56 )
{
case 0:
break;
case 1:
v54 = (__int64)v114;
break;
case 2:
v54 = (__int64)v111;
break;
case 3:
v54 = (__int64)v88;
break;
case 4:
v54 = (__int64)v89;
break;
default:
v54 = (__int64)v90;
break;
}
sub_10028CC90();
v55.y = 0.0;
v55.x = (float)((float)v56 * 0.2) + 0.5;
if ( v59 > 2 )
break;
if ( !v59 )
{
*(float *)&v132 = (float)((float)v56 * 0.2) + 0.5;
v60 = sub_1007200C0(v110, v118);
v61 = GJItemIcon::create(
(UnlockType)*(_DWORD *)(v60 + 60),
*(_DWORD *)(v60 + 64),
(cocos2d::ccColor3B)-5263441,
(cocos2d::ccColor3B)-1,
0,
0,
1,
(cocos2d::ccColor3B)-1);
sub_10028CC60(&v128);
v55 = (cocos2d::CCPoint)1074580685LL;
if ( v130 != 1 )
v55 = (cocos2d::CCPoint)v132;
v54 = 1;
RewardUnlockLayer::playLabelEffect(v127, 1, 0, v61, v55, v53);
v118 = (unsigned int)(v118 + 1);
goto LABEL_80;
}
if ( v59 == 1 )
{
*(float *)&v132 = (float)((float)v56 * 0.2) + 0.5;
sub_10028CC60(&v128);
v57 = v127;
v54 = (unsigned int)RewardCount;
v58 = 1;
LABEL_79:
v55 = (cocos2d::CCPoint)v132;
RewardUnlockLayer::playLabelEffect(v57, v54, v58, nullptr, (cocos2d::CCPoint)v132, v53);
}
LABEL_80:
if ( v130 == ++v56 )
goto LABEL_99;
}
switch ( v59 )
{
case 3:
*(float *)&v132 = (float)((float)v56 * 0.2) + 0.5;
sub_10028CC60(&v128);
v57 = v127;
v54 = (unsigned int)v122;
v58 = 3;
break;
case 9998:
*(float *)&v132 = (float)((float)v56 * 0.2) + 0.5;
sub_10028CC60(&v128);
v57 = v127;
v54 = v125;
v58 = v116;
break;
case 9999:
*(float *)&v132 = (float)((float)v56 * 0.2) + 0.5;
sub_10028CC60(&v128);
v57 = v127;
v54 = v119;
v58 = v117;
break;
default:
goto LABEL_80;
}
goto LABEL_79;
}
_mm_storel_ps((double *)&v124, _mm_add_ps((__m128)v124, (__m128)xmmword_100817B40));
sub_10028CBE0(&v128, 0.0, -15.0);
sub_10028CCE0(&v129, &v124);
sub_10028CC90();
sub_10028CBE0(&v128, 73.0, 15.0);
sub_10028CCE0(&v129, &v124);
sub_10028CC90();
sub_10028CBE0(&v128, 146.0, 15.0);
sub_10028CCE0(&v129, &v124);
sub_10028CC90();
sub_10028CBE0(&v128, 219.0, -15.0);
sub_10028CCE0(&v129, &v124);
sub_10028CC90();
sub_10028CBE0(&v128, 219.0, -70.0);
sub_10028CCE0(&v129, &v124);
sub_10028CC90();
v53 = -70.0;
sub_10028CBE0(&v128, 0.0, -70.0);
sub_10028CCE0(&v129, &v124);
v54 = (__int64)&v129;
*(double *)&v55 = sub_10028CC90();
if ( v52 > 0 )
goto LABEL_77;
LABEL_99:
v62 = v127;
if ( v127->m_rewardItem->m_rewardType > Key10Treasure )
{
v63 = ((__int64 (__fastcall *)(cocos2d::CCLayer *, __int64, double))v127->m_mainLayer->getPosition)(
v127->m_mainLayer,
v54,
*(double *)&v55);
sub_10028CC60(&v129);
v64 = v62->m_rewardItem->m_rewardType;
v65 = (cocos2d::CCArray *)sub_10071F9E0(&v129, v63);
if ( v64 > 0 )
{
*(float *)&v132 = (float)((float)v64 * 0.1) + 3.0;
do
{
v66 = rand();
*(float *)&v126 = (float)((float)((float)((float)v66 * 4.6566129e-10) + (float)((float)v66 * 4.6566129e-10))
+ -1.0)
* *(float *)&v132;
v67 = rand();
sub_10028CBE0(
v86,
*(float *)&v126,
(float)((float)((float)((float)v67 * 4.6566129e-10) + (float)((float)v67 * 4.6566129e-10)) + -1.0)
* *(float *)&v132);
sub_10028CCE0(&v128, &v129);
v68 = cocos2d::CCMoveTo::create(0.0, &v128);
sub_10071FCD0(v65, v68);
v69 = cocos2d::CCDelayTime::create(0.029999999);
sub_10071FCD0(v65, v69);
--v64;
}
while ( v64 );
}
v70 = cocos2d::CCMoveTo::create(0.0, &v129);
sub_10071FCD0(v65, v70);
v71 = cocos2d::CCSequence::create(v65);
v62 = v127;
cocos2d::CCNode::runAction(v127->m_mainLayer, v71);
if ( v62->m_rewardItem->m_rewardType == Key100Treasure )
{
*(float *)&v132 = v120 * 0.5;
v72 = rand();
sub_10028CBE0(
&v128,
(float)((float)((float)((float)((float)v72 * 4.6566129e-10) + (float)((float)v72 * 4.6566129e-10)) + -1.0) * 50.0)
+ *(float *)&v132,
v121 + 5.0);
v73 = (cocos2d::CCPoint)LODWORD(v121);
v73.x = v121 * 0.5;
sub_10028CBE0(v86, v120 * 0.5, v121 * 0.5);
sub_10028CD00(v81, v86, &v128);
sub_10028CC60(&v112);
sub_10028CC60(v82);
v74 = cocos2d::CCLightning::lightningWithStrikePoint((cocos2d::CCPoint)1056964608LL, v73, 0.5);
((void (__fastcall *)(cocos2d::CCLightning *, cocos2d::CCPoint *))v74->setPosition)(v74, &v128);
v113 = -1;
v112 = 255;
((void (__fastcall *)(cocos2d::CCLightning *, __int16 *))v74->setColor)(v74, &v112);
v74->m_lineWidth = 5.0;
*(_WORD *)&v74->m_unkBool = 257;
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLightning *, __int64))v62->m_mainLayer->addChild_0)(
v62->m_mainLayer,
v74,
3);
}
}
v75 = (unsigned int)cocos2d::CCDelayTime::create(1.5);
v76 = (unsigned int)cocos2d::CCCallFunc::create(
v62,
(cocos2d::SEL_CallFunc)(unsigned __int64)RewardUnlockLayer::showCloseButton);
v80 = (cocos2d::CCAction *)sub_1003B5760(v75, v76, 0, v77, v78, v79);
cocos2d::CCNode::runAction(v62, v80);
}