//
// sub_8CC7BC from 0x8cc7bc to 0x8cc8b4 (248 bytes)
//
// 2 xrefs:
// > sub_8CB310 @ 0x8cb374
// > sub_8CB770 @ 0x8cb7e8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:04:04 +0000
//
int __fastcall sub_8CC7BC(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_8CD480(a1, a2, a3, a4, 16, a5, 8 * a5, a6);
}