//
// _TIFFDefaultStripSize from 0x900488 to 0x900564 (220 bytes)
//
// 3 xrefs:
// > ??> @ 0x6ad8c
// > _TIFFSetDefaultCompressionState @ 0x8b2900
// > ??> @ 0xd1d048
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:04:17 +0000
//
int __fastcall TIFFDefaultStripSize(int a1, int a2)
{
int v3; // [sp+0h] [bp-1Ch]
unsigned __int64 v4; // [sp+8h] [bp-14h]
unsigned __int64 v5; // [sp+10h] [bp-Ch]
v3 = a2;
if ( a2 <= 0 )
{
v4 = TIFFScanlineSize64(a1);
if ( !v4 )
v4 = 1;
v5 = 0x2000 / v4;
if ( 0x2000 / v4 )
{
if ( HIDWORD(v5) )
LODWORD(v5) = -1;
}
else
{
LODWORD(v5) = 1;
}
return v5;
}
return v3;
}