//
// lws_rx_flow_allow_all_protocol from 0xe31d5c to 0xe31dd8 (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x645d0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:09:55 +0000
//
__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;
}