// // sub_5DF74 from 0x5df74 to 0x5dfd4 (96 bytes) // // 2 xrefs: // > sub_5E794 @ 0x5e9ec // > FMOD::Geometry::getPolygonVertex @ 0xd51dc // // 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_5DF74(__int64 a1, int a2, int a3, __int64 a4) { __int64 result; // x0 __int64 v6; // x8 __int64 v7; // x8 int v8; // w9 __int64 v9; // x8 if ( a2 < 0 ) return 31; result = 31; if ( a4 && *(_DWORD *)(a1 + 44) > a2 ) { if ( (a3 & 0x80000000) == 0 ) { v6 = *(_QWORD *)(a1 + 64) + *(int *)(*(_QWORD *)(a1 + 48) + 4LL * a2); if ( *(unsigned __int16 *)(v6 + 184) > a3 ) { v7 = v6 + 12LL * a3; v8 = *(_DWORD *)(v7 + 196); v9 = *(_QWORD *)(v7 + 188); result = 0; *(_DWORD *)(a4 + 8) = v8; *(_QWORD *)a4 = v9; return result; } } return 31; } return result; }