//
// lws_rx_flow_allow_all_protocol from 0x856690 to 0x8566d8 (72 bytes)
//
// 0 xrefs:
//
// 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_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;
}