// // EditorUI::editorLayerForArray from 0x689a24 to 0x689ad4 (176 bytes) // // 5 xrefs: // > EditorUI::onGoToLayer @ 0x68e9d0 // > EditorUI::onGoToLayer @ 0x68e9e4 // > EditorUI::updateButtons @ 0x6b5550 // > EditorUI::updateButtons @ 0x6b5568 // > @ 0x445b0 // // 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 EditorUI::editorLayerForArray(EditorUI *a1, cocos2d::CCArray *a2, bool a3) { _BOOL4 v3; // w22 unsigned int v5; // w19 int v6; // w20 bool v7; // cf unsigned int v8; // w1 cocos2d::CCArray *v9; // x0 __int64 v10; // x0 int v11; // w0 v3 = a3; if ( a2 ) { v5 = 0; v6 = -1; v7 = (unsigned int)cocos2d::CCArray::count(a2) == 0; v8 = 0; v9 = a2; if ( v7 ) { LABEL_9: if ( v6 != -1 ) return v6; } else { while ( 1 ) { v10 = cocos2d::CCArray::objectAtIndex(v9, v8); v11 = v3 ? *(__int16 *)(v10 + 1188) : *(__int16 *)(v10 + 1186); ++v5; if ( v6 != -1 && v6 != v11 ) break; v6 = v11; v7 = v5 >= (unsigned int)cocos2d::CCArray::count(a2); v8 = v5; v9 = a2; if ( v7 ) goto LABEL_9; } } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source