//
// sub_10042C92C from 0x10042c92c to 0x10042c9a4 (120 bytes)
//
// 3 xrefs:
// > EditorUI::getCreateBtn @ 0x100184564
// > SetupObjectTogglePopup::valueDidChange @ 0x1002382a0
// > LevelEditorLayer::addSpecial @ 0x1003f9d64
//
// 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
//
_DWORD *__fastcall sub_10042C92C(_DWORD *result)
{
__int64 v1; // x29
__int64 v2; // x30
_DWORD *v3; // x19
int v4; // w8
__int16 v5; // [xsp+Ch] [xbp-24h] BYREF
char v6; // [xsp+Eh] [xbp-22h]
__int64 v7; // [xsp+20h] [xbp-10h]
__int64 v8; // [xsp+28h] [xbp-8h]
if ( result[257] == 1049 )
{
v7 = v1;
v8 = v2;
v3 = result;
result = (_DWORD *)(*(__int64 (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)result + 480LL))(result, 998);
if ( result )
{
if ( *((_BYTE *)v3 + 1637) )
v4 = 8388352;
else
v4 = 4145151;
v5 = v4;
v6 = BYTE2(v4);
return (_DWORD *)(*(__int64 (__fastcall **)(_DWORD *, __int16 *))(*(_QWORD *)result + 960LL))(result, &v5);
}
}
return result;
}