//
// TIFFFlushData from 0xebf3e4 to 0xebf434 (80 bytes)
//
// 3 xrefs:
// > TIFFFlush @ 0xebf45c
// > TIFFWriteScanline @ 0xed978c
// > ??> @ 0x73948
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:11:32 +0000
//
__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;
}