//
// TIFFReadScanline from 0x8fd8d0 to 0x8fd9b8 (232 bytes)
//
// 1 xrefs:
// > ??> @ 0x6b7ec
//
// 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:16 +0000
//
int __fastcall TIFFReadScanline(int a1, int a2, unsigned int a3, unsigned __int16 a4)
{
int v10; // [sp+14h] [bp-8h]
if ( !sub_8FF844(a1, 0) )
return -1;
v10 = sub_8FD564(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;
}