// // GJBaseGameLayer::addAreaEffect from 0x9c9c4c to 0x9ca530 (2276 bytes) // // 6 xrefs: // > GJBaseGameLayer::triggerAreaEffect @ 0x9ca564 // > GJBaseGameLayer::triggerAreaEffect @ 0x9ca574 // > GJBaseGameLayer::triggerAreaEffect @ 0x9ca580 // > GJBaseGameLayer::triggerAreaEffect @ 0x9ca58c // > GJBaseGameLayer::triggerAreaEffect @ 0x9ca598 // > @ 0xff8f8 // // 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:35 +0000 // __int64 __fastcall GJBaseGameLayer::addAreaEffect( GJBaseGameLayer *this, EnterEffectObject *a2, __int64 *a3, int a4, int a5, int a6, int a7, int a8, char a9) { __int64 v11; // x25 __int64 v13; // x20 __int64 v15; // x0 int v17; // w4 unsigned __int64 v18; // x3 __int64 v19; // x1 unsigned __int64 v20; // x3 __int64 v21; // x0 int *v22; // x0 int v23; // w28 int v24; // w20 int v25; // w5 int v26; // w4 int v27; // w1 unsigned __int64 v28; // x19 unsigned __int64 v29; // x0 int v30; // w27 EnterEffectObject *v31; // x1 unsigned __int64 v32; // x27 char *v33; // x20 unsigned __int64 v34; // x19 unsigned __int64 v35; // x25 __int64 v36; // x21 __int64 v37; // x3 __int64 v38; // x26 __int64 *v39; // x0 unsigned __int64 v40; // x1 unsigned __int64 v41; // x1 float v42; // s2 float v43; // s0 bool v44; // cc __int64 v45; // x27 unsigned __int64 v46; // x1 unsigned __int64 v47; // x21 _QWORD *v48; // x0 __int64 v49; // x28 __int64 v50; // x19 __int64 v51; // x27 _QWORD **v52; // x24 __int64 v53; // x1 __int64 v54; // x0 int v55; // w11 _QWORD *v56; // x1 int v57; // w10 int v58; // w9 int v59; // w8 int v60; // w7 int v61; // w6 int v62; // w5 int v63; // w4 int v64; // w3 int v65; // w18 int v66; // w17 int v67; // w16 int v68; // w15 int v69; // w14 int v70; // w13 int v71; // w2 int v72; // w7 int v73; // w6 int v74; // w5 int v75; // w4 int v76; // w3 int v77; // w2 int v78; // w12 int v79; // w11 int v80; // w10 int v81; // w9 __int64 v82; // x3 int v83; // w2 char v84; // w0 int v85; // w7 int v86; // w6 int v87; // w5 char *v88; // x0 char *v89; // x2 __int64 v90; // x1 __int64 v91; // x0 int v92; // w2 char *v93; // x0 char *v94; // x2 _QWORD **v95; // x19 __int64 v96; // x2 unsigned __int64 v97; // x1 unsigned __int64 v98; // x0 unsigned __int64 v99; // x0 _QWORD *v100; // x19 int v101; // w1 _QWORD *v102; // x0 EnterEffectObject *v103; // x1 _QWORD *v104; // x20 _QWORD *v105; // x19 __int64 v106; // x21 char *v107; // x0 char *v108; // x2 _QWORD **v109; // x19 __int64 v110; // x1 unsigned __int64 v111; // x1 unsigned __int64 v112; // x25 _BOOL8 v113; // x1 int v114; // [xsp+60h] [xbp+60h] int v115; // [xsp+68h] [xbp+68h] int SpecialKey; // [xsp+78h] [xbp+78h] BYREF int v117; // [xsp+7Ch] [xbp+7Ch] BYREF void *v118[2]; // [xsp+80h] [xbp+80h] BYREF _QWORD *v119; // [xsp+90h] [xbp+90h] v11 = *a3; v13 = a3[1]; if ( *a3 == v13 ) { LABEL_10: v17 = *((_DWORD *)a2 + 498); if ( v17 > 0 ) { v18 = 0xEEEEEEEEEEEEEEEFLL * ((v13 - v11) >> 4); if ( v18 ) { if ( v17 == *(_DWORD *)(*(_QWORD *)(v11 + 168) + 1992LL) ) { LABEL_48: v49 = v11 + 240; v50 = v11 + 240; if ( v13 != v11 + 240 ) { v51 = v11 + 8; while ( 1 ) { v52 = *(_QWORD ***)(v50 - 232); if ( v52 ) { std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( v11, *v52); std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( v11, v52[1]); operator delete(v52); } v53 = *(_QWORD *)(v50 + 8); v54 = *(_QWORD *)(v50 + 16); *(_QWORD *)(v50 - 240) = *(_QWORD *)v50; *(_QWORD *)(v50 - 232) = v53; *(_QWORD *)(v50 - 224) = v54; if ( v54 ) { *(_QWORD *)(v53 + 16) = v51; *(_QWORD *)(v50 + 8) = 0; *(_QWORD *)v50 = v50 + 8; *(_QWORD *)(v50 + 16) = 0; } else { *(_QWORD *)(v50 - 240) = v51; } v55 = *(_DWORD *)(v50 + 52); v56 = (_QWORD *)(v50 - 104); v57 = *(_DWORD *)(v50 + 56); v58 = *(_DWORD *)(v50 + 60); v59 = *(_DWORD *)(v50 + 64); v60 = *(_DWORD *)(v50 + 68); v61 = *(_DWORD *)(v50 + 72); v62 = *(_DWORD *)(v50 + 76); v63 = *(_DWORD *)(v50 + 80); v64 = *(_DWORD *)(v50 + 84); v65 = *(_DWORD *)(v50 + 24); v66 = *(_DWORD *)(v50 + 28); v67 = *(_DWORD *)(v50 + 32); v68 = *(_DWORD *)(v50 + 36); v69 = *(_DWORD *)(v50 + 40); v70 = *(_DWORD *)(v50 + 44); v71 = *(_DWORD *)(v50 + 88); *(_DWORD *)(v50 - 192) = *(_DWORD *)(v50 + 48); *(_DWORD *)(v50 - 188) = v55; *(_DWORD *)(v50 - 184) = v57; *(_DWORD *)(v50 - 180) = v58; *(_DWORD *)(v50 - 176) = v59; *(_DWORD *)(v50 - 172) = v60; *(_DWORD *)(v50 - 168) = v61; *(_DWORD *)(v50 - 164) = v62; *(_DWORD *)(v50 - 160) = v63; *(_DWORD *)(v50 - 156) = v64; *(_DWORD *)(v50 - 216) = v65; *(_DWORD *)(v50 - 212) = v66; *(_DWORD *)(v50 - 208) = v67; *(_DWORD *)(v50 - 204) = v68; *(_DWORD *)(v50 - 200) = v69; *(_DWORD *)(v50 - 196) = v70; *(_DWORD *)(v50 - 152) = v71; v72 = *(_DWORD *)(v50 + 112); v73 = *(_DWORD *)(v50 + 116); v74 = *(_DWORD *)(v50 + 120); v75 = *(_DWORD *)(v50 + 124); v76 = *(_DWORD *)(v50 + 128); v77 = *(_DWORD *)(v50 + 132); v78 = *(_DWORD *)(v50 + 92); v79 = *(_DWORD *)(v50 + 96); v80 = *(_DWORD *)(v50 + 100); v81 = *(_DWORD *)(v50 + 104); *(_DWORD *)(v50 - 132) = *(_DWORD *)(v50 + 108); *(_DWORD *)(v50 - 128) = v72; *(_DWORD *)(v50 - 124) = v73; *(_DWORD *)(v50 - 120) = v74; *(_DWORD *)(v50 - 116) = v75; *(_DWORD *)(v50 - 148) = v78; *(_DWORD *)(v50 - 144) = v79; *(_DWORD *)(v50 - 140) = v80; *(_DWORD *)(v50 - 136) = v81; *(_DWORD *)(v50 - 112) = v76; *(_DWORD *)(v50 - 108) = v77; v82 = *(_QWORD *)(v50 + 144); *v56 = *(_QWORD *)(v50 + 136); v56[1] = v82; LODWORD(v82) = *(_DWORD *)(v50 + 152); v83 = *(_DWORD *)(v50 + 156); *(_QWORD *)(v50 - 72) = *(_QWORD *)(v50 + 168); LODWORD(v56) = *(_DWORD *)(v50 + 160); v84 = *(_BYTE *)(v50 + 176); *(_DWORD *)(v50 - 88) = v82; *(_DWORD *)(v50 - 84) = v83; *(_DWORD *)(v50 - 80) = (_DWORD)v56; *(_BYTE *)(v50 - 64) = v84; v85 = *(_DWORD *)(v50 + 184); v86 = *(_DWORD *)(v50 + 188); v87 = *(_DWORD *)(v50 + 192); LOBYTE(v75) = *(_BYTE *)(v50 + 196); LOBYTE(v82) = *(_BYTE *)(v50 + 197); LOBYTE(v83) = *(_BYTE *)(v50 + 198); LODWORD(v56) = *(_DWORD *)(v50 + 200); v88 = *(char **)(v50 - 32); *(_DWORD *)(v50 - 60) = *(_DWORD *)(v50 + 180); *(_DWORD *)(v50 - 56) = v85; *(_DWORD *)(v50 - 52) = v86; *(_DWORD *)(v50 - 48) = v87; *(_BYTE *)(v50 - 44) = v75; *(_BYTE *)(v50 - 43) = v82; *(_BYTE *)(v50 - 42) = v83; *(_DWORD *)(v50 - 40) = (_DWORD)v56; if ( v88 ) { v89 = *(char **)(v50 - 24); if ( v88 != v89 ) *(_QWORD *)(v50 - 24) = &v89[4 * ~((unsigned __int64)(v89 - 4 - v88) >> 2)]; operator delete(v88); } v90 = *(_QWORD *)(v50 + 208); v11 = v49; v91 = *(_QWORD *)(v50 + 216); v51 += 240; v92 = *(_DWORD *)(v50 + 232); *(_QWORD *)(v50 - 16) = *(_QWORD *)(v50 + 224); *(_QWORD *)(v50 + 224) = 0; *(_QWORD *)(v50 + 216) = 0; *(_QWORD *)(v50 + 208) = 0; *(_DWORD *)(v50 - 8) = v92; *(_QWORD *)(v50 - 32) = v90; *(_QWORD *)(v50 - 24) = v91; v50 += 240; if ( v13 == v50 ) break; v49 += 240; } v13 = a3[1]; } for ( ; v13 != v11; v13 = a3[1] ) { a3[1] = v13 - 240; v93 = *(char **)(v13 - 32); if ( v93 ) { v94 = *(char **)(v13 - 24); if ( v93 != v94 ) *(_QWORD *)(v13 - 24) = &v94[4 * ~((unsigned __int64)(v94 - 4 - v93) >> 2)]; operator delete(v93); } v95 = *(_QWORD ***)(v13 - 232); if ( v95 ) { std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( v13 - 240, *v95); std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( v13 - 240, v95[1]); operator delete(v95); } } } else { v19 = v11 + 240; v20 = v18 - 1; v21 = 0; while ( v21 != v20 ) { v11 = v19; ++v21; v19 += 240; if ( v17 == *(_DWORD *)(*(_QWORD *)(v11 + 168) + 1992LL) ) goto LABEL_48; } } } } SpecialKey = GJBaseGameLayer::getSpecialKey( this, *((_DWORD *)a2 + 366), *((_BYTE *)a2 + 1832), *((_BYTE *)a2 + 1833)); if ( std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::find( (_QWORD *)this + 480, &SpecialKey) ) { v22 = (int *)std::unordered_map>::operator[]((__int64)this + 3840, &SpecialKey); v23 = *v22; v24 = v22[1]; } else { v24 = 0; v23 = 0; } v25 = *((_DWORD *)a2 + 366); v26 = *((_DWORD *)a2 + 367); v27 = *((_DWORD *)this + 242) + 1; *((_DWORD *)this + 242) = v27; v28 = a3[1]; v29 = a3[2]; v30 = *((_DWORD *)a2 + 418); if ( v28 >= v29 ) { v96 = 0xEEEEEEEEEEEEEEEFLL * ((__int64)(v28 - *a3) >> 4); v97 = v96 + 1; if ( (unsigned __int64)(v96 + 1) > 0x111111111111111LL ) sub_62D87C(); v98 = 0xEEEEEEEEEEEEEEEFLL * ((__int64)(v29 - *a3) >> 4); if ( v98 > 0x88888888888887LL ) { v97 = 0x111111111111111LL; } else { v99 = 2 * v98; if ( v99 >= v97 ) v97 = v99; } v114 = v26; v115 = v25; std::__split_buffer::__split_buffer((__int64 *)v118, v97, v96, (__int64)(a3 + 2)); v100 = v119; v101 = *((_DWORD *)this + 242); if ( v119 ) { v102 = v119 + 26; v119[1] = 0; v100[2] = 0; *((_BYTE *)v100 + 176) = 0; *v100 = v100 + 1; *((_DWORD *)v100 + 48) = 0; *((_BYTE *)v100 + 196) = 0; *((_BYTE *)v100 + 197) = 0; *((_BYTE *)v100 + 198) = 0; v100[26] = 0; v100[27] = 0; v100[28] = 0; v100[21] = a2; *((_DWORD *)v100 + 45) = v115; *((_DWORD *)v100 + 46) = v114; *((_DWORD *)v100 + 47) = v101; *((_DWORD *)v100 + 50) = v23; *((_DWORD *)v100 + 58) = v30; if ( v24 <= 0 ) { v103 = a2; } else { std::vector::resize(v102, v24); v103 = (EnterEffectObject *)v100[21]; } EnterEffectInstance::loadValuesFromObject((EnterEffectInstance *)v100, v103); v100 = v119; } v119 = v100 + 30; std::vector::__swap_out_circular_buffer(a3, v118); v104 = v118[1]; while ( 1 ) { v105 = v119; if ( v104 == v119 ) break; while ( 1 ) { v106 = (__int64)(v105 - 30); v119 = v105 - 30; v107 = (char *)*(v105 - 4); if ( v107 ) { v108 = (char *)*(v105 - 3); if ( v107 != v108 ) *(v105 - 3) = &v108[4 * ~((unsigned __int64)(v108 - 4 - v107) >> 2)]; operator delete(v107); } v109 = (_QWORD **)*(v105 - 29); if ( !v109 ) break; std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( v106, *v109); std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( v106, v109[1]); operator delete(v109); v105 = v119; if ( v104 == v119 ) goto LABEL_87; } } LABEL_87: if ( v118[0] ) { operator delete(v118[0]); v32 = *((_QWORD *)this + 201); v117 = a4; v33 = (char *)this + 1600; v34 = a4; if ( v32 ) goto LABEL_25; goto LABEL_89; } } else { if ( v28 ) { *(_QWORD *)(v28 + 8) = 0; *(_QWORD *)(v28 + 16) = 0; *(_BYTE *)(v28 + 176) = 0; *(_QWORD *)v28 = v28 + 8; *(_DWORD *)(v28 + 192) = 0; *(_BYTE *)(v28 + 196) = 0; *(_BYTE *)(v28 + 197) = 0; *(_BYTE *)(v28 + 198) = 0; *(_QWORD *)(v28 + 208) = 0; *(_QWORD *)(v28 + 216) = 0; *(_QWORD *)(v28 + 224) = 0; *(_QWORD *)(v28 + 168) = a2; *(_DWORD *)(v28 + 180) = v25; *(_DWORD *)(v28 + 184) = v26; *(_DWORD *)(v28 + 188) = v27; *(_DWORD *)(v28 + 200) = v23; *(_DWORD *)(v28 + 232) = v30; if ( v24 <= 0 ) { v31 = a2; } else { std::vector::resize((_QWORD *)(v28 + 208), v24); v31 = *(EnterEffectObject **)(v28 + 168); } EnterEffectInstance::loadValuesFromObject((EnterEffectInstance *)v28, v31); v28 = a3[1]; } a3[1] = v28 + 240; } v32 = *((_QWORD *)this + 201); v33 = (char *)this + 1600; v117 = a4; v34 = a4; if ( v32 ) { LABEL_25: v35 = v32 - 1; v36 = (v32 - 1) & v32; v37 = (v32 - 1) & v34; if ( v36 ) v37 = v34 % v32; v38 = 8 * v37; v39 = *(__int64 **)(*((_QWORD *)this + 200) + 8 * v37); if ( v39 ) { while ( 1 ) { v39 = (__int64 *)*v39; if ( !v39 ) break; v40 = v39[1]; v41 = v36 ? v40 % v32 : v35 & v40; if ( v37 != v41 ) break; if ( a4 == *((_DWORD *)v39 + 4) ) return _stack_chk_guard; } } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (__int64)v33, v34, &v117, (__int64)v118); v42 = *((float *)this + 408); v43 = (float)(unsigned __int64)(*((_QWORD *)this + 203) + 1LL); if ( v43 <= (float)((float)v32 * v42) ) goto LABEL_40; v44 = v32 > 2; v45 = 2 * v32; v113 = !v44 || v36 != 0; LABEL_36: v46 = v113 + v45; v47 = vcvtps_u32_f32(v43 / v42); if ( v47 >= v46 ) v46 = v47; std::__hash_table,std::equal_to,std::allocator>::rehash((unsigned __int64)v33, v46); v32 = *((_QWORD *)this + 201); v35 = v32 - 1; if ( ((v32 - 1) & v32) != 0 ) v38 = 8 * (v34 % v32); else v38 = 8 * (v35 & v34); LABEL_40: v48 = *(_QWORD **)(*((_QWORD *)this + 200) + v38); if ( v48 ) { *(_QWORD *)v118[0] = *v48; *v48 = v118[0]; } else { *(_QWORD *)v118[0] = *((_QWORD *)this + 202); v110 = *((_QWORD *)this + 200); *((void **)this + 202) = v118[0]; *(_QWORD *)(v110 + v38) = (char *)this + 1616; if ( *(_QWORD *)v118[0] ) { v111 = *(_QWORD *)(*(_QWORD *)v118[0] + 8LL); if ( (v35 & v32) != 0 ) v112 = v111 % v32; else v112 = v35 & v111; *(void **)(*((_QWORD *)this + 200) + 8 * v112) = v118[0]; } } ++*((_QWORD *)this + 203); return _stack_chk_guard; } LABEL_89: v45 = 0; std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (__int64)v33, v34, &v117, (__int64)v118); v113 = 1; v42 = *((float *)this + 408); v43 = (float)(unsigned __int64)(*((_QWORD *)this + 203) + 1LL); goto LABEL_36; } v15 = *a3; while ( *(EnterEffectObject **)(v15 + 168) != a2 || *(_DWORD *)(v15 + 180) != *((_DWORD *)a2 + 366) || *(_DWORD *)(v15 + 184) != *((_DWORD *)a2 + 367) || *(_DWORD *)(v15 + 232) != *((_DWORD *)a2 + 418) ) { v15 += 240; if ( v13 == v15 ) goto LABEL_10; } EnterEffectInstance::loadValuesFromObject((EnterEffectInstance *)v15, a2); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source