// // EditorUI::selectBuildTab from 0x1401b56f0 to 0x1401b5853 (355 bytes) // // 8 xrefs: // > EditorUI::updateCreateMenu @ 0x1401b23cd // > EditorUI::onSelectBuildTab @ 0x1401b56dc // > EditorUI::handleEditorAction @ 0x1401c44a2 // > EditorUI::handleEditorAction @ 0x1401c44c1 // > EditorUI::setupCreateMenu @ 0x1401f07c9 // > @ 0x1408a1bb8 // > @ 0x1408a1bec // > @ 0x14091a1ec // // This function is hookable on this platform (idp: pc, 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:27:57 +0000 // unsigned int __fastcall EditorUI::selectBuildTab(__int64 a1, unsigned int a2) { unsigned int result; // eax unsigned int v3; // edi __int64 v5; // rax cocos2d::CCArray *v6; // rcx unsigned int v7; // esi unsigned int v8; // edi struct cocos2d::CCObject *v9; // r14 __int64 v10; // rdx struct cocos2d::CCObject *v11; // rax __int64 v12; // rdx result = *(_DWORD *)(a1 + 1608); v3 = a2; if ( result != a2 && (*(_DWORD *)(a1 + 1508) == 2 || result == -1) ) { if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1240)) - 1 < a2 ) cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1240)); if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1240)) - 1 < v3 ) v3 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1240)) - 1; v5 = EditorSFXManager::sharedState(); EditorSFXManager::playAction(v5, 164); v6 = *(cocos2d::CCArray **)(a1 + 1240); v7 = 0; *(_DWORD *)(a1 + 1608) = v3; v8 = 0; if ( cocos2d::CCArray::count(v6) ) { do { v9 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 1240), v8); LOBYTE(v10) = v8 == *(_DWORD *)(a1 + 1608); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v9 + 336LL))(v9, v10); if ( v8 == *(_DWORD *)(a1 + 1608) ) *(_QWORD *)(a1 + 872) = v9; ++v8; } while ( v8 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1240)) ); } result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1256)); if ( result ) { do { v11 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 1256), v7); LOBYTE(v12) = v7 == *(_DWORD *)(a1 + 1608); CCMenuItemToggler::toggle((__int64)v11, v12); ++v7; result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1256)); } while ( v7 < result ); } } return result; }