// // ExplodeItemNode::createSprites from 0xb53e3c to 0xb545e0 (1956 bytes) // // 3 xrefs: // > MapSelectLayer::checkTouchMonster @ 0xac2b54 // > PlayerObject::playDeathEffect @ 0xb54af0 // > @ 0xf8d10 // // 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:02:00 +0000 // __int64 __fastcall ExplodeItemNode::createSprites( cocos2d::CCNode *a1, int a2, int a3, unsigned __int8 a4, float a5, float a6, float a7, float a8, float a9, float a10, __int64 a11, __int64 a12, __int64 a13, __int64 a14, char a15, __int64 a16, char a17) { int v21; // w27 __int64 v23; // x0 float *v24; // x0 float v25; // s11 float v26; // s12 float v27; // s0 float v28; // w23 int v29; // w26 __int64 v30; // x28 float v31; // s8 float v32; // s0 __int64 v33; // x28 float v34; // s12 float v35; // s0 __int64 v36; // x28 int v37; // w23 float v38; // s9 float v39; // s10 int v40; // w25 __int64 v41; // x24 float v42; // s13 float v43; // s12 __int64 v44; // x19 void (__fastcall *v45)(__int64, __int64); // x20 __int64 v46; // x0 __int64 v47; // x0 void (__fastcall *v48)(__int64, int *); // x21 void (__fastcall *v49)(__int64, int *); // x21 float v50; // s0 bool v51; // w2 __int64 v52; // x21 void (__fastcall *v53)(__int64, float); // x26 float v54; // s0 void (__fastcall *v55)(__int64, float); // x26 float v56; // s0 void (__fastcall *v57)(__int64, float); // x26 float v58; // s0 void (__fastcall *v59)(__int64, int *); // x2 void (__fastcall *v60)(__int64, int *); // x2 void (__fastcall *v61)(__int64, float); // x20 int v62; // w0 __int64 v63; // x1 __int64 v64; // x0 void (__fastcall *v65)(__int64, __int64); // x19 __int64 v66; // x0 __int64 v68; // [xsp+A0h] [xbp+A0h] int v74; // [xsp+C8h] [xbp+C8h] BYREF int v75; // [xsp+CCh] [xbp+CCh] int v76; // [xsp+D0h] [xbp+D0h] int v77; // [xsp+D4h] [xbp+D4h] void *v78; // [xsp+D8h] [xbp+D8h] BYREF char *v79; // [xsp+E0h] [xbp+E0h] void *v80; // [xsp+F0h] [xbp+F0h] BYREF char *v81; // [xsp+F8h] [xbp+F8h] void *v82; // [xsp+108h] [xbp+108h] BYREF char *v83; // [xsp+110h] [xbp+110h] ExplodeItemSprite *v84; // [xsp+120h] [xbp+120h] BYREF ExplodeItemSprite *v85; // [xsp+128h] [xbp+128h] v21 = a4; v23 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 40) + 896LL))(*((_QWORD *)a1 + 40)); v24 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v23 + 328LL))(v23); v25 = *v24; v26 = *v24 / (float)a2; v27 = *v24 / (float)a3; v28 = v27; if ( v26 <= v27 ) v27 = *v24 / (float)a2; *((float *)a1 + 84) = v27; std::vector::vector(&v78, a2); std::vector::vector(&v80, a3); std::vector::vector(&v82, a2); std::vector::vector(&v84, a3); v29 = a2 - 1; if ( a2 - 1 <= 0 ) { v31 = 0.0; } else { v30 = 0; v31 = 0.0; do { v32 = roundf((float)((float)((float)((float)((float)rand() * 4.6566e-10) * 0.45) * 2.0) + 0.55) * v26); v31 = v31 + v32; *(float *)((char *)v78 + v30) = v32; v30 += 4; *(float *)((char *)v82 + v30) = v31; } while ( v30 != 4 * ((unsigned int)(a2 - 2) + 1LL) ); } if ( a3 - 1 <= 0 ) { v34 = 0.0; } else { v33 = 0; v34 = 0.0; do { v35 = roundf((float)((float)((float)((float)((float)rand() * 4.6566e-10) * 0.45) * 2.0) + 0.55) * v28); v34 = v34 + v35; *(float *)((char *)v80 + v33) = v35; v33 += 4; *(float *)((char *)v84 + v33) = v34; } while ( v33 != 4 * ((unsigned int)(a3 - 2) + 1LL) ); } *((float *)v78 + v29) = v25 - v31; *((float *)v80 + a3 - 1) = v25 - v34; if ( a2 > 0 ) { v36 = 0; v37 = 0; v68 = 4 * ((unsigned int)v29 + 1LL); do { v38 = *(float *)((char *)v78 + v36); v39 = *(float *)((char *)v82 + v36); if ( a3 > 0 ) { v40 = v37 + a3; v41 = 0; do { while ( 1 ) { ++v37; v42 = *(float *)((char *)v80 + v41); v43 = *(float *)((char *)v84 + v41); v44 = ExplodeItemSprite::create(v84); v45 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v44 + 1064LL); v46 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 40) + 896LL))(*((_QWORD *)a1 + 40)); v47 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v46 + 1072LL))(v46); v45(v44, v47); v48 = *(void (__fastcall **)(__int64, int *))(*(_QWORD *)v44 + 1136LL); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v74, v39, v43, v38, v42); v48(v44, &v74); v49 = *(void (__fastcall **)(__int64, int *))(*(_QWORD *)v44 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v74, (float)(v39 + (float)(v38 * 0.5)) - (float)(v25 * 0.5), (float)(v43 + (float)(v42 * 0.5)) - (float)(v25 * 0.5)); v49(v44, &v74); cocos2d::CCSprite::setFlipY((cocos2d::CCSprite *)v44, 1); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v44); *(float *)(v44 + 600) = a7 + (float)((float)((float)((float)((float)rand() * 4.6566e-10) * 2.0) + -1.0) * a8); *(float *)(v44 + 596) = a5 + (float)((float)((float)((float)((float)rand() * 4.6566e-10) * 2.0) + -1.0) * a6); v50 = a9 + (float)((float)((float)((float)((float)rand() * 4.6566e-10) * 2.0) + -1.0) * a10); *(float *)(v44 + 604) = v50; if ( v50 > 0.5 ) v50 = 0.5; *(float *)(v44 + 608) = v50; *(float *)(v44 + 612) = (float)((float)((float)((float)((float)rand() * 4.6566e-10) * 2.0) + -1.0) * 360.0) / 60.0; cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 41), (cocos2d::CCObject *)v44); if ( (v37 & 1) == 0 && !v21 ) break; v41 += 4; if ( v37 == v40 ) goto LABEL_19; } v52 = cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"fireballEffect.plist", nullptr, v51); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v52 + 1504LL))(v52, 10); v53 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 1488LL); v54 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v52 + 1480LL))(v52); v53(v52, v54 * 0.4); v55 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 1296LL); v56 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v52 + 1288LL))(v52); v55(v52, v56 * 0.8); v57 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 1328LL); v58 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v52 + 1320LL))(v52); v57(v52, v58 * 0.2); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 1312LL))(v52, 0.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 1344LL))(v52, 0.0); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v52 + 1360LL))(v52, &a15); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v52 + 1392LL))(v52, &a17); v59 = *(void (__fastcall **)(__int64, int *))(*(_QWORD *)v52 + 1376LL); v74 = 0; v75 = 0; v76 = 0; v77 = 0; v59(v52, &v74); v60 = *(void (__fastcall **)(__int64, int *))(*(_QWORD *)v52 + 1408LL); v74 = 0; v75 = 0; v76 = 0; v77 = 0; v60(v52, &v74); v61 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 976LL); v62 = rand(); v61(v52, (float)((float)((float)v62 * 4.6566e-10) * 0.2) + 0.2); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 992LL))(v52, 0.0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v52 + 1568LL))(v52, 1); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v52 + 1584LL))(v52, 0); (*(void (__fastcall **)(cocos2d::CCNode *, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v52, 0xFFFFFFFFLL); v63 = *(_QWORD *)v44; v64 = v44; *(_QWORD *)(v44 + 616) = v52; v65 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v52 + 184LL); v66 = (*(__int64 (__fastcall **)(__int64))(v63 + 192))(v64); v65(v52, v66); v41 += 4; } while ( v37 != v40 ); } LABEL_19: v36 += 4; } while ( v36 != v68 ); } cocos2d::CCNode::scheduleUpdate(a1); if ( v84 ) { if ( v85 != v84 ) v85 = (ExplodeItemSprite *)((char *)v85 + 4 * ~((unsigned __int64)((ExplodeItemSprite *)((char *)v85 - 4) - v84) >> 2)); operator delete(v84); } if ( v82 ) { if ( v82 != v83 ) v83 += 4 * ~((unsigned __int64)(v83 - 4 - (_BYTE *)v82) >> 2); operator delete(v82); } if ( v80 ) { if ( v80 != v81 ) v81 += 4 * ~((unsigned __int64)(v81 - 4 - (_BYTE *)v80) >> 2); operator delete(v80); } if ( v78 ) { if ( v78 != v79 ) v79 += 4 * ~((unsigned __int64)(v79 - 4 - (_BYTE *)v78) >> 2); operator delete(v78); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source