{"type": "func", "start": 4299117052, "end": 4299117172, "name": "EditorUI::arrayContainsClass", "pseudocode": "// \n// EditorUI::arrayContainsClass from 0x1003f51fc to 0x1003f5274 (120 bytes)\n// \n// 2 xrefs:\n// > EditorUI::editButton2Usable @ 0x1003f501c\n// > EditorUI::editObjectSpecial @ 0x1003f5584\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 __fastcall EditorUI::arrayContainsClass(EditorUI *a1, cocos2d::CCArray *a2, int a3)\n{\n  unsigned int v5; // w21\n  int v6; // w8\n  bool v7; // w22\n\n  if ( !a2 || !(unsigned int)sub_10024A36C((__int64)a2) )\n    return 0;\n  v5 = 0;\n  do\n  {\n    v6 = *(_DWORD *)(sub_10024A388((__int64)a2, v5) + 1248);\n    v7 = v6 == a3;\n    if ( v6 == a3 )\n      break;\n    ++v5;\n  }\n  while ( v5 < (unsigned int)sub_10024A36C((__int64)a2) );\n  return v7;\n}", "assembly": "; \n; EditorUI::arrayContainsClass from 0x1003f51fc to 0x1003f5274 (120 bytes)\n; \n; 2 xrefs:\n; > EditorUI::editButton2Usable @ 0x1003f501c\n; > EditorUI::editObjectSpecial @ 0x1003f5584\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1003f51fc\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003f5200\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003f5204\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003f5208\nCBZ             X1, loc_1003F525C                                      ; +0x10, 0x1003f520c\nMOV             X19, X2                                                ; +0x14, 0x1003f5210\nMOV             X20, X1                                                ; +0x18, 0x1003f5214\nMOV             X0, X1                                                 ; +0x1c, 0x1003f5218\nBL              sub_10024A36C                                          ; +0x20, 0x1003f521c\nCBZ             W0, loc_1003F525C                                      ; +0x24, 0x1003f5220\nMOV             W21, #0                                                ; +0x28, 0x1003f5224\nMOV             X0, X20                                                ; +0x2c, 0x1003f5228\nMOV             X1, X21                                                ; +0x30, 0x1003f522c\nBL              sub_10024A388                                          ; +0x34, 0x1003f5230\nLDR             W8, [X0,#0x4E0]                                        ; +0x38, 0x1003f5234\nCMP             W8, W19                                                ; +0x3c, 0x1003f5238\nCSET            W22, EQ                                                ; +0x40, 0x1003f523c\nB.EQ            loc_1003F5260                                          ; +0x44, 0x1003f5240\nADD             W21, W21, #1                                           ; +0x48, 0x1003f5244\nMOV             X0, X20                                                ; +0x4c, 0x1003f5248\nBL              sub_10024A36C                                          ; +0x50, 0x1003f524c\nCMP             W21, W0                                                ; +0x54, 0x1003f5250\nB.CC            loc_1003F5228                                          ; +0x58, 0x1003f5254\nB               loc_1003F5260                                          ; +0x5c, 0x1003f5258\nMOV             W22, #0                                                ; +0x60, 0x1003f525c\nMOV             X0, X22                                                ; +0x64, 0x1003f5260\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x68, 0x1003f5264\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x6c, 0x1003f5268\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x70, 0x1003f526c\nRET                                                                    ; +0x74, 0x1003f5270", "xrefs": ["EditorUI::editButton2Usable @ 0x1003f501c", "EditorUI::editObjectSpecial @ 0x1003f5584"], "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"}