//
// TIFFNumberOfStrips from 0xed628c to 0xed62f4 (104 bytes)
//
// 3 xrefs:
// > TIFFReadDirectory @ 0xeb2900
// > TIFFSetupStrips @ 0xed8eb8
// > ??> @ 0xe2990
//
// 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 TIFFNumberOfStrips(__int64 a1)
{
unsigned int v1; // w3
unsigned int v2; // w4
unsigned int v3; // w1
v1 = *(_DWORD *)(a1 + 132);
if ( v1 == -1 )
{
v3 = 1;
}
else
{
v2 = *(_DWORD *)(a1 + 92);
v3 = 0;
if ( v2 < -v1 )
{
v3 = (v1 + v2 - 1) / v1;
if ( *(_WORD *)(a1 + 170) != 2 )
return v3;
return TIFFMultiply32(a1, v3, *(unsigned __int16 *)(a1 + 130), "TIFFNumberOfStrips");
}
}
if ( *(_WORD *)(a1 + 170) != 2 )
return v3;
return TIFFMultiply32(a1, v3, *(unsigned __int16 *)(a1 + 130), "TIFFNumberOfStrips");
}