// // GJBaseGameLayer::spawnParticleTrigger from 0x100284fc4 to 0x1002852fc (824 bytes) // // 2 xrefs: // > GJBaseGameLayer::destroyObject @ 0x100284d50 // > GJBaseGameLayer::spawnParticleTrigger_1 @ 0x1002a0f60 // // 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 11:01:57 +0000 // __int64 __fastcall GJBaseGameLayer::spawnParticleTrigger(__int64 a1, int a2, float32x2_t *a3, float a4, float a5) { float v8; // s9 __int64 Group; // x21 __int64 MainObject; // x0 __int64 v11; // x22 double *v12; // x0 __int64 result; // x0 __int64 v14; // x23 __int64 v15; // x0 __int64 v16; // x24 __int64 v17; // x25 __int64 ObjectZOrder; // x0 __int64 v19; // x0 __n128 v20; // q0 __int64 v21; // x25 double *v22; // x0 float v23; // s0 __n128 v24; // q0 float v25; // s0 float v26; // s0 float v27; // s0 float32x2_t v28; // [xsp+8h] [xbp-98h] BYREF float32x2_t v29; // [xsp+10h] [xbp-90h] BYREF float32x2_t v30; // [xsp+18h] [xbp-88h] BYREF void *__p[2]; // [xsp+20h] [xbp-80h] BYREF __int64 v32; // [xsp+30h] [xbp-70h] float32x2_t v33; // [xsp+38h] [xbp-68h] BYREF __float2 v34; // 0:kr00_8.8 if ( a5 == 0.0 ) v8 = 1.0; else v8 = a5; Group = GJBaseGameLayer::getGroup(a1, a2); sub_1000262EC(&v33); MainObject = GJBaseGameLayer::tryGetMainObject(a1); v11 = MainObject; if ( MainObject ) { v12 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)MainObject + 192LL))(MainObject); sub_10002630C(&v33, v12); } result = sub_1002E757C(Group); if ( (_DWORD)result ) { v34 = __sincosf_stret(a4 * -0.017453); v14 = 0; do { v15 = sub_1002E75A0(Group, v14); if ( *(_DWORD *)(v15 + 1028) == 2065 ) { v16 = v15; sub_1004271E8(v15); if ( *(char *)(v16 + 1471) < 0 ) { sub_1000097D0(__p, *(void **)(v16 + 1448), *(_QWORD *)(v16 + 1456)); } else { *(_OWORD *)__p = *(_OWORD *)(v16 + 1448); v32 = *(_QWORD *)(v16 + 1464); } v17 = sub_1002F3514(v16); ObjectZOrder = GameObject::getObjectZOrder(v16); v19 = (*(__int64 (__fastcall **)(__int64, void **, __int64, __int64, __int64, _QWORD, __int64))(*(_QWORD *)a1 + 1504LL))( a1, __p, v16 + 1480, v17, ObjectZOrder, 0, 1); v21 = v19; if ( SHIBYTE(v32) < 0 ) { operator delete(__p[0]); if ( v21 ) { LABEL_16: if ( v11 ) { v22 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 192LL))(v16); sub_1000262F4(__p, v22); if ( a4 != 0.0 ) { sub_1000262F4(&v30, (double *)&v33); v23 = v30.f32[1] + (float)((float)(v34.__cosval * (float)(*((float *)__p + 1) - v30.f32[1])) + (float)((float)(*(float *)__p - v30.f32[0]) * v34.__sinval)); *(float *)__p = v30.f32[0] + (float)((float)((float)(*(float *)__p - v30.f32[0]) * v34.__cosval) - (float)((float)(*((float *)__p + 1) - v30.f32[1]) * v34.__sinval)); *((float *)__p + 1) = v23; } sub_10002632C((float32x2_t *)__p, &v33, &v28); sub_100026350(&v28, &v29, v8); sub_100026318(a3, &v29, &v30); v24.n128_f64[0] = sub_10002630C(__p, (double *)&v30); (*(void (__fastcall **)(__int64, void **, __n128))(*(_QWORD *)v21 + 184LL))(v21, __p, v24); } else { (*(void (__fastcall **)(__int64, float32x2_t *, __n128))(*(_QWORD *)v21 + 184LL))(v21, a3, v20); } if ( (*(_BYTE *)(v16 + 809) & 1) != 0 || *(_BYTE *)(v16 + 1768) == 1 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1488LL))(a1, v16); sub_100427364(v16, v21); if ( (*(float (__fastcall **)(__int64))(*(_QWORD *)v21 + 920LL))(v21) < 0.0 ) (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v21 + 928LL))(v21, 0.0); v25 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v16 + 368LL))(v16); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v21 + 360LL))(v21, v25 + a4); v26 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v16 + 136LL))(v16); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v21 + 128LL))(v21, v8 * v26); v27 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v16 + 152LL))(v16); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v21 + 144LL))(v21, v8 * v27); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 344LL))(v16, 1); cocos2d::CCParticleSystem::resumeSystem(v21); } } else if ( v19 ) { goto LABEL_16; } } v14 = (unsigned int)(v14 + 1); result = sub_1002E757C(Group); } while ( (unsigned int)v14 < (unsigned int)result ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source