//
// EditorUI::disableButton from 0x1004749c0 to 0x100474acc (268 bytes)
//
// 1 xrefs:
// > EditorUI::updateCreateMenu @ 0x100474728
//
// 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:40 +0000
//
__int64 __fastcall EditorUI::disableButton(__int64 a1, _DWORD *a2)
{
_QWORD *v3; // x20
__int64 v4; // x0
__int64 (*v5)(void); // x8
__int64 result; // x0
__int64 v7; // x19
__int16 v8; // [xsp+0h] [xbp-30h] BYREF
char v9; // [xsp+2h] [xbp-2Eh]
__int16 v10; // [xsp+4h] [xbp-2Ch] BYREF
char v11; // [xsp+6h] [xbp-2Ah]
__int16 v12; // [xsp+8h] [xbp-28h]
char v13; // [xsp+Ah] [xbp-26h]
__int16 v14; // [xsp+Ch] [xbp-24h]
char v15; // [xsp+Eh] [xbp-22h]
v3 = (_QWORD *)(*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 1072LL))(a2);
v4 = v3[80];
if ( v4 )
{
v14 = 32639;
v15 = 127;
v5 = *(__int64 (**)(void))(*(_QWORD *)v4 + 960LL);
}
else
{
result = v3[81];
if ( !result )
goto LABEL_6;
v12 = 32639;
v13 = 127;
v5 = *(__int64 (**)(void))(*(_QWORD *)result + 960LL);
}
result = v5();
LABEL_6:
if ( (a2[132] & 0x80000000) == 0 )
{
v7 = v3[79];
v11 = 127;
v10 = 32639;
v9 = 127;
v8 = 25700;
if ( *(_DWORD *)(v7 + 1248) == 1 && GameObject::isColorObject(v7) && *(_BYTE *)(v7 + 1768) == 1 )
{
v10 = v8;
v11 = v9;
}
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v7 + 1496LL))(v7, &v10);
return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v7 + 1096LL))(v7, &v8);
}
return result;
}