//
// TIFFFieldWithTag from 0xc33edc to 0xc33f48 (108 bytes)
//
// 15 xrefs:
// > sub_C3046C @ 0xc305e4
// > sub_C3046C @ 0xc3087c
// > TIFFUnsetField @ 0xc321f8
// > sub_C3AD98 @ 0xc3adf0
// > sub_C3AD98 @ 0xc3af6c
// > sub_C3AD98 @ 0xc3b050
// > sub_C3AD98 @ 0xc3b0e0
// > TIFFReadCustomDirectory @ 0xc3bfe4
// > TIFFReadCustomDirectory @ 0xc3c020
// > TIFFReadDirectory @ 0xc3ca10
// > TIFFReadDirectory @ 0xc3ca7c
// > TIFFReadDirectory @ 0xc3ccac
// > sub_C43AAC @ 0xc43b4c
// > TIFFPrintDirectory @ 0xc5d650
// > ??> @ 0x747a8
//
// 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
//
_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;
}