//
// TIFFNumberOfDirectories from 0x6a75d4 to 0x6a7680 (172 bytes)
//
// 1 xrefs:
// > ??> @ 0x57fdc
//
// 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 TIFFNumberOfDirectories(int a1)
{
__int64 v3; // [sp+8h] [bp-14h] BYREF
unsigned __int16 v4; // [sp+16h] [bp-6h]
if ( (*(_DWORD *)(a1 + 12) & 0x80000) != 0 )
v3 = *(_QWORD *)(a1 + 432);
else
v3 = *(unsigned int *)(a1 + 428);
v4 = 0;
while ( v3 && sub_6A6C44((const char **)a1, &v3, nullptr) )
++v4;
return v4;
}