//
// EditorUI::onGoToLayer from 0x100472ba8 to 0x100472c68 (192 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x100162b00
// > EditorUI::init @ 0x100470214
//
// 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:39 +0000
//
__int64 __fastcall EditorUI::onGoToLayer(__int64 *a1)
{
__int64 v2; // x9
__int64 v3; // x8
int v4; // w21
int v5; // w20
int v6; // w0
bool v7; // zf
__int16 v8; // w9
int v9; // w10
__int64 result; // x0
__int64 v12; // x0
v2 = a1[187];
if ( v2 )
{
v3 = a1[180];
v4 = *(__int16 *)(v3 + 14210);
}
else
{
result = sub_1002E757C(a1[112]);
if ( !(_DWORD)result )
return result;
v2 = a1[187];
v3 = a1[180];
v4 = *(__int16 *)(v3 + 14210);
if ( !v2 )
{
v12 = ((__int64 (*)(void))EditorUI::editorLayerForArray)();
v5 = v12;
v6 = EditorUI::editorLayerForArray(v12, a1[112], 1);
v3 = a1[180];
goto LABEL_4;
}
}
v5 = *(__int16 *)(v2 + 1202);
v6 = *(__int16 *)(v2 + 1204);
LABEL_4:
if ( v6 )
v7 = v5 == 0;
else
v7 = 0;
if ( v7 )
v8 = v6;
else
v8 = v5;
if ( v5 )
v9 = v6;
else
v9 = 0;
if ( v9 != v4 && v9 != 0 )
v8 = v9;
*(_WORD *)(v3 + 14210) = v8;
return EditorUI::updateGroupIDLabel(a1);
}