// // WorldSelectLayer::getColorValue from 0xaa61d4 to 0xaa62dc (264 bytes) // // 2 xrefs: // > WorldSelectLayer::scrollLayerMoved @ 0xaa638c // > @ 0xfd690 // // This function is hookable on this platform (idp: arm, 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 13:00:51 +0000 // unsigned __int64 __fastcall WorldSelectLayer::getColorValue(WorldSelectLayer *this, int a2, int a3, float a4) { float v5; // s8 unsigned __int64 v6; // x0 unsigned __int64 v7; // x0 __int16 v10; // [xsp+38h] [xbp+38h] unsigned __int8 v11; // [xsp+3Ah] [xbp+3Ah] v5 = (float)(a4 / 0.66667) - 0.2; if ( v5 < 1.0 ) { if ( v5 <= 0.0 ) v5 = 0.0; } else { v5 = 1.0; } v6 = WorldSelectLayer::colorForPage(this, a2); v10 = v6; v11 = BYTE2(v6); v7 = WorldSelectLayer::colorForPage(this, a3); return (unsigned __int8)(unsigned int)(float)((float)(v5 * (float)(unsigned __int8)v7) + (float)((float)(unsigned __int8)v10 * (float)(1.0 - v5))) | (unsigned __int64)(unsigned __int16)((unsigned __int8)(unsigned int)(float)((float)(v5 * (float)BYTE1(v7)) + (float)((float)HIBYTE(v10) * (float)(1.0 - v5))) << 8) | ((unsigned __int64)(unsigned __int8)(unsigned int)(float)((float)(v5 * (float)BYTE2(v7)) + (float)((float)v11 * (float)(1.0 - v5))) << 16); }
GD Web Decomp Icon

GD Web Decomp

Raw Source