{"type": "func", "start": 4299142252, "end": 4299142404, "name": "LevelEditorLayer::removeObject", "pseudocode": "// \n// LevelEditorLayer::removeObject from 0x1003fb46c to 0x1003fb504 (152 bytes)\n// \n// 5 xrefs:\n// > EditorUI::spriteFromObjectString @ 0x100184d74\n// > EditorUI::spriteFromObjectString @ 0x100184dd4\n// > LevelEditorLayer::removeAllObjectsOfType @ 0x1003fbb20\n// > sub_100403E28 @ 0x100403e78\n// > EditorUI::deleteObject @ 0x1004764f0\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:04:36 +0000\n// \n\n__int64 __fastcall LevelEditorLayer::removeObject(__int64 result, __int64 a2, char a3)\n{\n  __int64 v4; // x19\n  _QWORD *v5; // x0\n\n  if ( a2 )\n  {\n    v4 = result;\n    if ( (a3 & 1) == 0 )\n    {\n      ++*(_DWORD *)(result + 14712);\n      sub_1002E7674(*(_QWORD *)(result + 14264));\n      v5 = UndoObject::create(a2, 1);\n      LevelEditorLayer::addToUndoList(v4, (__int64)v5, 0);\n    }\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 1312LL))(a2, 1);\n    GJBaseGameLayer::removeObjectFromSection(v4, a2);\n    result = LevelEditorLayer::removeSpecial(v4, a2);\n    *(_BYTE *)(v4 + 14938) = 1;\n  }\n  return result;\n}", "assembly": "; \n; LevelEditorLayer::removeObject from 0x1003fb46c to 0x1003fb504 (152 bytes)\n; \n; 5 xrefs:\n; > EditorUI::spriteFromObjectString @ 0x100184d74\n; > EditorUI::spriteFromObjectString @ 0x100184dd4\n; > LevelEditorLayer::removeAllObjectsOfType @ 0x1003fbb20\n; > sub_100403E28 @ 0x100403e78\n; > EditorUI::deleteObject @ 0x1004764f0\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:04:36 +0000\n; \nCBZ             X1, locret_1003FB500                                   ; +0x0, 0x1003fb46c\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x4, 0x1003fb470\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x8, 0x1003fb474\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0xc, 0x1003fb478\nADD             X29, SP, #0x20                                         ; +0x10, 0x1003fb47c\nMOV             X20, X1                                                ; +0x14, 0x1003fb480\nMOV             X19, X0                                                ; +0x18, 0x1003fb484\nTBNZ            W2, #0, loc_1003FB4BC                                  ; +0x1c, 0x1003fb488\nLDR             W8, [X19,#0x3978]                                      ; +0x20, 0x1003fb48c\nADD             W8, W8, #1                                             ; +0x24, 0x1003fb490\nSTR             W8, [X19,#0x3978]                                      ; +0x28, 0x1003fb494\nLDR             X0, [X19,#0x37B8]                                      ; +0x2c, 0x1003fb498\nBL              sub_1002E7674                                          ; +0x30, 0x1003fb49c\nMOV             X0, X20                                                ; +0x34, 0x1003fb4a0\nMOV             W1, #1                                                 ; +0x38, 0x1003fb4a4\nBL              UndoObject__create                                     ; +0x3c, 0x1003fb4a8\nMOV             X1, X0                                                 ; +0x40, 0x1003fb4ac\nMOV             X0, X19                                                ; +0x44, 0x1003fb4b0\nMOV             W2, #0                                                 ; +0x48, 0x1003fb4b4\nBL              LevelEditorLayer__addToUndoList                        ; +0x4c, 0x1003fb4b8\nLDR             X8, [X20]                                              ; +0x50, 0x1003fb4bc\nLDR             X8, [X8,#0x520]                                        ; +0x54, 0x1003fb4c0\nMOV             W21, #1                                                ; +0x58, 0x1003fb4c4\nMOV             X0, X20                                                ; +0x5c, 0x1003fb4c8\nMOV             W1, #1                                                 ; +0x60, 0x1003fb4cc\nBLR             X8                                                     ; +0x64, 0x1003fb4d0\nMOV             X0, X19                                                ; +0x68, 0x1003fb4d4\nMOV             X1, X20                                                ; +0x6c, 0x1003fb4d8\nBL              GJBaseGameLayer__removeObjectFromSection               ; +0x70, 0x1003fb4dc\nMOV             X0, X19                                                ; +0x74, 0x1003fb4e0\nMOV             X1, X20                                                ; +0x78, 0x1003fb4e4\nBL              LevelEditorLayer__removeSpecial                        ; +0x7c, 0x1003fb4e8\nMOV             W8, #0x3A5A                                            ; +0x80, 0x1003fb4ec\nSTRB            W21, [X19,X8]                                          ; +0x84, 0x1003fb4f0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x88, 0x1003fb4f4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x8c, 0x1003fb4f8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x90, 0x1003fb4fc\nRET                                                                    ; +0x94, 0x1003fb500", "xrefs": ["EditorUI::spriteFromObjectString @ 0x100184d74", "EditorUI::spriteFromObjectString @ 0x100184dd4", "LevelEditorLayer::removeAllObjectsOfType @ 0x1003fbb20", "sub_100403E28 @ 0x100403e78", "EditorUI::deleteObject @ 0x1004764f0"], "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"}