//
// TIFFStripSize from 0x9003b8 to 0x900448 (144 bytes)
//
// 6 xrefs:
// > TIFFReadDirectory @ 0x8c2354
// > sub_8DB7A8 @ 0x8db7f4
// > sub_8DB7A8 @ 0x8db850
// > sub_8DBC44 @ 0x8dbc9c
// > TIFFWriteBufferSetup @ 0x904654
// > ??> @ 0x6b1dc
//
// 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:16 +0000
//
int __fastcall TIFFStripSize(int a1)
{
unsigned __int64 v1; // kr00_8
int v4; // [sp+14h] [bp-8h]
v1 = TIFFStripSize64(a1);
v4 = v1;
if ( HIDWORD(v1) != (int)v1 >> 31 )
{
TIFFErrorExt(*(_DWORD *)(a1 + 628), (int)"TIFFStripSize", "Integer overflow");
return 0;
}
return v4;
}