{"type": "func", "start": 4299075408, "end": 4299075596, "name": "EditorUI::deleteTypeFromObjects", "pseudocode": "// \n// EditorUI::deleteTypeFromObjects from 0x1003eaf50 to 0x1003eb00c (188 bytes)\n// \n// 1 xrefs:\n// > EditorUI::spriteFromObjectString @ 0x1003eaa20\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\nvoid __fastcall EditorUI::deleteTypeFromObjects(EditorUI *a1, int a2, cocos2d::CCArray *a3)\n{\n  __int64 v6; // x22\n  __int64 v7; // x0\n  GameObject *v8; // x23\n  int v9; // w1\n  cocos2d::CCArray *StickyGroup; // x0\n\n  if ( (unsigned int)sub_10024A36C((__int64)a3) )\n  {\n    v6 = 0;\n    do\n    {\n      v7 = sub_10024A388((__int64)a3, v6);\n      if ( *(_DWORD *)(v7 + 1028) == a2 )\n      {\n        v8 = (GameObject *)v7;\n        v9 = *(_DWORD *)(v7 + 872);\n        if ( v9 >= 1 )\n        {\n          StickyGroup = GJBaseGameLayer::getStickyGroup(a1->m_editorLayer, v9);\n          if ( StickyGroup )\n            sub_10024A444((__int64)StickyGroup);\n        }\n        EditorUI::deleteObject(a1, v8, 1);\n        sub_10024A44C((__int64)a3, v6, 1);\n      }\n      else\n      {\n        v6 = (unsigned int)(v6 + 1);\n      }\n    }\n    while ( (unsigned int)v6 < (unsigned int)sub_10024A36C((__int64)a3) );\n  }\n}", "assembly": "; \n; EditorUI::deleteTypeFromObjects from 0x1003eaf50 to 0x1003eb00c (188 bytes)\n; \n; 1 xrefs:\n; > EditorUI::spriteFromObjectString @ 0x1003eaa20\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             X24, X23, [SP,#-0x10+var_30]!                          ; +0x0, 0x1003eaf50\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1003eaf54\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1003eaf58\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1003eaf5c\nADD             X29, SP, #0x30                                         ; +0x10, 0x1003eaf60\nMOV             X19, X2                                                ; +0x14, 0x1003eaf64\nMOV             X20, X1                                                ; +0x18, 0x1003eaf68\nMOV             X21, X0                                                ; +0x1c, 0x1003eaf6c\nMOV             X0, X2                                                 ; +0x20, 0x1003eaf70\nBL              sub_10024A36C                                          ; +0x24, 0x1003eaf74\nCBZ             W0, loc_1003EAFF8                                      ; +0x28, 0x1003eaf78\nMOV             W22, #0                                                ; +0x2c, 0x1003eaf7c\nMOV             X0, X19                                                ; +0x30, 0x1003eaf80\nMOV             X1, X22                                                ; +0x34, 0x1003eaf84\nBL              sub_10024A388                                          ; +0x38, 0x1003eaf88\nLDR             W8, [X0,#0x404]                                        ; +0x3c, 0x1003eaf8c\nCMP             W8, W20                                                ; +0x40, 0x1003eaf90\nB.NE            loc_1003EAFE4                                          ; +0x44, 0x1003eaf94\nMOV             X23, X0                                                ; +0x48, 0x1003eaf98\nLDR             W1, [X0,#0x368]                                        ; +0x4c, 0x1003eaf9c\nCMP             W1, #1                                                 ; +0x50, 0x1003eafa0\nB.LT            loc_1003EAFC0                                          ; +0x54, 0x1003eafa4\nLDR             X0, [X21,#0x4E8]                                       ; +0x58, 0x1003eafa8\nBL              GJBaseGameLayer__getStickyGroup                        ; +0x5c, 0x1003eafac\nCBZ             X0, loc_1003EAFC0                                      ; +0x60, 0x1003eafb0\nMOV             X1, X23                                                ; +0x64, 0x1003eafb4\nMOV             W2, #1                                                 ; +0x68, 0x1003eafb8\nBL              sub_10024A444                                          ; +0x6c, 0x1003eafbc\nMOV             X0, X21                                                ; +0x70, 0x1003eafc0\nMOV             X1, X23                                                ; +0x74, 0x1003eafc4\nMOV             W2, #1                                                 ; +0x78, 0x1003eafc8\nBL              EditorUI__deleteObject                                 ; +0x7c, 0x1003eafcc\nMOV             X0, X19                                                ; +0x80, 0x1003eafd0\nMOV             X1, X22                                                ; +0x84, 0x1003eafd4\nMOV             W2, #1                                                 ; +0x88, 0x1003eafd8\nBL              sub_10024A44C                                          ; +0x8c, 0x1003eafdc\nB               loc_1003EAFE8                                          ; +0x90, 0x1003eafe0\nADD             W22, W22, #1                                           ; +0x94, 0x1003eafe4\nMOV             X0, X19                                                ; +0x98, 0x1003eafe8\nBL              sub_10024A36C                                          ; +0x9c, 0x1003eafec\nCMP             W22, W0                                                ; +0xa0, 0x1003eaff0\nB.CC            loc_1003EAF80                                          ; +0xa4, 0x1003eaff4\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xa8, 0x1003eaff8\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xac, 0x1003eaffc\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xb0, 0x1003eb000\nLDP             X24, X23, [SP+0x30+var_30],#0x40                       ; +0xb4, 0x1003eb004\nRET                                                                    ; +0xb8, 0x1003eb008", "xrefs": ["EditorUI::spriteFromObjectString @ 0x1003eaa20"], "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"}