//
// lws_add_http_header_content_length from 0x64985c to 0x64989e (66 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_add_http_header_content_length(int a1, int a2, void **a3, unsigned int a4)
{
size_t v8; // r0
int result; // r0
char s[24]; // [sp+8h] [bp-18h] BYREF
v8 = sprintf(s, "%lu", a2);
result = lws_add_http_header_by_token(a1, 0x1Bu, s, v8, a3, a4);
if ( result )
return 1;
*(_DWORD *)(a1 + 24) = a2;
*(_DWORD *)(a1 + 28) = a2;
return result;
}