//
// jpeg_new_colormap from 0xe8977c to 0xe89818 (156 bytes)
//
// 1 xrefs:
// > ??> @ 0xc0ec8
//
// 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:10:52 +0000
//
__int64 __fastcall jpeg_new_colormap(void (__fastcall ***a1)(__int64))
{
int v1; // w1
void (__fastcall **v3)(__int64); // x20
void (__fastcall **v4)(__int64); // x2
void (__fastcall **v5)(__int64); // x1
__int64 result; // x0
void (__fastcall *v7)(__int64); // x2
v1 = *((_DWORD *)a1 + 9);
v3 = a1[72];
if ( v1 != 207 )
{
v4 = *a1;
*((_DWORD *)v4 + 11) = v1;
*((_DWORD *)v4 + 10) = 21;
(**a1)((__int64)a1);
}
if ( *((_DWORD *)a1 + 27) && *((_DWORD *)a1 + 32) && a1[20] )
{
v5 = (void (__fastcall **)(__int64))v3[5];
a1[82] = v5;
result = ((__int64 (__fastcall *)(__int64))v5[3])((__int64)a1);
*((_DWORD *)v3 + 4) = 0;
}
else
{
v7 = **a1;
*((_DWORD *)*a1 + 10) = 47;
return ((__int64 (__fastcall *)(_QWORD))v7)(a1);
}
return result;
}