// // sub_C564D0 from 0xc564d0 to 0xc56584 (180 bytes) // // 2 xrefs: // > sub_C56154 @ 0xc5636c // > sub_C56154 @ 0xc56374 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall sub_C564D0(__int64 result, __int64 a2, __int64 a3) { __int64 v3; // x19 __int64 v4; // x22 double v7; // d0 v3 = 0; v4 = *(_QWORD *)(result + 16); if ( a3 > 0 ) { do { while ( 1 ) { v7 = LogL16toY(*(_WORD *)(v4 + 2 * v3)); result = 255; if ( v7 > 0.0 ) break; result = 0; *(_BYTE *)(a2 + v3++) = 0; if ( v3 == a3 ) return result; } if ( v7 < 1.0 ) result = (unsigned __int8)(int)(sqrt(v7) * 256.0); *(_BYTE *)(a2 + v3++) = result; } while ( v3 != a3 ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source