//
// ExplodeItemNode::createSprites from 0x100064eb0 to 0x1000654a4 (1524 bytes)
//
// 1 xrefs:
// > PlayerObject::playDeathEffect @ 0x100064df4
//
// 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 10:57:55 +0000
//
void __fastcall ExplodeItemNode::createSprites(
__int64 a1,
int a2,
int a3,
char a4,
float a5,
float a6,
float a7,
float a8,
float a9,
float a10,
__int64 a11,
__int64 a12,
__int64 a13,
__int64 a14,
__int128 a15,
__int128 a16)
{
__int64 v20; // x0
float *v21; // x0
float v22; // s8
float v23; // s11
float v24; // s9
float v25; // s0
float v26; // s10
__int64 v27; // x23
float v28; // s0
__int64 v29; // x24
float v30; // s11
float v31; // s0
float *v32; // x8
__int64 v33; // x25
int v34; // w26
__int64 v35; // x22
float v36; // s14
float v37; // s15
float v38; // s9
float v39; // s10
__int64 v40; // x23
__int64 v41; // x0
__int64 v42; // x0
float v43; // s0
__int64 v44; // x24
float v45; // s0
float v46; // s0
float v47; // s0
unsigned int v48; // w0
__int64 v49; // x0
__int64 v50; // [xsp+8h] [xbp-168h]
int v51; // [xsp+10h] [xbp-160h]
int v52; // [xsp+1Ch] [xbp-154h]
__int64 v59; // [xsp+48h] [xbp-128h] BYREF
__int64 v60; // [xsp+50h] [xbp-120h]
void *__p[3]; // [xsp+58h] [xbp-118h] BYREF
void *v62[3]; // [xsp+70h] [xbp-100h] BYREF
void *v63[3]; // [xsp+88h] [xbp-E8h] BYREF
void *v64[3]; // [xsp+A0h] [xbp-D0h] BYREF
__int128 v65; // [xsp+B8h] [xbp-B8h] BYREF
__int128 v66; // [xsp+C8h] [xbp-A8h] BYREF
v66 = a15;
v65 = a16;
v20 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 320) + 896LL))(*(_QWORD *)(a1 + 320));
v21 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v20 + 328LL))(v20);
v22 = *v21;
v23 = *v21 / (float)a2;
v24 = *v21 / (float)a3;
if ( v23 <= v24 )
v25 = *v21 / (float)a2;
else
v25 = *v21 / (float)a3;
*(float *)(a1 + 336) = v25;
sub_100065DF8(v64, a2);
sub_100065DF8(v63, a3);
sub_100065DF8(v62, a2);
sub_100065DF8(__p, a3);
v26 = 0.0;
if ( a2 >= 2 )
{
v27 = 0;
do
{
v28 = roundf(v23 * (float)((float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.45) * 2.0) + 0.55));
*(float *)((char *)v64[0] + v27) = v28;
v26 = v26 + v28;
*(float *)((char *)v62[0] + v27 + 4) = v26;
v27 += 4;
}
while ( 4LL * (unsigned int)(a2 - 1) != v27 );
}
v51 = a3;
if ( a3 <= 1 )
{
v30 = 0.0;
v32 = (float *)v63[0];
}
else
{
v29 = 0;
v30 = 0.0;
do
{
v31 = roundf(v24 * (float)((float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.45) * 2.0) + 0.55));
v32 = (float *)v63[0];
*(float *)((char *)v63[0] + v29) = v31;
v30 = v30 + v31;
*(float *)((char *)__p[0] + v29 + 4) = v30;
v29 += 4;
}
while ( 4LL * (unsigned int)(a3 - 1) != v29 );
}
*((float *)v64[0] + a2 - 1) = v22 - v26;
v32[a3 - 1] = v22 - v30;
if ( a2 >= 1 )
{
v33 = 0;
v34 = 0;
v50 = (unsigned int)a2;
do
{
if ( v51 >= 1 )
{
v35 = 0;
v36 = *((float *)v64[0] + v33);
v37 = *((float *)v62[0] + v33);
v52 = v34 + v51;
do
{
v38 = *(float *)((char *)v63[0] + v35);
v39 = *(float *)((char *)__p[0] + v35);
v40 = sub_100065A90();
v41 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 320) + 896LL))(*(_QWORD *)(a1 + 320));
v42 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v41 + 1072LL))(v41);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v40 + 1064LL))(v40, v42);
sub_1000262CC((float *)&v59, v37, v39, v36, v38);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v40 + 1136LL))(v40, &v59);
sub_1000262BC(
(float *)&v59,
(float)((float)(v36 * 0.5) + v37) - (float)(v22 * 0.5),
(float)((float)(v38 * 0.5) + v39) - (float)(v22 * 0.5));
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v40 + 184LL))(v40, &v59);
cocos2d::CCSprite::setFlipY(v40, 1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v40);
*(float *)(v40 + 600) = a7 + (float)((float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 2.0) + -1.0) * a8);
*(float *)(v40 + 596) = a5 + (float)((float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 2.0) + -1.0) * a6);
v43 = a9 + (float)((float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 2.0) + -1.0) * a10);
*(float *)(v40 + 604) = v43;
if ( v43 > 0.5 )
v43 = 0.5;
*(float *)(v40 + 608) = v43;
*(float *)(v40 + 612) = (float)((float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 2.0) + -1.0) * 360.0) / 60.0;
sub_1002E74E0(*(_QWORD *)(a1 + 328), v40);
if ( (v34 & 1) != 0 && (a4 & 1) == 0 )
{
v44 = cocos2d::CCParticleSystemQuad::create("fireballEffect.plist", 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v44 + 1504LL))(v44, 10);
v45 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v44 + 1480LL))(v44);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v44 + 1488LL))(v44, v45 * 0.4);
v46 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v44 + 1288LL))(v44);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v44 + 1296LL))(v44, v46 * 0.8);
v47 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v44 + 1320LL))(v44);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v44 + 1328LL))(v44, v47 * 0.2);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v44 + 1312LL))(v44, 0.0);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v44 + 1344LL))(v44, 0.0);
(*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v44 + 1360LL))(v44, &v66);
(*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v44 + 1392LL))(v44, &v65);
v59 = 0;
v60 = 0;
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v44 + 1376LL))(v44, &v59);
v59 = 0;
v60 = 0;
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v44 + 1408LL))(v44, &v59);
v48 = rand();
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v44 + 976LL))(
v44,
(float)(vcvts_n_f32_s32(v48, 0x1Fu) * 0.2) + 0.2);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v44 + 992LL))(v44, 0.0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v44 + 1568LL))(v44, 1);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v44 + 1584LL))(v44, 0);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v44, 0xFFFFFFFFLL);
*(_QWORD *)(v40 + 616) = v44;
v49 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v40 + 192LL))(v40);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v44 + 184LL))(v44, v49);
}
v35 += 4;
LOBYTE(v34) = v34 + 1;
}
while ( 4LL * (unsigned int)v51 != v35 );
v34 = v52;
}
++v33;
}
while ( v33 != v50 );
}
cocos2d::CCNode::scheduleUpdate(a1);
if ( __p[0] )
{
__p[1] = __p[0];
operator delete(__p[0]);
}
if ( v62[0] )
{
v62[1] = v62[0];
operator delete(v62[0]);
}
if ( v63[0] )
{
v63[1] = v63[0];
operator delete(v63[0]);
}
if ( v64[0] )
{
v64[1] = v64[0];
operator delete(v64[0]);
}
}