//
// lws_add_http_header_content_length from 0xbbfa90 to 0xbbfb30 (160 bytes)
//
// 2 xrefs:
// > lws_serve_http_file @ 0xbc3d14
// > ??> @ 0x74f70
//
// 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_add_http_header_content_length(__int64 a1, __int64 a2, void **a3, unsigned __int64 a4)
{
int v4; // w22
int v6; // w0
__int64 result; // x0
char s[24]; // [xsp+40h] [xbp+40h] BYREF
v4 = a2;
v6 = sprintf(s, "%lu", a2);
result = lws_add_http_header_by_token(a1, 0x1Bu, s, v6, a3, a4);
if ( (_DWORD)result )
return 1;
*(_DWORD *)(a1 + 192) = v4;
*(_DWORD *)(a1 + 196) = v4;
return result;
}