//
// lws_plat_service_periodic from 0xbc2ca4 to 0xbc2cd8 (52 bytes)
//
// 2 xrefs:
// > lws_service_fd @ 0xbbc964
// > ??> @ 0x38b08
//
// 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_service_periodic(__int64 a1)
{
__int64 result; // x0
__pid_t v2; // w0
result = *(unsigned int *)(a1 + 4536);
if ( (_DWORD)result )
{
result = kill(result, 0);
if ( (result & 0x80000000) != 0 )
{
v2 = getpid();
return kill(v2, 15);
}
}
return result;
}