// // LevelEditorLayer::spawnGroupPreview from 0x795c44 to 0x795f38 (756 bytes) // // 3 xrefs: // > LevelEditorLayer::activateTriggerEffect @ 0x795c34 // > LevelEditorLayer::updateGameObjects @ 0x79e81c // > @ 0xcf550 // // 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 12:53:33 +0000 // __int64 __fastcall LevelEditorLayer::spawnGroupPreview( __int64 this, int a2, float a3, float a4, float a5, float a6, float a7, unsigned __int8 a8, unsigned __int8 a9) { int v9; // w21 int v10; // w22 LevelEditorLayer *v12; // x20 __int64 v18; // x2 unsigned __int64 v19; // x23 __int64 v20; // x19 __int64 v21; // x24 unsigned int *v22; // x1 unsigned __int8 **v23; // x19 unsigned __int8 **v24; // x24 unsigned __int8 *v25; // x21 float v26; // s13 int v27; // w23 __int64 (__fastcall *v28)(unsigned __int8 *); // x1 unsigned __int8 v29; // w2 unsigned int *v30; // x1 __int64 *v31; // x21 __int64 *v32; // x23 __int64 v33; // x19 int i; // w24 unsigned __int8 v35; // w2 double v36; // d1 double v37; // d0 float v38; // s0 v9 = a8; v10 = a9; if ( a2 <= 0 ) return this; v12 = (LevelEditorLayer *)this; this = (unsigned __int8)GJEffectManager::isGroupEnabled(*(GJEffectManager **)(this + 2152), a2); if ( !(_BYTE)this ) return this; if ( a4 > a6 ) return this; v18 = *((_QWORD *)v12 + 1833); if ( a4 <= *(float *)(v18 + 4LL * a2) ) return this; *(float *)(v18 + 4LL * a2) = a4; v19 = (unsigned __int64)a2 >> 6; this = (__int64)LevelEditorLayer::getTriggerGroup(v12, a2); v20 = 1LL << (a2 & 0x3F); v21 = this; if ( (v20 & *(_QWORD *)(*((_QWORD *)v12 + 1810) + 8 * v19)) != 0 ) { if ( v9 ) goto LABEL_8; LABEL_25: if ( v21 ) { v30 = *(unsigned int **)(v21 + 56); this = *v30; if ( (_DWORD)this ) { v31 = *((__int64 **)v30 + 2); v32 = &v31[(unsigned int)this - 1]; if ( v31 <= v32 ) { v33 = *v31; for ( i = 0; *v31; v33 = *v31 ) { this = *(unsigned __int8 *)(v33 + 1252); if ( *(_BYTE *)(v33 + 1252) ) { this = *(unsigned __int8 *)(v33 + 1473); if ( *(_BYTE *)(v33 + 1473) ) { this = (__int64)v12; v35 = 0; if ( *(_BYTE *)(v33 + 1664) || !*(_BYTE *)(v33 + 1444) ) { *(_DWORD *)(v33 + 1660) = i++; *(float *)(v33 + 1808) = a4; if ( v10 ) v35 = a4 > *(float *)(*((_QWORD *)v12 + 1786) + 480LL); LevelEditorLayer::activateTriggerEffect(v12, (EffectGameObject *)v33, a5, a6, a7, v35); this = (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v33 + 1488LL))(v33, a3); } } } if ( v32 < ++v31 ) break; } } } } return this; } if ( (unsigned int)cocos2d::CCArray::count((cocos2d::CCArray *)this) > 1 ) qsort( *(void **)(*(_QWORD *)(v21 + 56) + 16LL), **(unsigned int **)(v21 + 56), 8u, (int (*)(const void *, const void *))xCompReal); this = *((_QWORD *)v12 + 1810); *(_QWORD *)(this + 8 * v19) |= v20; if ( !v9 ) goto LABEL_25; LABEL_8: if ( v21 ) { v22 = *(unsigned int **)(v21 + 56); this = *v22; if ( (_DWORD)this ) { v23 = *((unsigned __int8 ***)v22 + 2); v24 = &v23[(unsigned int)this - 1]; if ( v23 <= v24 ) { v25 = *v23; if ( *v23 ) { v26 = 0.0; v27 = 0; while ( 1 ) { this = v25[1252]; if ( v25[1252] ) { this = v25[1473]; if ( v25[1473] ) { if ( v25[1664] || (this = v25[1444]) == 0 ) { v28 = *(__int64 (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v25 + 192LL); if ( v27 ) { this = v28(v25); v36 = (float)((float)(*(float *)this - v26) / 311.58); if ( v36 != 0.0 ) { v37 = v36 + a4; if ( v37 <= a6 ) { v38 = v37; this = LevelEditorLayer::addDelayedSpawn(v12, (EffectGameObject *)v25, v38); } goto LABEL_22; } } else { v26 = *(float *)v28(v25); } *((_DWORD *)v25 + 415) = 0; v29 = 0; *((float *)v25 + 452) = a4; if ( v10 ) v29 = a4 > *(float *)(*((_QWORD *)v12 + 1786) + 480LL); v27 = 1; LevelEditorLayer::activateTriggerEffect(v12, (EffectGameObject *)v25, a5, a6, a7, v29); this = (*(__int64 (__fastcall **)(unsigned __int8 *, float))(*(_QWORD *)v25 + 1488LL))(v25, a3); } } } LABEL_22: if ( v24 >= ++v23 ) { v25 = *v23; if ( *v23 ) continue; } return this; } } } } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source