//
// lws_rx_flow_allow_all_protocol from 0xbbbb9c to 0xbbbc18 (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x46bd8
//
// 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_allow_all_protocol(__int64 result, __int64 a2)
{
int v2; // w3
__int64 v4; // x21
__int64 v5; // x20
int v6; // w19
int v7; // w2
v2 = *(_DWORD *)(result + 16);
if ( v2 > 0 )
{
v4 = result;
v5 = 0;
v6 = 0;
do
{
++v6;
v7 = *(_DWORD *)(*(_QWORD *)v4 + v5);
v5 += 8;
result = *(_QWORD *)(*(_QWORD *)(v4 + 8) + 8LL * v7);
if ( result )
{
if ( *(_QWORD *)(result + 8) == a2 )
{
result = lws_rx_flow_control(result, 1);
v2 = *(_DWORD *)(v4 + 16);
}
}
}
while ( v6 < v2 );
}
return result;
}