//
// lws_cancel_service from 0xe38904 to 0xe38940 (60 bytes)
//
// 3 xrefs:
// > sub_E331C0 @ 0xe33338
// > lws_callback_on_writable @ 0xe334b4
// > ??> @ 0x6a258
//
// 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
//
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;
}