//
// lws_callback_on_writable_all_protocol from 0xbbd320 to 0xbbd39c (124 bytes)
//
// 1 xrefs:
// > ??> @ 0xb1cc0
//
// 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_callback_on_writable_all_protocol(__int64 a1, __int64 a2)
{
int v2; // w3
__int64 v5; // x20
int v6; // w19
int v7; // w2
__int64 v8; // x0
v2 = *(_DWORD *)(a1 + 16);
if ( v2 > 0 )
{
v5 = 0;
v6 = 0;
do
{
++v6;
v7 = *(_DWORD *)(*(_QWORD *)a1 + v5);
v5 += 8;
v8 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL * v7);
if ( v8 && *(_QWORD *)(v8 + 8) == a2 )
{
lws_callback_on_writable(v8);
v2 = *(_DWORD *)(a1 + 16);
}
}
while ( v6 < v2 );
}
return 0;
}