//
// lws_rx_flow_control from 0xbbbb6c to 0xbbbb9c (48 bytes)
//
// 3 xrefs:
// > lws_rx_flow_allow_all_protocol @ 0xbbbc0c
// > sub_BBC06C @ 0xbbc0a4
// > ??> @ 0x8a918
//
// 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
//
__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;
}