//
// TIFFFlushData from 0xc49224 to 0xc49274 (80 bytes)
//
// 3 xrefs:
// > TIFFFlush @ 0xc4929c
// > TIFFWriteScanline @ 0xc635cc
// > ??> @ 0x53430
//
// 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 TIFFFlushData(__int64 a1)
{
int v1; // w2
__int64 (*v3)(void); // x3
__int64 result; // x0
v1 = *(_DWORD *)(a1 + 16);
if ( (v1 & 0x40) == 0 )
return 1;
if ( (v1 & 0x1000) == 0 )
return TIFFFlushData1(a1);
v3 = *(__int64 (**)(void))(a1 + 752);
*(_DWORD *)(a1 + 16) = v1 & 0xFFFFEFFF;
result = v3();
if ( (_DWORD)result )
return TIFFFlushData1(a1);
return result;
}