//
// sub_10042C8B8 from 0x10042c8b8 to 0x10042c92c (116 bytes)
//
// 2 xrefs:
// > sub_1004A2828 @ 0x1004a2848
// > sub_1004A2828 @ 0x1004a2894
//
// 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_10042C8B8(__int64 a1)
{
int v1; // w8
v1 = *(_DWORD *)(a1 + 1028);
if ( v1 > 743 )
{
if ( v1 == 744 )
return 1003;
if ( v1 != 900 )
{
if ( v1 == 915 )
return 1002;
return *(unsigned int *)(a1 + 1024);
}
return 1009;
}
else
{
if ( v1 == 29 )
return 1000;
if ( v1 != 30 )
{
if ( v1 == 105 )
return 1004;
return *(unsigned int *)(a1 + 1024);
}
return 1001;
}
}