//
// sub_C57748 from 0xc57748 to 0xc5779c (84 bytes)
//
// 2 xrefs:
// > TIFFInitLZW @ 0xc58bbc
// > TIFFInitLZW @ 0xc58bcc
//
// 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_C57748(__int64 a1)
{
_QWORD *v2; // x1
void *v3; // x0
void *v4; // x0
TIFFPredictorCleanup();
v2 = *(_QWORD **)(a1 + 848);
v3 = (void *)v2[28];
if ( v3 )
{
TIFFfree(v3);
v2 = *(_QWORD **)(a1 + 848);
}
v4 = (void *)v2[35];
if ( v4 )
{
TIFFfree(v4);
v2 = *(_QWORD **)(a1 + 848);
}
TIFFfree(v2);
*(_QWORD *)(a1 + 848) = 0;
return TIFFSetDefaultCompressionState(a1);
}