// // sub_100509EF0 from 0x100509ef0 to 0x100509fc0 (208 bytes) // // 3 xrefs: // > @ 0x100827aa8 // > @ 0x100827cd0 // > @ 0x10082a588 // // 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_100509EF0(__int64 a1, float a2, float a3, float a4) { __int64 result; // x0 _BYTE v9[4]; // [xsp+Ch] [xbp-34h] BYREF result = (*(__int64 (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)a1 + 152LL))(a1, v9); if ( !(_DWORD)result ) { if ( (v9[0] & 0x10) != 0 ) { if ( (~LODWORD(a2) & 0x7F800000) != 0 && (~LODWORD(a3) & 0x7F800000) != 0 && (~LODWORD(a4) & 0x7F800000) != 0 ) { if ( a2 <= a3 ) { *(float *)(a1 + 168) = a2; *(float *)(a1 + 172) = a3; *(float *)(a1 + 176) = fmaxf(fminf(a4, 1.0), 0.0); *(_DWORD *)(a1 + 72) |= 4u; return 0; } else { return 31; } } else { return 29; } } else { return 40; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source