{"type": "func", "start": 4299658756, "end": 4299658932, "name": "EditorUI::deleteSmartBlocksFromObjects", "pseudocode": "// \n// EditorUI::deleteSmartBlocksFromObjects from 0x100479604 to 0x1004796b4 (176 bytes)\n// \n// 3 xrefs:\n// > EditorUI::spriteFromObjectString @ 0x100184d30\n// > EditorUI::createSmartObjectsFromTemplate @ 0x1004793b8\n// > sub_1004796B4 @ 0x1004799d0\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 11:05:42 +0000\n// \n\n__int64 __fastcall EditorUI::deleteSmartBlocksFromObjects(__int64 a1, __int64 a2)\n{\n  __int64 result; // x0\n  __int64 v5; // x21\n  __int64 v6; // x0\n  __n128 v7; // q0\n  __int64 v8; // x22\n  int v9; // w1\n  __int64 v10; // x0\n\n  result = sub_1002E757C(a2);\n  if ( (_DWORD)result )\n  {\n    v5 = 0;\n    do\n    {\n      v6 = sub_1002E75A0(a2, v5);\n      if ( *(_DWORD *)(v6 + 1248) == 5 )\n      {\n        v8 = v6;\n        v9 = *(_DWORD *)(v6 + 872);\n        if ( v9 >= 1 )\n        {\n          v7.n128_f64[0] = GJBaseGameLayer::getStickyGroup(*(_QWORD *)(a1 + 1440), v9);\n          if ( v10 )\n            sub_1002E765C(v10);\n        }\n        EditorUI::deleteObject(a1, v8, 1, v7);\n        sub_1002E7664(a2, v5, 1);\n      }\n      else\n      {\n        v5 = (unsigned int)(v5 + 1);\n      }\n      result = sub_1002E757C(a2);\n    }\n    while ( (unsigned int)v5 < (unsigned int)result );\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::deleteSmartBlocksFromObjects from 0x100479604 to 0x1004796b4 (176 bytes)\n; \n; 3 xrefs:\n; > EditorUI::spriteFromObjectString @ 0x100184d30\n; > EditorUI::createSmartObjectsFromTemplate @ 0x1004793b8\n; > sub_1004796B4 @ 0x1004799d0\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 11:05:42 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100479604\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100479608\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10047960c\nADD             X29, SP, #0x20                                         ; +0xc, 0x100479610\nMOV             X19, X1                                                ; +0x10, 0x100479614\nMOV             X20, X0                                                ; +0x14, 0x100479618\nMOV             X0, X1                                                 ; +0x18, 0x10047961c\nBL              sub_1002E757C                                          ; +0x1c, 0x100479620\nCBZ             W0, loc_1004796A4                                      ; +0x20, 0x100479624\nMOV             W21, #0                                                ; +0x24, 0x100479628\nMOV             X0, X19                                                ; +0x28, 0x10047962c\nMOV             X1, X21                                                ; +0x2c, 0x100479630\nBL              sub_1002E75A0                                          ; +0x30, 0x100479634\nLDR             W8, [X0,#0x4E0]                                        ; +0x34, 0x100479638\nCMP             W8, #5                                                 ; +0x38, 0x10047963c\nB.NE            loc_100479690                                          ; +0x3c, 0x100479640\nMOV             X22, X0                                                ; +0x40, 0x100479644\nLDR             W1, [X0,#0x368]                                        ; +0x44, 0x100479648\nCMP             W1, #1                                                 ; +0x48, 0x10047964c\nB.LT            loc_10047966C                                          ; +0x4c, 0x100479650\nLDR             X0, [X20,#0x5A0]                                       ; +0x50, 0x100479654\nBL              GJBaseGameLayer__getStickyGroup                        ; +0x54, 0x100479658\nCBZ             X0, loc_10047966C                                      ; +0x58, 0x10047965c\nMOV             X1, X22                                                ; +0x5c, 0x100479660\nMOV             W2, #1                                                 ; +0x60, 0x100479664\nBL              sub_1002E765C                                          ; +0x64, 0x100479668\nMOV             X0, X20                                                ; +0x68, 0x10047966c\nMOV             X1, X22                                                ; +0x6c, 0x100479670\nMOV             W2, #1                                                 ; +0x70, 0x100479674\nBL              EditorUI__deleteObject                                 ; +0x74, 0x100479678\nMOV             X0, X19                                                ; +0x78, 0x10047967c\nMOV             X1, X21                                                ; +0x7c, 0x100479680\nMOV             W2, #1                                                 ; +0x80, 0x100479684\nBL              sub_1002E7664                                          ; +0x84, 0x100479688\nB               loc_100479694                                          ; +0x88, 0x10047968c\nADD             W21, W21, #1                                           ; +0x8c, 0x100479690\nMOV             X0, X19                                                ; +0x90, 0x100479694\nBL              sub_1002E757C                                          ; +0x94, 0x100479698\nCMP             W21, W0                                                ; +0x98, 0x10047969c\nB.CC            loc_10047962C                                          ; +0x9c, 0x1004796a0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xa0, 0x1004796a4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xa4, 0x1004796a8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xa8, 0x1004796ac\nRET                                                                    ; +0xac, 0x1004796b0", "xrefs": ["EditorUI::spriteFromObjectString @ 0x100184d30", "EditorUI::createSmartObjectsFromTemplate @ 0x1004793b8", "sub_1004796B4 @ 0x1004799d0"], "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"}