//
// TIFFVSetField from 0xea84cc to 0xea85c0 (244 bytes)
//
// 2 xrefs:
// > TIFFSetField @ 0xea8638
// > ??> @ 0xdc768
//
// 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:11 +0000
//
__int64 __fastcall TIFFVSetField(const char **a1, __int64 a2, _QWORD *a3)
{
unsigned int v5; // w20
__int64 v6; // x4
__int64 v7; // x7
const char *v8; // x3
__int64 v9; // x4
__int64 v10; // x5
const char *v12; // x4
_QWORD v13[4]; // [xsp+30h] [xbp+30h] BYREF
v5 = a2;
v6 = TIFFFindField(a1, a2, 0);
if ( v6 )
{
if ( v5 == 257 || ((_DWORD)a1[2] & 0x40) == 0 || *(_BYTE *)(v6 + 26) )
{
v7 = a3[1];
v8 = a1[129];
v9 = a3[2];
v10 = a3[3];
v13[0] = *a3;
v13[1] = v7;
v13[2] = v9;
v13[3] = v10;
return ((__int64 (__fastcall *)(const char **, _QWORD, _QWORD *))v8)(a1, v5, v13);
}
else
{
TIFFErrorExt(
a1[119],
"TIFFSetField",
"%s: Cannot modify tag \"%s\" while writing",
*a1,
*(const char **)(v6 + 32));
return 0;
}
}
else
{
if ( v5 > 0xFFFF )
v12 = "pseudo-";
else
v12 = &byte_11B8890;
TIFFErrorExt(a1[119], "TIFFSetField", "%s: Unknown %stag %u", *a1, v12, v5);
return 0;
}
}