// // EditorUI::editButton2Usable from 0x7c4f04 to 0x7c517c (632 bytes) // // 2 xrefs: // > EditorUI::toggleEditObjectButton @ 0x7c5b84 // > @ 0xf1ee8 // // 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 12:54:08 +0000 // __int64 __fastcall EditorUI::editButton2Usable(EditorUI *this) { GameObject *v1; // x1 cocos2d::CCArray *v3; // x2 __int64 result; // x0 GameObject *v5; // x1 _DWORD *v6; // x0 int v7; // w1 unsigned int i; // w21 __int64 v9; // x0 unsigned int j; // w21 __int64 v11; // x0 __int64 v12; // [xsp+3Ch] [xbp+3Ch] BYREF int v13; // [xsp+44h] [xbp+44h] BYREF v1 = *((GameObject **)this + 187); v3 = *((cocos2d::CCArray **)this + 112); v12 = -1; v13 = -1; EditorUI::getGroupInfo(this, v1, v3, (int *)&v12, (int *)&v12 + 1, &v13); if ( v12 == -1 ) return 0; if ( HIDWORD(v12) != 5 ) { result = (unsigned __int8)EditorUI::arrayContainsClass(this, *((cocos2d::CCArray **)this + 112), 5); if ( !(_BYTE)result && v13 != 30 ) { if ( (int)v12 <= 2905 ) { if ( (int)v12 >= 2903 || (_DWORD)v12 == 1704 ) return 1; if ( (int)v12 <= 1704 ) { if ( (_DWORD)v12 == 1594 || (_DWORD)v12 == 1615 ) return 1; } else if ( (_DWORD)v12 == 2063 || (_DWORD)v12 == 2065 || (_DWORD)v12 == 1751 ) { return 1; } } else if ( (int)v12 <= 2917 ) { if ( (int)v12 >= 2909 || (_DWORD)v12 == 2907 ) return 1; } else if ( (int)v12 >= 2919 ) { if ( (int)v12 <= 2924 ) return 1; if ( (_DWORD)v12 == 3643 ) return result; } v5 = *((GameObject **)this + 187); if ( v5 ) { if ( (*(unsigned int (__fastcall **)(_QWORD))(*(_QWORD *)v5 + 1800LL))(*((_QWORD *)this + 187)) == 30 ) return 1; v6 = *((_DWORD **)this + 187); v7 = v6[257]; if ( v7 == 2065 || v7 == 1615 || (*(unsigned __int8 (__fastcall **)(_DWORD *))(*(_QWORD *)v6 + 1736LL))(v6) || (*(unsigned __int8 (__fastcall **)(_QWORD))(**((_QWORD **)this + 187) + 1728LL))(*((_QWORD *)this + 187)) || (*(unsigned __int8 (__fastcall **)(_QWORD))(**((_QWORD **)this + 187) + 1632LL))(*((_QWORD *)this + 187)) ) { return 1; } v5 = *((GameObject **)this + 187); } if ( !(unsigned __int8)EditorUI::canAllowMultiActivate(this, v5, *((cocos2d::CCArray **)this + 112)) ) { if ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)) ) { for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)); ++i ) { v9 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 112), i); if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v9 + 1728LL))(v9) ) goto LABEL_40; } return 1; } LABEL_40: if ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)) ) { for ( j = 0; j < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)); ++j ) { v11 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 112), j); if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v11 + 1736LL))(v11) ) return 0; } return 1; } return 0; } } } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source