//
// lws_cancel_service from 0xbc2744 to 0xbc2780 (60 bytes)
//
// 3 xrefs:
// > sub_BBD000 @ 0xbbd178
// > lws_callback_on_writable @ 0xbbd2f4
// > ??> @ 0x4b858
//
// 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
//
ssize_t __fastcall lws_cancel_service(__int64 a1)
{
int v1; // w0
ssize_t result; // x0
char v3; // [xsp+1Fh] [xbp+1Fh] BYREF
v1 = *(_DWORD *)(a1 + 4568);
v3 = 0;
result = write(v1, &v3, 1u);
if ( result != 1 )
return lws_log(1, "Cannot write to dummy pipe");
return result;
}