//
// EditorUI::handleAction from 0x100162524 to 0x100162738 (532 bytes)
//
// 2 xrefs:
// > sub_100163AC0 @ 0x100163ac4
// > ??> @ 0x10096d390
//
// 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 10:59:47 +0000
//
__int64 __fastcall EditorUI::handleAction(__int64 a1, __int64 a2, __int64 a3, double a4)
{
__int64 v8; // x0
__int64 v9; // x0
int v10; // w8
__int64 v11; // x8
if ( (_DWORD)a3 )
{
if ( (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 784) + 352LL))(*(_QWORD *)(a1 + 784))
&& (sub_100159708(*(_QWORD **)(a1 + 784)) & 1) != 0 )
{
return 1;
}
v8 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 760) + 352LL))(*(_QWORD *)(a1 + 760));
if ( (_DWORD)v8 )
{
v8 = sub_100157708(*(_QWORD *)(a1 + 760));
if ( (v8 & 1) != 0 )
return 1;
}
v9 = cocos2d::CCDirector::sharedDirector(v8);
if ( *(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 192LL))(v9) + 133) == 1
&& ((unsigned int)(a2 - 20063) > 0x34 || ((1LL << ((unsigned __int8)a2 - 95)) & 0x18FFFF0000000FLL) == 0)
&& ((unsigned int)(a2 - 20001) > 0x2F || ((1LL << ((unsigned __int8)a2 - 33)) & 0xFF03C0000003LL) == 0)
&& (unsigned int)(a2 - 20174) >= 8 )
{
return 1;
}
}
if ( (int)a2 > 20068 )
{
if ( (_DWORD)a2 == 20069 )
{
*(_BYTE *)(a1 + 688) = a3;
}
else if ( (_DWORD)a2 == 20087 )
{
if ( (_DWORD)a3 )
{
v10 = *(_DWORD *)(*(_QWORD *)(a1 + 1440) + 1972LL);
if ( v10 == 2 )
{
sub_100405110();
}
else if ( v10 == 1 )
{
sub_100405040();
}
}
return 1;
}
}
else
{
if ( (_DWORD)a2 == 20067 )
{
if ( (_DWORD)a3 )
EditorUI::onPause(a1, 0);
return 1;
}
if ( (_DWORD)a2 == 20068 )
{
if ( (_DWORD)a3 )
{
if ( *(_DWORD *)(*(_QWORD *)(a1 + 1440) + 1972LL) )
{
EditorUI::onStopPlaytest(a1, 0);
}
else if ( *(_DWORD *)(a1 + 704) == -1 )
{
EditorUI::onPlaytest(a1, 0);
}
}
return 1;
}
}
v11 = *(_QWORD *)(a1 + 1440);
if ( *(_DWORD *)(v11 + 1972) == 1 )
return (*(__int64 (__fastcall **)(_QWORD, __int64, __int64, double))(**(_QWORD **)(v11 + 13288) + 1312LL))(
*(_QWORD *)(v11 + 13288),
a2,
a3,
a4);
else
return EditorUI::handleEditorAction(a1, a2, a3);
}