//
// jpeg_default_colorspace from 0xe77990 to 0xe77a4c (188 bytes)
//
// 2 xrefs:
// > jpeg_set_defaults @ 0xe77c1c
// > ??> @ 0x5b450
//
// 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:40 +0000
//
__int64 __fastcall jpeg_default_colorspace(_QWORD **a1)
{
__int64 (__fastcall *v1)(_QWORD **); // x2
__int64 result; // x0
int v3; // w1
switch ( *((_DWORD *)a1 + 15) )
{
case 0:
v3 = 0;
goto LABEL_5;
case 1:
v3 = 1;
goto LABEL_5;
case 2:
case 3:
v3 = 3;
goto LABEL_5;
case 4:
v3 = 4;
goto LABEL_5;
case 5:
v3 = 5;
goto LABEL_5;
case 6:
v3 = 6;
goto LABEL_5;
case 7:
v3 = 7;
LABEL_5:
result = jpeg_set_colorspace((__int64 (__fastcall ***)(_QWORD))a1, v3);
break;
default:
v1 = (__int64 (__fastcall *)(_QWORD **))**a1;
*((_DWORD *)*a1 + 10) = 10;
result = v1(a1);
break;
}
return result;
}