// // GJBaseGameLayer::processAreaEffects from 0x5aca88 to 0x5ad094 (1548 bytes) // // 5 xrefs: // > GJBaseGameLayer::processAreaVisualActions @ 0x5ad0a6 // > GJBaseGameLayer::processAreaVisualActions @ 0x5ad0b6 // > GJBaseGameLayer::processAreaActions @ 0x5ad0fe // > GJBaseGameLayer::processAreaActions @ 0x5ad110 // > GJBaseGameLayer::processAreaActions @ 0x5ad122 // // 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:26 +0000 // _DWORD *__fastcall GJBaseGameLayer::processAreaEffects(int a1, int *a2, unsigned int a3, float a4, bool a5) { int *v5; // r4 _DWORD *result; // r0 int v10; // r0 int v11; // r1 int v12; // r4 int v13; // r8 cocos2d::CCDirector *v14; // r0 int v15; // r6 GameObject *v16; // r6 int v17; // r0 _BYTE *v18; // r9 char *LastPosition; // r2 float v20; // s14 float v21; // r1 float v22; // r2 float v23; // s15 _BYTE *v24; // r1 GameObject *MainObject; // r6 float *v26; // r2 int v27; // r3 float v28; // s13 float v29; // s12 float v30; // s15 float v31; // s15 float v32; // s13 bool v33; // cc float v34; // s13 int v35; // r6 float v36; // s14 bool v37; // cc float v38; // s14 float v39; // s14 float *v40; // r3 float v41; // s13 bool v42; // cc float v43; // s13 int v44; // r5 float v45; // s15 bool v46; // cc float v47; // s15 float v48; // s15 int v49; // r2 float v50; // s14 int v51; // r3 int v52; // r10 int v53; // r3 int v54; // r1 cocos2d::CCObject *Group; // r0 cocos2d::CCArray *v56; // r9 int v57; // [sp+24h] [bp-60h] int v58; // [sp+28h] [bp-5Ch] int v59; // [sp+2Ch] [bp-58h] int v60; // [sp+2Ch] [bp-58h] int v61; // [sp+30h] [bp-54h] char v62; // [sp+30h] [bp-54h] int v63; // [sp+3Ch] [bp-48h] int v64; // [sp+40h] [bp-44h] bool (__fastcall *v66)(int, int); // [sp+50h] [bp-34h] BYREF float v67; // [sp+54h] [bp-30h] BYREF float v68; // [sp+58h] [bp-2Ch] float v69[2]; // [sp+5Ch] [bp-28h] BYREF float v70; // [sp+64h] [bp-20h] BYREF float v71; // [sp+68h] [bp-1Ch] _BYTE v72[8]; // [sp+6Ch] [bp-18h] BYREF unsigned int v73[2]; // [sp+74h] [bp-10h] BYREF v5 = (int *)(a1 + 1220); v73[0] = a3; result = std::__hash_table,std::equal_to,std::allocator>::find( (_DWORD *)(a1 + 1220), v73); if ( result ) { v10 = *a2; v11 = a2[1]; v66 = compEnterEffectSort; std::__sort( v10, v11, (int (__fastcall **)(int, int))&v66); v73[0] = a3; result = (_DWORD *)std::__hash_table,std::equal_to,std::allocator>::__erase_unique( v5, v73); } v12 = *a2; v64 = a2[1]; while ( v12 != v64 ) { if ( *(_BYTE *)(v12 + 176) ) goto LABEL_119; v13 = *(_DWORD *)(v12 + 152); EnterEffectInstance::updateTransitions((EnterEffectInstance *)v12, a4, (GJBaseGameLayer *)a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v67); v14 = (cocos2d::CCDirector *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v69); v15 = *(_DWORD *)(v13 + 1360); if ( !v15 ) v15 = *(_DWORD *)(v12 + 164); if ( v15 < 0 ) { if ( (unsigned int)(v15 + 2) <= 1 ) { if ( v15 == -2 && *(_BYTE *)(a1 + 866) ) v16 = *(GameObject **)(a1 + 2080); else v16 = *(GameObject **)(a1 + 2076); v17 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)v16 + 96))(v16); cocos2d::CCPoint::operator=(&v67, v17); v18 = (_BYTE *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)v16 + 96))(v16); LastPosition = GameObject::getLastPosition(v16); goto LABEL_34; } cocos2d::CCDirector::sharedDirector(v14); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v70); v20 = *(float *)(a1 + 328); v70 = v70 / v20; v71 = v71 / v20; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, (const cocos2d::CCPoint *)&unk_D2C400); switch ( v15 ) { case -11: v21 = v70; goto LABEL_26; case -10: v21 = v70; goto LABEL_24; case -9: v21 = v70; goto LABEL_22; case -8: v21 = v70 * 0.5; goto LABEL_26; case -7: v21 = v70 * 0.5; LABEL_22: v22 = 0.0; goto LABEL_29; case -6: v21 = 0.0; LABEL_26: v22 = v71; goto LABEL_29; case -5: v21 = 0.0; LABEL_24: v23 = 0.5; goto LABEL_28; case -4: v21 = 0.0; v22 = 0.0; goto LABEL_29; default: v23 = 0.5; v21 = v70 * 0.5; LABEL_28: v22 = v71 * v23; LABEL_29: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, v21, v22); cocos2d::CCPoint::operator=(v72, v73); cocos2d::CCPoint::operator+(v73, a1 + 848, v72); cocos2d::CCPoint::operator=(&v67, v73); LastPosition = (char *)(a1 + 996); v24 = (_BYTE *)(a1 + 848); break; } LABEL_30: cocos2d::CCPoint::operator-(v73, v24, LastPosition); cocos2d::CCPoint::operator=(v69, v73); goto LABEL_37; } MainObject = (GameObject *)GJBaseGameLayer::tryGetMainObject((cocos2d::CCDictionary **)a1, v15); if ( MainObject ) { if ( a3 - 3 > 1 && GJBaseGameLayer::resetAreaObjectValues((GJBaseGameLayer *)a1, MainObject, 1) ) (*(void (__fastcall **)(int, GameObject *))(*(_DWORD *)a1 + 684))(a1, MainObject); v18 = v72; (*(void (__fastcall **)(unsigned int *, GameObject *))(*(_DWORD *)MainObject + 680))(v73, MainObject); cocos2d::CCPoint::operator=(&v67, v73); (*(void (__fastcall **)(_BYTE *, GameObject *))(*(_DWORD *)MainObject + 680))(v72, MainObject); LastPosition = GameObject::getLastPosition(MainObject); LABEL_34: v24 = v18; goto LABEL_30; } LABEL_37: v26 = (float *)(a1 + 11424); v27 = (int)(float)((float)((float)(*(float *)(v12 + 12) + *(float *)(v12 + 16)) + *(float *)(v12 + 20)) + *(float *)(v12 + 24)); *(_DWORD *)(v13 + 1868) = v27; v28 = fabsf(*(float *)(v12 + 36)); v29 = fabsf(*(float *)(v12 + 40)); if ( v28 > v29 ) v30 = 1.0 / v29; else v30 = 1.0 / v28; v31 = (float)v27 * v30; v32 = v67 - v31; if ( (float)(v67 - v31) <= 0.0 ) { v35 = 0; } else { v33 = v32 < 10000000.0; if ( v32 < 10000000.0 ) v29 = *v26; else v32 = *v26; if ( v33 ) v34 = v32 * v29; else v34 = v32 * 10000000.0; LODWORD(v32) = (int)v34; v35 = LODWORD(v32); } v36 = v67 + v31; if ( (float)(v67 + v31) <= 0.0 ) { v59 = 0; } else { v37 = v36 < 10000000.0; if ( v36 < 10000000.0 ) v32 = *v26; else v36 = *v26; if ( v37 ) v38 = v36 * v32; else v38 = v36 * 10000000.0; v59 = (int)v38; } v39 = v68; v40 = (float *)(a1 + 11428); v41 = v68 - v31; if ( (float)(v68 - v31) <= 0.0 ) { v44 = 0; } else { v42 = v41 < 10000000.0; if ( v41 < 10000000.0 ) v29 = *v40; else v41 = *v40; if ( v42 ) v43 = v41 * v29; else v43 = v41 * 10000000.0; v44 = (int)v43; } v45 = v68 + v31; if ( v45 <= 0.0 ) { v61 = 0; } else { v46 = v45 < 10000000.0; if ( v45 < 10000000.0 ) v39 = *v40; else v45 = *v40; if ( v46 ) v47 = v45 * v39; else v47 = v45 * 10000000.0; v61 = (int)v47; } v48 = *v26; v49 = *(_DWORD *)(v13 + 1776); v57 = (int)(float)(v48 * 10000000.0); v58 = (int)(float)(*v40 * 10000000.0); if ( v49 != 1 ) { if ( v49 == 2 ) { v35 = *(unsigned __int8 *)(v13 + 1828); if ( *(_BYTE *)(v13 + 1820) ) { if ( !*(_BYTE *)(v13 + 1828) ) goto LABEL_95; goto LABEL_91; } if ( *(_BYTE *)(v13 + 1828) ) { v35 = 0; v58 = v61; goto LABEL_95; } v44 = 0; v58 = v61; LABEL_92: v35 = 0; goto LABEL_95; } if ( !*(_BYTE *)(v13 + 1820) ) { v58 = v61; v57 = v59; goto LABEL_95; } LABEL_91: v44 = 0; goto LABEL_92; } v44 = *(unsigned __int8 *)(v13 + 1828); if ( *(_BYTE *)(v13 + 1820) ) { if ( !*(_BYTE *)(v13 + 1828) ) goto LABEL_95; goto LABEL_91; } if ( !*(_BYTE *)(v13 + 1828) ) { v57 = v59; goto LABEL_92; } v44 = 0; v57 = v59; LABEL_95: if ( v69[0] != 0.0 ) *(_BYTE *)(v13 + 1864) = v69[0] < 0.0; *(_DWORD *)(v12 + 172) += 2; if ( !a3 ) { if ( *(float *)(v12 + 60) == 0.0 ) { *(_BYTE *)(v13 + 1708) = 1; cocos2d::ccpForAngle((cocos2d *)v73, (float)(*(float *)(v12 + 56) - 90.0) * 0.017453); cocos2d::CCPoint::operator=(v13 + 1712, v73); } else { *(_BYTE *)(v13 + 1708) = 0; } } v50 = *(float *)(v12 + 20); if ( *(_DWORD *)(v13 + 1776) ) { *(float *)(v12 + 28) = v50; *(_DWORD *)(v12 + 32) = *(_DWORD *)(v12 + 24); } v51 = *(unsigned __int8 *)(v13 + 1828); v67 = v67 + v50; v68 = v68 + *(float *)(v12 + 28); if ( v51 ) *(float *)(v12 + 36) = -fabsf(*(float *)(v12 + 36)); v52 = 0; v60 = 0; if ( *(int *)(v12 + 180) <= 0 ) v53 = 1; else v53 = 2; v63 = v53; do { v54 = *(_DWORD *)(v12 + 180); if ( v54 <= 0 ) Group = GJBaseGameLayer::getGroup((GJBaseGameLayer *)a1, *(_DWORD *)(v12 + 160)); else Group = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 2392), v54 + v52 - 1); v56 = Group; v62 = v52 & 1; switch ( a3 ) { case 0u: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, (const cocos2d::CCPoint *)&v67); GJBaseGameLayer::processAreaMoveGroupAction( (float *)a1, v56, v12, (cocos2d::CCPoint *)v73, v35, v57, v44, v58, v60, v62); break; case 1u: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, (const cocos2d::CCPoint *)&v67); GJBaseGameLayer::processAreaRotateGroupAction( (float *)a1, v56, v12, (cocos2d::CCPoint *)v73, v35, v57, v44, v58, v60, v62, a5); break; case 2u: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, (const cocos2d::CCPoint *)&v67); GJBaseGameLayer::processAreaTransformGroupAction( a1, (int)v56, v12, (cocos2d::CCPoint *)v73, v35, v57, v44, v58, v60, v62, a5); break; case 3u: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, (const cocos2d::CCPoint *)&v67); GJBaseGameLayer::processAreaFadeGroupAction((int *)a1, v56, v12, (cocos2d::CCPoint *)v73, v62); break; case 4u: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, (const cocos2d::CCPoint *)&v67); GJBaseGameLayer::processAreaTintGroupAction(a1, v56, v12, (cocos2d::CCPoint *)v73, v62); break; default: break; } ++v52; result = (_DWORD *)cocos2d::CCArray::count(v56); v60 += (int)result; } while ( v52 != v63 ); LABEL_119: v12 += 200; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source