// // EditorUI::enableButton from 0x10047488c to 0x1004749c0 (308 bytes) // // 1 xrefs: // > EditorUI::updateCreateMenu @ 0x10047465c // // 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::enableButton(__int64 a1, _DWORD *a2) { _QWORD *v3; // x20 __int64 result; // x0 __int64 v5; // x19 int v6; // w8 __int16 v7; // [xsp+8h] [xbp-18h] BYREF char v8; // [xsp+Ah] [xbp-16h] __int16 v9; // [xsp+Ch] [xbp-14h] BYREF char v10; // [xsp+Eh] [xbp-12h] v3 = (_QWORD *)(*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 1072LL))(a2); result = v3[80]; if ( result || (result = v3[81]) != 0 ) result = (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)result + 960LL))(result, &word_10076F228); if ( (a2[132] & 0x80000000) == 0 ) { v5 = v3[79]; v10 = -1; v9 = -1; if ( *(_DWORD *)(v5 + 1248) == 1 && GameObject::isColorObject(v5) && *(_BYTE *)(v5 + 1768) == 1 ) { v10 = -1; v9 = -14136; LABEL_17: (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v5 + 1496LL))(v5, &v9); v8 = -1; v7 = -14136; return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v5 + 1096LL))(v5, &v7); } v6 = *(_DWORD *)(v5 + 1028); if ( v6 > 1583 ) { if ( v6 == 2012 || v6 == 1584 ) goto LABEL_16; } else if ( (unsigned int)(v6 - 918) < 2 || (unsigned int)(v6 - 1327) < 2 ) { goto LABEL_16; } if ( (unsigned int)GameObject::getMainColorMode(v5) != 1010 ) goto LABEL_17; LABEL_16: v10 = 0; v9 = 0; goto LABEL_17; } return result; }