//
// lws_cancel_service from 0x64bee0 to 0x64bf0c (44 bytes)
//
// 2 xrefs:
// > sub_647814 @ 0x647914
// > lws_callback_on_writable @ 0x647a0e
//
// 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(int a1)
{
int v1; // r0
ssize_t result; // r0
char v3; // [sp+7h] [bp-5h] BYREF
v1 = *(_DWORD *)(a1 + 4604);
v3 = 0;
result = write(v1, &v3, 1u);
if ( result != 1 )
return lws_log(1, "Cannot write to dummy pipe");
return result;
}