//
// CurrencyRewardLayer::createObjectsFull from 0xa69eb0 to 0xa6aa88 (3032 bytes)
//
// 3 xrefs:
// > CurrencyRewardLayer::createUnlockObject @ 0xa6ab24
// > CurrencyRewardLayer::createObjects @ 0xa6aba4
// > ??> @ 0x46db0
//
// 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:19 +0000
//
__int64 __fastcall CurrencyRewardLayer::createObjectsFull(
__int64 a1,
int a2,
int a3,
CurrencySprite *a4,
__int64 a5,
float a6)
{
unsigned __int64 v8; // x0
float v12; // s14
float v13; // s13
cocos2d::CCDirector *v14; // x0
cocos2d::CCDirector *v15; // x0
cocos2d::CCDirector *ScreenRight; // x0
float v17; // s0
float v18; // s8
cocos2d::CCDirector *v19; // x0
float v20; // s0
int v21; // w28
int v22; // w20
float v23; // s12
float v24; // s0
void (__fastcall *v25)(__int64, float); // x26
int v26; // w0
int v27; // w0
bool v28; // w2
int v29; // w19
int v30; // w0
cocos2d::CCSprite *v31; // x1
__int64 v32; // x19
__int64 v33; // x1
float v34; // s15
cocos2d::CCParticleSystem *v35; // x19
float v36; // s0
int v37; // w20
int v38; // w25
char v39; // w23
float v40; // s10
char v41; // w24
void (__fastcall *v42)(cocos2d::CCParticleSystem *, unsigned __int64 *); // x2
void (__fastcall *v43)(cocos2d::CCParticleSystem *, unsigned __int64 *); // x2
void (__fastcall *v44)(cocos2d::CCParticleSystem *, unsigned __int64 *); // x2
void (__fastcall *v45)(cocos2d::CCParticleSystem *, unsigned __int64 *); // x2
void (__fastcall *v46)(cocos2d::CCParticleSystem *, float); // x20
float v47; // s0
void (__fastcall *v48)(cocos2d::CCParticleSystem *, float); // x20
float v49; // s0
void (__fastcall *v50)(cocos2d::CCParticleSystem *, float); // x20
float v51; // s0
__int64 v52; // x0
__int64 v53; // x2
__int64 v54; // x19
__int64 v56; // x26
float v57; // s0
float v58; // s0
void (__fastcall *v59)(__int64, unsigned __int64 *); // x2
void (__fastcall *v60)(__int64, unsigned __int64 *); // x2
int v61; // w0
__int64 v62; // x0
__int64 v63; // x2
__int64 v64; // x19
void (__fastcall *v65)(__int64, float); // x24
float v66; // s0
__int64 v67; // x0
unsigned int v68; // w6
float v69; // s3
float v70; // s2
float v71; // s4
float v72; // s5
float v73; // s1
float v74; // s8
__int64 v75; // [xsp+A8h] [xbp+A8h]
void (__fastcall *v76)(__int64, float); // [xsp+B0h] [xbp+B0h]
void (__fastcall *v77)(__int64, float); // [xsp+B0h] [xbp+B0h]
void (__fastcall *v78)(__int64, float); // [xsp+B0h] [xbp+B0h]
float v79; // [xsp+B8h] [xbp+B8h]
float v80; // [xsp+BCh] [xbp+BCh]
cocos2d::CCArray *v81; // [xsp+C8h] [xbp+C8h]
_BOOL4 v82; // [xsp+D0h] [xbp+D0h]
int v83; // [xsp+D4h] [xbp+D4h]
_BYTE v85[8]; // [xsp+E0h] [xbp+E0h] BYREF
__int64 v86; // [xsp+E8h] [xbp+E8h] BYREF
_BYTE v87[8]; // [xsp+F0h] [xbp+F0h] BYREF
float v88; // [xsp+F8h] [xbp+F8h] BYREF
float v89; // [xsp+FCh] [xbp+FCh]
float v90; // [xsp+100h] [xbp+100h]
float v91; // [xsp+104h] [xbp+104h]
float v92; // [xsp+108h] [xbp+108h] BYREF
float v93; // [xsp+10Ch] [xbp+10Ch]
float v94; // [xsp+110h] [xbp+110h]
float v95; // [xsp+114h] [xbp+114h]
unsigned __int64 v96; // [xsp+118h] [xbp+118h] BYREF
float v97; // [xsp+120h] [xbp+120h]
float v98; // [xsp+124h] [xbp+124h]
v8 = _stack_chk_guard;
if ( a3 <= 0 )
return _stack_chk_guard;
if ( a3 == 1 )
{
v82 = 1;
}
else if ( (a2 & 0xFFFFFFFD) == 1 )
{
v8 = a4 != nullptr;
v82 = a4 != nullptr;
}
else
{
v8 = (a4 != nullptr) | (unsigned int)(a2 != 15 && a2 != 2);
v82 = a4 != nullptr || a2 != 15 && a2 != 2;
}
v81 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)v8);
v12 = *(float *)(a1 + 568);
v13 = v12 * 0.3;
v14 = (cocos2d::CCDirector *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v85);
if ( !a4 )
{
if ( a2 != 1 )
{
v75 = *(_QWORD *)(a1 + 520);
switch ( a2 )
{
case 2:
cocos2d::CCPoint::operator=(v85, a1 + 580);
v90 = 0.0;
v80 = 0.7;
v88 = 1.0;
v89 = 1.0;
v91 = 1.0;
v92 = 1.0;
v93 = 0.58824;
v94 = 0.0;
v95 = 1.0;
v79 = 1.0;
break;
case 15:
cocos2d::CCPoint::operator=(v85, a1 + 588);
v80 = 0.7;
v88 = 0.39216;
v89 = 1.0;
v90 = 1.0;
v91 = 1.0;
v92 = 0.0;
v93 = 1.0;
v94 = 1.0;
v95 = 1.0;
v79 = 1.0;
break;
case 3:
cocos2d::CCPoint::operator=(v85, a1 + 596);
v88 = 1.0;
v89 = 1.0;
v90 = 1.0;
v91 = 1.0;
v93 = 1.0;
v94 = 1.0;
v95 = 1.0;
v79 = 1.4;
v92 = 0.58824;
v80 = 0.6;
break;
default:
v67 = *(_QWORD *)(a1 + 464);
if ( v67 && (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v67 + 64LL))(v67) == a2 )
cocos2d::CCPoint::operator=(v85, a1 + 612);
else
cocos2d::CCPoint::operator=(v85, a1 + 604);
v68 = a2 - 4;
if ( (unsigned int)(a2 - 4) > 0xC )
{
v74 = 1.0;
v73 = 1.0;
v80 = 0.8;
v72 = 1.0;
v71 = 1.0;
v69 = 1.0;
v70 = 1.0;
}
else
{
v80 = flt_1173DB0[v68];
v69 = (float)byte_1173E00[v68] / 255.0;
v70 = (float)*((unsigned __int8 *)&flt_1173DB0[16] + v68) / 255.0;
v71 = (float)byte_1173E00[v68 + 16] / 255.0;
v72 = (float)byte_1173E00[v68 + 32] / 255.0;
v73 = (float)byte_1173E00[v68 + 48] / 255.0;
v74 = (float)byte_1173E00[v68 + 64] / 255.0;
}
v88 = v72;
v89 = v71;
v90 = v69;
v91 = 1.0;
v92 = v70;
v93 = v73;
v94 = v74;
v95 = 1.0;
v79 = 1.0;
break;
}
goto LABEL_7;
}
v75 = *(_QWORD *)(a1 + 528);
if ( a3 <= 9 )
{
v13 = 0.2;
v12 = 0.8;
}
else
{
if ( a3 > 400 )
{
v13 = 0.9;
v80 = 0.8;
goto LABEL_54;
}
if ( a3 > 300 )
{
v13 = 0.8;
v80 = 0.8;
LABEL_54:
v89 = 0.78431;
v88 = 0.0;
v90 = 1.0;
v91 = 1.0;
v92 = 0.0;
v93 = 0.19608;
v94 = 1.0;
v95 = 1.0;
cocos2d::CCPoint::operator=(v85, a1 + 572);
v79 = 0.7;
goto LABEL_7;
}
if ( a3 > 200 )
{
v13 = 0.7;
v80 = 0.8;
goto LABEL_54;
}
if ( a3 > 100 )
{
v13 = 0.6;
}
else if ( a3 > 50 )
{
v13 = 0.5;
}
else if ( a3 > 30 )
{
v13 = 0.4;
}
v80 = 0.9;
if ( a3 > 50 )
goto LABEL_54;
}
if ( a3 <= 20 )
v80 = 1.0;
else
v80 = 0.95;
goto LABEL_54;
}
v15 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v14);
ScreenRight = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v15);
v18 = v17;
v19 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenRight);
cocos2d::CCDirector::getScreenTop(v19);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v96, v18 + 30.0, v20 + 30.0);
cocos2d::CCPoint::operator=(v85, &v96);
v92 = 0.39216;
v80 = 1.2;
v88 = 1.0;
v89 = 1.0;
v90 = 1.0;
v91 = 1.0;
v93 = 0.39216;
v94 = 0.39216;
v95 = 1.0;
v79 = 1.0;
LABEL_7:
v21 = 0;
v22 = 0;
v83 = a3;
v23 = (float)(v12 + (float)(*(float *)(a1 + 568) * 0.1)) + a6;
do
{
v29 = rand();
v30 = rand();
++v22;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v96,
(float)((float)((float)((float)v29 * 4.6566e-10) * 2.0) + -1.0) * 10.0,
(float)((float)((float)((float)v30 * 4.6566e-10) * 2.0) + -1.0) * 10.0);
cocos2d::CCPoint::operator+(&v86, a5);
if ( a4 )
{
v32 = CurrencySprite::createWithSprite(a4, v31);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v32, 10);
}
else
{
v32 = CurrencySprite::create(a2, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v75 + 456LL))(v75, v32);
}
v33 = *(_QWORD *)(v32 + 664);
if ( v33 )
{
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 528) + 464LL))(
*(_QWORD *)(a1 + 528),
v33,
4294967286LL);
(*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(v32 + 664) + 184LL))(*(_QWORD *)(v32 + 664), &v86);
CCSpritePlus::addFollower((CCSpritePlus *)v32, *(cocos2d::CCNode **)(v32 + 664));
*(_BYTE *)(v32 + 617) = 0;
}
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v32 + 160LL))(v32, v80);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v32 + 184LL))(v32, &v86);
*(float *)(v32 + 624) = (float)((float)((float)((float)rand() * 4.6566e-10) * 3.0) + 0.0) * 4.0;
v34 = (float)((float)rand() * 4.6566e-10) * 5.0;
if ( (float)((float)rand() * 4.6566e-10) <= 0.5 )
v24 = -1.0;
else
v24 = 1.0;
*(float *)(v32 + 620) = v34 * v24;
*(float *)(v32 + 632) = v23 + (float)((float)((float)rand() * 4.6566e-10) * v13);
if ( a2 != 1 )
{
v25 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v32 + 360LL);
v26 = rand();
v25(v32, (float)((float)((float)((float)v26 * 4.6566e-10) * 2.0) + -1.0) * 30.0);
}
v27 = rand();
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v87,
(float)((float)((float)((float)v27 * 4.6566e-10) * 2.0) + -1.0) * 10.0,
0.0);
cocos2d::CCPoint::operator+(&v96, v85);
cocos2d::CCPoint::operator=(v32 + 652, &v96);
if ( v82 )
*(float *)(v32 + 624) = (float)((float)((float)((float)rand() * 4.6566e-10) * 0.2) + 2.5) * 4.0;
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 416), (cocos2d::CCObject *)v32);
cocos2d::CCArray::addObject(v81, (cocos2d::CCObject *)v32);
if ( v21 > 19 )
{
if ( v83 <= v22 )
break;
continue;
}
++v21;
v56 = cocos2d::CCParticleSystemQuad::create((cocos2d::CCParticleSystemQuad *)"fireballEffect.plist", nullptr, v28);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v56 + 1504LL))(v56, 40);
v76 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v56 + 1296LL);
v57 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v56 + 1288LL))(v56);
v76(v56, v79 * v57);
v77 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v56 + 1328LL);
v58 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v56 + 1320LL))(v56);
v77(v56, v58 * 0.1);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v56 + 1312LL))(v56, 0.0);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v56 + 1344LL))(v56, 0.0);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v56 + 1360LL))(v56, &v88);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v56 + 1392LL))(v56, &v92);
v59 = *(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v56 + 1376LL);
v96 = 0;
v97 = 0.0;
v98 = 0.0;
v59(v56, &v96);
v60 = *(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v56 + 1408LL);
v96 = 0;
v97 = 0.0;
v98 = 0.0;
v60(v56, &v96);
v78 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v56 + 976LL);
v61 = rand();
v78(v56, (float)((float)((float)v61 * 4.6566e-10) * 0.2) + 0.2);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v56 + 992LL))(v56, 0.0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v56 + 1568LL))(v56, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v56 + 1584LL))(v56, 0);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v56, 0xFFFFFFFFLL);
*(_QWORD *)(v32 + 640) = v56;
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v56 + 184LL))(v56, &v86);
if ( v83 <= v22 )
break;
}
while ( v22 <= 59 );
if ( v83 > v22 )
{
do
{
++v22;
v62 = cocos2d::CCArray::randomObject(v81);
v63 = *(_QWORD *)v62;
v64 = v62;
++*(_DWORD *)(v62 + 636);
if ( (*(float (**)(void))(v63 + 168))() < 3.0 )
{
v65 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v64 + 160LL);
v66 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v64 + 168LL))(v64);
v65(v64, v66 + 0.1);
}
}
while ( v22 != v83 );
}
if ( !*(_BYTE *)(a1 + 620) || *(_BYTE *)(a1 + 621) )
{
*(_BYTE *)(a1 + 620) = 1;
v35 = (cocos2d::CCParticleSystem *)cocos2d::CCParticleSystemQuad::create(
(cocos2d::CCParticleSystemQuad *)"explodeEffect.plist",
nullptr,
v28);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v35 + 1568LL))(v35, 2);
(*(void (__fastcall **)(__int64, cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v35, 99);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v35 + 184LL))(v35, a5);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v35 + 1584LL))(v35, 1);
switch ( a2 )
{
case 1:
goto LABEL_27;
case 2:
v38 = 255;
v37 = 150;
v36 = 1.0;
v39 = 0;
v40 = 0.0;
v41 = -1;
break;
case 15:
LABEL_27:
v36 = 0.0;
v37 = 150;
v38 = 0;
v39 = -1;
v40 = 1.0;
v41 = 0;
break;
default:
v36 = 1.0;
v37 = 255;
v38 = 150;
v39 = -1;
v40 = 1.0;
v41 = -1;
break;
}
v42 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, unsigned __int64 *))(*(_QWORD *)v35 + 1360LL);
v97 = v40;
v98 = 1.0;
v96 = __PAIR64__(1.0, LODWORD(v36));
v42(v35, &v96);
v43 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, unsigned __int64 *))(*(_QWORD *)v35 + 1392LL);
v97 = v40;
v98 = 1.0;
*((float *)&v96 + 1) = (float)v37 / 255.0;
*(float *)&v96 = (float)v38 / 255.0;
v43(v35, &v96);
v44 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, unsigned __int64 *))(*(_QWORD *)v35 + 1376LL);
v96 = 0;
v97 = 0.0;
v98 = 0.0;
v44(v35, &v96);
v45 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, unsigned __int64 *))(*(_QWORD *)v35 + 1408LL);
v96 = 0;
v97 = 0.0;
v98 = 0.0;
v45(v35, &v96);
v46 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v35 + 1064LL);
v47 = (*(float (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v35 + 1056LL))(v35);
v46(v35, v47 * 0.8);
v48 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v35 + 1296LL);
v49 = (*(float (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v35 + 1288LL))(v35);
v48(v35, v49 * 0.5);
v50 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v35 + 1328LL);
v51 = (*(float (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v35 + 1320LL))(v35);
v50(v35, v51 * 0.1);
cocos2d::CCParticleSystem::resetSystem(v35);
v52 = CCCircleWave::create(nullptr, 10.0, 110.0, 0.3);
v53 = *(_QWORD *)v52;
*(_BYTE *)(v52 + 340) = v41;
*(_BYTE *)(v52 + 342) = v39;
v54 = v52;
*(_BYTE *)(v52 + 341) = -1;
(*(void (__fastcall **)(__int64, __int64))(v53 + 184))(v52, a5);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v54, 9);
}
return _stack_chk_guard;
}