//
// lws_cancel_service from 0x85bf60 to 0x85bf8c (44 bytes)
//
// 2 xrefs:
// > sub_857894 @ 0x857994
// > lws_callback_on_writable @ 0x857a8e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:02:40 +0000
//
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;
}