//
// sub_E3B48 from 0xe3b48 to 0xe3bb0 (104 bytes)
//
// 2 xrefs:
// > FMOD_OS_Debug_Output @ 0xe3b2c
// > sub_E3FC8 @ 0xe4020
//
// 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 sub_E3B48(char *a1, int a2, const char *a3, _OWORD *a4)
{
__int64 v4; // x29
__int64 v5; // x30
__int128 v6; // q0
__int64 result; // x0
bool v10; // cc
_OWORD v11[2]; // [xsp+0h] [xbp-40h] BYREF
__int64 v12; // [xsp+30h] [xbp-10h]
__int64 v13; // [xsp+38h] [xbp-8h]
if ( a2 < 1 )
return 0;
v12 = v4;
v13 = v5;
*a1 = 0;
v6 = a4[1];
v11[0] = *a4;
v11[1] = v6;
LODWORD(result) = vsnprintf(a1, a2, a3, v11);
v10 = (int)result >= a2 || (int)result <= -1;
a1[a2 - 1] = 0;
if ( v10 )
return (unsigned int)a2;
else
return (unsigned int)result;
}