//
// lws_rx_flow_control from 0x856670 to 0x856690 (32 bytes)
//
// 3 xrefs:
// > lws_rx_flow_allow_all_protocol @ 0x8566ce
// > sub_856AD8 @ 0x856af6
// > lws_service_fd @ 0x85765c
//
// 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 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;
}