//
// jpeg_default_colorspace from 0x881ca4 to 0x881cee (74 bytes)
//
// 1 xrefs:
// > jpeg_set_defaults @ 0x881f80
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:03:11 +0000
//
int __fastcall jpeg_default_colorspace(_DWORD *a1)
{
int v1; // r1
int result; // r0
switch ( a1[10] )
{
case 0:
v1 = 0;
goto LABEL_3;
case 1:
v1 = 1;
goto LABEL_3;
case 2:
case 3:
v1 = 3;
goto LABEL_3;
case 4:
v1 = 4;
goto LABEL_3;
case 5:
v1 = 5;
goto LABEL_3;
case 6:
v1 = 6;
goto LABEL_3;
case 7:
v1 = 7;
LABEL_3:
result = jpeg_set_colorspace((int)a1, v1);
break;
default:
*(_DWORD *)(*a1 + 20) = 10;
result = (*(int (__fastcall **)(_DWORD *))*a1)(a1);
break;
}
return result;
}