// // sub_48A40 from 0x48a40 to 0x48ae8 (168 bytes) // // 1 xrefs: // > @ 0x48a3e // // 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 // int __fastcall sub_48A40(int a1, float a2, float a3, float a4) { int result; // r0 float v9; // s4 _BYTE v10[4]; // [sp+4h] [bp-14h] BYREF result = (*(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)a1 + 76))(a1, v10); if ( !result ) { if ( (v10[0] & 0x10) != 0 ) { if ( (LODWORD(a2) & 0x7F800000) == 0x7F800000 ) return 29; if ( (LODWORD(a3) & 0x7F800000) == 0x7F800000 ) return 29; v9 = a4; if ( (LODWORD(a4) & 0x7F800000) == 0x7F800000 ) { return 29; } else if ( a2 <= a3 ) { if ( a4 > 1.0 ) v9 = 1.0; if ( v9 < 0.0 ) v9 = 0.0; *(float *)(a1 + 116) = a2; *(float *)(a1 + 120) = a3; *(float *)(a1 + 124) = v9; *(_DWORD *)(a1 + 40) |= 4u; return 0; } else { return 31; } } else { return 40; } } return result; }