// // GJBaseGameLayer::processAreaFadeGroupAction from 0x593c44 to 0x593d7c (312 bytes) // // 1 xrefs: // > GJBaseGameLayer::processAreaEffects @ 0x5ad042 // // 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:07 +0000 // int __fastcall GJBaseGameLayer::processAreaFadeGroupAction( int *a1, cocos2d::CCArray *a2, int a3, cocos2d::CCPoint *a4, char a5) { cocos2d::CCArray *v8; // r4 float v9; // s17 float v10; // s19 int result; // r0 cocos2d::CCArray **v12; // r3 int *v13; // r7 char *v14; // r6 cocos2d::CCArray *v15; // r8 int *v16; // r11 int v17; // r6 int v18; // t1 float v19; // r0 float v20; // s16 float v21; // s18 cocos2d::CCArray *TargetGroup; // r6 _DWORD *v23; // r3 int v24; // r6 int *v25; // r3 unsigned int v26; // r6 int *i; // r12 int *v28; // r12 int v29; // t1 int *v30; // [sp+14h] [bp-10h] bool v31; // [sp+1Bh] [bp-9h] BYREF v8 = a2; v9 = *(float *)(a3 + 120); v10 = *(float *)(a3 + 116); result = cocos2d::CCArray::count(a2) + a1[2871]; a1[2871] = result; if ( v8 && (v12 = *((cocos2d::CCArray ***)v8 + 13), (v8 = *v12) != nullptr) ) { v13 = (int *)v12[3]; v14 = (char *)v8 + 0x3FFFFFFF; v8 = nullptr; v15 = nullptr; v16 = &v13[(_DWORD)v14]; while ( v13 <= v16 ) { v18 = *v13++; v17 = v18; if ( !v18 ) break; if ( *(_BYTE *)(v17 + 657) ) { v31 = 0; v15 = (cocos2d::CCArray *)((char *)v15 + 1); v19 = COERCE_FLOAT( GJBaseGameLayer::getAreaObjectValue( (GJBaseGameLayer *)a1, (EnterEffectInstance *)a3, (GameObject *)v17, a4, &v31)); v20 = v19; v21 = v9 + (float)((float)(v10 - v9) * v19); if ( a5 ) { TargetGroup = (cocos2d::CCArray *)GJBaseGameLayer::getTargetGroup( (cocos2d::CCArray **)a1, *(_DWORD *)(a3 + 180), *(_DWORD *)(v17 + 780)); result = cocos2d::CCArray::count(TargetGroup); v8 = (cocos2d::CCArray *)((char *)v8 + result - 1); if ( TargetGroup ) { v23 = *((_DWORD **)TargetGroup + 13); if ( *v23 ) { v24 = *v23 + 0x40000000; v25 = (int *)v23[3]; v26 = (unsigned int)&v25[v24 - 1]; for ( i = v25; (unsigned int)i <= v26; i = v30 ) { v29 = *i; v28 = i + 1; result = v29; if ( !v29 ) break; v30 = v28; result = GameObject::setAreaOpacity(result, v21, v20, a1[202]); } } } } else { result = GameObject::setAreaOpacity(v17, v21, v19, a1[202]); } } } } else { v15 = v8; } a1[2871] += (int)v8; a1[2875] += (int)v15 + (_DWORD)v8; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source