// // sub_10004AF1C from 0x10004af1c to 0x10004afb4 (152 bytes) // // 3 xrefs: // > PlayerObject::updateGlowColor @ 0x1002c9060 // > PlayerObject::updateGlowColor @ 0x1002c9080 // > SimplePlayer::updateColors @ 0x1003a2e28 // // 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 10:57:41 +0000 // __int64 __fastcall sub_10004AF1C(unsigned __int64 a1) { unsigned __int64 v1; // x8 unsigned __int64 v2; // x9 unsigned int v3; // w10 unsigned int v4; // w12 float v5; // s0 v1 = a1 >> 8; v2 = a1 >> 16; v3 = BYTE2(a1); if ( BYTE2(a1) != 255 && (unsigned __int8)a1 != 255 ) { v4 = BYTE1(a1); if ( BYTE1(a1) != 255 ) { if ( BYTE1(a1) < (unsigned int)BYTE2(a1) ) LOBYTE(v1) = BYTE2(a1); if ( (unsigned __int8)a1 >= (unsigned int)(unsigned __int8)v1 ) LOBYTE(v1) = a1; v5 = 255.0 / (float)(unsigned __int8)v1; if ( v5 > 1.5 ) v5 = 1.5; LODWORD(a1) = (int)(float)(v5 * (float)(unsigned __int8)a1); LODWORD(v1) = (int)(float)(v5 * (float)v4); LODWORD(v2) = (int)(float)(v5 * (float)v3); } } return ((unsigned __int8)v1 << 8) | ((_DWORD)v2 << 16) | (unsigned int)(unsigned __int8)a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source