// // sub_1005D54DC from 0x1005d54dc to 0x1005d5540 (100 bytes) // // 1 xrefs: // > FMOD::Geometry::getPolygonVertex @ 0x1005d3b98 // // 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 11:09:34 +0000 // __int64 __fastcall sub_1005D54DC(__int64 a1, unsigned int a2, unsigned int a3, __int64 a4) { __int64 result; // x0 __int64 v6; // x8 __int64 v7; // x8 __int64 v8; // x9 if ( (a2 & 0x80000000) != 0 ) return 31; result = 31; if ( a4 && *(_DWORD *)(a1 + 44) > (signed int)a2 ) { if ( (a3 & 0x80000000) == 0 ) { v6 = *(_QWORD *)(a1 + 64) + *(int *)(*(_QWORD *)(a1 + 48) + 4LL * a2); if ( *(unsigned __int16 *)(v6 + 184) > a3 ) { result = 0; v7 = v6 + 12LL * a3; v8 = *(_QWORD *)(v7 + 188); *(_DWORD *)(a4 + 8) = *(_DWORD *)(v7 + 196); *(_QWORD *)a4 = v8; return result; } } return 31; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source