{"type": "func", "start": 4738964, "end": 4739062, "name": "EditorUI::getCycledObject", "pseudocode": "// \n// EditorUI::getCycledObject from 0x484f94 to 0x484ff6 (98 bytes)\n// \n// 3 xrefs:\n// > EditorUI::onDelete @ 0x48c546\n// > EditorUI::ccTouchEnded @ 0x6f0cc6\n// > EditorUI::ccTouchEnded @ 0x6f0d84\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:49:24 +0000\n// \n\nint __fastcall EditorUI::getCycledObject(EditorUI *this, cocos2d::CCArray *a2, int a3)\n{\n  unsigned int v3; // r6\n  int v7; // r4\n  int v8; // r0\n  int v9; // r5\n\n  v3 = 0;\n  v7 = 0;\n  while ( v3 < cocos2d::CCArray::count(a2) )\n  {\n    v8 = cocos2d::CCArray::objectAtIndex(a2, v3);\n    v9 = v8;\n    if ( *(_BYTE *)(v8 + 989) && !a3\n      || v7 && *(_DWORD *)(v8 + 992) >= *(_DWORD *)(v7 + 992)\n      || !EditorUI::canSelectObject(this, (GameObject *)v8) )\n    {\n      v9 = v7;\n    }\n    ++v3;\n    v7 = v9;\n  }\n  if ( v7 )\n    *(_DWORD *)(v7 + 992) = *((_DWORD *)this + 255);\n  return v7;\n}", "assembly": "; \n; EditorUI::getCycledObject from 0x484f94 to 0x484ff6 (98 bytes)\n; \n; 3 xrefs:\n; > EditorUI::onDelete @ 0x48c546\n; > EditorUI::ccTouchEnded @ 0x6f0cc6\n; > EditorUI::ccTouchEnded @ 0x6f0d84\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:49:24 +0000\n; \nPUSH.W          {R3-R9,LR}                                             ; +0x0, 0x484f94\nMOVS            R6, #0                                                 ; +0x4, 0x484f98\nMOV             R7, R0                                                 ; +0x6, 0x484f9a\nMOV             R8, R1                                                 ; +0x8, 0x484f9c\nMOV             R9, R2                                                 ; +0xa, 0x484f9e\nMOV             R4, R6                                                 ; +0xc, 0x484fa0\nMOV             R0, R8; this                                           ; +0xe, 0x484fa2\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x10, 0x484fa4\nCMP             R6, R0                                                 ; +0x14, 0x484fa8\nBCS             loc_484FE0                                             ; +0x16, 0x484faa\nMOV             R0, R8; this                                           ; +0x18, 0x484fac\nMOV             R1, R6; unsigned int                                   ; +0x1a, 0x484fae\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x1c, 0x484fb0\nLDRB.W          R3, [R0,#0x3DD]                                        ; +0x20, 0x484fb4\nMOV             R5, R0                                                 ; +0x24, 0x484fb8\nCBZ             R3, loc_484FC2                                         ; +0x26, 0x484fba\nCMP.W           R9, #0                                                 ; +0x28, 0x484fbc\nBEQ             loc_484FEC                                             ; +0x2c, 0x484fc0\nCBZ             R4, loc_484FD0                                         ; +0x2e, 0x484fc2\nLDR.W           R2, [R5,#0x3E0]                                        ; +0x30, 0x484fc4\nLDR.W           R3, [R4,#0x3E0]                                        ; +0x34, 0x484fc8\nCMP             R2, R3                                                 ; +0x38, 0x484fcc\nBGE             loc_484FEC                                             ; +0x3a, 0x484fce\nMOV             R0, R7; this                                           ; +0x3c, 0x484fd0\nMOV             R1, R5; GameObject *                                   ; +0x3e, 0x484fd2\nBL              _ZN8EditorUI15canSelectObjectEP10GameObject; EditorUI::canSelectObject(GameObject *) ; +0x40, 0x484fd4\nCBZ             R0, loc_484FEC                                         ; +0x44, 0x484fd8\nADDS            R6, #1                                                 ; +0x46, 0x484fda\nMOV             R4, R5                                                 ; +0x48, 0x484fdc\nB               loc_484FA2                                             ; +0x4a, 0x484fde\nCBZ             R4, loc_484FF0                                         ; +0x4c, 0x484fe0\nLDR.W           R3, [R7,#0x3FC]                                        ; +0x4e, 0x484fe2\nSTR.W           R3, [R4,#0x3E0]                                        ; +0x52, 0x484fe6\nB               loc_484FF0                                             ; +0x56, 0x484fea\nMOV             R5, R4                                                 ; +0x58, 0x484fec\nB               loc_484FDA                                             ; +0x5a, 0x484fee\nMOV             R0, R4                                                 ; +0x5c, 0x484ff0\nPOP.W           {R3-R9,PC}                                             ; +0x5e, 0x484ff2", "xrefs": ["EditorUI::onDelete @ 0x48c546", "EditorUI::ccTouchEnded @ 0x6f0cc6", "EditorUI::ccTouchEnded @ 0x6f0d84"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}