{"type": "func", "start": 4299069812, "end": 4299069988, "name": "EditorUI::getCycledObject", "pseudocode": "// \n// EditorUI::getCycledObject from 0x1003e9974 to 0x1003e9a24 (176 bytes)\n// \n// 3 xrefs:\n// > EditorUI::onDelete @ 0x1003e68d4\n// > EditorUI::ccTouchEnded @ 0x1003f94b8\n// > EditorUI::ccTouchEnded @ 0x1003f9578\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nGameObject *__fastcall EditorUI::getCycledObject(EditorUI *a1, cocos2d::CCArray *a2, bool a3)\n{\n  _BOOL4 v3; // w20\n  __int64 v6; // x22\n  unsigned int v7; // w23\n  __int64 v8; // x0\n  __int64 v10; // x24\n\n  v3 = a3;\n  v6 = 0;\n  if ( (unsigned int)sub_10024A36C((__int64)a2) )\n  {\n    v7 = 0;\n    do\n    {\n      v8 = sub_10024A388((__int64)a2, v7);\n      if ( *(_BYTE *)(v8 + 1133) != 1 || v3 )\n      {\n        v10 = v8;\n        if ( (!v6 || *(_DWORD *)(v8 + 1136) < *(_DWORD *)(v6 + 1136))\n          && EditorUI::canSelectObject((EditorUI *)v8, (GameObject *)v8) )\n        {\n          v6 = v10;\n        }\n      }\n      ++v7;\n    }\n    while ( v7 < (unsigned int)sub_10024A36C((__int64)a2) );\n    if ( v6 )\n      *(_DWORD *)(v6 + 1136) = a1->m_cycledObjectIndex;\n  }\n  return (GameObject *)v6;\n}", "assembly": "; \n; EditorUI::getCycledObject from 0x1003e9974 to 0x1003e9a24 (176 bytes)\n; \n; 3 xrefs:\n; > EditorUI::onDelete @ 0x1003e68d4\n; > EditorUI::ccTouchEnded @ 0x1003f94b8\n; > EditorUI::ccTouchEnded @ 0x1003f9578\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X24, X23, [SP,#-0x10+var_30]!                          ; +0x0, 0x1003e9974\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1003e9978\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1003e997c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1003e9980\nADD             X29, SP, #0x30                                         ; +0x10, 0x1003e9984\nMOV             X20, X2                                                ; +0x14, 0x1003e9988\nMOV             X21, X1                                                ; +0x18, 0x1003e998c\nMOV             X19, X0                                                ; +0x1c, 0x1003e9990\nMOV             X0, X1                                                 ; +0x20, 0x1003e9994\nBL              sub_10024A36C                                          ; +0x24, 0x1003e9998\nMOV             X22, #0                                                ; +0x28, 0x1003e999c\nCBZ             W0, loc_1003E9A0C                                      ; +0x2c, 0x1003e99a0\nMOV             W23, #0                                                ; +0x30, 0x1003e99a4\nMOV             X0, X21                                                ; +0x34, 0x1003e99a8\nMOV             X1, X23                                                ; +0x38, 0x1003e99ac\nBL              sub_10024A388                                          ; +0x3c, 0x1003e99b0\nLDRB            W8, [X0,#0x46D]                                        ; +0x40, 0x1003e99b4\nCMP             W8, #1                                                 ; +0x44, 0x1003e99b8\nCCMP            W20, #0, #0, EQ                                        ; +0x48, 0x1003e99bc\nB.EQ            loc_1003E99EC                                          ; +0x4c, 0x1003e99c0\nMOV             X24, X0                                                ; +0x50, 0x1003e99c4\nCBZ             X22, loc_1003E99DC                                     ; +0x54, 0x1003e99c8\nLDR             W8, [X24,#0x470]                                       ; +0x58, 0x1003e99cc\nLDR             W9, [X22,#0x470]                                       ; +0x5c, 0x1003e99d0\nCMP             W8, W9                                                 ; +0x60, 0x1003e99d4\nB.GE            loc_1003E99EC                                          ; +0x64, 0x1003e99d8\nMOV             X1, X24                                                ; +0x68, 0x1003e99dc\nBL              EditorUI__canSelectObject                              ; +0x6c, 0x1003e99e0\nCMP             W0, #0                                                 ; +0x70, 0x1003e99e4\nCSEL            X22, X24, X22, NE                                      ; +0x74, 0x1003e99e8\nADD             W23, W23, #1                                           ; +0x78, 0x1003e99ec\nMOV             X0, X21                                                ; +0x7c, 0x1003e99f0\nBL              sub_10024A36C                                          ; +0x80, 0x1003e99f4\nCMP             W23, W0                                                ; +0x84, 0x1003e99f8\nB.CC            loc_1003E99A8                                          ; +0x88, 0x1003e99fc\nCBZ             X22, loc_1003E9A0C                                     ; +0x8c, 0x1003e9a00\nLDR             W8, [X19,#0x544]                                       ; +0x90, 0x1003e9a04\nSTR             W8, [X22,#0x470]                                       ; +0x94, 0x1003e9a08\nMOV             X0, X22                                                ; +0x98, 0x1003e9a0c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x9c, 0x1003e9a10\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xa0, 0x1003e9a14\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xa4, 0x1003e9a18\nLDP             X24, X23, [SP+0x30+var_30],#0x40                       ; +0xa8, 0x1003e9a1c\nRET                                                                    ; +0xac, 0x1003e9a20", "xrefs": ["EditorUI::onDelete @ 0x1003e68d4", "EditorUI::ccTouchEnded @ 0x1003f94b8", "EditorUI::ccTouchEnded @ 0x1003f9578"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}