//
// sub_D78888 from 0xd78888 to 0xd788e8 (96 bytes)
//
// 1 xrefs:
// > ??> @ 0x1122438
//
// 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_D78888(__int64 a1, char *a2)
{
unsigned int v3; // w19
int v4; // w0
v3 = 0;
v4 = strlen(a2);
if ( *(_DWORD *)(a1 + 24) )
{
v3 = v4;
if ( !(unsigned int)fwrite(a2, v4, 1u, *(FILE **)(a1 + 48)) )
return 0;
}
return v3;
}