{"type": "func", "start": 8146572, "end": 8146692, "name": "EditorUI::arrayContainsClass", "pseudocode": "// \n// EditorUI::arrayContainsClass from 0x7c4e8c to 0x7c4f04 (120 bytes)\n// \n// 3 xrefs:\n// > EditorUI::editButton2Usable @ 0x7c4f74\n// > EditorUI::editObjectSpecial @ 0x7c524c\n// > <???> @ 0x61e10\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:08 +0000\n// \n\n__int64 __fastcall EditorUI::arrayContainsClass(EditorUI *this, 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) + 1248) == a3 )\n        return 1;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; EditorUI::arrayContainsClass from 0x7c4e8c to 0x7c4f04 (120 bytes)\n; \n; 3 xrefs:\n; > EditorUI::editButton2Usable @ 0x7c4f74\n; > EditorUI::editObjectSpecial @ 0x7c524c\n; > <???> @ 0x61e10\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:08 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x7c4e8c\nMOV             X29, SP                                                ; +0x4, 0x7c4e90\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x7c4e94\nSTR             X21, [SP,#0x30+var_10]                                 ; +0xc, 0x7c4e98\nMOV             X20, X1                                                ; +0x10, 0x7c4e9c\nMOV             W21, W2                                                ; +0x14, 0x7c4ea0\nMOV             W19, #0                                                ; +0x18, 0x7c4ea4\nCBNZ            X1, loc_7C4EC0                                         ; +0x1c, 0x7c4ea8\nB               loc_7C4EDC                                             ; +0x20, 0x7c4eac\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x24, 0x7c4eb0\nLDR             W0, [X0,#0x4E0]                                        ; +0x28, 0x7c4eb4\nCMP             W0, W21                                                ; +0x2c, 0x7c4eb8\nB.EQ            loc_7C4EF0                                             ; +0x30, 0x7c4ebc\nMOV             X0, X20; this                                          ; +0x34, 0x7c4ec0\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x38, 0x7c4ec4\nCMP             W19, W0                                                ; +0x3c, 0x7c4ec8\nMOV             W1, W19; unsigned int                                  ; +0x40, 0x7c4ecc\nMOV             X0, X20; this                                          ; +0x44, 0x7c4ed0\nADD             W19, W19, #1                                           ; +0x48, 0x7c4ed4\nB.CC            loc_7C4EB0                                             ; +0x4c, 0x7c4ed8\nMOV             W0, #0                                                 ; +0x50, 0x7c4edc\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x54, 0x7c4ee0\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x58, 0x7c4ee4\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x5c, 0x7c4ee8\nRET                                                                    ; +0x60, 0x7c4eec\nMOV             W0, #1                                                 ; +0x64, 0x7c4ef0\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x68, 0x7c4ef4\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x6c, 0x7c4ef8\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x70, 0x7c4efc\nRET                                                                    ; +0x74, 0x7c4f00", "xrefs": ["EditorUI::editButton2Usable @ 0x7c4f74", "EditorUI::editObjectSpecial @ 0x7c524c", "<???> @ 0x61e10"], "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"}