// // GJBaseGameLayer::processAreaTransformGroupAction from 0x59e528 to 0x59e82e (774 bytes) // // 1 xrefs: // > GJBaseGameLayer::processAreaEffects @ 0x5acfcc // // 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 // int __fastcall GJBaseGameLayer::processAreaTransformGroupAction( int a1, int a2, int a3, cocos2d::CCPoint *a4, int a5, int a6, int a7, int a8, int a9, char a10, bool a11) { const cocos2d::CCPoint *v14; // r0 int *v15; // r3 int v17; // r6 int *v18; // r8 int *v19; // r2 int v20; // r6 int v21; // r4 int v22; // t1 int v24; // r3 int v25; // r3 int v26; // r0 float v27; // s15 int v28; // r3 float v29; // s17 float v30; // s16 float EasedAreaValue; // r0 float v32; // s17 float v33; // s16 float v34; // s13 float v35; // s14 float v36; // s15 float v37; // s16 float v38; // s12 cocos2d::CCArray *TargetGroup; // [sp+8h] [bp-3Ch] int v40; // [sp+10h] [bp-34h] int v41; // [sp+14h] [bp-30h] unsigned int v42; // [sp+18h] [bp-2Ch] int v43; // [sp+1Ch] [bp-28h] GameObject *TargetGroupOrigin; // [sp+2Ch] [bp-18h] bool v46; // [sp+33h] [bp-11h] BYREF _BYTE v47[8]; // [sp+34h] [bp-10h] BYREF v40 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 2436) + 68))(*(_DWORD *)(a1 + 2436)); v41 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 2436) + 76))(*(_DWORD *)(a1 + 2436)); v14 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 2436) + 96))(*(_DWORD *)(a1 + 2436)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, v14); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 2436) + 80))(*(_DWORD *)(a1 + 2436), 1065353216); (*(void (__fastcall **)(_DWORD, void *))(**(_DWORD **)(a1 + 2436) + 92))(*(_DWORD *)(a1 + 2436), &unk_D2C400); *(_DWORD *)(a1 + 11476) += cocos2d::CCArray::count((cocos2d::CCArray *)a2); if ( a2 && (v15 = *(int **)(a2 + 52), (a2 = *v15) != 0) ) { v17 = a2 + 0x3FFFFFFF; a2 = 0; v18 = (int *)v15[3]; v19 = &v18[v17]; v20 = 0; v42 = (unsigned int)v19; while ( (unsigned int)v18 <= v42 ) { v22 = *v18++; v21 = v22; if ( !v22 ) break; if ( *(_BYTE *)(v21 + 657) || (v24 = *(_DWORD *)(v21 + 528), v24 <= a6) && v24 >= a5 && (v25 = *(_DWORD *)(v21 + 532), v25 <= a8) && v25 >= a7 ) { v26 = GJBaseGameLayer::resetAreaObjectValues((GJBaseGameLayer *)a1, (GameObject *)v21, 1); v46 = 0; v43 = v26; v27 = COERCE_FLOAT( GJBaseGameLayer::getAreaObjectValue( (GJBaseGameLayer *)a1, (EnterEffectInstance *)a3, (GameObject *)v21, a4, &v46)); if ( v27 < 1.0 ) { ++v20; v28 = a1 + 4 * *(__int16 *)(v21 + 868); v29 = *(float *)(a3 + 84) + (float)(*(float *)(a3 + 88) * *(float *)(v28 + 2580)); v30 = *(float *)(a3 + 92) + (float)(*(float *)(a3 + 96) * *(float *)(v28 + 2584)); if ( v29 == 0.0 && v30 == 0.0 ) { v33 = 1.0; v32 = 1.0; } else { EasedAreaValue = GJBaseGameLayer::getEasedAreaValue( (GJBaseGameLayer *)a1, (GameObject *)v21, (EnterEffectInstance *)a3, v27, v46, a9); v32 = (float)((float)(v29 - 1.0) * (float)(1.0 - EasedAreaValue)) + 1.0; v33 = (float)((float)(v30 - 1.0) * (float)(1.0 - EasedAreaValue)) + 1.0; } if ( a10 ) { TargetGroup = (cocos2d::CCArray *)GJBaseGameLayer::getTargetGroup( (cocos2d::CCArray **)a1, *(_DWORD *)(a3 + 180), *(_DWORD *)(v21 + 780)); TargetGroupOrigin = (GameObject *)GJBaseGameLayer::getTargetGroupOrigin( (cocos2d::CCArray **)a1, *(_DWORD *)(a3 + 180), *(_DWORD *)(v21 + 780)); a2 = a2 - 1 + cocos2d::CCArray::count(TargetGroup); if ( *(_BYTE *)(*(_DWORD *)(a3 + 152) + 1829) ) *(_BYTE *)(v21 + 1124) = 1; GJBaseGameLayer::transformAreaObjects((GJBaseGameLayer *)a1, TargetGroupOrigin, TargetGroup, v32, v33, a11); *(_BYTE *)(v21 + 1124) = 0; } else { v34 = *(float *)(v21 + 1008); v35 = *(float *)(v21 + 1012); v36 = v34 * (float)(v32 - 1.0); v37 = v35 * (float)(v33 - 1.0); if ( v36 != 0.0 || v37 != 0.0 ) { v38 = *(float *)(v21 + 592); *(_BYTE *)(v21 + 708) = 1; *(_BYTE *)(v21 + 732) = 1; *(float *)(v21 + 1012) = v35 + v37; *(float *)(v21 + 592) = v38 + v36; *(float *)(v21 + 600) = *(float *)(v21 + 600) + v36; *(float *)(v21 + 1008) = v34 + v36; *(float *)(v21 + 596) = *(float *)(v21 + 596) + v37; *(float *)(v21 + 604) = *(float *)(v21 + 604) + v37; if ( a11 ) (*(void (__fastcall **)(int, int))(*(_DWORD *)v21 + 728))(v21, 1065353216); } } } if ( v43 ) (*(void (__fastcall **)(int, int))(*(_DWORD *)a1 + 684))(a1, v21); } ++a9; } } else { v20 = a2; } *(_DWORD *)(a1 + 11476) += a2; *(_DWORD *)(a1 + 11492) += a2 + v20; (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 2436) + 64))(*(_DWORD *)(a1 + 2436), v40); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 2436) + 72))(*(_DWORD *)(a1 + 2436), v41); return (*(int (__fastcall **)(_DWORD, _BYTE *))(**(_DWORD **)(a1 + 2436) + 92))(*(_DWORD *)(a1 + 2436), v47); }
GD Web Decomp Icon

GD Web Decomp

Raw Source