//
// lws_rx_flow_allow_all_protocol from 0x646610 to 0x646658 (72 bytes)
//
// 0 xrefs:
//
// 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_allow_all_protocol(int result, int a2)
{
int v2; // r6
int *v4; // r8
int v5; // r5
int i; // r4
int v7; // r2
v2 = *(_DWORD *)(result + 4552);
if ( v2 > 0 )
{
v4 = (int *)(result + 4552);
v5 = result;
for ( i = 0; i < v2; ++i )
{
v7 = *(_DWORD *)(*(_DWORD *)(v5 + 24) + 8 * i);
result = *(_DWORD *)(*(_DWORD *)(v5 + 28) + 4 * v7);
if ( result )
{
if ( *(_DWORD *)(result + 188) == a2 )
{
result = lws_rx_flow_control(result, 1);
v2 = *v4;
}
}
}
}
return result;
}