{"type": "func", "start": 4296271664, "end": 4296272104, "name": "GJBaseGameLayer::removeObjectFromSection", "pseudocode": "// \n// GJBaseGameLayer::removeObjectFromSection from 0x10013e730 to 0x10013e8e8 (440 bytes)\n// \n// 23 xrefs:\n// > PlayLayer::storeCheckpoint @ 0x1000bd198\n// > PlayLayer::removeCheckpoint @ 0x1000bd21b\n// > LevelEditorLayer::init @ 0x1000dbc79\n// > LevelEditorLayer::init @ 0x1000dbc88\n// > LevelEditorLayer::removePlayerCollisionBlock @ 0x1000dcc70\n// > LevelEditorLayer::removePlayerCollisionBlock @ 0x1000dcc85\n// > LevelEditorLayer::removeObject @ 0x1000e2226\n// > LevelEditorLayer::removeSpecial @ 0x1000e23c4\n// > LevelEditorLayer::removeAllObjects @ 0x1000e274f\n// > LevelEditorLayer::removeAllObjectsOfType @ 0x1000e29ba\n// > LevelEditorLayer::handleAction @ 0x1000e2c48\n// > LevelEditorLayer::handleAction @ 0x1000e2d74\n// > LevelEditorLayer::onPausePlaytest @ 0x1000f2b71\n// > LevelEditorLayer::onPausePlaytest @ 0x1000f2b80\n// > LevelEditorLayer::onStopPlaytest @ 0x1000f2eb5\n// > LevelEditorLayer::onStopPlaytest @ 0x1000f2ec4\n// > GJBaseGameLayer::updatePlayerCollisionBlocks @ 0x10012ae1e\n// > GJBaseGameLayer::updatePlayerCollisionBlocks @ 0x10012aeda\n// > GJBaseGameLayer::reorderObjectSection @ 0x10012af0d\n// > GJBaseGameLayer::addUIObject @ 0x10013e5a2\n// > GJBaseGameLayer::updateExtendedCollision @ 0x10013f885\n// > GJBaseGameLayer::updateObjectSection @ 0x100140714\n// > SetupObjectOptionsPopup::onDisableObject @ 0x10031a404\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; // rax\n  __int64 m_middleSectionIndex; // r8\n  std::vector<GameObject *> *v4; // rcx\n  std::__vector_base<int>::pointer begin; // rax\n  __int64 v6; // rdx\n  std::__vector_base<GameObject *>::pointer v7; // rax\n  GameObject *v8; // rcx\n  __int64 m_someOtherIndex; // rdx\n  __int64 m_calcCollisionBlockObjectsSize; // rax\n  std::__vector_base<GameObject *>::pointer v11; // rcx\n  GameObject *v12; // rax\n  __int64 m_innerSectionIndex; // rdx\n  __int64 v14; // rax\n  std::__vector_base<std::vector<int> *, std::allocator<std::vector<int> *>>::pointer v15; // rdx\n  std::vector<GameObject *> *v16; // rcx\n  __int64 v17; // rdi\n  __int64 *v18; // rcx\n  std::__vector_base<int>::pointer v19; // rax\n  __int64 v20; // rdx\n  __int64 v21; // rax\n  __int64 v22; // rcx\n  __int64 v23; // rdx\n  __int64 v24; // rax\n  __int64 v25; // r8\n  std::vector<GameObject *> *v26; // rcx\n  std::__vector_base<int>::pointer v27; // rax\n  __int64 v28; // rdx\n  std::__vector_base<GameObject *>::pointer v29; // rax\n  GameObject *v30; // rcx\n  __int64 v31; // rdx\n  std::__vector_base<bool>::pointer v32; // rax\n\n  m_outerSectionIndex = a2->m_outerSectionIndex;\n  if ( m_outerSectionIndex >= 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];\n    begin[m_middleSectionIndex] = v6 - 1;\n    v7 = v4->__begin_;\n    v8 = v4->__begin_[v6 - 1];\n    m_someOtherIndex = a2->m_someOtherIndex;\n    v7[m_someOtherIndex] = v8;\n    v8->m_someOtherIndex = m_someOtherIndex;\n    if ( a2->m_objectID == 1816 )\n    {\n      if ( a2->m_hasExtendedCollision )\n      {\n        m_calcCollisionBlockObjectsSize = a1->m_calcCollisionBlockObjectsSize;\n        a1->m_calcCollisionBlockObjectsSize = m_calcCollisionBlockObjectsSize - 1;\n        v11 = a1->m_calcCollisionBlockObjects.__begin_;\nLABEL_8:\n        v12 = v11[m_calcCollisionBlockObjectsSize - 1];\n        m_innerSectionIndex = a2->m_innerSectionIndex;\n        v11[m_innerSectionIndex] = v12;\n        v12->m_innerSectionIndex = m_innerSectionIndex;\n        return;\n      }\n      v14 = a2->m_outerSectionIndex;\n      v15 = a1->m_collisionBlockSectionSizes.__begin_;\n      v16 = a1->m_collisionBlockSections.__begin_[v14];\n      v17 = a2->m_middleSectionIndex;\n      v18 = (__int64 *)v16->__begin_[v17];\n      v19 = v15[v14]->__begin_;\n      v20 = v19[v17];\n      v19[v17] = v20 - 1;\n      v21 = *v18;\n      v22 = *(_QWORD *)(*v18 + 8 * v20 - 8);\n      v23 = a2->m_innerSectionIndex;\n      *(_QWORD *)(v21 + 8 * v23) = v22;\n      *(_DWORD *)(v22 + 624) = v23;\n    }\n    else\n    {\n      if ( a2->m_objectType == Decoration )\n        return;\n      if ( a2->m_hasExtendedCollision )\n      {\n        m_calcCollisionBlockObjectsSize = a1->m_calcNonEffectObjectsSize;\n        a1->m_calcNonEffectObjectsSize = m_calcCollisionBlockObjectsSize - 1;\n        v11 = a1->m_calcNonEffectObjects.__begin_;\n        goto LABEL_8;\n      }\n      v24 = a2->m_outerSectionIndex;\n      v25 = a2->m_middleSectionIndex;\n      v26 = a1->m_nonEffectObjects.__begin_[v24]->__begin_[v25];\n      v27 = a1->m_nonEffectObjectsSizes.__begin_[v24]->__begin_;\n      v28 = v27[v25];\n      v27[v25] = v28 - 1;\n      v29 = v26->__begin_;\n      v30 = v26->__begin_[v28 - 1];\n      v31 = a2->m_innerSectionIndex;\n      v29[v31] = v30;\n      v30->m_innerSectionIndex = v31;\n      v32 = a1->m_nonEffectObjectsFlags.__begin_[a2->m_outerSectionIndex]->__begin_;\n      *(_QWORD *)&v32[8 * ((unsigned __int64)a2->m_middleSectionIndex >> 6)] |= 1LL << a2->m_middleSectionIndex;\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::removeObjectFromSection from 0x10013e730 to 0x10013e8e8 (440 bytes)\n; \n; 23 xrefs:\n; > PlayLayer::storeCheckpoint @ 0x1000bd198\n; > PlayLayer::removeCheckpoint @ 0x1000bd21b\n; > LevelEditorLayer::init @ 0x1000dbc79\n; > LevelEditorLayer::init @ 0x1000dbc88\n; > LevelEditorLayer::removePlayerCollisionBlock @ 0x1000dcc70\n; > LevelEditorLayer::removePlayerCollisionBlock @ 0x1000dcc85\n; > LevelEditorLayer::removeObject @ 0x1000e2226\n; > LevelEditorLayer::removeSpecial @ 0x1000e23c4\n; > LevelEditorLayer::removeAllObjects @ 0x1000e274f\n; > LevelEditorLayer::removeAllObjectsOfType @ 0x1000e29ba\n; > LevelEditorLayer::handleAction @ 0x1000e2c48\n; > LevelEditorLayer::handleAction @ 0x1000e2d74\n; > LevelEditorLayer::onPausePlaytest @ 0x1000f2b71\n; > LevelEditorLayer::onPausePlaytest @ 0x1000f2b80\n; > LevelEditorLayer::onStopPlaytest @ 0x1000f2eb5\n; > LevelEditorLayer::onStopPlaytest @ 0x1000f2ec4\n; > GJBaseGameLayer::updatePlayerCollisionBlocks @ 0x10012ae1e\n; > GJBaseGameLayer::updatePlayerCollisionBlocks @ 0x10012aeda\n; > GJBaseGameLayer::reorderObjectSection @ 0x10012af0d\n; > GJBaseGameLayer::addUIObject @ 0x10013e5a2\n; > GJBaseGameLayer::updateExtendedCollision @ 0x10013f885\n; > GJBaseGameLayer::updateObjectSection @ 0x100140714\n; > SetupObjectOptionsPopup::onDisableObject @ 0x10031a404\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\nmovsxd  rax, dword ptr [rsi+274h]                                      ; +0x0, 0x10013e730\ntest    rax, rax                                                       ; +0x7, 0x10013e737\njs      locret_10013E8E7                                               ; +0xa, 0x10013e73a\npush    rbp                                                            ; +0x10, 0x10013e740\nmov     rbp, rsp                                                       ; +0x11, 0x10013e741\nmov     rcx, [rdi+3380h]                                               ; +0x14, 0x10013e744\nmov     rdx, [rdi+3428h]                                               ; +0x1b, 0x10013e74b\nmov     rcx, [rcx+rax*8]                                               ; +0x22, 0x10013e752\nmovsxd  r8, dword ptr [rsi+278h]                                       ; +0x26, 0x10013e756\nmov     rcx, [rcx]                                                     ; +0x2d, 0x10013e75d\nmov     rcx, [rcx+r8*8]                                                ; +0x30, 0x10013e760\nmov     rax, [rdx+rax*8]                                               ; +0x34, 0x10013e764\nmov     rax, [rax]                                                     ; +0x38, 0x10013e768\nmovsxd  rdx, dword ptr [rax+r8*4]                                      ; +0x3b, 0x10013e76b\nlea     r9, [rdx-1]                                                    ; +0x3f, 0x10013e76f\nmov     [rax+r8*4], r9d                                                ; +0x43, 0x10013e773\nmov     rax, [rcx]                                                     ; +0x47, 0x10013e777\nmov     rcx, [rax+rdx*8-8]                                             ; +0x4a, 0x10013e77a\nmovsxd  rdx, dword ptr [rsi+26Ch]                                      ; +0x4f, 0x10013e77f\nmov     [rax+rdx*8], rcx                                               ; +0x56, 0x10013e786\nmov     [rcx+26Ch], edx                                                ; +0x5a, 0x10013e78a\ncmp     dword ptr [rsi+404h], 718h                                     ; +0x60, 0x10013e790\njnz     short loc_10013E7BF                                            ; +0x6a, 0x10013e79a\ncmp     byte ptr [rsi+27Ch], 1                                         ; +0x6c, 0x10013e79c\njnz     short loc_10013E80C                                            ; +0x73, 0x10013e7a3\nmovsxd  rax, dword ptr [rdi+3400h]                                     ; +0x75, 0x10013e7a5\nlea     rcx, [rax-1]                                                   ; +0x7c, 0x10013e7ac\nmov     [rdi+3400h], ecx                                               ; +0x80, 0x10013e7b0\nmov     rcx, [rdi+33E8h]                                               ; +0x86, 0x10013e7b6\njmp     short loc_10013E7F1                                            ; +0x8d, 0x10013e7bd\ncmp     dword ptr [rsi+398h], 7                                        ; +0x8f, 0x10013e7bf\njz      loc_10013E8E6                                                  ; +0x96, 0x10013e7c6\ncmp     byte ptr [rsi+27Ch], 1                                         ; +0x9c, 0x10013e7cc\njnz     loc_10013E864                                                  ; +0xa3, 0x10013e7d3\nmovsxd  rax, dword ptr [rdi+33E0h]                                     ; +0xa9, 0x10013e7d9\nlea     rcx, [rax-1]                                                   ; +0xb0, 0x10013e7e0\nmov     [rdi+33E0h], ecx                                               ; +0xb4, 0x10013e7e4\nmov     rcx, [rdi+33C8h]                                               ; +0xba, 0x10013e7ea\nmov     rax, [rcx+rax*8-8]                                             ; +0xc1, 0x10013e7f1\nmovsxd  rdx, dword ptr [rsi+270h]                                      ; +0xc6, 0x10013e7f6\nmov     [rcx+rdx*8], rax                                               ; +0xcd, 0x10013e7fd\nmov     [rax+270h], edx                                                ; +0xd1, 0x10013e801\njmp     loc_10013E8E6                                                  ; +0xd7, 0x10013e807\nmovsxd  rax, dword ptr [rsi+274h]                                      ; +0xdc, 0x10013e80c\nmov     rcx, [rdi+33B0h]                                               ; +0xe3, 0x10013e813\nmov     rdx, [rdi+3458h]                                               ; +0xea, 0x10013e81a\nmov     rcx, [rcx+rax*8]                                               ; +0xf1, 0x10013e821\nmovsxd  rdi, dword ptr [rsi+278h]                                      ; +0xf5, 0x10013e825\nmov     rcx, [rcx]                                                     ; +0xfc, 0x10013e82c\nmov     rcx, [rcx+rdi*8]                                               ; +0xff, 0x10013e82f\nmov     rax, [rdx+rax*8]                                               ; +0x103, 0x10013e833\nmov     rax, [rax]                                                     ; +0x107, 0x10013e837\nmovsxd  rdx, dword ptr [rax+rdi*4]                                     ; +0x10a, 0x10013e83a\nlea     r8, [rdx-1]                                                    ; +0x10e, 0x10013e83e\nmov     [rax+rdi*4], r8d                                               ; +0x112, 0x10013e842\nmov     rax, [rcx]                                                     ; +0x116, 0x10013e846\nmov     rcx, [rax+rdx*8-8]                                             ; +0x119, 0x10013e849\nmovsxd  rdx, dword ptr [rsi+270h]                                      ; +0x11e, 0x10013e84e\nmov     [rax+rdx*8], rcx                                               ; +0x125, 0x10013e855\nmov     [rcx+270h], edx                                                ; +0x129, 0x10013e859\njmp     loc_10013E8E6                                                  ; +0x12f, 0x10013e85f\nmovsxd  rax, dword ptr [rsi+274h]                                      ; +0x134, 0x10013e864\nmov     rcx, [rdi+3398h]                                               ; +0x13b, 0x10013e86b\nmov     rdx, [rdi+3440h]                                               ; +0x142, 0x10013e872\nmov     rcx, [rcx+rax*8]                                               ; +0x149, 0x10013e879\nmovsxd  r8, dword ptr [rsi+278h]                                       ; +0x14d, 0x10013e87d\nmov     rcx, [rcx]                                                     ; +0x154, 0x10013e884\nmov     rcx, [rcx+r8*8]                                                ; +0x157, 0x10013e887\nmov     rax, [rdx+rax*8]                                               ; +0x15b, 0x10013e88b\nmov     rax, [rax]                                                     ; +0x15f, 0x10013e88f\nmovsxd  rdx, dword ptr [rax+r8*4]                                      ; +0x162, 0x10013e892\nlea     r9, [rdx-1]                                                    ; +0x166, 0x10013e896\nmov     [rax+r8*4], r9d                                                ; +0x16a, 0x10013e89a\nmov     rax, [rcx]                                                     ; +0x16e, 0x10013e89e\nmov     rcx, [rax+rdx*8-8]                                             ; +0x171, 0x10013e8a1\nmovsxd  rdx, dword ptr [rsi+270h]                                      ; +0x176, 0x10013e8a6\nmov     [rax+rdx*8], rcx                                               ; +0x17d, 0x10013e8ad\nmov     [rcx+270h], edx                                                ; +0x181, 0x10013e8b1\nmovsxd  rax, dword ptr [rsi+274h]                                      ; +0x187, 0x10013e8b7\nmov     rcx, [rdi+3470h]                                               ; +0x18e, 0x10013e8be\nmov     rax, [rcx+rax*8]                                               ; +0x195, 0x10013e8c5\nmovsxd  rcx, dword ptr [rsi+278h]                                      ; +0x199, 0x10013e8c9\nmov     rax, [rax]                                                     ; +0x1a0, 0x10013e8d0\nmov     rdx, rcx                                                       ; +0x1a3, 0x10013e8d3\nmov     esi, 1                                                         ; +0x1a6, 0x10013e8d6\nshl     rsi, cl                                                        ; +0x1ab, 0x10013e8db\nshr     rdx, 6                                                         ; +0x1ae, 0x10013e8de\nor      [rax+rdx*8], rsi                                               ; +0x1b2, 0x10013e8e2\npop     rbp                                                            ; +0x1b6, 0x10013e8e6\nretn                                                                   ; +0x1b7, 0x10013e8e7", "xrefs": ["PlayLayer::storeCheckpoint @ 0x1000bd198", "PlayLayer::removeCheckpoint @ 0x1000bd21b", "LevelEditorLayer::init @ 0x1000dbc79", "LevelEditorLayer::init @ 0x1000dbc88", "LevelEditorLayer::removePlayerCollisionBlock @ 0x1000dcc70", "LevelEditorLayer::removePlayerCollisionBlock @ 0x1000dcc85", "LevelEditorLayer::removeObject @ 0x1000e2226", "LevelEditorLayer::removeSpecial @ 0x1000e23c4", "LevelEditorLayer::removeAllObjects @ 0x1000e274f", "LevelEditorLayer::removeAllObjectsOfType @ 0x1000e29ba", "LevelEditorLayer::handleAction @ 0x1000e2c48", "LevelEditorLayer::handleAction @ 0x1000e2d74", "LevelEditorLayer::onPausePlaytest @ 0x1000f2b71", "LevelEditorLayer::onPausePlaytest @ 0x1000f2b80", "LevelEditorLayer::onStopPlaytest @ 0x1000f2eb5", "LevelEditorLayer::onStopPlaytest @ 0x1000f2ec4", "GJBaseGameLayer::updatePlayerCollisionBlocks @ 0x10012ae1e", "GJBaseGameLayer::updatePlayerCollisionBlocks @ 0x10012aeda", "GJBaseGameLayer::reorderObjectSection @ 0x10012af0d", "GJBaseGameLayer::addUIObject @ 0x10013e5a2", "GJBaseGameLayer::updateExtendedCollision @ 0x10013f885", "GJBaseGameLayer::updateObjectSection @ 0x100140714", "SetupObjectOptionsPopup::onDisableObject @ 0x10031a404"], "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"}