{"type": "func", "start": 8784724, "end": 8785160, "name": "GJBaseGameLayer::removeObjectFromSection", "pseudocode": "// \n// GJBaseGameLayer::removeObjectFromSection from 0x860b54 to 0x860d08 (436 bytes)\n// \n// 12 xrefs:\n// > PlayLayer::removeCheckpoint @ 0x5d2d78\n// > PlayLayer::removeCheckpoint @ 0x5d2dc0\n// > LevelEditorLayer::removePlayerCollisionBlock @ 0x6612b4\n// > LevelEditorLayer::removePlayerCollisionBlock @ 0x6612c8\n// > LevelEditorLayer::removeObject @ 0x6658d8\n// > LevelEditorLayer::handleAction @ 0x672678\n// > LevelEditorLayer::handleAction @ 0x67271c\n// > GJBaseGameLayer::reorderObjectSection @ 0x860d1c\n// > GJBaseGameLayer::updateExtendedCollision @ 0x861638\n// > GJBaseGameLayer::addUIObject @ 0x87853c\n// > SetupObjectOptionsPopup::onDisableObject @ 0x974b6c\n// > <???> @ 0x7afe8\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 GJBaseGameLayer::removeObjectFromSection(GJBaseGameLayer *a1, GameObject *a2)\n{\n  int m_outerSectionIndex; // w2\n  int m_middleSectionIndex; // w3\n  int m_someOtherIndex; // w7\n  int *m_start; // x6\n  std::vector<GameObject *> *v6; // x4\n  GameObject **v7; // x5\n  int v8; // w2\n  GameObject **v9; // x3\n  int v10; // w2\n  int v11; // w4\n  GameObject **v12; // x3\n  int v13; // w2\n  int m_innerSectionIndex; // w4\n  int v15; // w3\n  int v16; // w2\n  int v17; // w6\n  int *v18; // x5\n  GameObject *v19; // x3\n  GameObject_vtbl *v20; // x4\n  int v21; // w0\n  int v22; // w2\n  int v23; // w3\n  int v24; // w7\n  int *v25; // x6\n  std::vector<GameObject *> *v26; // x4\n  GameObject **v27; // x5\n  int v28; // w2\n  std::vector<bool> **v29; // x0\n\n  m_outerSectionIndex = a2->m_outerSectionIndex;\n  if ( (m_outerSectionIndex & 0x80000000) == 0 )\n  {\n    m_middleSectionIndex = a2->m_middleSectionIndex;\n    m_someOtherIndex = a2->m_someOtherIndex;\n    m_start = a1->m_sectionSizes.m_start[m_outerSectionIndex]->m_start;\n    v6 = a1->m_sections.m_start[m_outerSectionIndex]->m_start[m_middleSectionIndex];\n    v7 = v6->m_start;\n    v8 = m_start[m_middleSectionIndex] - 1;\n    m_start[m_middleSectionIndex] = v8;\n    v7[m_someOtherIndex] = v7[v8];\n    v6->m_start[a2->m_someOtherIndex]->m_someOtherIndex = a2->m_someOtherIndex;\n    if ( a2->m_objectID == 1816 )\n    {\n      if ( a2->m_hasExtendedCollision )\n      {\n        v12 = a1->m_calcCollisionBlockObjects.m_start;\n        v13 = a1->m_calcCollisionBlockObjectsSize - 1;\n        m_innerSectionIndex = a2->m_innerSectionIndex;\n        a1->m_calcCollisionBlockObjectsSize = v13;\n        v12[m_innerSectionIndex] = v12[v13];\n        a1->m_calcCollisionBlockObjects.m_start[a2->m_innerSectionIndex]->m_innerSectionIndex = a2->m_innerSectionIndex;\n      }\n      else\n      {\n        v15 = a2->m_outerSectionIndex;\n        v16 = a2->m_middleSectionIndex;\n        v17 = a2->m_innerSectionIndex;\n        v18 = a1->m_collisionBlockSectionSizes.m_start[v15]->m_start;\n        v19 = a1->m_collisionBlockSections.m_start[v15]->m_start[v16];\n        v20 = v19->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n        v21 = v18[v16] - 1;\n        v18[v16] = v21;\n        *((_QWORD *)&v20->copyWithZone + v17) = *((_QWORD *)&v20->copyWithZone + v21);\n        *(_DWORD *)(*((_QWORD *)&v19->copyWithZone + a2->m_innerSectionIndex) + 624LL) = a2->m_innerSectionIndex;\n      }\n    }\n    else if ( a2->m_objectType != Decoration )\n    {\n      if ( a2->m_hasExtendedCollision )\n      {\n        v9 = a1->m_calcNonEffectObjects.m_start;\n        v10 = a1->m_calcNonEffectObjectsSize - 1;\n        v11 = a2->m_innerSectionIndex;\n        a1->m_calcNonEffectObjectsSize = v10;\n        v9[v11] = v9[v10];\n        a1->m_calcNonEffectObjects.m_start[a2->m_innerSectionIndex]->m_innerSectionIndex = a2->m_innerSectionIndex;\n      }\n      else\n      {\n        v22 = a2->m_outerSectionIndex;\n        v23 = a2->m_middleSectionIndex;\n        v24 = a2->m_innerSectionIndex;\n        v25 = a1->m_nonEffectObjectsSizes.m_start[v22]->m_start;\n        v26 = a1->m_nonEffectObjects.m_start[v22]->m_start[v23];\n        v27 = v26->m_start;\n        v28 = v25[v23] - 1;\n        v25[v23] = v28;\n        v27[v24] = v27[v28];\n        v29 = a1->m_nonEffectObjectsFlags.m_start;\n        v26->m_start[a2->m_innerSectionIndex]->m_innerSectionIndex = a2->m_innerSectionIndex;\n        v29[a2->m_outerSectionIndex]->m_start.m_bitptr[(unsigned __int64)a2->m_middleSectionIndex >> 6] |= 1LL << (a2->m_middleSectionIndex & 0x3F);\n      }\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::removeObjectFromSection from 0x860b54 to 0x860d08 (436 bytes)\n; \n; 12 xrefs:\n; > PlayLayer::removeCheckpoint @ 0x5d2d78\n; > PlayLayer::removeCheckpoint @ 0x5d2dc0\n; > LevelEditorLayer::removePlayerCollisionBlock @ 0x6612b4\n; > LevelEditorLayer::removePlayerCollisionBlock @ 0x6612c8\n; > LevelEditorLayer::removeObject @ 0x6658d8\n; > LevelEditorLayer::handleAction @ 0x672678\n; > LevelEditorLayer::handleAction @ 0x67271c\n; > GJBaseGameLayer::reorderObjectSection @ 0x860d1c\n; > GJBaseGameLayer::updateExtendedCollision @ 0x861638\n; > GJBaseGameLayer::addUIObject @ 0x87853c\n; > SetupObjectOptionsPopup::onDisableObject @ 0x974b6c\n; > <???> @ 0x7afe8\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             W2, [X1,#0x274]                                        ; +0x0, 0x860b54\nTBNZ            W2, #0x1F, locret_860BF4                               ; +0x4, 0x860b58\nLDR             X5, [X0,#0x3580]                                       ; +0x8, 0x860b5c\nLDR             X4, [X0,#0x3628]                                       ; +0xc, 0x860b60\nLDR             W3, [X1,#0x278]                                        ; +0x10, 0x860b64\nLDR             X5, [X5,W2,SXTW#3]                                     ; +0x14, 0x860b68\nLDR             X4, [X4,W2,SXTW#3]                                     ; +0x18, 0x860b6c\nLDR             W7, [X1,#0x26C]                                        ; +0x1c, 0x860b70\nLDR             X2, [X5]                                               ; +0x20, 0x860b74\nLDR             X6, [X4]                                               ; +0x24, 0x860b78\nLDR             X4, [X2,W3,SXTW#3]                                     ; +0x28, 0x860b7c\nLDR             W2, [X6,W3,SXTW#2]                                     ; +0x2c, 0x860b80\nLDR             X5, [X4]                                               ; +0x30, 0x860b84\nSUB             W2, W2, #1                                             ; +0x34, 0x860b88\nSTR             W2, [X6,W3,SXTW#2]                                     ; +0x38, 0x860b8c\nLDR             X2, [X5,W2,SXTW#3]                                     ; +0x3c, 0x860b90\nSTR             X2, [X5,W7,SXTW#3]                                     ; +0x40, 0x860b94\nLDR             W2, [X1,#0x26C]                                        ; +0x44, 0x860b98\nLDR             X3, [X4]                                               ; +0x48, 0x860b9c\nLDR             X3, [X3,W2,SXTW#3]                                     ; +0x4c, 0x860ba0\nSTR             W2, [X3,#0x26C]                                        ; +0x50, 0x860ba4\nLDR             W2, [X1,#0x3F4]                                        ; +0x54, 0x860ba8\nCMP             W2, #0x718                                             ; +0x58, 0x860bac\nB.EQ            loc_860BF8                                             ; +0x5c, 0x860bb0\nLDR             W2, [X1,#0x388]                                        ; +0x60, 0x860bb4\nCMP             W2, #7                                                 ; +0x64, 0x860bb8\nB.EQ            locret_860BF4                                          ; +0x68, 0x860bbc\nLDRB            W2, [X1,#0x27C]                                        ; +0x6c, 0x860bc0\nCBZ             W2, loc_860C84                                         ; +0x70, 0x860bc4\nLDR             W2, [X0,#0x35E0]                                       ; +0x74, 0x860bc8\nLDR             X3, [X0,#0x35C8]                                       ; +0x78, 0x860bcc\nSUB             W2, W2, #1                                             ; +0x7c, 0x860bd0\nLDR             W4, [X1,#0x270]                                        ; +0x80, 0x860bd4\nSTR             W2, [X0,#0x35E0]                                       ; +0x84, 0x860bd8\nLDR             X2, [X3,W2,SXTW#3]                                     ; +0x88, 0x860bdc\nSTR             X2, [X3,W4,SXTW#3]                                     ; +0x8c, 0x860be0\nLDR             W1, [X1,#0x270]                                        ; +0x90, 0x860be4\nLDR             X0, [X0,#0x35C8]                                       ; +0x94, 0x860be8\nLDR             X0, [X0,W1,SXTW#3]                                     ; +0x98, 0x860bec\nSTR             W1, [X0,#0x270]                                        ; +0x9c, 0x860bf0\nRET                                                                    ; +0xa0, 0x860bf4\nLDRB            W2, [X1,#0x27C]                                        ; +0xa4, 0x860bf8\nCBZ             W2, loc_860C30                                         ; +0xa8, 0x860bfc\nLDR             W2, [X0,#0x3600]                                       ; +0xac, 0x860c00\nLDR             X3, [X0,#0x35E8]                                       ; +0xb0, 0x860c04\nSUB             W2, W2, #1                                             ; +0xb4, 0x860c08\nLDR             W4, [X1,#0x270]                                        ; +0xb8, 0x860c0c\nSTR             W2, [X0,#0x3600]                                       ; +0xbc, 0x860c10\nLDR             X2, [X3,W2,SXTW#3]                                     ; +0xc0, 0x860c14\nSTR             X2, [X3,W4,SXTW#3]                                     ; +0xc4, 0x860c18\nLDR             W1, [X1,#0x270]                                        ; +0xc8, 0x860c1c\nLDR             X0, [X0,#0x35E8]                                       ; +0xcc, 0x860c20\nLDR             X0, [X0,W1,SXTW#3]                                     ; +0xd0, 0x860c24\nSTR             W1, [X0,#0x270]                                        ; +0xd4, 0x860c28\nRET                                                                    ; +0xd8, 0x860c2c\nLDR             W3, [X1,#0x274]                                        ; +0xdc, 0x860c30\nLDR             X5, [X0,#0x35B0]                                       ; +0xe0, 0x860c34\nLDR             X4, [X0,#0x3658]                                       ; +0xe4, 0x860c38\nLDR             W2, [X1,#0x278]                                        ; +0xe8, 0x860c3c\nLDR             X0, [X5,W3,SXTW#3]                                     ; +0xec, 0x860c40\nLDR             X3, [X4,W3,SXTW#3]                                     ; +0xf0, 0x860c44\nLDR             W6, [X1,#0x270]                                        ; +0xf4, 0x860c48\nLDR             X0, [X0]                                               ; +0xf8, 0x860c4c\nLDR             X5, [X3]                                               ; +0xfc, 0x860c50\nLDR             X3, [X0,W2,SXTW#3]                                     ; +0x100, 0x860c54\nLDR             W0, [X5,W2,SXTW#2]                                     ; +0x104, 0x860c58\nLDR             X4, [X3]                                               ; +0x108, 0x860c5c\nSUB             W0, W0, #1                                             ; +0x10c, 0x860c60\nSTR             W0, [X5,W2,SXTW#2]                                     ; +0x110, 0x860c64\nLDR             X0, [X4,W0,SXTW#3]                                     ; +0x114, 0x860c68\nSTR             X0, [X4,W6,SXTW#3]                                     ; +0x118, 0x860c6c\nLDR             W0, [X1,#0x270]                                        ; +0x11c, 0x860c70\nLDR             X1, [X3]                                               ; +0x120, 0x860c74\nLDR             X1, [X1,W0,SXTW#3]                                     ; +0x124, 0x860c78\nSTR             W0, [X1,#0x270]                                        ; +0x128, 0x860c7c\nRET                                                                    ; +0x12c, 0x860c80\nLDR             W2, [X1,#0x274]                                        ; +0x130, 0x860c84\nLDR             X5, [X0,#0x3598]                                       ; +0x134, 0x860c88\nLDR             X4, [X0,#0x3640]                                       ; +0x138, 0x860c8c\nLDR             W3, [X1,#0x278]                                        ; +0x13c, 0x860c90\nLDR             X5, [X5,W2,SXTW#3]                                     ; +0x140, 0x860c94\nLDR             X4, [X4,W2,SXTW#3]                                     ; +0x144, 0x860c98\nLDR             W7, [X1,#0x270]                                        ; +0x148, 0x860c9c\nLDR             X2, [X5]                                               ; +0x14c, 0x860ca0\nLDR             X6, [X4]                                               ; +0x150, 0x860ca4\nLDR             X4, [X2,W3,SXTW#3]                                     ; +0x154, 0x860ca8\nLDR             W2, [X6,W3,SXTW#2]                                     ; +0x158, 0x860cac\nLDR             X5, [X4]                                               ; +0x15c, 0x860cb0\nSUB             W2, W2, #1                                             ; +0x160, 0x860cb4\nSTR             W2, [X6,W3,SXTW#2]                                     ; +0x164, 0x860cb8\nLDR             X2, [X5,W2,SXTW#3]                                     ; +0x168, 0x860cbc\nSTR             X2, [X5,W7,SXTW#3]                                     ; +0x16c, 0x860cc0\nLDR             W2, [X1,#0x270]                                        ; +0x170, 0x860cc4\nLDR             X3, [X4]                                               ; +0x174, 0x860cc8\nLDR             X0, [X0,#0x3670]                                       ; +0x178, 0x860ccc\nLDR             X3, [X3,W2,SXTW#3]                                     ; +0x17c, 0x860cd0\nSTR             W2, [X3,#0x270]                                        ; +0x180, 0x860cd4\nLDR             W2, [X1,#0x274]                                        ; +0x184, 0x860cd8\nLDRSW           X1, [X1,#0x278]                                        ; +0x188, 0x860cdc\nLDR             X3, [X0,W2,SXTW#3]                                     ; +0x18c, 0x860ce0\nLSR             X2, X1, #6                                             ; +0x190, 0x860ce4\nMOV             X0, #1                                                 ; +0x194, 0x860ce8\nAND             W1, W1, #0x3F ; '?'                                    ; +0x198, 0x860cec\nLSL             X0, X0, X1                                             ; +0x19c, 0x860cf0\nLDR             X1, [X3]                                               ; +0x1a0, 0x860cf4\nLDR             X3, [X1,X2,LSL#3]                                      ; +0x1a4, 0x860cf8\nORR             X0, X3, X0                                             ; +0x1a8, 0x860cfc\nSTR             X0, [X1,X2,LSL#3]                                      ; +0x1ac, 0x860d00\nRET                                                                    ; +0x1b0, 0x860d04", "xrefs": ["PlayLayer::removeCheckpoint @ 0x5d2d78", "PlayLayer::removeCheckpoint @ 0x5d2dc0", "LevelEditorLayer::removePlayerCollisionBlock @ 0x6612b4", "LevelEditorLayer::removePlayerCollisionBlock @ 0x6612c8", "LevelEditorLayer::removeObject @ 0x6658d8", "LevelEditorLayer::handleAction @ 0x672678", "LevelEditorLayer::handleAction @ 0x67271c", "GJBaseGameLayer::reorderObjectSection @ 0x860d1c", "GJBaseGameLayer::updateExtendedCollision @ 0x861638", "GJBaseGameLayer::addUIObject @ 0x87853c", "SetupObjectOptionsPopup::onDisableObject @ 0x974b6c", "<???> @ 0x7afe8"], "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"}