//
// sub_6BFA28 from 0x6bfa28 to 0x6bfb24 (252 bytes)
//
// 9 xrefs:
// > TIFFInitDumpMode @ 0x6bfbcc
// > TIFFInitDumpMode @ 0x6bfbd0
// > TIFFInitDumpMode @ 0x6bfbdc
// > TIFFInitDumpMode @ 0x6bfbe0
// > TIFFInitDumpMode @ 0x6bfbec
// > TIFFInitDumpMode @ 0x6bfbf0
// > ??> @ 0x6bfc50
// > ??> @ 0x6bfc54
// > ??> @ 0x6bfc58
//
// 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 sub_6BFA28(_DWORD *a1, int a2, int a3)
{
if ( a1[152] >= a3 )
{
if ( a1[151] != a2 )
TIFFmemcpy(a2, a1[151], a3);
a1[151] += a3;
a1[152] -= a3;
return 1;
}
else
{
TIFFErrorExt(
a1[157],
"DumpModeDecode",
"Not enough data for scanline %lu, expected a request for at most %lld bytes, got a request for %lld bytes",
a1[111],
(__int64)(int)a1[152],
(__int64)a3);
return 0;
}
}