// // GJBaseGameLayer::processAreaMoveGroupAction from 0x59ece0 to 0x59f0a8 (968 bytes) // // 1 xrefs: // > GJBaseGameLayer::processAreaEffects @ 0x5ad028 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:53:15 +0000 // float __fastcall GJBaseGameLayer::processAreaMoveGroupAction( float *a1, cocos2d::CCArray *a2, int a3, cocos2d::CCPoint *a4, int a5, int a6, int a7, int a8, int a9, char a10) { int v12; // r11 cocos2d::CCArray *v13; // r4 float v14; // s19 float result; // r0 cocos2d::CCArray **v16; // r3 GameObject **v17; // r9 char *v18; // r3 cocos2d::CCArray *v19; // r10 GameObject *v20; // r5 int v21; // r3 int v22; // r3 int v23; // r0 int v24; // r3 float *v25; // r3 float v26; // s18 float v27; // s17 float v28; // s16 float v29; // s18 float v30; // s16 float v31; // s15 bool v32; // zf float v33; // s17 float EasedAreaValue; // s21 float Length; // r0 _BYTE *v36; // r1 cocos2d::CCArray *TargetGroup; // r8 int *v38; // r2 int v39; // r3 GameObject **v40; // r2 unsigned int v41; // r8 GameObject **v42; // r12 GameObject *v43; // r1 GameObject *v44; // t1 int v45; // [sp+Ch] [bp-48h] GameObject **v47; // [sp+14h] [bp-40h] int v48; // [sp+18h] [bp-3Ch] int v49; // [sp+1Ch] [bp-38h] GameObject **v50; // [sp+28h] [bp-2Ch] bool v51; // [sp+33h] [bp-21h] BYREF float v52; // [sp+34h] [bp-20h] BYREF float v53; // [sp+38h] [bp-1Ch] _BYTE v54[8]; // [sp+3Ch] [bp-18h] BYREF _BYTE v55[8]; // [sp+44h] [bp-10h] BYREF v12 = *(_DWORD *)(a3 + 152); v13 = a2; v14 = *(float *)(v12 + 1724); if ( v14 <= 0.0 ) v14 = 0.0; LODWORD(result) = cocos2d::CCArray::count(a2) + *((_DWORD *)a1 + 2868); a1[2868] = result; if ( v13 ) { v16 = *((cocos2d::CCArray ***)v13 + 13); v13 = *v16; if ( *v16 ) { v17 = (GameObject **)v16[3]; v18 = (char *)v13 + 0x3FFFFFFF; v13 = nullptr; v47 = &v17[(_DWORD)v18]; v19 = nullptr; v45 = a9; v49 = 4 * a9 - (_DWORD)v17; while ( 1 ) { if ( v17 > v47 ) goto LABEL_10; v20 = *v17; if ( !*v17 ) goto LABEL_10; if ( *((_BYTE *)v20 + 657) ) break; v21 = *((_DWORD *)v20 + 132); if ( v21 <= a6 && v21 >= a5 ) { v22 = *((_DWORD *)v20 + 133); if ( v22 <= a8 && v22 >= a7 ) break; } LABEL_26: ++v17; ++v45; } v23 = GJBaseGameLayer::resetAreaObjectValues((GJBaseGameLayer *)a1, *v17, 1); v51 = 0; v48 = v23; result = COERCE_FLOAT(GJBaseGameLayer::getAreaObjectValue((GJBaseGameLayer *)a1, (EnterEffectInstance *)a3, v20, a4, &v51)); if ( result >= 1.0 ) { if ( *(_BYTE *)(v12 + 1781) ) *(GameObject **)((char *)v17 + v49 + *(_DWORD *)(a3 + 184)) = nullptr; goto LABEL_23; } v24 = *(unsigned __int8 *)(*(_DWORD *)(a3 + 152) + 1780); if ( *(_BYTE *)(*(_DWORD *)(a3 + 152) + 1780) ) { v25 = &a1[*((__int16 *)v20 + 434)]; v26 = *(float *)(a3 + 64) + (float)(*(float *)(a3 + 68) * v25[641]); v27 = *(float *)(a3 + 72) + (float)(*(float *)(a3 + 76) * v25[642]); if ( v26 != 0.0 || v27 != 0.0 ) { v28 = 1.0 - GJBaseGameLayer::getEasedAreaValue( (GJBaseGameLayer *)a1, v20, (EnterEffectInstance *)a3, result, v51, v45); v29 = v26 * v28; LABEL_20: v30 = v27 * v28; goto LABEL_21; } LABEL_45: v30 = 0.0; v29 = 0.0; LABEL_21: if ( a10 ) { TargetGroup = (cocos2d::CCArray *)GJBaseGameLayer::getTargetGroup( (cocos2d::CCArray **)a1, *(_DWORD *)(a3 + 180), *((_DWORD *)v20 + 195)); result = COERCE_FLOAT(cocos2d::CCArray::count(TargetGroup)); v13 = (cocos2d::CCArray *)((char *)v13 + LODWORD(result) - 1); if ( *(_BYTE *)(*(_DWORD *)(a3 + 152) + 1829) ) *((_BYTE *)v20 + 1124) = 1; if ( TargetGroup ) { v38 = *((int **)TargetGroup + 13); v39 = *v38; if ( *v38 ) { v40 = (GameObject **)v38[3]; v41 = (unsigned int)(&v40[v39] + 0x3FFFFFFF); v42 = v40; while ( (unsigned int)v42 <= v41 ) { v44 = *v42++; v43 = v44; if ( !v44 ) break; if ( !*((_BYTE *)v43 + 1124) ) { v50 = v42; result = COERCE_FLOAT(GJBaseGameLayer::moveAreaObject((GJBaseGameLayer *)a1, v43, v29, v30)); v42 = v50; } } } } *((_BYTE *)v20 + 1124) = 0; } else { result = COERCE_FLOAT(GJBaseGameLayer::moveAreaObject((GJBaseGameLayer *)a1, v20, v29, v30)); } LABEL_23: if ( v48 ) result = COERCE_FLOAT((*(int (__fastcall **)(float *, GameObject *))(*(_DWORD *)a1 + 684))(a1, v20)); v19 = (cocos2d::CCArray *)((char *)v19 + 1); goto LABEL_26; } v31 = *(float *)(a3 + 52); v32 = v31 == 0.0; if ( v31 == 0.0 ) v31 = 0.0; else v24 = *((__int16 *)v20 + 434); if ( !v32 ) v31 = v31 * a1[v24 + 643]; v33 = *(float *)(a3 + 48) + v31; if ( v33 == 0.0 ) goto LABEL_45; EasedAreaValue = GJBaseGameLayer::getEasedAreaValue( (GJBaseGameLayer *)a1, v20, (EnterEffectInstance *)a3, result, v51, v45); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v52); if ( *(_BYTE *)(v12 + 1720) ) { (*(void (__fastcall **)(_BYTE *, GameObject *))(*(_DWORD *)v20 + 680))(v54, v20); cocos2d::CCPoint::operator-(v55, v54, a4); cocos2d::CCPoint::operator=(&v52, v55); Length = cocos2d::CCPoint::getLength((cocos2d::CCPoint *)&v52); if ( Length < v14 ) v33 = v33 * (float)(Length * (float)(1.0 / v14)); if ( Length <= 0.0 ) goto LABEL_44; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v55, v52 / Length, v53 / Length); v36 = v55; } else if ( *(_BYTE *)(v12 + 1708) ) { v36 = (_BYTE *)(v12 + 1712); } else { cocos2d::ccpForAngle( (cocos2d *)v55, (float)((float)(*(float *)(a3 + 56) + (float)(*(float *)(a3 + 60) * a1[*((__int16 *)v20 + 434) + 644])) - 90.0) * 0.017453); v36 = v55; } cocos2d::CCPoint::operator=(&v52, v36); LABEL_44: v28 = v53; v27 = v33 * (float)(1.0 - EasedAreaValue); v29 = v27 * v52; goto LABEL_20; } } v19 = v13; LABEL_10: *((_DWORD *)a1 + 2868) += v13; *((_DWORD *)a1 + 2872) += (char *)v19 + (_DWORD)v13; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source