//
// TIFFRasterScanlineSize64 from 0x6f0e20 to 0x6f1028 (520 bytes)
//
// 2 xrefs:
// > TIFFRasterScanlineSize @ 0x6f1048
// > ??> @ 0x5885c
//
// 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
//
unsigned __int64 __fastcall TIFFRasterScanlineSize64(int a1)
{
__int64 v3; // r4
int v6; // [sp+2Ch] [bp-28h]
unsigned __int64 v7; // [sp+30h] [bp-24h]
unsigned __int64 v8; // [sp+30h] [bp-24h]
v6 = a1 + 40;
v7 = TIFFMultiply64(a1, *(unsigned __int16 *)(a1 + 84), *(unsigned int *)(a1 + 56), "TIFFRasterScanlineSize64");
if ( *(_WORD *)(v6 + 86) == 1 )
{
v8 = TIFFMultiply64(a1, v7, *(unsigned __int16 *)(v6 + 58), "TIFFRasterScanlineSize64");
if ( (v8 & 7) != 0 )
return (v8 >> 3) + 1;
else
return v8 >> 3;
}
else
{
if ( (v7 & 7) != 0 )
v3 = (v7 >> 3) + 1;
else
v3 = v7 >> 3;
return TIFFMultiply64(a1, v3, *(unsigned __int16 *)(v6 + 58), "TIFFRasterScanlineSize64");
}
}