//
// sub_6B284C from 0x6b284c to 0x6b2904 (184 bytes)
//
// 2 xrefs:
// > TIFFReadDirectory @ 0x6b0fa0
// > TIFFReadCustomDirectory @ 0x6b2b98
//
// 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_6B284C(int result, _WORD *a2, unsigned __int16 a3)
{
unsigned __int16 v3; // [sp+10h] [bp-Ch]
unsigned __int16 i; // [sp+12h] [bp-Ah]
v3 = 0;
for ( i = 0; i < (unsigned int)a3; ++i )
{
if ( v3 > (unsigned int)(unsigned __int16)*a2 )
return TIFFWarningExt(
*(_DWORD *)(result + 628),
"TIFFReadDirectoryCheckOrder",
"Invalid TIFF directory; tags are not sorted in ascending order");
v3 = *a2 + 1;
a2 += 12;
}
return result;
}