//
// TIFFComputeStrip from 0xed6214 to 0xed628c (120 bytes)
//
// 6 xrefs:
// > sub_EC4A8C @ 0xec4bb4
// > sub_EC4D34 @ 0xec4fc8
// > sub_EC4D34 @ 0xec5018
// > sub_EC4D34 @ 0xec505c
// > sub_EC4D34 @ 0xec50a8
// > ??> @ 0x71a70
//
// 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:43 +0000
//
__int64 __fastcall TIFFComputeStrip(__int64 a1, unsigned int a2, unsigned __int16 a3)
{
unsigned int v3; // w1
unsigned int v5; // w4
v3 = a2 / *(_DWORD *)(a1 + 132);
if ( *(_WORD *)(a1 + 170) != 2 )
return v3;
v5 = *(unsigned __int16 *)(a1 + 130);
if ( v5 <= a3 )
{
TIFFErrorExt(
*(_QWORD *)(a1 + 952),
(__int64)"TIFFComputeStrip",
"%lu: Sample out of range, max %lu",
a3,
(unsigned __int16)v5);
return 0;
}
return v3 + a3 * *(_DWORD *)(a1 + 224);
}