// // LevelSelectLayer::getColorValue from 0x8c3fe4 to 0x8c410c (296 bytes) // // 2 xrefs: // > LevelSelectLayer::scrollLayerMoved @ 0x8c4250 // > @ 0x9ea28 // // 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 12:56:32 +0000 // unsigned __int64 __fastcall LevelSelectLayer::getColorValue(LevelSelectLayer *this, int a2, int a3, float a4) { float v5; // s8 unsigned __int64 v6; // x0 unsigned __int64 v7; // x0 float v8; // s7 __int16 v11; // [xsp+38h] [xbp+38h] unsigned __int8 v12; // [xsp+3Ah] [xbp+3Ah] __int16 v13; // [xsp+40h] [xbp+40h] unsigned __int8 v14; // [xsp+42h] [xbp+42h] v5 = (float)(a4 / 0.66667) - 0.2; if ( v5 < 1.0 ) { if ( v5 <= 0.0 ) v5 = 0.0; } else { v5 = 1.0; } v6 = LevelSelectLayer::colorForPage(this, a2); v11 = v6; v12 = BYTE2(v6); v7 = LevelSelectLayer::colorForPage(this, a3); v13 = v7; v14 = BYTE2(v7); v8 = modifyValue(v5); return (unsigned __int8)(unsigned int)(float)((float)((float)(unsigned __int8)v13 * v8) + (float)((float)(unsigned __int8)v11 * (float)(1.0 - v8))) | (unsigned __int64)(unsigned __int16)((unsigned __int8)(unsigned int)(float)((float)((float)HIBYTE(v13) * v8) + (float)((float)HIBYTE(v11) * (float)(1.0 - v8))) << 8) | ((unsigned __int64)(unsigned __int8)(unsigned int)(float)((float)((float)v14 * v8) + (float)((float)v12 * (float)(1.0 - v8))) << 16); }
GD Web Decomp Icon

GD Web Decomp

Raw Source