//
// TIFFFlushData from 0x6c985c to 0x6c98ec (144 bytes)
//
// 3 xrefs:
// > TIFFFlush @ 0x6c95f4
// > TIFFWriteScanline @ 0x6f351c
// > ??> @ 0x583dc
//
// 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 TIFFFlushData(int a1)
{
if ( (*(_DWORD *)(a1 + 12) & 0x40) == 0 )
return 1;
if ( (*(_DWORD *)(a1 + 12) & 0x1000) == 0 )
return TIFFFlushData1(a1);
*(_DWORD *)(a1 + 12) &= ~0x1000u;
if ( (*(int (__fastcall **)(int))(a1 + 528))(a1) )
return TIFFFlushData1(a1);
return 0;
}