//
// TIFFScanlineSize from 0x6f0d88 to 0x6f0e18 (144 bytes)
//
// 12 xrefs:
// > TIFFReadDirectory @ 0x6b26d8
// > sub_6C3E90 @ 0x6c3f3c
// > sub_6CBBE8 @ 0x6cbd2c
// > sub_6CC084 @ 0x6cc320
// > sub_6D7BE8 @ 0x6d7c08
// > sub_6D8D40 @ 0x6d8d60
// > sub_6DC3D4 @ 0x6dc54c
// > sub_6E0BE4 @ 0x6e0c70
// > sub_6E7578 @ 0x6e7798
// > sub_6E7B90 @ 0x6e7d50
// > TIFFWriteCheck @ 0x6f498c
// > ??> @ 0x5819c
//
// 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
//
int __fastcall TIFFScanlineSize(int a1)
{
unsigned __int64 v1; // kr00_8
int v4; // [sp+14h] [bp-8h]
v1 = TIFFScanlineSize64(a1);
v4 = v1;
if ( HIDWORD(v1) != (int)v1 >> 31 )
{
TIFFErrorExt(*(_DWORD *)(a1 + 628), (int)"TIFFScanlineSize", "Integer arithmetic overflow");
return 0;
}
return v4;
}