//
// sub_6757F8 from 0x6757f8 to 0x675848 (80 bytes)
//
// 0 xrefs:
//
// 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 sub_6757F8(_DWORD *a1)
{
int v2; // r4
int v3; // r3
int result; // r0
v2 = a1[6];
v3 = *(_DWORD *)(v2 + 4);
if ( v3 != 4096 && fwrite(*(const void **)(v2 + 24), 1u, 4096 - v3, *(FILE **)(v2 + 20)) != 4096 - v3 )
{
*(_DWORD *)(*a1 + 20) = 38;
(*(void (__fastcall **)(_DWORD *))*a1)(a1);
}
fflush(*(FILE **)(v2 + 20));
result = ferror(*(FILE **)(v2 + 20));
if ( result )
{
*(_DWORD *)(*a1 + 20) = 38;
return (*(int (__fastcall **)(_DWORD *))*a1)(a1);
}
return result;
}