//
// sub_ECAB68 from 0xecab68 to 0xecabf8 (144 bytes)
//
// 1 xrefs:
// > TIFFInitSGILog @ 0xecd83c
//
// 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:37 +0000
//
__int64 __fastcall sub_ECAB68(__int64 a1, __int64 a2, __int64 a3, unsigned __int16 a4)
{
unsigned int v7; // w23
__int64 v8; // x19
__int64 v9; // x1
v7 = a4;
v8 = TIFFTileRowSize(a1);
if ( !a3 )
return 1;
while ( 1 )
{
v9 = a2;
a2 += v8;
if ( (*(unsigned int (__fastcall **)(__int64, __int64, __int64, _QWORD))(a1 + 768))(a1, v9, v8, v7) != 1 )
break;
a3 -= v8;
if ( !a3 )
return 1;
}
return 0;
}