//
// sub_8C330C from 0x8c330c to 0x8c34b0 (420 bytes)
//
// 1 xrefs:
// > TIFFReadCustomDirectory @ 0x8c2a80
//
// 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:00 +0000
//
int __fastcall sub_8C330C(_DWORD *a1, unsigned __int16 *a2, unsigned int a3)
{
const char *v3; // r12
const char *v5; // r12
int v10; // [sp+20h] [bp-Ch]
int v11; // [sp+24h] [bp-8h]
if ( (unsigned __int64)a3 <= *((_QWORD *)a2 + 1) )
{
if ( *((_QWORD *)a2 + 1) > (unsigned __int64)a3 )
{
v11 = TIFFFieldWithTag((int)a1, *a2);
if ( v11 )
v5 = *(const char **)(v11 + 28);
else
v5 = "unknown tagname";
TIFFWarningExt(
a1[157],
*a1,
"incorrect count for field \"%s\" (%llu, expecting %u); tag trimmed",
v5,
*((_QWORD *)a2 + 1),
a3);
*((_QWORD *)a2 + 1) = a3;
return 1;
}
else
{
return 1;
}
}
else
{
v10 = TIFFFieldWithTag((int)a1, *a2);
if ( v10 )
v3 = *(const char **)(v10 + 28);
else
v3 = "unknown tagname";
TIFFWarningExt(
a1[157],
*a1,
"incorrect count for field \"%s\" (%llu, expecting %u); tag ignored",
v3,
*((_QWORD *)a2 + 1),
a3);
return 0;
}
}