//
// _TIFFDefaultStripSize from 0xed6714 to 0xed6750 (60 bytes)
//
// 3 xrefs:
// > ??> @ 0xfe8d8
// > _TIFFSetDefaultCompressionState @ 0xea4e5c
// > ??> @ 0x1547c28
//
// 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 TIFFDefaultStripSize(__int64 a1, unsigned __int64 a2)
{
unsigned __int64 v3; // x0
if ( (int)a2 <= 0 )
{
v3 = TIFFScanlineSize64(a1);
LODWORD(a2) = 0x2000;
if ( v3 )
{
a2 = 0x2000 / v3;
if ( !(0x2000 / v3) )
LODWORD(a2) = 1;
}
}
return (unsigned int)a2;
}