{"type": "func", "start": 3667280, "end": 3667328, "name": "EditorUI::arrayContainsClass", "pseudocode": "// \n// EditorUI::arrayContainsClass from 0x37f550 to 0x37f580 (48 bytes)\n// \n// 2 xrefs:\n// > EditorUI::editButton2Usable @ 0x37f5cc\n// > EditorUI::editObjectSpecial @ 0x37f7d8\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 i; // r4\n\n  if ( a2 )\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(a2); ++i )\n    {\n      if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(a2, i) + 1076) == a3 )\n        return 1;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; EditorUI::arrayContainsClass from 0x37f550 to 0x37f580 (48 bytes)\n; \n; 2 xrefs:\n; > EditorUI::editButton2Usable @ 0x37f5cc\n; > EditorUI::editObjectSpecial @ 0x37f7d8\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\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x37f550\nMOV             R6, R2                                                 ; +0x2, 0x37f552\nMOV             R5, R1                                                 ; +0x4, 0x37f554\nCBNZ            R1, loc_37F55C                                         ; +0x6, 0x37f556\nMOVS            R0, #0                                                 ; +0x8, 0x37f558\nPOP             {R4-R6,PC}                                             ; +0xa, 0x37f55a\nMOVS            R4, #0                                                 ; +0xc, 0x37f55c\nMOV             R0, R5; this                                           ; +0xe, 0x37f55e\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x10, 0x37f560\nCMP             R4, R0                                                 ; +0x14, 0x37f564\nBCS             loc_37F558                                             ; +0x16, 0x37f566\nMOV             R0, R5; this                                           ; +0x18, 0x37f568\nMOV             R1, R4; unsigned int                                   ; +0x1a, 0x37f56a\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x1c, 0x37f56c\nLDR.W           R3, [R0,#0x434]                                        ; +0x20, 0x37f570\nCMP             R3, R6                                                 ; +0x24, 0x37f574\nBEQ             loc_37F57C                                             ; +0x26, 0x37f576\nADDS            R4, #1                                                 ; +0x28, 0x37f578\nB               loc_37F55E                                             ; +0x2a, 0x37f57a\nMOVS            R0, #1                                                 ; +0x2c, 0x37f57c\nPOP             {R4-R6,PC}                                             ; +0x2e, 0x37f57e", "xrefs": ["EditorUI::editButton2Usable @ 0x37f5cc", "EditorUI::editObjectSpecial @ 0x37f7d8"], "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"}