//
// TIFFFlushData from 0x8d941c to 0x8d94ac (144 bytes)
//
// 3 xrefs:
// > TIFFFlush @ 0x8d91b4
// > TIFFWriteScanline @ 0x9030dc
// > ??> @ 0x6b3fc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:04:07 +0000
//
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;
}