//
// lws_rx_flow_control from 0x6465f0 to 0x646610 (32 bytes)
//
// 3 xrefs:
// > lws_rx_flow_allow_all_protocol @ 0x64664e
// > sub_646A58 @ 0x646a76
// > lws_service_fd @ 0x6475dc
//
// 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
//
int __fastcall lws_rx_flow_control(int a1, int a2)
{
unsigned int v2; // r3
char v3; // r2
v2 = *(unsigned __int8 *)(a1 + 260);
if ( ((v2 >> 3) & 1) != a2 )
{
if ( a2 )
v3 = 3;
else
v3 = 2;
*(_BYTE *)(a1 + 260) = v2 & 0xE7 | (8 * (v3 & 3));
}
return 0;
}