//
// TIFFRGBAImageGet from 0xc53070 to 0xc530f4 (132 bytes)
//
// 4 xrefs:
// > TIFFReadRGBAImageOriented @ 0xc53204
// > TIFFReadRGBAStrip @ 0xc53310
// > TIFFReadRGBATile @ 0xc5357c
// > ??> @ 0xc4f50
//
// 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
//
__int64 __fastcall TIFFRGBAImageGet(__int64 *a1)
{
__int64 (*v1)(void); // x5
__int64 v3; // x0
__int64 v4; // x19
__int64 v5; // x0
__int64 v6; // x0
__int64 v7; // x19
__int64 v8; // x0
v1 = (__int64 (*)(void))a1[8];
if ( v1 )
{
if ( a1[9] )
{
return v1();
}
else
{
v3 = *a1;
v4 = *(_QWORD *)(v3 + 952);
v5 = TIFFFileName(v3);
TIFFErrorExt(v4, v5, "No \"put\" routine setupl; probably can not handle image format");
return 0;
}
}
else
{
v6 = *a1;
v7 = *(_QWORD *)(v6 + 952);
v8 = TIFFFileName(v6);
TIFFErrorExt(v7, v8, "No \"get\" routine setup");
return 0;
}
}