//
// lws_finalize_http_header from 0xbbf9f0 to 0xbbfa30 (64 bytes)
//
// 3 xrefs:
// > lws_return_http_status @ 0xbbfcc8
// > lws_serve_http_file @ 0xbc3d54
// > ??> @ 0xa6d10
//
// 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_finalize_http_header(__int64 a1, _BYTE **a2, __int64 a3)
{
_BYTE *v3; // x3
__int64 result; // x0
_BYTE *v5; // x2
v3 = *a2;
result = 1;
if ( a3 - (__int64)*a2 > 2 )
{
*a2 = v3 + 1;
*v3 = 13;
v5 = (*a2)++;
*v5 = 10;
return 0;
}
return result;
}