//
// sub_6BCBFC from 0x6bcbfc to 0x6bccf4 (248 bytes)
//
// 2 xrefs:
// > sub_6BB750 @ 0x6bb7b4
// > sub_6BBBB0 @ 0x6bbc28
//
// 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_6BCBFC(int a1, int a2, int a3, unsigned __int16 a4, unsigned int a5, int a6)
{
if ( a5 > 0x1FFFFFFF )
_assert2();
if ( (*(_DWORD *)(a1 + 12) & 0x80000) == 0 )
_assert2();
if ( (*(_DWORD *)(a1 + 12) & 0x80) != 0 )
TIFFSwabArrayOfLong8(a6, a5);
return sub_6BD8C0(a1, a2, a3, a4, 16, a5, 8 * a5, a6);
}