{"type": "func", "start": 6865232, "end": 6865352, "name": "EditorUI::arrayContainsClass", "pseudocode": "// \n// EditorUI::arrayContainsClass from 0x68c150 to 0x68c1c8 (120 bytes)\n// \n// 3 xrefs:\n// > EditorUI::editButton2Usable @ 0x68c238\n// > EditorUI::editObjectSpecial @ 0x68c4e0\n// > <???> @ 0x44ce8\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\nbool EditorUI::arrayContainsClass(EditorUI *a1, cocos2d::CCArray *a2, int a3)\n{\n  unsigned int v5; // w19\n  bool v6; // cf\n  unsigned int v7; // w1\n\n  v5 = 0;\n  if ( a2 )\n  {\n    while ( 1 )\n    {\n      v6 = v5 >= (unsigned int)cocos2d::CCArray::count(a2);\n      v7 = v5++;\n      if ( v6 )\n        break;\n      if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(a2, v7) + 1232) == a3 )\n        return 1;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; EditorUI::arrayContainsClass from 0x68c150 to 0x68c1c8 (120 bytes)\n; \n; 3 xrefs:\n; > EditorUI::editButton2Usable @ 0x68c238\n; > EditorUI::editObjectSpecial @ 0x68c4e0\n; > <???> @ 0x44ce8\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             X29, X30, [SP,#var_30]!                                ; +0x0, 0x68c150\nMOV             X29, SP                                                ; +0x4, 0x68c154\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x68c158\nSTR             X21, [SP,#0x30+var_10]                                 ; +0xc, 0x68c15c\nMOV             X20, X1                                                ; +0x10, 0x68c160\nMOV             W21, W2                                                ; +0x14, 0x68c164\nMOV             W19, #0                                                ; +0x18, 0x68c168\nCBNZ            X1, loc_68C184                                         ; +0x1c, 0x68c16c\nB               loc_68C1A0                                             ; +0x20, 0x68c170\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x24, 0x68c174\nLDR             W0, [X0,#0x4D0]                                        ; +0x28, 0x68c178\nCMP             W0, W21                                                ; +0x2c, 0x68c17c\nB.EQ            loc_68C1B4                                             ; +0x30, 0x68c180\nMOV             X0, X20; this                                          ; +0x34, 0x68c184\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x38, 0x68c188\nCMP             W19, W0                                                ; +0x3c, 0x68c18c\nMOV             W1, W19; unsigned int                                  ; +0x40, 0x68c190\nMOV             X0, X20; this                                          ; +0x44, 0x68c194\nADD             W19, W19, #1                                           ; +0x48, 0x68c198\nB.CC            loc_68C174                                             ; +0x4c, 0x68c19c\nMOV             W0, #0                                                 ; +0x50, 0x68c1a0\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x54, 0x68c1a4\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x58, 0x68c1a8\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x5c, 0x68c1ac\nRET                                                                    ; +0x60, 0x68c1b0\nMOV             W0, #1                                                 ; +0x64, 0x68c1b4\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x68, 0x68c1b8\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x6c, 0x68c1bc\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x70, 0x68c1c0\nRET                                                                    ; +0x74, 0x68c1c4", "xrefs": ["EditorUI::editButton2Usable @ 0x68c238", "EditorUI::editObjectSpecial @ 0x68c4e0", "<???> @ 0x44ce8"], "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"}