//
// sub_6D7CE0 from 0x6d7ce0 to 0x6d7dcc (236 bytes)
//
// 3 xrefs:
// > TIFFInitSGILog @ 0x6dc7f8
// > TIFFInitSGILog @ 0x6dc7fc
// > ??> @ 0x6dc90c
//
// 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
//
bool __fastcall sub_6D7CE0(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 + 532))(a1, a2, v9, a4) )
{
a2 += v9;
a3 -= v9;
}
return a3 == 0;
}