// // GJBaseGameLayer::controlAreaEffectWithID from 0x9afff8 to 0x9b04c4 (1228 bytes) // // 3 xrefs: // > EffectGameObject::triggerObject @ 0x898584 // > GJBaseGameLayer::controlTriggersWithControlID @ 0x9bafb8 // > @ 0x79480 // // 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:58:14 +0000 // unsigned __int64 *__fastcall GJBaseGameLayer::controlAreaEffectWithID( unsigned __int64 *a1, unsigned __int64 a2, int a3, int a4) { unsigned int v4; // w25 int v5; // w0 unsigned __int64 v6; // kr00_8 unsigned __int64 *v7; // x22 int v8; // w24 unsigned __int64 v9; // x19 unsigned __int64 v10; // x23 __int64 v11; // x2 __int64 v12; // x28 unsigned __int64 *result; // x0 __int64 v14; // x26 __int64 v15; // x20 __int64 v16; // x21 _QWORD **v17; // x27 __int64 v18; // x1 __int64 v19; // x0 int v20; // w11 _QWORD *v21; // x1 int v22; // w10 int v23; // w9 int v24; // w8 int v25; // w7 int v26; // w6 int v27; // w5 int v28; // w4 int v29; // w3 int v30; // w18 int v31; // w17 int v32; // w16 int v33; // w15 int v34; // w14 int v35; // w13 int v36; // w2 int v37; // w7 int v38; // w6 int v39; // w5 int v40; // w4 int v41; // w3 int v42; // w2 int v43; // w12 int v44; // w11 int v45; // w10 int v46; // w9 __int64 v47; // x3 int v48; // w2 char v49; // w0 int v50; // w7 int v51; // w6 int v52; // w5 char *v53; // x0 char *v54; // x2 __int64 v55; // x0 int v56; // w2 __int64 v57; // x20 char *v58; // x0 char *v59; // x2 _QWORD **v60; // x19 unsigned int v62; // [xsp+78h] [xbp+78h] int v64; // [xsp+80h] [xbp+80h] v4 = a3 != -1; v62 = 1; v5 = -1; v64 = a2; LABEL_2: v6 = a2; a2 = 0xEEEEEEEEEEEEEEEFLL; switch ( v5 ) { case 0: v7 = a1 + 188; goto LABEL_4; case 1: v7 = a1 + 191; goto LABEL_4; case 2: v7 = a1 + 194; LABEL_4: if ( v7 ) goto LABEL_5; goto LABEL_11; case 3: result = a1; v7 = a1 + 197; if ( a1 == (unsigned __int64 *)-1576LL ) return result; goto LABEL_5; default: a2 = v6; break; } while ( 1 ) { v7 = a1 + 185; if ( a1 != (unsigned __int64 *)-1480LL ) break; result = (unsigned __int64 *)v62; if ( v62 == 5 ) return result; LABEL_11: v5 = ++v62 - 2; if ( v62 - 2 <= 3 ) goto LABEL_2; } LABEL_5: a2 = *v7; v8 = 0; v9 = v7[1]; v10 = 0; v11 = v9 - *v7; LABEL_6: if ( v10 < 0xEEEEEEEEEEEEEEEFLL * (v11 >> 4) ) { do { v12 = a2 + 240 * v10; if ( v4 ) { if ( *(_DWORD *)(v12 + 232) != a3 ) goto LABEL_9; } else if ( *(_DWORD *)(*(_QWORD *)(v12 + 168) + 1992LL) != v64 ) { goto LABEL_9; } switch ( a4 ) { case 0: v14 = v12 + 240; v15 = v12 + 240; if ( v12 + 240 != v9 ) { v16 = v12 + 8; while ( 1 ) { v17 = *(_QWORD ***)(v15 - 232); if ( v17 ) { std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( v12, *v17); std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( v12, v17[1]); operator delete(v17); } v18 = *(_QWORD *)(v15 + 8); v19 = *(_QWORD *)(v15 + 16); *(_QWORD *)(v15 - 240) = *(_QWORD *)v15; *(_QWORD *)(v15 - 232) = v18; *(_QWORD *)(v15 - 224) = v19; if ( v19 ) { *(_QWORD *)(v18 + 16) = v16; *(_QWORD *)(v15 + 8) = 0; *(_QWORD *)v15 = v15 + 8; *(_QWORD *)(v15 + 16) = 0; } else { *(_QWORD *)(v15 - 240) = v16; } v20 = *(_DWORD *)(v15 + 52); v21 = (_QWORD *)(v15 - 104); v22 = *(_DWORD *)(v15 + 56); v23 = *(_DWORD *)(v15 + 60); v24 = *(_DWORD *)(v15 + 64); v25 = *(_DWORD *)(v15 + 68); v26 = *(_DWORD *)(v15 + 72); v27 = *(_DWORD *)(v15 + 76); v28 = *(_DWORD *)(v15 + 80); v29 = *(_DWORD *)(v15 + 84); v30 = *(_DWORD *)(v15 + 24); v31 = *(_DWORD *)(v15 + 28); v32 = *(_DWORD *)(v15 + 32); v33 = *(_DWORD *)(v15 + 36); v34 = *(_DWORD *)(v15 + 40); v35 = *(_DWORD *)(v15 + 44); v36 = *(_DWORD *)(v15 + 88); *(_DWORD *)(v15 - 192) = *(_DWORD *)(v15 + 48); *(_DWORD *)(v15 - 188) = v20; *(_DWORD *)(v15 - 184) = v22; *(_DWORD *)(v15 - 180) = v23; *(_DWORD *)(v15 - 176) = v24; *(_DWORD *)(v15 - 172) = v25; *(_DWORD *)(v15 - 168) = v26; *(_DWORD *)(v15 - 164) = v27; *(_DWORD *)(v15 - 160) = v28; *(_DWORD *)(v15 - 156) = v29; *(_DWORD *)(v15 - 216) = v30; *(_DWORD *)(v15 - 212) = v31; *(_DWORD *)(v15 - 208) = v32; *(_DWORD *)(v15 - 204) = v33; *(_DWORD *)(v15 - 200) = v34; *(_DWORD *)(v15 - 196) = v35; *(_DWORD *)(v15 - 152) = v36; v37 = *(_DWORD *)(v15 + 112); v38 = *(_DWORD *)(v15 + 116); v39 = *(_DWORD *)(v15 + 120); v40 = *(_DWORD *)(v15 + 124); v41 = *(_DWORD *)(v15 + 128); v42 = *(_DWORD *)(v15 + 132); v43 = *(_DWORD *)(v15 + 92); v44 = *(_DWORD *)(v15 + 96); v45 = *(_DWORD *)(v15 + 100); v46 = *(_DWORD *)(v15 + 104); *(_DWORD *)(v15 - 132) = *(_DWORD *)(v15 + 108); *(_DWORD *)(v15 - 128) = v37; *(_DWORD *)(v15 - 124) = v38; *(_DWORD *)(v15 - 120) = v39; *(_DWORD *)(v15 - 116) = v40; *(_DWORD *)(v15 - 148) = v43; *(_DWORD *)(v15 - 144) = v44; *(_DWORD *)(v15 - 140) = v45; *(_DWORD *)(v15 - 136) = v46; *(_DWORD *)(v15 - 112) = v41; *(_DWORD *)(v15 - 108) = v42; v47 = *(_QWORD *)(v15 + 144); *v21 = *(_QWORD *)(v15 + 136); v21[1] = v47; LODWORD(v47) = *(_DWORD *)(v15 + 152); v48 = *(_DWORD *)(v15 + 156); *(_QWORD *)(v15 - 72) = *(_QWORD *)(v15 + 168); LODWORD(v21) = *(_DWORD *)(v15 + 160); v49 = *(_BYTE *)(v15 + 176); *(_DWORD *)(v15 - 88) = v47; *(_DWORD *)(v15 - 84) = v48; *(_DWORD *)(v15 - 80) = (_DWORD)v21; *(_BYTE *)(v15 - 64) = v49; v50 = *(_DWORD *)(v15 + 184); v51 = *(_DWORD *)(v15 + 188); v52 = *(_DWORD *)(v15 + 192); LOBYTE(v40) = *(_BYTE *)(v15 + 196); LOBYTE(v47) = *(_BYTE *)(v15 + 197); LOBYTE(v48) = *(_BYTE *)(v15 + 198); LODWORD(v21) = *(_DWORD *)(v15 + 200); v53 = *(char **)(v15 - 32); *(_DWORD *)(v15 - 60) = *(_DWORD *)(v15 + 180); *(_DWORD *)(v15 - 56) = v50; *(_DWORD *)(v15 - 52) = v51; *(_DWORD *)(v15 - 48) = v52; *(_BYTE *)(v15 - 44) = v40; *(_BYTE *)(v15 - 43) = v47; *(_BYTE *)(v15 - 42) = v48; *(_DWORD *)(v15 - 40) = (_DWORD)v21; if ( v53 ) { v54 = *(char **)(v15 - 24); if ( v53 != v54 ) *(_QWORD *)(v15 - 24) = &v54[4 * ~((unsigned __int64)(v54 - 4 - v53) >> 2)]; operator delete(v53); } a2 = *(_QWORD *)(v15 + 208); v12 = v14; v55 = *(_QWORD *)(v15 + 216); v16 += 240; v56 = *(_DWORD *)(v15 + 232); *(_QWORD *)(v15 - 16) = *(_QWORD *)(v15 + 224); *(_QWORD *)(v15 + 224) = 0; *(_QWORD *)(v15 + 216) = 0; *(_QWORD *)(v15 + 208) = 0; *(_DWORD *)(v15 - 8) = v56; *(_QWORD *)(v15 - 32) = a2; *(_QWORD *)(v15 - 24) = v55; v15 += 240; if ( v15 == v9 ) break; v14 += 240; } v9 = v7[1]; } for ( ; v9 != v12; v9 = v7[1] ) { v57 = v9 - 240; v7[1] = v9 - 240; v58 = *(char **)(v9 - 32); if ( v58 ) { v59 = *(char **)(v9 - 24); if ( v58 != v59 ) *(_QWORD *)(v9 - 24) = &v59[4 * ~((unsigned __int64)(v59 - 4 - v58) >> 2)]; operator delete(v58); } v60 = *(_QWORD ***)(v9 - 232); if ( v60 ) { std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( v57, *v60); std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( v57, v60[1]); operator delete(v60); } } if ( (v64 > 0) > v4 ) goto LABEL_10; a2 = *v7; v9 = v7[1]; v11 = v9 - *v7; goto LABEL_6; case 1: *(_BYTE *)(v12 + 196) = 1; *(_BYTE *)(v12 + 197) = 1; break; case 2: *(_BYTE *)(v12 + 196) = 0; *(_BYTE *)(v12 + 197) = 0; break; } if ( (v64 > 0) > v4 ) break; a2 = *v7; v9 = v7[1]; v11 = v9 - *v7; LABEL_9: v10 = ++v8; } while ( v8 < 0xEEEEEEEEEEEEEEEFLL * (v11 >> 4) ); } LABEL_10: result = (unsigned __int64 *)v62; if ( v62 != 5 ) goto LABEL_11; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source