// // EditorUI::selectBuildTab from 0x100476cd4 to 0x100476e14 (320 bytes) // // 4 xrefs: // > EditorUI::handleEditorAction @ 0x1001631d8 // > EditorUI::setupCreateMenu @ 0x100184324 // > EditorUI::updateCreateMenu @ 0x100474738 // > sub_100478118 @ 0x100478148 // // 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:41 +0000 // __int64 __fastcall EditorUI::selectBuildTab(__int64 result, unsigned int a2) { int v2; // w8 __int64 v3; // x19 unsigned int v5; // w20 int v6; // w0 __n128 v7; // q0 unsigned int v8; // w8 __int64 v9; // x0 unsigned int v10; // w20 __int64 v11; // x21 unsigned int v12; // w20 __int64 v13; // x0 v2 = *(_DWORD *)(result + 1536); if ( v2 != a2 ) { v3 = result; if ( v2 == -1 || *(_DWORD *)(result + 1436) == 2 ) { v5 = a2; v6 = sub_1002E757C(*(_QWORD *)(result + 1192)); v8 = v5; if ( v6 - 1 <= v5 ) v8 = sub_1002E757C(*(_QWORD *)(v3 + 1192)) - 1; if ( v8 ) { if ( (unsigned int)sub_1002E757C(*(_QWORD *)(v3 + 1192)) - 1 <= v5 ) v5 = sub_1002E757C(*(_QWORD *)(v3 + 1192)) - 1; } else { v5 = 0; } v9 = EditorSFXManager::sharedState(v7); EditorSFXManager::playAction_1(v9, 164); *(_DWORD *)(v3 + 1536) = v5; if ( (unsigned int)sub_1002E757C(*(_QWORD *)(v3 + 1192)) ) { v10 = 0; do { v11 = sub_1002E75A0(*(_QWORD *)(v3 + 1192), v10); (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v11 + 344LL))(v11, v10 == *(_DWORD *)(v3 + 1536)); if ( v10 == *(_DWORD *)(v3 + 1536) ) *(_QWORD *)(v3 + 824) = v11; ++v10; } while ( v10 < (unsigned int)sub_1002E757C(*(_QWORD *)(v3 + 1192)) ); } result = sub_1002E757C(*(_QWORD *)(v3 + 1208)); if ( (_DWORD)result ) { v12 = 0; do { v13 = sub_1002E75A0(*(_QWORD *)(v3 + 1208), v12); CCMenuItemToggler::toggle(v13, v12++ == *(_DWORD *)(v3 + 1536)); result = sub_1002E757C(*(_QWORD *)(v3 + 1208)); } while ( v12 < (unsigned int)result ); } } } return result; }