//
// sub_10048DC34 from 0x10048dc34 to 0x10048dcc4 (144 bytes)
//
// 0 xrefs:
//
// 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 sub_10048DC34(__int64 a1, int a2, int a3)
{
int *v3; // x8
__int64 result; // x0
v3 = (int *)(a1 + 33996);
if ( a2 == 1 )
{
v3 = (int *)(a1 + 34000);
goto LABEL_9;
}
result = 31;
if ( a2 )
return result;
if ( a3 > 2047 )
{
if ( a3 >= 0x2000 )
{
if ( a3 == 0x4000 || a3 == 0x2000 )
goto LABEL_9;
}
else if ( a3 == 2048 || a3 == 4096 )
{
goto LABEL_9;
}
}
else
{
if ( a3 <= 511 )
{
if ( a3 != 128 && a3 != 256 )
return result;
LABEL_9:
result = 0;
*v3 = a3;
return result;
}
if ( a3 == 512 || a3 == 1024 )
goto LABEL_9;
}
return result;
}