//
// sub_EAADAC from 0xeaadac to 0xeaaf0c (352 bytes)
//
// 5 xrefs:
// > sub_EAE95C @ 0xeaeac0
// > TIFFReadCustomDirectory @ 0xeb2040
// > TIFFReadDirectory @ 0xeb2764
// > TIFFReadDirectory @ 0xeb2bec
// > TIFFReadDirectory @ 0xeb2c60
//
// 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
//
_QWORD *__fastcall sub_EAADAC(_QWORD *result, int a2, __int64 a3, __int64 a4, int a5)
{
int v5; // w1
v5 = a2 - 1;
if ( a5 )
{
switch ( v5 )
{
case 0:
result = (_QWORD *)TIFFErrorExt(*result, a3, "Incorrect count for \"%s\"; tag ignored");
break;
case 1:
result = (_QWORD *)TIFFWarningExt(*result, a3, "Incompatible type for \"%s\"; tag ignored");
break;
case 2:
result = (_QWORD *)TIFFWarningExt(*result, a3, "IO error during reading of \"%s\"; tag ignored");
break;
case 3:
result = (_QWORD *)TIFFWarningExt(*result, a3, "Incorrect value for \"%s\"; tag ignored");
break;
case 4:
result = (_QWORD *)TIFFWarningExt(
*result,
a3,
"Cannot handle different values per sample for \"%s\"; tag ignored");
break;
case 5:
result = (_QWORD *)TIFFWarningExt(*result, a3, "Sanity check on size of \"%s\" value failed; tag ignored");
break;
case 6:
result = (_QWORD *)TIFFWarningExt(*result, a3, "Out of memory reading of \"%s\"; tag ignored");
break;
default:
return result;
}
}
else
{
switch ( v5 )
{
case 0:
result = (_QWORD *)TIFFErrorExt(*result, a3, "Incorrect count for \"%s\"");
break;
case 1:
result = (_QWORD *)TIFFErrorExt(*result, a3, "Incompatible type for \"%s\"");
break;
case 2:
result = (_QWORD *)TIFFErrorExt(*result, a3, "IO error during reading of \"%s\"");
break;
case 3:
result = (_QWORD *)TIFFErrorExt(*result, a3, "Incorrect value for \"%s\"");
break;
case 4:
result = (_QWORD *)TIFFErrorExt(*result, a3, "Cannot handle different values per sample for \"%s\"");
break;
case 5:
result = (_QWORD *)TIFFErrorExt(*result, a3, "Sanity check on size of \"%s\" value failed");
break;
case 6:
result = (_QWORD *)TIFFErrorExt(*result, a3, "Out of memory reading of \"%s\"");
break;
default:
return result;
}
}
return result;
}