//
// ExplodeItemNode::createSprites from 0x69e8e4 to 0x69edfc (1304 bytes)
//
// 2 xrefs:
// > MapSelectLayer::checkTouchMonster @ 0x63fc56
// > PlayerObject::playDeathEffect @ 0x6a34da
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:56:21 +0000
//
char **__fastcall ExplodeItemNode::createSprites(
cocos2d::CCNode *a1,
int a2,
int a3,
float a4,
float a5,
float a6,
float a7,
float a8,
float a9,
char a10,
int a11,
int a12,
int a13,
char a14,
int a15,
int a16,
int a17,
unsigned __int8 a18)
{
int v22; // r0
float v23; // s16
float v24; // s15
float v25; // r0
float v26; // s18
int v27; // r4
int v28; // r3
float v29; // s17
int v30; // r4
int v31; // r3
int v32; // r8
int v33; // r10
float v34; // s18
float v35; // s19
float v36; // s29
float v37; // s27
cocos2d::CCSprite *v38; // r5
void (__fastcall *v39)(cocos2d::CCSprite *, int); // r4
int v40; // r0
int v41; // r0
void (__fastcall *v42)(cocos2d::CCSprite *, int *); // r11
void (__fastcall *v43)(cocos2d::CCSprite *, int *); // r11
int v44; // r0
int v45; // r0
int v46; // r0
float v47; // s15
int v48; // r0
bool v49; // r2
int v50; // r4
void (__fastcall *v51)(int, _DWORD); // r11
float v52; // r0
void (__fastcall *v53)(int, _DWORD); // r11
float v54; // r0
void (__fastcall *v55)(int, _DWORD); // r11
float v56; // r0
void (__fastcall *v57)(int, int *); // r2
void (__fastcall *v58)(int, int *); // r3
void (__fastcall *v59)(int, _DWORD); // r11
int v60; // r0
int (__fastcall *v61)(int, int); // r11
int v62; // r0
char v64; // [sp+8h] [bp-5Ch]
char *v65; // [sp+Ch] [bp-58h]
char *v66[3]; // [sp+1Ch] [bp-48h] BYREF
char *v67[3]; // [sp+28h] [bp-3Ch] BYREF
char *v68[3]; // [sp+34h] [bp-30h] BYREF
char *v69[3]; // [sp+40h] [bp-24h] BYREF
int v70; // [sp+4Ch] [bp-18h] BYREF
int v71; // [sp+50h] [bp-14h]
int v72; // [sp+54h] [bp-10h]
int v73; // [sp+58h] [bp-Ch]
v65 = (char *)a18;
v22 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)a1 + 66) + 448))(*((_DWORD *)a1 + 66));
v23 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v22 + 164))(v22);
if ( (float)(v23 / (float)a2) > (float)(v23 / (float)a3) )
v24 = v23 / (float)a3;
else
v24 = v23 / (float)a2;
*((float *)a1 + 68) = v24;
std::vector::vector(v66, a2);
std::vector::vector(v67, a3);
std::vector::vector(v68, a2);
v25 = COERCE_FLOAT(std::vector::vector(v69, a3));
v26 = 0.0;
v27 = 0;
while ( v27 < a2 - 1 )
{
rand();
v25 = COERCE_FLOAT(roundf());
v28 = 4 * v27++;
v26 = v26 + v25;
*(float *)&v66[0][v28] = v25;
*(float *)&v68[0][v28 + 4] = v26;
}
v29 = 0.0;
v30 = 0;
while ( v30 < a3 - 1 )
{
rand();
v25 = COERCE_FLOAT(roundf());
v31 = 4 * v30++;
v29 = v29 + v25;
*(float *)&v67[0][v31] = v25;
*(float *)&v69[0][v31 + 4] = v29;
}
v32 = 0;
v64 = 0;
*(float *)&v66[0][4 * a2 - 4] = v23 - v26;
*(float *)&v67[0][4 * a3 - 4] = v23 - v29;
while ( v32 < a2 )
{
v33 = 0;
v34 = *(float *)&v66[0][4 * v32];
v35 = *(float *)&v68[0][4 * v32];
while ( v33 < a3 )
{
v36 = *(float *)&v67[0][4 * v33];
v37 = *(float *)&v69[0][4 * v33];
++v64;
v38 = ExplodeItemSprite::create((ExplodeItemSprite *)LODWORD(v25));
v39 = *(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v38 + 532);
v40 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)a1 + 66) + 448))(*((_DWORD *)a1 + 66));
v41 = (*(int (__fastcall **)(int))(*(_DWORD *)v40 + 536))(v40);
v39(v38, v41);
v42 = *(void (__fastcall **)(cocos2d::CCSprite *, int *))(*(_DWORD *)v38 + 568);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v70, v35, v37, v34, v36);
v42(v38, &v70);
v43 = *(void (__fastcall **)(cocos2d::CCSprite *, int *))(*(_DWORD *)v38 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v70,
(float)(v35 + (float)(v34 * 0.5)) - (float)(v23 * 0.5),
(float)(v37 + (float)(v36 * 0.5)) - (float)(v23 * 0.5));
v43(v38, &v70);
cocos2d::CCSprite::setFlipY(v38, 1);
(*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCSprite *))(*(_DWORD *)a1 + 228))(a1, v38);
v44 = rand();
*((float *)v38 + 128) = a6
+ (float)((float)((float)((float)((float)v44 * 4.6566e-10) + (float)((float)v44 * 4.6566e-10))
- 1.0)
* a7);
v45 = rand();
*((float *)v38 + 127) = a4
+ (float)((float)((float)((float)((float)v45 * 4.6566e-10) + (float)((float)v45 * 4.6566e-10))
- 1.0)
* a5);
v46 = rand();
v47 = a8
+ (float)((float)((float)((float)((float)v46 * 4.6566e-10) + (float)((float)v46 * 4.6566e-10)) - 1.0) * a9);
*((float *)v38 + 129) = v47;
if ( v47 > 0.5 )
v47 = 0.5;
*((float *)v38 + 130) = v47;
v48 = rand();
*((float *)v38 + 131) = (float)((float)((float)((float)((float)v48 * 4.6566e-10) + (float)((float)v48 * 4.6566e-10))
- 1.0)
* 360.0)
/ 60.0;
v25 = COERCE_FLOAT(cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 67), v38));
if ( (v64 & 1) == 0 && !v65 )
{
v50 = cocos2d::CCParticleSystemQuad::create(
(cocos2d::CCParticleSystemQuad *)"fireballEffect.plist",
nullptr,
v49);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v50 + 752))(v50, 10);
v51 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v50 + 744);
v52 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v50 + 740))(v50));
v51(v50, v52 * 0.4);
v53 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v50 + 648);
v54 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v50 + 644))(v50));
v53(v50, v54 * 0.8);
v55 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v50 + 664);
v56 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v50 + 660))(v50));
v55(v50, v56 * 0.2);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v50 + 656))(v50, 0);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v50 + 672))(v50, 0);
(*(void (__fastcall **)(int, char *))(*(_DWORD *)v50 + 680))(v50, &a10);
(*(void (__fastcall **)(int, char *))(*(_DWORD *)v50 + 696))(v50, &a14);
v57 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v50 + 688);
v70 = 0;
v71 = 0;
v72 = 0;
v73 = 0;
v57(v50, &v70);
v58 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v50 + 704);
v70 = 0;
v71 = 0;
v72 = 0;
v73 = 0;
v58(v50, &v70);
v59 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v50 + 488);
v60 = rand();
v59(v50, (float)((float)((float)v60 * 4.6566e-10) * 0.2) + 0.2);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v50 + 496))(v50, 0);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v50 + 784))(v50, 1);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v50 + 792))(v50, 0);
(*(void (__fastcall **)(cocos2d::CCNode *, int, int))(*(_DWORD *)a1 + 232))(a1, v50, -1);
*((_DWORD *)v38 + 132) = v50;
v61 = *(int (__fastcall **)(int, int))(*(_DWORD *)v50 + 92);
v62 = (*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v38 + 96))(v38);
v25 = COERCE_FLOAT(v61(v50, v62));
}
++v33;
}
++v32;
}
cocos2d::CCNode::scheduleUpdate(a1);
std::__vector_base::~__vector_base(v69);
std::__vector_base::~__vector_base(v68);
std::__vector_base::~__vector_base(v67);
return std::__vector_base::~__vector_base(v66);
}