// // sub_1004A8DF4 from 0x1004a8df4 to 0x1004a8e34 (64 bytes) // // 15 xrefs: // > @ 0x10084cb08 // > @ 0x1008512e8 // > @ 0x1008515d8 // > @ 0x1008517d8 // > @ 0x1008518c8 // > @ 0x1008519b8 // > @ 0x100851ca0 // > @ 0x100851d88 // > @ 0x100851e78 // > @ 0x100852080 // > @ 0x100852178 // > @ 0x100853838 // > @ 0x1008539e0 // > @ 0x1008585b8 // > @ 0x100858a60 // // 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_1004A8DF4(__int64 *a1, int a2, unsigned int a3) { __int64 v3; // x8 unsigned int v4; // w9 __int64 result; // x0 bool v6; // cf unsigned int v7; // w9 v3 = *a1; if ( a2 ) { v4 = *(_DWORD *)(v3 + 428); if ( v4 ) { result = 0; v6 = v4 >= a3; v7 = v4 - a3; if ( !v6 ) v7 = 0; *(_DWORD *)(v3 + 428) = v7; } else { return 11; } } else { *(_DWORD *)(v3 + 428) = *(_DWORD *)(*(_QWORD *)(v3 + 168) + 1752LL); return 0; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source