{"type": "func", "start": 8156372, "end": 8156568, "name": "EditorUI::getCycledObject", "pseudocode": "// \n// EditorUI::getCycledObject from 0x7c74d4 to 0x7c7598 (196 bytes)\n// \n// 4 xrefs:\n// > EditorUI::onDelete @ 0x7d1850\n// > EditorUI::ccTouchEnded @ 0xbd6584\n// > EditorUI::ccTouchEnded @ 0xbd6668\n// > <???> @ 0x860e0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:54:09 +0000\n// \n\n__int64 __fastcall EditorUI::getCycledObject(EditorUI *this, cocos2d::CCArray *a2, unsigned __int8 a3)\n{\n  unsigned int v5; // w23\n  unsigned int v6; // w19\n  __int64 v7; // x21\n  bool v8; // cf\n  unsigned int v9; // w1\n  cocos2d::CCArray *v10; // x0\n  __int64 v11; // x20\n\n  v5 = a3;\n  v6 = 0;\n  v7 = 0;\n  while ( 1 )\n  {\n    v8 = v6 >= (unsigned int)cocos2d::CCArray::count(a2);\n    v9 = v6;\n    v10 = a2;\n    ++v6;\n    if ( v8 )\n      break;\n    while ( 1 )\n    {\n      v11 = cocos2d::CCArray::objectAtIndex(v10, v9);\n      if ( *(unsigned __int8 *)(v11 + 1133) > v5 || v7 && *(_DWORD *)(v11 + 1136) >= *(_DWORD *)(v7 + 1136) )\n        break;\n      if ( (unsigned __int8)EditorUI::canSelectObject(this, (GameObject *)v11) )\n        v7 = v11;\n      v8 = v6 >= (unsigned int)cocos2d::CCArray::count(a2);\n      v9 = v6;\n      v10 = a2;\n      ++v6;\n      if ( v8 )\n        goto LABEL_10;\n    }\n  }\nLABEL_10:\n  if ( v7 )\n    *(_DWORD *)(v7 + 1136) = *((_DWORD *)this + 385);\n  return v7;\n}", "assembly": "; \n; EditorUI::getCycledObject from 0x7c74d4 to 0x7c7598 (196 bytes)\n; \n; 4 xrefs:\n; > EditorUI::onDelete @ 0x7d1850\n; > EditorUI::ccTouchEnded @ 0xbd6584\n; > EditorUI::ccTouchEnded @ 0xbd6668\n; > <???> @ 0x860e0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:54:09 +0000\n; \nSTP             X29, X30, [SP,#-0x40+var_s0]!                          ; +0x0, 0x7c74d4\nMOV             X29, SP                                                ; +0x4, 0x7c74d8\nSTP             X21, X22, [SP,#var_s20]                                ; +0x8, 0x7c74dc\nSTP             X23, X24, [SP,#var_s30]                                ; +0xc, 0x7c74e0\nSTP             X19, X20, [SP,#var_s10]                                ; +0x10, 0x7c74e4\nMOV             X24, X0                                                ; +0x14, 0x7c74e8\nMOV             X22, X1                                                ; +0x18, 0x7c74ec\nUXTB            W23, W2                                                ; +0x1c, 0x7c74f0\nMOV             W19, #0                                                ; +0x20, 0x7c74f4\nMOV             X21, #0                                                ; +0x24, 0x7c74f8\nMOV             X0, X22; this                                          ; +0x28, 0x7c74fc\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x2c, 0x7c7500\nCMP             W19, W0                                                ; +0x30, 0x7c7504\nMOV             W1, W19; unsigned int                                  ; +0x34, 0x7c7508\nMOV             X0, X22; this                                          ; +0x38, 0x7c750c\nADD             W19, W19, #1                                           ; +0x3c, 0x7c7510\nB.CS            loc_7C7574                                             ; +0x40, 0x7c7514\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x44, 0x7c7518\nMOV             X20, X0                                                ; +0x48, 0x7c751c\nLDRB            W0, [X0,#0x46D]                                        ; +0x4c, 0x7c7520\nCMP             W0, W23                                                ; +0x50, 0x7c7524\nB.HI            loc_7C74FC                                             ; +0x54, 0x7c7528\nMOV             X0, X24; this                                          ; +0x58, 0x7c752c\nMOV             X1, X20; GameObject *                                  ; +0x5c, 0x7c7530\nCBZ             X21, loc_7C7548                                        ; +0x60, 0x7c7534\nLDR             W2, [X21,#0x470]                                       ; +0x64, 0x7c7538\nLDR             W3, [X20,#0x470]                                       ; +0x68, 0x7c753c\nCMP             W3, W2                                                 ; +0x6c, 0x7c7540\nB.GE            loc_7C74FC                                             ; +0x70, 0x7c7544\nBL              _ZN8EditorUI15canSelectObjectEP10GameObject; EditorUI::canSelectObject(GameObject *) ; +0x74, 0x7c7548\nUXTB            W0, W0                                                 ; +0x78, 0x7c754c\nCMP             W0, WZR                                                ; +0x7c, 0x7c7550\nMOV             X0, X22; this                                          ; +0x80, 0x7c7554\nCSEL            X21, X21, X20, EQ                                      ; +0x84, 0x7c7558\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x88, 0x7c755c\nCMP             W19, W0                                                ; +0x8c, 0x7c7560\nMOV             W1, W19                                                ; +0x90, 0x7c7564\nMOV             X0, X22                                                ; +0x94, 0x7c7568\nADD             W19, W19, #1                                           ; +0x98, 0x7c756c\nB.CC            loc_7C7518                                             ; +0x9c, 0x7c7570\nCBZ             X21, loc_7C7580                                        ; +0xa0, 0x7c7574\nLDR             W0, [X24,#0x604]                                       ; +0xa4, 0x7c7578\nSTR             W0, [X21,#0x470]                                       ; +0xa8, 0x7c757c\nMOV             X0, X21                                                ; +0xac, 0x7c7580\nLDP             X19, X20, [SP,#var_s10]                                ; +0xb0, 0x7c7584\nLDP             X21, X22, [SP,#var_s20]                                ; +0xb4, 0x7c7588\nLDP             X23, X24, [SP,#var_s30]                                ; +0xb8, 0x7c758c\nLDP             X29, X30, [SP+var_s0],#0x40                            ; +0xbc, 0x7c7590\nRET                                                                    ; +0xc0, 0x7c7594", "xrefs": ["EditorUI::onDelete @ 0x7d1850", "EditorUI::ccTouchEnded @ 0xbd6584", "EditorUI::ccTouchEnded @ 0xbd6668", "<???> @ 0x860e0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}