// // GJBaseGameLayer::processAreaFadeGroupAction from 0x100120de0 to 0x10012102d (589 bytes) // // 2 xrefs: // > GJBaseGameLayer::processAreaEffects @ 0x10011f797 // > GJBaseGameLayer::processAreaEffects @ 0x10011f94e // // This function is hookable on this platform (idp: pc, 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:24:38 +0000 // __int64 __fastcall GJBaseGameLayer::processAreaFadeGroupAction(__int64 a1, __int64 a2, __int64 a3, __int64 a4, char a5) { unsigned int *v6; // rax int v7; // r14d __int64 *v8; // r15 unsigned __int64 v9; // rax __int64 v10; // r13 __int64 v11; // rax __int64 v12; // r12 unsigned int *v13; // rax _QWORD *v14; // r12 unsigned __int64 v15; // r13 __int64 v17; // r13 float v18; // xmm1_4 int v19; // [rsp+8h] [rbp-68h] unsigned __int64 v22; // [rsp+20h] [rbp-50h] float AreaObjectValue; // [rsp+2Ch] [rbp-44h] __int64 v24; // [rsp+30h] [rbp-40h] float v25; // [rsp+3Ch] [rbp-34h] float v26; // [rsp+40h] [rbp-30h] float v27; // [rsp+40h] [rbp-30h] _BYTE v28[41]; // [rsp+47h] [rbp-29h] BYREF v26 = *(float *)(a3 + 128); v25 = *(float *)(a3 + 132); *(_DWORD *)(a1 + 13720) += sub_1007FEF90(a2); v24 = 0; if ( a2 ) { v6 = *(unsigned int **)(a2 + 56); v7 = 0; if ( *v6 ) { v27 = v26 - v25; v8 = *((__int64 **)v6 + 2); v9 = (unsigned __int64)&v8[*v6 - 1]; v22 = v9; if ( a5 ) { v7 = 0; v24 = 0; do { v10 = *v8; if ( !*v8 ) break; if ( *(_BYTE *)(v10 + 773) == 1 ) { v28[0] = 0; AreaObjectValue = GJBaseGameLayer::getAreaObjectValue(a1, a3, v10, a4, v28); v11 = sub_1007FEFE0(*(_QWORD *)(a1 + 3832), (unsigned int)(*(_DWORD *)(a3 + 200) + 1)); v12 = cocos2d::CCDictionary::objectForKey_1(v11); v19 = sub_1007FEF90(v12); if ( v12 ) { v13 = *(unsigned int **)(v12 + 56); if ( *v13 ) { v14 = *((_QWORD **)v13 + 2); v15 = (unsigned __int64)&v14[*v13 - 1]; do { if ( !*v14 ) break; GameObject::setAreaOpacity(*v14++, *(unsigned int *)(a1 + 944), (float)(AreaObjectValue * v27) + v25); } while ( (unsigned __int64)v14 <= v15 ); } } ++v7; v24 = (unsigned int)(v19 + v24 - 1); v9 = v22; } ++v8; } while ( (unsigned __int64)v8 <= v9 ); } else { v24 = 0; v7 = 0; do { v17 = *v8; if ( !*v8 ) break; if ( *(_BYTE *)(v17 + 773) == 1 ) { ++v7; v28[0] = 0; v18 = GJBaseGameLayer::getAreaObjectValue(a1, a3, v17, a4, v28); GameObject::setAreaOpacity(v17, *(unsigned int *)(a1 + 944), (float)(v27 * v18) + v25); v9 = v22; } ++v8; } while ( (unsigned __int64)v8 <= v9 ); } } } else { v7 = 0; } *(_DWORD *)(a1 + 13720) += v24; *(_DWORD *)(a1 + 13736) += v24 + v7; return v24; }
GD Web Decomp Icon

GD Web Decomp

Raw Source