//
// lwsl_emit_stderr from 0x64640c to 0x6464d4 (200 bytes)
//
// 1 xrefs:
// > _lws_logv @ 0x64673a
//
// 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 lwsl_emit_stderr(int a1, const char *a2)
{
int v3; // r4
unsigned __int64 v5; // r0
char v6[304]; // [sp+Ch] [bp-130h] BYREF
v6[0] = 0;
switch ( a1 )
{
case 1:
v3 = 0;
goto LABEL_14;
case 2:
v3 = 1;
goto LABEL_14;
case 4:
v3 = 2;
goto LABEL_14;
case 8:
v3 = 3;
goto LABEL_14;
case 16:
v3 = 4;
goto LABEL_14;
case 32:
v3 = 5;
goto LABEL_14;
case 64:
v3 = 6;
goto LABEL_14;
case 128:
v3 = 7;
goto LABEL_14;
case 256:
v3 = 8;
goto LABEL_14;
case 512:
v3 = 9;
LABEL_14:
v5 = sub_64BE68() / 0x64uLL;
sprintf(v6, "[%llu:%04d] %s: ", v5 / 0x2710, (unsigned int)(v5 % 0x2710), off_A2D5A8[v3]);
break;
}
return fprintf((FILE *)((char *)&_sF + 168), "%s%s", v6, a2);
}