//
// TIFFNumberOfDirectories from 0x8b7654 to 0x8b7700 (172 bytes)
//
// 1 xrefs:
// > ??> @ 0x6affc
//
// 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:03:56 +0000
//
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_8B6CC4((const char **)a1, &v3, nullptr) )
++v4;
return v4;
}