//
// lws_callback_on_writable_all_protocol from 0x647a34 to 0x647a7c (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_callback_on_writable_all_protocol(_DWORD *a1, int a2)
{
int v2; // r6
int *v4; // r8
int i; // r4
int v7; // r2
_DWORD *v8; // r0
v2 = a1[1138];
if ( v2 > 0 )
{
v4 = a1 + 1138;
for ( i = 0; i < v2; ++i )
{
v7 = *(_DWORD *)(a1[6] + 8 * i);
v8 = *(_DWORD **)(a1[7] + 4 * v7);
if ( v8 && v8[47] == a2 )
{
lws_callback_on_writable(v8);
v2 = *v4;
}
}
}
return 0;
}