//
// TIFFNumberOfStrips from 0xc600cc to 0xc60134 (104 bytes)
//
// 3 xrefs:
// > TIFFReadDirectory @ 0xc3c740
// > TIFFSetupStrips @ 0xc62cf8
// > ??> @ 0xad160
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__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");
}