//
// TIFFFieldWithTag from 0xeaa09c to 0xeaa108 (108 bytes)
//
// 15 xrefs:
// > sub_EA662C @ 0xea67a4
// > sub_EA662C @ 0xea6a3c
// > TIFFUnsetField @ 0xea83b8
// > sub_EB0F58 @ 0xeb0fb0
// > sub_EB0F58 @ 0xeb112c
// > sub_EB0F58 @ 0xeb1210
// > sub_EB0F58 @ 0xeb12a0
// > TIFFReadCustomDirectory @ 0xeb21a4
// > TIFFReadCustomDirectory @ 0xeb21e0
// > TIFFReadDirectory @ 0xeb2bd0
// > TIFFReadDirectory @ 0xeb2c3c
// > TIFFReadDirectory @ 0xeb2e6c
// > sub_EB9C6C @ 0xeb9d0c
// > TIFFPrintDirectory @ 0xed3810
// > ??> @ 0x9c490
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:11:12 +0000
//
_DWORD *__fastcall TIFFFieldWithTag(_QWORD *a1, int a2)
{
_DWORD *result; // x0
result = TIFFFindField(a1, a2, 0);
if ( !result )
{
TIFFErrorExt(a1[119], "TIFFFieldWithTag", "Internal error, unknown tag 0x%x", a2);
return nullptr;
}
return result;
}