//
// TIFFFieldWithTag from 0x6a8c28 to 0x6a8c9c (116 bytes)
//
// 13 xrefs:
// > sub_6A344C @ 0x6a4e40
// > sub_6A344C @ 0x6a4ef0
// > sub_6A344C @ 0x6a4f88
// > TIFFUnsetField @ 0x6a51b4
// > TIFFReadDirectory @ 0x6b194c
// > TIFFReadDirectory @ 0x6b1a44
// > TIFFReadDirectory @ 0x6b1c50
// > sub_6B374C @ 0x6b37a8
// > sub_6B374C @ 0x6b385c
// > sub_6B70FC @ 0x6b7150
// > sub_6C62E8 @ 0x6c6508
// > TIFFPrintDirectory @ 0x6ecd50
// > ??> @ 0x57edc
//
// 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 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;
}