//
// sub_1005DB8A4 from 0x1005db8a4 to 0x1005db904 (96 bytes)
//
// 1 xrefs:
// > ??> @ 0x100861090
//
// 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_1005DB8A4(__int64 a1, char *__s)
{
unsigned int v4; // w19
__int64 result; // x0
v4 = strlen(__s);
result = 0;
if ( __s && *(_DWORD *)(a1 + 24) )
{
if ( (unsigned int)fwrite(__s, (int)v4, 1u, *(FILE **)(a1 + 48)) )
return v4;
else
return 0;
}
return result;
}