//
// lws_plat_insert_socket_into_fds from 0xbc2c84 to 0xbc2ca0 (28 bytes)
//
// 2 xrefs:
// > sub_BBCD70 @ 0xbbce0c
// > ??> @ 0x9bac0
//
// 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 lws_plat_insert_socket_into_fds(__int64 result)
{
int v1; // w1
__int64 v2; // x2
v1 = *(_DWORD *)(result + 16);
v2 = *(_QWORD *)result + 8LL * v1;
*(_DWORD *)(result + 16) = v1 + 1;
*(_WORD *)(v2 + 6) = 0;
return result;
}