//
// sub_8E89F8 from 0x8e89f8 to 0x8e8ae4 (236 bytes)
//
// 3 xrefs:
// > TIFFInitSGILog @ 0x8ec3e8
// > TIFFInitSGILog @ 0x8ec3ec
// > ??> @ 0x8ec4d8
//
// 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:11 +0000
//
bool __fastcall sub_8E89F8(int a1, int a2, int a3, unsigned __int16 a4)
{
int v9; // [sp+14h] [bp-8h]
v9 = TIFFTileRowSize(a1);
if ( a3 % v9 )
_assert2();
while ( a3 && (*(int (__fastcall **)(int, int, int, _DWORD))(a1 + 536))(a1, a2, v9, a4) == 1 )
{
a2 += v9;
a3 -= v9;
}
return a3 == 0;
}