// // EditorUI::editorLayerForArray from 0x1003e665c to 0x1003e66f8 (156 bytes) // // 4 xrefs: // > EditorUI::onGoToLayer @ 0x1003e58bc // > EditorUI::onGoToLayer @ 0x1003e58cc // > EditorUI::updateButtons @ 0x1003e5d8c // > EditorUI::updateButtons @ 0x1003e5da0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall EditorUI::editorLayerForArray(EditorUI *a1, cocos2d::CCArray *a2, bool a3) { _BOOL4 v3; // w21 unsigned int v5; // w20 __int64 v6; // x22 int v7; // w21 __int64 v8; // x0 if ( !a2 ) return 0; v3 = a3; if ( !(unsigned int)sub_10024A36C((__int64)a2) ) return 0; v5 = 0; v6 = v3 ? 1204LL : 1202LL; v7 = -1; do { v8 = sub_10024A388((__int64)a2, v5); if ( v7 == -1 ) { v7 = *(__int16 *)(v8 + v6); } else if ( v7 != *(__int16 *)(v8 + v6) ) { return 0; } ++v5; } while ( v5 < (unsigned int)sub_10024A36C((__int64)a2) ); if ( v7 == -1 ) return 0; return v7; }