//
// lws_add_http_header_status from 0xbbfb30 to 0xbbfc08 (216 bytes)
//
// 3 xrefs:
// > lws_return_http_status @ 0xbbfc54
// > lws_serve_http_file @ 0xbc3cb0
// > ??> @ 0x97e78
//
// 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_status(int a1, int a2, void **a3, unsigned __int64 a4)
{
unsigned int v5; // w1
const char *v8; // x3
int v9; // w0
unsigned __int64 v11; // [xsp+30h] [xbp+30h]
char s[64]; // [xsp+48h] [xbp+48h] BYREF
v5 = a2 - 400;
if ( v5 > 0x11 )
v8 = &byte_F288A0;
else
v8 = off_111D2A0[v5];
if ( (unsigned int)(a2 - 500) <= 5 )
v8 = off_111D330[a2 - 500];
v11 = a4;
v9 = sprintf(s, "HTTP/1.0 %u %s", a2, v8);
return lws_add_http_header_by_name(a1, nullptr, s, v9, a3, v11);
}