//
// lws_plat_service_periodic from 0xe38e64 to 0xe38e98 (52 bytes)
//
// 2 xrefs:
// > lws_service_fd @ 0xe32b24
// > ??> @ 0x52a20
//
// 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 13:09:59 +0000
//
__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;
}