//
// sub_ECABF8 from 0xecabf8 to 0xecac80 (136 bytes)
//
// 1 xrefs:
// > TIFFInitSGILog @ 0xecd818
//
// 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_ECABF8(__int64 a1, __int64 a2, __int64 a3, unsigned __int16 a4)
{
unsigned int v5; // w23
__int64 v8; // x19
__int64 v9; // x1
__int64 result; // x0
v5 = a4;
v8 = TIFFTileRowSize(a1);
if ( !a3 )
return 1;
while ( 1 )
{
v9 = a2;
a2 += v8;
result = (*(__int64 (__fastcall **)(__int64, __int64, __int64, _QWORD))(a1 + 760))(a1, v9, v8, v5);
a3 -= v8;
if ( !(_DWORD)result )
break;
if ( !a3 )
return 1;
}
return result;
}