// // PlayLayer::updateInvisibleBlock from 0x4018f8 to 0x401af0 (504 bytes) // // 1 xrefs: // > PlayLayer::updateVisibility @ 0x407132 // // 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:47:24 +0000 // int __fastcall PlayLayer::updateInvisibleBlock( int a1, float *a2, float a3, float a4, float a5, float a6, unsigned __int8 *a7) { float v12; // s14 bool v13; // fzf bool v14; // fnf float v15; // s14 float v16; // s15 float RelativeMod; // r0 float v18; // s16 float v19; // s19 bool v20; // cc float v21; // s16 float v22; // s16 float v23; // s16 float v24; // s15 unsigned int v25; // s15 float v26; // s15 bool v27; // cc float v28; // s15 int MixedColor; // r0 int v30; // r3 float v32[2]; // [sp+14h] [bp-8h] BYREF float v33[2]; // [sp+1Ch] [bp+0h] BYREF (*(void (__fastcall **)(float *))(*(_DWORD *)a2 + 680))(v32); v12 = *(float *)(a1 + 10892); v13 = v32[0] == v12; v14 = v32[0] < v12; v15 = a2[178]; if ( v14 || v13 ) v16 = v32[0] + v15; else v16 = v32[0] - v15; v32[0] = v16; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, (const cocos2d::CCPoint *)v32); RelativeMod = PlayLayer::getRelativeMod(a1, v33, 0.02, 0.014286, 0.0); v18 = *(float *)(a1 + 996); v19 = RelativeMod * 255.0; v20 = v32[0] <= (float)(v18 + a3); if ( v32[0] <= (float)(v18 + a3) ) { a5 = a6; v21 = v18 + a4; } else { v21 = v32[0] - v18; } if ( v20 ) v22 = v21 - v32[0]; else v22 = v21 - a3; if ( a5 < 1.0 ) a5 = 1.0; v23 = v22 / a5; if ( v23 >= 1.0 ) { v23 = 1.0; } else if ( v23 <= 0.0 ) { v23 = 0.0; } v24 = (float)((float)(v23 * 0.95) + 0.05) * 255.0; if ( v24 <= v19 ) v25 = (unsigned int)v24; else v25 = (unsigned int)v19; (*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)a2 + 456))(a2, (unsigned __int8)v25); v26 = (float)((float)(v23 * 0.85) + 0.15) * 255.0; v27 = v26 <= v19; if ( v26 > v19 ) LODWORD(v19) = (unsigned int)v19; else LODWORD(v26) = (unsigned int)v26; if ( v27 ) GameObject::setGlowOpacity((GameObject *)a2, LOBYTE(v26)); else GameObject::setGlowOpacity((GameObject *)a2, LOBYTE(v19)); v28 = (float)(*(int (__fastcall **)(float *))(*(_DWORD *)a2 + 448))(a2) / 255.0; if ( v28 <= 0.8 ) return (*(int (__fastcall **)(float *, int))(*(_DWORD *)a2 + 752))(a2, a1 + 10928); MixedColor = GJEffectManager::getMixedColor( *(_DWORD *)(a1 + 10928), *a7 | (a7[1] << 8) | (a7[2] << 16), (float)((float)(1.0 - (float)((float)(v28 - 0.8) / 0.2)) * 0.3) + 0.7); v30 = *(_DWORD *)a2; LOWORD(v33[0]) = MixedColor; BYTE2(v33[0]) = BYTE2(MixedColor); return (*(int (__fastcall **)(float *, float *))(v30 + 752))(a2, v33); }
GD Web Decomp Icon

GD Web Decomp

Raw Source