//
// TIFFReadScanline from 0x6edd10 to 0x6eddf8 (232 bytes)
//
// 1 xrefs:
// > ??> @ 0x5877c
//
// 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
//
int __fastcall TIFFReadScanline(int a1, int a2, unsigned int a3, unsigned __int16 a4)
{
int v10; // [sp+14h] [bp-8h]
if ( !sub_6EFC84(a1, 0) )
return -1;
v10 = sub_6ED9A4(a1, a3, a4);
if ( v10 )
{
v10 = (*(int (__fastcall **)(int, int, _DWORD, _DWORD))(a1 + 532))(a1, a2, *(_DWORD *)(a1 + 580), a4);
*(_DWORD *)(a1 + 444) = a3 + 1;
if ( v10 )
(*(void (__fastcall **)(int, int, _DWORD))(a1 + 652))(a1, a2, *(_DWORD *)(a1 + 580));
}
if ( v10 <= 0 )
return -1;
else
return 1;
}