{"type": "func", "start": 4297011788, "end": 4297012204, "name": "GJBaseGameLayer::removeObjectFromSection", "pseudocode": "// \n// GJBaseGameLayer::removeObjectFromSection from 0x1001f324c to 0x1001f33ec (416 bytes)\n// \n// 14 xrefs:\n// > SetupObjectOptionsPopup::onDisableObject @ 0x100040cb4\n// > PlayLayer::removeCheckpoint @ 0x100120ed0\n// > GJBaseGameLayer::updatePlayerCollisionBlocks @ 0x1001eac94\n// > GJBaseGameLayer::reorderObjectSection @ 0x1001eace8\n// > GJBaseGameLayer::addUIObject @ 0x1001f31ac\n// > GJBaseGameLayer::updateExtendedCollision @ 0x1001f3b08\n// > GJBaseGameLayer::updateObjectSection @ 0x1001f426c\n// > LevelEditorLayer::removePlayerCollisionBlock @ 0x100357d94\n// > LevelEditorLayer::removePlayerCollisionBlock @ 0x100357da8\n// > LevelEditorLayer::removeObject @ 0x10035b594\n// > LevelEditorLayer::removeSpecial @ 0x10035b710\n// > LevelEditorLayer::removeAllObjects @ 0x10035b9f4\n// > LevelEditorLayer::handleAction @ 0x10035bec0\n// > LevelEditorLayer::handleAction @ 0x10035bf20\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 GJBaseGameLayer::removeObjectFromSection(GJBaseGameLayer *a1, GameObject *a2)\n{\n  __int64 m_outerSectionIndex; // x8\n  __int64 m_middleSectionIndex; // x10\n  std::vector<GameObject *> *v4; // x9\n  std::__vector_base<int>::pointer begin; // x8\n  __int64 v6; // x11\n  GameObject *v7; // x10\n  __int64 m_someOtherIndex; // x11\n  __int64 v9; // x8\n  __int64 m_innerSectionIndex; // x10\n  std::__vector_base<GameObject *>::pointer v11; // x8\n  __int64 v12; // x8\n  __int64 v13; // x8\n  __int64 v14; // x10\n  GameObject *v15; // x9\n  std::__vector_base<int>::pointer v16; // x8\n  __int64 v17; // x11\n  __int64 v18; // x10\n  __int64 v19; // x11\n  __int64 v20; // x8\n  __int64 v21; // x10\n  std::vector<GameObject *> *v22; // x9\n  std::__vector_base<int>::pointer v23; // x8\n  __int64 v24; // x11\n  GameObject *v25; // x10\n  __int64 v26; // x11\n  std::__vector_base<bool>::pointer v27; // x8\n\n  m_outerSectionIndex = (unsigned int)a2->m_outerSectionIndex;\n  if ( (m_outerSectionIndex & 0x80000000) == 0 )\n  {\n    m_middleSectionIndex = a2->m_middleSectionIndex;\n    v4 = a1->m_sections.__begin_[m_outerSectionIndex]->__begin_[m_middleSectionIndex];\n    begin = a1->m_sectionSizes.__begin_[m_outerSectionIndex]->__begin_;\n    v6 = begin[m_middleSectionIndex] - 1LL;\n    begin[m_middleSectionIndex] = v6;\n    v7 = v4->__begin_[v6];\n    m_someOtherIndex = a2->m_someOtherIndex;\n    v4->__begin_[m_someOtherIndex] = v7;\n    v4->__begin_[m_someOtherIndex]->m_someOtherIndex = m_someOtherIndex;\n    if ( a2->m_objectID == 1816 )\n    {\n      if ( a2->m_hasExtendedCollision )\n      {\n        v9 = a1->m_calcCollisionBlockObjectsSize - 1LL;\n        a1->m_calcCollisionBlockObjectsSize = v9;\n        m_innerSectionIndex = a2->m_innerSectionIndex;\n        a1->m_calcCollisionBlockObjects.__begin_[m_innerSectionIndex] = a1->m_calcCollisionBlockObjects.__begin_[v9];\n        v11 = a1->m_calcCollisionBlockObjects.__begin_;\nLABEL_8:\n        v11[m_innerSectionIndex]->m_innerSectionIndex = m_innerSectionIndex;\n        return;\n      }\n      v13 = a2->m_outerSectionIndex;\n      v14 = a2->m_middleSectionIndex;\n      v15 = a1->m_collisionBlockSections.__begin_[v13]->__begin_[v14];\n      v16 = a1->m_collisionBlockSectionSizes.__begin_[v13]->__begin_;\n      v17 = v16[v14] - 1LL;\n      v16[v14] = v17;\n      v18 = *((_QWORD *)&v15->copyWithZone + v17);\n      v19 = a2->m_innerSectionIndex;\n      *((_QWORD *)&v15->copyWithZone + v19) = v18;\n      *(_DWORD *)(*((_QWORD *)&v15->copyWithZone + v19) + 624LL) = v19;\n    }\n    else if ( a2->m_objectType != Decoration )\n    {\n      if ( a2->m_hasExtendedCollision )\n      {\n        v12 = a1->m_calcNonEffectObjectsSize - 1LL;\n        a1->m_calcNonEffectObjectsSize = v12;\n        m_innerSectionIndex = a2->m_innerSectionIndex;\n        a1->m_calcNonEffectObjects.__begin_[m_innerSectionIndex] = a1->m_calcNonEffectObjects.__begin_[v12];\n        v11 = a1->m_calcNonEffectObjects.__begin_;\n        goto LABEL_8;\n      }\n      v20 = a2->m_outerSectionIndex;\n      v21 = a2->m_middleSectionIndex;\n      v22 = a1->m_nonEffectObjects.__begin_[v20]->__begin_[v21];\n      v23 = a1->m_nonEffectObjectsSizes.__begin_[v20]->__begin_;\n      v24 = v23[v21] - 1LL;\n      v23[v21] = v24;\n      v25 = v22->__begin_[v24];\n      v26 = a2->m_innerSectionIndex;\n      v22->__begin_[v26] = v25;\n      v22->__begin_[v26]->m_innerSectionIndex = v26;\n      v27 = a1->m_nonEffectObjectsFlags.__begin_[a2->m_outerSectionIndex]->__begin_;\n      *(_QWORD *)&v27[((unsigned __int64)a2->m_middleSectionIndex >> 3) & 0x1FFFFFFFFFFFFFF8LL] |= 1LL << a2->m_middleSectionIndex;\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::removeObjectFromSection from 0x1001f324c to 0x1001f33ec (416 bytes)\n; \n; 14 xrefs:\n; > SetupObjectOptionsPopup::onDisableObject @ 0x100040cb4\n; > PlayLayer::removeCheckpoint @ 0x100120ed0\n; > GJBaseGameLayer::updatePlayerCollisionBlocks @ 0x1001eac94\n; > GJBaseGameLayer::reorderObjectSection @ 0x1001eace8\n; > GJBaseGameLayer::addUIObject @ 0x1001f31ac\n; > GJBaseGameLayer::updateExtendedCollision @ 0x1001f3b08\n; > GJBaseGameLayer::updateObjectSection @ 0x1001f426c\n; > LevelEditorLayer::removePlayerCollisionBlock @ 0x100357d94\n; > LevelEditorLayer::removePlayerCollisionBlock @ 0x100357da8\n; > LevelEditorLayer::removeObject @ 0x10035b594\n; > LevelEditorLayer::removeSpecial @ 0x10035b710\n; > LevelEditorLayer::removeAllObjects @ 0x10035b9f4\n; > LevelEditorLayer::handleAction @ 0x10035bec0\n; > LevelEditorLayer::handleAction @ 0x10035bf20\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\nLDR             W8, [X1,#0x274]                                        ; +0x0, 0x1001f324c\nTBNZ            W8, #0x1F, locret_1001F3368                            ; +0x4, 0x1001f3250\nLDR             X9, [X0,#0x33B0]                                       ; +0x8, 0x1001f3254\nLDR             X9, [X9,X8,LSL#3]                                      ; +0xc, 0x1001f3258\nLDRSW           X10, [X1,#0x278]                                       ; +0x10, 0x1001f325c\nLDR             X9, [X9]                                               ; +0x14, 0x1001f3260\nLDR             X9, [X9,X10,LSL#3]                                     ; +0x18, 0x1001f3264\nLDR             X11, [X0,#0x3458]                                      ; +0x1c, 0x1001f3268\nLDR             X8, [X11,X8,LSL#3]                                     ; +0x20, 0x1001f326c\nLDR             X8, [X8]                                               ; +0x24, 0x1001f3270\nLDRSW           X11, [X8,X10,LSL#2]                                    ; +0x28, 0x1001f3274\nSUB             X11, X11, #1                                           ; +0x2c, 0x1001f3278\nSTR             W11, [X8,X10,LSL#2]                                    ; +0x30, 0x1001f327c\nLDR             X8, [X9]                                               ; +0x34, 0x1001f3280\nLDR             X10, [X8,X11,LSL#3]                                    ; +0x38, 0x1001f3284\nLDRSW           X11, [X1,#0x26C]                                       ; +0x3c, 0x1001f3288\nSTR             X10, [X8,X11,LSL#3]                                    ; +0x40, 0x1001f328c\nLDR             X8, [X9]                                               ; +0x44, 0x1001f3290\nLDR             X8, [X8,X11,LSL#3]                                     ; +0x48, 0x1001f3294\nSTR             W11, [X8,#0x26C]                                       ; +0x4c, 0x1001f3298\nLDR             W8, [X1,#0x404]                                        ; +0x50, 0x1001f329c\nCMP             W8, #0x718                                             ; +0x54, 0x1001f32a0\nB.NE            loc_1001F32D8                                          ; +0x58, 0x1001f32a4\nLDRB            W8, [X1,#0x27C]                                        ; +0x5c, 0x1001f32a8\nCMP             W8, #1                                                 ; +0x60, 0x1001f32ac\nB.NE            loc_1001F331C                                          ; +0x64, 0x1001f32b0\nLDRSW           X8, [X0,#0x3430]                                       ; +0x68, 0x1001f32b4\nSUB             X8, X8, #1                                             ; +0x6c, 0x1001f32b8\nSTR             W8, [X0,#0x3430]                                       ; +0x70, 0x1001f32bc\nLDR             X9, [X0,#0x3418]                                       ; +0x74, 0x1001f32c0\nLDR             X8, [X9,X8,LSL#3]                                      ; +0x78, 0x1001f32c4\nLDRSW           X10, [X1,#0x270]                                       ; +0x7c, 0x1001f32c8\nSTR             X8, [X9,X10,LSL#3]                                     ; +0x80, 0x1001f32cc\nLDR             X8, [X0,#0x3418]                                       ; +0x84, 0x1001f32d0\nB               loc_1001F3310                                          ; +0x88, 0x1001f32d4\nLDR             W8, [X1,#0x398]                                        ; +0x8c, 0x1001f32d8\nCMP             W8, #7                                                 ; +0x90, 0x1001f32dc\nB.EQ            locret_1001F3368                                       ; +0x94, 0x1001f32e0\nLDRB            W8, [X1,#0x27C]                                        ; +0x98, 0x1001f32e4\nCMP             W8, #1                                                 ; +0x9c, 0x1001f32e8\nB.NE            loc_1001F336C                                          ; +0xa0, 0x1001f32ec\nLDRSW           X8, [X0,#0x3410]                                       ; +0xa4, 0x1001f32f0\nSUB             X8, X8, #1                                             ; +0xa8, 0x1001f32f4\nSTR             W8, [X0,#0x3410]                                       ; +0xac, 0x1001f32f8\nLDR             X9, [X0,#0x33F8]                                       ; +0xb0, 0x1001f32fc\nLDR             X8, [X9,X8,LSL#3]                                      ; +0xb4, 0x1001f3300\nLDRSW           X10, [X1,#0x270]                                       ; +0xb8, 0x1001f3304\nSTR             X8, [X9,X10,LSL#3]                                     ; +0xbc, 0x1001f3308\nLDR             X8, [X0,#0x33F8]                                       ; +0xc0, 0x1001f330c\nLDR             X8, [X8,X10,LSL#3]                                     ; +0xc4, 0x1001f3310\nSTR             W10, [X8,#0x270]                                       ; +0xc8, 0x1001f3314\nRET                                                                    ; +0xcc, 0x1001f3318\nLDRSW           X8, [X1,#0x274]                                        ; +0xd0, 0x1001f331c\nLDR             X9, [X0,#0x33E0]                                       ; +0xd4, 0x1001f3320\nLDR             X9, [X9,X8,LSL#3]                                      ; +0xd8, 0x1001f3324\nLDRSW           X10, [X1,#0x278]                                       ; +0xdc, 0x1001f3328\nLDR             X9, [X9]                                               ; +0xe0, 0x1001f332c\nLDR             X9, [X9,X10,LSL#3]                                     ; +0xe4, 0x1001f3330\nLDR             X11, [X0,#0x3488]                                      ; +0xe8, 0x1001f3334\nLDR             X8, [X11,X8,LSL#3]                                     ; +0xec, 0x1001f3338\nLDR             X8, [X8]                                               ; +0xf0, 0x1001f333c\nLDRSW           X11, [X8,X10,LSL#2]                                    ; +0xf4, 0x1001f3340\nSUB             X11, X11, #1                                           ; +0xf8, 0x1001f3344\nSTR             W11, [X8,X10,LSL#2]                                    ; +0xfc, 0x1001f3348\nLDR             X8, [X9]                                               ; +0x100, 0x1001f334c\nLDR             X10, [X8,X11,LSL#3]                                    ; +0x104, 0x1001f3350\nLDRSW           X11, [X1,#0x270]                                       ; +0x108, 0x1001f3354\nSTR             X10, [X8,X11,LSL#3]                                    ; +0x10c, 0x1001f3358\nLDR             X8, [X9]                                               ; +0x110, 0x1001f335c\nLDR             X8, [X8,X11,LSL#3]                                     ; +0x114, 0x1001f3360\nSTR             W11, [X8,#0x270]                                       ; +0x118, 0x1001f3364\nRET                                                                    ; +0x11c, 0x1001f3368\nLDRSW           X8, [X1,#0x274]                                        ; +0x120, 0x1001f336c\nLDR             X9, [X0,#0x33C8]                                       ; +0x124, 0x1001f3370\nLDR             X9, [X9,X8,LSL#3]                                      ; +0x128, 0x1001f3374\nLDRSW           X10, [X1,#0x278]                                       ; +0x12c, 0x1001f3378\nLDR             X9, [X9]                                               ; +0x130, 0x1001f337c\nLDR             X9, [X9,X10,LSL#3]                                     ; +0x134, 0x1001f3380\nLDR             X11, [X0,#0x3470]                                      ; +0x138, 0x1001f3384\nLDR             X8, [X11,X8,LSL#3]                                     ; +0x13c, 0x1001f3388\nLDR             X8, [X8]                                               ; +0x140, 0x1001f338c\nLDRSW           X11, [X8,X10,LSL#2]                                    ; +0x144, 0x1001f3390\nSUB             X11, X11, #1                                           ; +0x148, 0x1001f3394\nSTR             W11, [X8,X10,LSL#2]                                    ; +0x14c, 0x1001f3398\nLDR             X8, [X9]                                               ; +0x150, 0x1001f339c\nLDR             X10, [X8,X11,LSL#3]                                    ; +0x154, 0x1001f33a0\nLDRSW           X11, [X1,#0x270]                                       ; +0x158, 0x1001f33a4\nSTR             X10, [X8,X11,LSL#3]                                    ; +0x15c, 0x1001f33a8\nLDR             X8, [X9]                                               ; +0x160, 0x1001f33ac\nLDR             X8, [X8,X11,LSL#3]                                     ; +0x164, 0x1001f33b0\nSTR             W11, [X8,#0x270]                                       ; +0x168, 0x1001f33b4\nLDRSW           X8, [X1,#0x274]                                        ; +0x16c, 0x1001f33b8\nLDR             X9, [X0,#0x34A0]                                       ; +0x170, 0x1001f33bc\nLDR             X8, [X9,X8,LSL#3]                                      ; +0x174, 0x1001f33c0\nLDRSW           X9, [X1,#0x278]                                        ; +0x178, 0x1001f33c4\nLDR             X8, [X8]                                               ; +0x17c, 0x1001f33c8\nLSR             X10, X9, #3                                            ; +0x180, 0x1001f33cc\nAND             X10, X10, #0x1FFFFFFFFFFFFFF8                          ; +0x184, 0x1001f33d0\nMOV             W11, #1                                                ; +0x188, 0x1001f33d4\nLSL             X9, X11, X9                                            ; +0x18c, 0x1001f33d8\nLDR             X11, [X8,X10]                                          ; +0x190, 0x1001f33dc\nORR             X9, X9, X11                                            ; +0x194, 0x1001f33e0\nSTR             X9, [X8,X10]                                           ; +0x198, 0x1001f33e4\nRET                                                                    ; +0x19c, 0x1001f33e8", "xrefs": ["SetupObjectOptionsPopup::onDisableObject @ 0x100040cb4", "PlayLayer::removeCheckpoint @ 0x100120ed0", "GJBaseGameLayer::updatePlayerCollisionBlocks @ 0x1001eac94", "GJBaseGameLayer::reorderObjectSection @ 0x1001eace8", "GJBaseGameLayer::addUIObject @ 0x1001f31ac", "GJBaseGameLayer::updateExtendedCollision @ 0x1001f3b08", "GJBaseGameLayer::updateObjectSection @ 0x1001f426c", "LevelEditorLayer::removePlayerCollisionBlock @ 0x100357d94", "LevelEditorLayer::removePlayerCollisionBlock @ 0x100357da8", "LevelEditorLayer::removeObject @ 0x10035b594", "LevelEditorLayer::removeSpecial @ 0x10035b710", "LevelEditorLayer::removeAllObjects @ 0x10035b9f4", "LevelEditorLayer::handleAction @ 0x10035bec0", "LevelEditorLayer::handleAction @ 0x10035bf20"], "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"}