//
// sub_6BC84C from 0x6bc84c to 0x6bc908 (188 bytes)
//
// 4 xrefs:
// > sub_6BB3C4 @ 0x6bb428
// > sub_6BB43C @ 0x6bb54c
// > sub_6BBF78 @ 0x6bc0d8
// > sub_6BC104 @ 0x6bc344
//
// 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_6BC84C(int a1, int a2, int a3, unsigned __int16 a4, int a5, int a6)
{
if ( a5 < 0 )
_assert2();
if ( (*(_DWORD *)(a1 + 12) & 0x80) != 0 )
TIFFSwabArrayOfShort(a6, a5);
return sub_6BD8C0(a1, a2, a3, a4, 3, a5, 2 * a5, a6);
}