//
// sub_10042C9A4 from 0x10042c9a4 to 0x10042caa0 (252 bytes)
//
// 2 xrefs:
// > PlayLayer::updateVisibility @ 0x100145a98
// > LevelEditorLayer::updateVisibility @ 0x100400098
//
// 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_10042C9A4(__int64 result, float a2)
{
__int64 v2; // x19
__int64 v4; // x20
double *v5; // x0
__int64 v6; // x19
float v7; // [xsp+0h] [xbp-30h] BYREF
__int64 v8; // [xsp+8h] [xbp-28h] BYREF
if ( (*(_BYTE *)(result + 774) & 1) == 0 )
{
v2 = result;
if ( *(_DWORD *)(result + 1028) != 1614 && (*(_BYTE *)(result + 1700) & 1) == 0 )
{
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 480LL))(result, 1);
if ( result )
{
v4 = result;
v5 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 328LL))(v2);
sub_100026438(&v8, v5);
sub_1000262BC(&v7, *(float *)&v8 * 0.5, (float)(*((float *)&v8 + 1) * 0.5) + a2);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v4 + 184LL))(v4, &v7);
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 480LL))(v2, 2);
if ( result )
{
v6 = result;
sub_1000262BC(&v7, *(float *)&v8 * 0.5, (float)(*((float *)&v8 + 1) * 0.5) + a2);
return (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v6 + 184LL))(v6, &v7);
}
}
}
}
return result;
}