//
// sub_10042CC44 from 0x10042cc44 to 0x10042cd18 (212 bytes)
//
// 2 xrefs:
// > PlayLayer::addObject @ 0x10014200c
// > sub_1003FF9A4 @ 0x1003ff9f0
//
// 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 11:05:04 +0000
//
__int64 __fastcall sub_10042CC44(__int64 result)
{
int v1; // w8
__int16 v2; // w8
v1 = *(_DWORD *)(result + 1028);
if ( v1 <= 1933 )
{
if ( v1 <= 202 )
{
if ( v1 == 200 )
{
v2 = 1;
goto LABEL_25;
}
if ( v1 == 202 )
{
v2 = 2;
goto LABEL_25;
}
}
else
{
switch ( v1 )
{
case 203:
v2 = 3;
goto LABEL_25;
case 1334:
v2 = 4;
goto LABEL_25;
case 1917:
v2 = -1;
goto LABEL_25;
}
}
}
else if ( v1 > 2901 )
{
if ( v1 == 2902 || v1 == 3022 || v1 == 3027 )
{
v2 = -5;
goto LABEL_25;
}
}
else
{
switch ( v1 )
{
case 1934:
v2 = -3;
goto LABEL_25;
case 1935:
v2 = -2;
goto LABEL_25;
case 2900:
v2 = -4;
goto LABEL_25;
}
}
v2 = 0;
LABEL_25:
if ( *(_BYTE *)(result + 1780) )
v2 = -1;
*(_WORD *)(result + 1782) = v2;
return result;
}