//
// sub_10042F238 from 0x10042f238 to 0x10042f2a8 (112 bytes)
//
// 3 xrefs:
// > sub_10042F0CC @ 0x10042f17c
// > LabelGameObject::customObjectSetup @ 0x10042f8ac
// > SetItemIDLayer::valueDidChange @ 0x10049c294
//
// 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:05 +0000
//
__int64 __fastcall sub_10042F238(__int64 result, int a2)
{
__int64 v2; // x19
float v3; // s0
float v4; // [xsp+8h] [xbp-18h] BYREF
*(_DWORD *)(result + 1884) = a2;
v2 = *(_QWORD *)(result + 1840);
if ( v2 )
{
if ( a2 == 2 )
{
v3 = 1.0;
}
else if ( a2 == 1 )
{
v3 = 0.0;
}
else
{
v3 = 0.5;
}
sub_1000262BC(&v4, v3, 0.5);
return (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v2 + 296LL))(v2, &v4);
}
return result;
}