//
// _TIFFPrintFieldInfo from 0x6a86a4 to 0x6a87ec (328 bytes)
//
// 1 xrefs:
// > ??> @ 0x5805c
//
// 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 TIFFPrintFieldInfo(int a1, FILE *a2)
{
int result; // r0
const char *v3; // r2
const char *v4; // r3
unsigned int i; // [sp+28h] [bp-1Ch]
int v8; // [sp+2Ch] [bp-18h]
result = fprintf(a2, "%s: \n", *(const char **)a1);
for ( i = 0; *(_DWORD *)(a1 + 660) > i; ++i )
{
v8 = *(_DWORD *)(*(_DWORD *)(a1 + 656) + 4 * i);
if ( *(_BYTE *)(v8 + 26) )
v3 = "TRUE";
else
v3 = "FALSE";
if ( *(_BYTE *)(v8 + 27) )
v4 = "TRUE";
else
v4 = "FALSE";
result = fprintf(
a2,
"field[%2d] %5lu, %2d, %2d, %d, %2d, %5s, %5s, %s\n",
i,
*(_DWORD *)v8,
*(__int16 *)(v8 + 4),
*(__int16 *)(v8 + 6),
*(_DWORD *)(v8 + 8),
*(unsigned __int16 *)(v8 + 24),
v3,
v4,
*(const char **)(v8 + 28));
}
return result;
}