// // EditorUI::getCycledObject from 0x1000326f0 to 0x1000327f4 (260 bytes) // // 2 xrefs: // > EditorUI::ccTouchEnded @ 0x10004fe88 // > EditorUI::ccTouchEnded @ 0x10004ff5f // // 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 // GameObject *__fastcall EditorUI::getCycledObject(EditorUI *a1, cocos2d::CCArray *a2, bool a3) { __int64 v4; // r14 unsigned int v5; // r12d __int64 v6; // r13 __int64 v7; // rax unsigned int v8; // r12d __int64 v9; // r13 __int64 v10; // rax if ( !(unsigned int)sub_100720070(a2) ) return nullptr; if ( a3 ) { v4 = 0; v5 = 0; do { v7 = sub_1007200C0(a2, v5); if ( !v4 || *(_DWORD *)(v7 + 1136) < *(_DWORD *)(v4 + 1136) ) { v6 = v7; if ( EditorUI::canSelectObject((EditorUI *)a2, (GameObject *)v7) ) v4 = v6; } ++v5; } while ( v5 < (unsigned int)sub_100720070(a2) ); } else { v4 = 0; v8 = 0; do { v10 = sub_1007200C0(a2, v8); if ( !*(_BYTE *)(v10 + 1133) && (!v4 || *(_DWORD *)(v10 + 1136) < *(_DWORD *)(v4 + 1136)) ) { v9 = v10; if ( EditorUI::canSelectObject((EditorUI *)a2, (GameObject *)v10) ) v4 = v9; } ++v8; } while ( v8 < (unsigned int)sub_100720070(a2) ); } if ( !v4 ) return nullptr; *(_DWORD *)(v4 + 1136) = a1->m_cycledObjectIndex; return (GameObject *)v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source