//
// TIFFFieldWithTag from 0x8b87ec to 0x8b8860 (116 bytes)
//
// 13 xrefs:
// > sub_8B34CC @ 0x8b4ec0
// > sub_8B34CC @ 0x8b4f70
// > sub_8B34CC @ 0x8b5008
// > TIFFUnsetField @ 0x8b5234
// > TIFFReadDirectory @ 0x8c150c
// > TIFFReadDirectory @ 0x8c1604
// > TIFFReadDirectory @ 0x8c1810
// > sub_8C330C @ 0x8c3368
// > sub_8C330C @ 0x8c341c
// > sub_8C6CBC @ 0x8c6d10
// > sub_8D5EA8 @ 0x8d60c8
// > TIFFPrintDirectory @ 0x8fc910
// > ??> @ 0x6aefc
//
// 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 TIFFFieldWithTag(int a1, int a2)
{
int v5; // [sp+Ch] [bp-8h]
v5 = TIFFFindField(a1, a2, 0);
if ( !v5 )
TIFFErrorExt(*(_DWORD *)(a1 + 628), "TIFFFieldWithTag", "Internal error, unknown tag 0x%x", a2);
return v5;
}