// // sub_8C474 from 0x8c474 to 0x8c4f8 (132 bytes) // // 3 xrefs: // > sub_8C5D4 @ 0x8c67c // > sub_8C77C @ 0x8c824 // > sub_919A0 @ 0x919ac // // 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_8C474(__int64 a1, unsigned __int8 a2, int *a3) { unsigned int v3; // w9 int *v4; // x10 int v5; // w12 unsigned int v6; // w13 int v7; // w10 char v8; // w9 _DWORD *v9; // x12 v3 = *(unsigned __int8 *)(a1 + 17464); if ( v3 >= a2 ) { v9 = *(_DWORD **)(a1 + 17456); v8 = v3 - a2; v7 = *v9 & ~(-1 << a2); *v9 >>= a2; } else { v4 = *(int **)(a1 + 17456); *(_QWORD *)(a1 + 17456) = v4 + 1; v5 = *v4; v6 = v4[1]; v4[1] = v6 >> (a2 - v3); v7 = ((v6 & ~(-1 << (a2 - v3))) << v3) | v5; v8 = 32 - (a2 - v3); } *(_BYTE *)(a1 + 17464) = v8; if ( a3 ) *a3 = v7; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source