//
// sub_856F70 from 0x856f70 to 0x856fbc (76 bytes)
//
// 1 xrefs:
// > lws_service_fd @ 0x857650
//
// 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:36 +0000
//
int __fastcall sub_856F70(int a1)
{
unsigned int v1; // r5
v1 = *(unsigned __int8 *)(a1 + 260);
if ( ((v1 >> 3) & 2) == 0 )
return 0;
if ( *(_DWORD *)(a1 + 196) )
{
lws_callback_on_writable(a1);
return 0;
}
*(_BYTE *)(a1 + 260) = v1 & 0xE7 | (8 * ((v1 & 8) != 0));
if ( ((v1 >> 3) & 1) != 0 )
return -(sub_857894(a1, 0, 1) != 0);
else
return -(sub_857894(a1, 1, 0) != 0);
}