{"type": "func", "start": 4296133920, "end": 4296134360, "name": "GJBaseGameLayer::removeObjectFromSection", "pseudocode": "// \n// GJBaseGameLayer::removeObjectFromSection from 0x10011cd20 to 0x10011ced8 (440 bytes)\n// \n// 23 xrefs:\n// > PlayLayer::storeCheckpoint @ 0x10008acdf\n// > PlayLayer::removeCheckpoint @ 0x10008ad7f\n// > LevelEditorLayer::init @ 0x1000aab5d\n// > LevelEditorLayer::init @ 0x1000aab6c\n// > LevelEditorLayer::removePlayerCollisionBlock @ 0x1000abb90\n// > LevelEditorLayer::removePlayerCollisionBlock @ 0x1000abba5\n// > LevelEditorLayer::removeObject @ 0x1000b1a2c\n// > LevelEditorLayer::removeSpecial @ 0x1000b1bc4\n// > LevelEditorLayer::removeAllObjects @ 0x1000b1fcf\n// > LevelEditorLayer::removeAllObjectsOfType @ 0x1000b223a\n// > LevelEditorLayer::handleAction @ 0x1000b24ac\n// > LevelEditorLayer::handleAction @ 0x1000b25c4\n// > LevelEditorLayer::onPausePlaytest @ 0x1000c69f1\n// > LevelEditorLayer::onPausePlaytest @ 0x1000c6a00\n// > LevelEditorLayer::onStopPlaytest @ 0x1000c6d45\n// > LevelEditorLayer::onStopPlaytest @ 0x1000c6d54\n// > GJBaseGameLayer::updatePlayerCollisionBlocks @ 0x100108d6e\n// > GJBaseGameLayer::updatePlayerCollisionBlocks @ 0x100108e2a\n// > GJBaseGameLayer::reorderObjectSection @ 0x100108e5d\n// > GJBaseGameLayer::addUIObject @ 0x10011cb92\n// > GJBaseGameLayer::updateExtendedCollision @ 0x10011de75\n// > GJBaseGameLayer::updateObjectSection @ 0x10011ed04\n// > SetupObjectOptionsPopup::onDisableObject @ 0x100305484\n// \n// This function is hookable on this platform (idp: pc, 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 12:24:36 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::removeObjectFromSection(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  __int64 v3; // r8\n  __int64 *v4; // rcx\n  __int64 v5; // rax\n  __int64 v6; // rdx\n  __int64 v7; // rcx\n  __int64 v8; // rdx\n  __int64 v9; // rax\n  __int64 v10; // rcx\n  __int64 v11; // rdx\n  __int64 v12; // rax\n  __int64 v13; // rdx\n  _QWORD *v14; // rcx\n  __int64 v15; // rdi\n  __int64 *v16; // rcx\n  __int64 v17; // rax\n  __int64 v18; // rdx\n  __int64 v19; // rcx\n  __int64 v20; // rdx\n  __int64 v21; // rax\n  __int64 v22; // r8\n  __int64 *v23; // rcx\n  __int64 v24; // rax\n  __int64 v25; // rdx\n  __int64 v26; // rax\n  __int64 v27; // rcx\n  __int64 v28; // rdx\n\n  result = *(int *)(a2 + 628);\n  if ( result >= 0 )\n  {\n    v3 = *(int *)(a2 + 632);\n    v4 = *(__int64 **)(**(_QWORD **)(*(_QWORD *)(a1 + 13368) + 8 * result) + 8 * v3);\n    v5 = **(_QWORD **)(*(_QWORD *)(a1 + 13536) + 8 * result);\n    v6 = *(int *)(v5 + 4 * v3);\n    *(_DWORD *)(v5 + 4 * v3) = v6 - 1;\n    result = *v4;\n    v7 = *(_QWORD *)(*v4 + 8 * v6 - 8);\n    v8 = *(int *)(a2 + 620);\n    *(_QWORD *)(result + 8 * v8) = v7;\n    *(_DWORD *)(v7 + 620) = v8;\n    if ( *(_DWORD *)(a2 + 1028) == 1816 )\n    {\n      if ( *(_BYTE *)(a2 + 636) == 1 )\n      {\n        v9 = *(int *)(a1 + 13496);\n        *(_DWORD *)(a1 + 13496) = v9 - 1;\n        v10 = *(_QWORD *)(a1 + 13472);\nLABEL_8:\n        result = *(_QWORD *)(v10 + 8 * v9 - 8);\n        v11 = *(int *)(a2 + 624);\n        *(_QWORD *)(v10 + 8 * v11) = result;\n        *(_DWORD *)(result + 624) = v11;\n        return result;\n      }\n      v12 = *(int *)(a2 + 628);\n      v13 = *(_QWORD *)(a1 + 13584);\n      v14 = *(_QWORD **)(*(_QWORD *)(a1 + 13416) + 8 * v12);\n      v15 = *(int *)(a2 + 632);\n      v16 = *(__int64 **)(*v14 + 8 * v15);\n      v17 = **(_QWORD **)(v13 + 8 * v12);\n      v18 = *(int *)(v17 + 4 * v15);\n      *(_DWORD *)(v17 + 4 * v15) = v18 - 1;\n      result = *v16;\n      v19 = *(_QWORD *)(*v16 + 8 * v18 - 8);\n      v20 = *(int *)(a2 + 624);\n      *(_QWORD *)(result + 8 * v20) = v19;\n      *(_DWORD *)(v19 + 624) = v20;\n    }\n    else\n    {\n      if ( *(_DWORD *)(a2 + 920) == 7 )\n        return result;\n      if ( *(_BYTE *)(a2 + 636) == 1 )\n      {\n        v9 = *(int *)(a1 + 13464);\n        *(_DWORD *)(a1 + 13464) = v9 - 1;\n        v10 = *(_QWORD *)(a1 + 13440);\n        goto LABEL_8;\n      }\n      v21 = *(int *)(a2 + 628);\n      v22 = *(int *)(a2 + 632);\n      v23 = *(__int64 **)(**(_QWORD **)(*(_QWORD *)(a1 + 13392) + 8 * v21) + 8 * v22);\n      v24 = **(_QWORD **)(*(_QWORD *)(a1 + 13560) + 8 * v21);\n      v25 = *(int *)(v24 + 4 * v22);\n      *(_DWORD *)(v24 + 4 * v22) = v25 - 1;\n      v26 = *v23;\n      v27 = *(_QWORD *)(*v23 + 8 * v25 - 8);\n      v28 = *(int *)(a2 + 624);\n      *(_QWORD *)(v26 + 8 * v28) = v27;\n      *(_DWORD *)(v27 + 624) = v28;\n      result = **(_QWORD **)(*(_QWORD *)(a1 + 13608) + 8LL * *(int *)(a2 + 628));\n      *(_QWORD *)(result + 8 * ((unsigned __int64)*(int *)(a2 + 632) >> 6)) |= 1LL << *(_DWORD *)(a2 + 632);\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::removeObjectFromSection from 0x10011cd20 to 0x10011ced8 (440 bytes)\n; \n; 23 xrefs:\n; > PlayLayer::storeCheckpoint @ 0x10008acdf\n; > PlayLayer::removeCheckpoint @ 0x10008ad7f\n; > LevelEditorLayer::init @ 0x1000aab5d\n; > LevelEditorLayer::init @ 0x1000aab6c\n; > LevelEditorLayer::removePlayerCollisionBlock @ 0x1000abb90\n; > LevelEditorLayer::removePlayerCollisionBlock @ 0x1000abba5\n; > LevelEditorLayer::removeObject @ 0x1000b1a2c\n; > LevelEditorLayer::removeSpecial @ 0x1000b1bc4\n; > LevelEditorLayer::removeAllObjects @ 0x1000b1fcf\n; > LevelEditorLayer::removeAllObjectsOfType @ 0x1000b223a\n; > LevelEditorLayer::handleAction @ 0x1000b24ac\n; > LevelEditorLayer::handleAction @ 0x1000b25c4\n; > LevelEditorLayer::onPausePlaytest @ 0x1000c69f1\n; > LevelEditorLayer::onPausePlaytest @ 0x1000c6a00\n; > LevelEditorLayer::onStopPlaytest @ 0x1000c6d45\n; > LevelEditorLayer::onStopPlaytest @ 0x1000c6d54\n; > GJBaseGameLayer::updatePlayerCollisionBlocks @ 0x100108d6e\n; > GJBaseGameLayer::updatePlayerCollisionBlocks @ 0x100108e2a\n; > GJBaseGameLayer::reorderObjectSection @ 0x100108e5d\n; > GJBaseGameLayer::addUIObject @ 0x10011cb92\n; > GJBaseGameLayer::updateExtendedCollision @ 0x10011de75\n; > GJBaseGameLayer::updateObjectSection @ 0x10011ed04\n; > SetupObjectOptionsPopup::onDisableObject @ 0x100305484\n; \n; This function is hookable on this platform (idp: pc, 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 12:24:36 +0000\n; \nmovsxd  rax, dword ptr [rsi+274h]                                      ; +0x0, 0x10011cd20\ntest    rax, rax                                                       ; +0x7, 0x10011cd27\njs      locret_10011CED7                                               ; +0xa, 0x10011cd2a\npush    rbp                                                            ; +0x10, 0x10011cd30\nmov     rbp, rsp                                                       ; +0x11, 0x10011cd31\nmov     rcx, [rdi+3438h]                                               ; +0x14, 0x10011cd34\nmov     rdx, [rdi+34E0h]                                               ; +0x1b, 0x10011cd3b\nmov     rcx, [rcx+rax*8]                                               ; +0x22, 0x10011cd42\nmovsxd  r8, dword ptr [rsi+278h]                                       ; +0x26, 0x10011cd46\nmov     rcx, [rcx]                                                     ; +0x2d, 0x10011cd4d\nmov     rcx, [rcx+r8*8]                                                ; +0x30, 0x10011cd50\nmov     rax, [rdx+rax*8]                                               ; +0x34, 0x10011cd54\nmov     rax, [rax]                                                     ; +0x38, 0x10011cd58\nmovsxd  rdx, dword ptr [rax+r8*4]                                      ; +0x3b, 0x10011cd5b\nlea     r9, [rdx-1]                                                    ; +0x3f, 0x10011cd5f\nmov     [rax+r8*4], r9d                                                ; +0x43, 0x10011cd63\nmov     rax, [rcx]                                                     ; +0x47, 0x10011cd67\nmov     rcx, [rax+rdx*8-8]                                             ; +0x4a, 0x10011cd6a\nmovsxd  rdx, dword ptr [rsi+26Ch]                                      ; +0x4f, 0x10011cd6f\nmov     [rax+rdx*8], rcx                                               ; +0x56, 0x10011cd76\nmov     [rcx+26Ch], edx                                                ; +0x5a, 0x10011cd7a\ncmp     dword ptr [rsi+404h], 718h                                     ; +0x60, 0x10011cd80\njnz     short loc_10011CDAF                                            ; +0x6a, 0x10011cd8a\ncmp     byte ptr [rsi+27Ch], 1                                         ; +0x6c, 0x10011cd8c\njnz     short loc_10011CDFC                                            ; +0x73, 0x10011cd93\nmovsxd  rax, dword ptr [rdi+34B8h]                                     ; +0x75, 0x10011cd95\nlea     rcx, [rax-1]                                                   ; +0x7c, 0x10011cd9c\nmov     [rdi+34B8h], ecx                                               ; +0x80, 0x10011cda0\nmov     rcx, [rdi+34A0h]                                               ; +0x86, 0x10011cda6\njmp     short loc_10011CDE1                                            ; +0x8d, 0x10011cdad\ncmp     dword ptr [rsi+398h], 7                                        ; +0x8f, 0x10011cdaf\njz      loc_10011CED6                                                  ; +0x96, 0x10011cdb6\ncmp     byte ptr [rsi+27Ch], 1                                         ; +0x9c, 0x10011cdbc\njnz     loc_10011CE54                                                  ; +0xa3, 0x10011cdc3\nmovsxd  rax, dword ptr [rdi+3498h]                                     ; +0xa9, 0x10011cdc9\nlea     rcx, [rax-1]                                                   ; +0xb0, 0x10011cdd0\nmov     [rdi+3498h], ecx                                               ; +0xb4, 0x10011cdd4\nmov     rcx, [rdi+3480h]                                               ; +0xba, 0x10011cdda\nmov     rax, [rcx+rax*8-8]                                             ; +0xc1, 0x10011cde1\nmovsxd  rdx, dword ptr [rsi+270h]                                      ; +0xc6, 0x10011cde6\nmov     [rcx+rdx*8], rax                                               ; +0xcd, 0x10011cded\nmov     [rax+270h], edx                                                ; +0xd1, 0x10011cdf1\njmp     loc_10011CED6                                                  ; +0xd7, 0x10011cdf7\nmovsxd  rax, dword ptr [rsi+274h]                                      ; +0xdc, 0x10011cdfc\nmov     rcx, [rdi+3468h]                                               ; +0xe3, 0x10011ce03\nmov     rdx, [rdi+3510h]                                               ; +0xea, 0x10011ce0a\nmov     rcx, [rcx+rax*8]                                               ; +0xf1, 0x10011ce11\nmovsxd  rdi, dword ptr [rsi+278h]                                      ; +0xf5, 0x10011ce15\nmov     rcx, [rcx]                                                     ; +0xfc, 0x10011ce1c\nmov     rcx, [rcx+rdi*8]                                               ; +0xff, 0x10011ce1f\nmov     rax, [rdx+rax*8]                                               ; +0x103, 0x10011ce23\nmov     rax, [rax]                                                     ; +0x107, 0x10011ce27\nmovsxd  rdx, dword ptr [rax+rdi*4]                                     ; +0x10a, 0x10011ce2a\nlea     r8, [rdx-1]                                                    ; +0x10e, 0x10011ce2e\nmov     [rax+rdi*4], r8d                                               ; +0x112, 0x10011ce32\nmov     rax, [rcx]                                                     ; +0x116, 0x10011ce36\nmov     rcx, [rax+rdx*8-8]                                             ; +0x119, 0x10011ce39\nmovsxd  rdx, dword ptr [rsi+270h]                                      ; +0x11e, 0x10011ce3e\nmov     [rax+rdx*8], rcx                                               ; +0x125, 0x10011ce45\nmov     [rcx+270h], edx                                                ; +0x129, 0x10011ce49\njmp     loc_10011CED6                                                  ; +0x12f, 0x10011ce4f\nmovsxd  rax, dword ptr [rsi+274h]                                      ; +0x134, 0x10011ce54\nmov     rcx, [rdi+3450h]                                               ; +0x13b, 0x10011ce5b\nmov     rdx, [rdi+34F8h]                                               ; +0x142, 0x10011ce62\nmov     rcx, [rcx+rax*8]                                               ; +0x149, 0x10011ce69\nmovsxd  r8, dword ptr [rsi+278h]                                       ; +0x14d, 0x10011ce6d\nmov     rcx, [rcx]                                                     ; +0x154, 0x10011ce74\nmov     rcx, [rcx+r8*8]                                                ; +0x157, 0x10011ce77\nmov     rax, [rdx+rax*8]                                               ; +0x15b, 0x10011ce7b\nmov     rax, [rax]                                                     ; +0x15f, 0x10011ce7f\nmovsxd  rdx, dword ptr [rax+r8*4]                                      ; +0x162, 0x10011ce82\nlea     r9, [rdx-1]                                                    ; +0x166, 0x10011ce86\nmov     [rax+r8*4], r9d                                                ; +0x16a, 0x10011ce8a\nmov     rax, [rcx]                                                     ; +0x16e, 0x10011ce8e\nmov     rcx, [rax+rdx*8-8]                                             ; +0x171, 0x10011ce91\nmovsxd  rdx, dword ptr [rsi+270h]                                      ; +0x176, 0x10011ce96\nmov     [rax+rdx*8], rcx                                               ; +0x17d, 0x10011ce9d\nmov     [rcx+270h], edx                                                ; +0x181, 0x10011cea1\nmovsxd  rax, dword ptr [rsi+274h]                                      ; +0x187, 0x10011cea7\nmov     rcx, [rdi+3528h]                                               ; +0x18e, 0x10011ceae\nmov     rax, [rcx+rax*8]                                               ; +0x195, 0x10011ceb5\nmovsxd  rcx, dword ptr [rsi+278h]                                      ; +0x199, 0x10011ceb9\nmov     rax, [rax]                                                     ; +0x1a0, 0x10011cec0\nmov     rdx, rcx                                                       ; +0x1a3, 0x10011cec3\nmov     esi, 1                                                         ; +0x1a6, 0x10011cec6\nshl     rsi, cl                                                        ; +0x1ab, 0x10011cecb\nshr     rdx, 6                                                         ; +0x1ae, 0x10011cece\nor      [rax+rdx*8], rsi                                               ; +0x1b2, 0x10011ced2\npop     rbp                                                            ; +0x1b6, 0x10011ced6\nretn                                                                   ; +0x1b7, 0x10011ced7", "xrefs": ["PlayLayer::storeCheckpoint @ 0x10008acdf", "PlayLayer::removeCheckpoint @ 0x10008ad7f", "LevelEditorLayer::init @ 0x1000aab5d", "LevelEditorLayer::init @ 0x1000aab6c", "LevelEditorLayer::removePlayerCollisionBlock @ 0x1000abb90", "LevelEditorLayer::removePlayerCollisionBlock @ 0x1000abba5", "LevelEditorLayer::removeObject @ 0x1000b1a2c", "LevelEditorLayer::removeSpecial @ 0x1000b1bc4", "LevelEditorLayer::removeAllObjects @ 0x1000b1fcf", "LevelEditorLayer::removeAllObjectsOfType @ 0x1000b223a", "LevelEditorLayer::handleAction @ 0x1000b24ac", "LevelEditorLayer::handleAction @ 0x1000b25c4", "LevelEditorLayer::onPausePlaytest @ 0x1000c69f1", "LevelEditorLayer::onPausePlaytest @ 0x1000c6a00", "LevelEditorLayer::onStopPlaytest @ 0x1000c6d45", "LevelEditorLayer::onStopPlaytest @ 0x1000c6d54", "GJBaseGameLayer::updatePlayerCollisionBlocks @ 0x100108d6e", "GJBaseGameLayer::updatePlayerCollisionBlocks @ 0x100108e2a", "GJBaseGameLayer::reorderObjectSection @ 0x100108e5d", "GJBaseGameLayer::addUIObject @ 0x10011cb92", "GJBaseGameLayer::updateExtendedCollision @ 0x10011de75", "GJBaseGameLayer::updateObjectSection @ 0x10011ed04", "SetupObjectOptionsPopup::onDisableObject @ 0x100305484"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}