//
// lws_rx_flow_control from 0xe31d2c to 0xe31d5c (48 bytes)
//
// 3 xrefs:
// > lws_rx_flow_allow_all_protocol @ 0xe31dcc
// > sub_E3222C @ 0xe32264
// > ??> @ 0xb7b98
//
// 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:55 +0000
//
__int64 __fastcall lws_rx_flow_control(__int64 a1, int a2)
{
char v2; // w2
char v3; // w1
v2 = *(_BYTE *)(a1 + 112);
if ( (v2 & 1) != a2 )
{
if ( a2 )
v3 = 3;
else
v3 = 2;
*(_BYTE *)(a1 + 112) = v2 & 0xFC | v3 & 3;
}
return 0;
}