{"type": "func", "start": 4296926100, "end": 4296926172, "name": "GJBaseGameLayer::removeGroundLayer", "pseudocode": "// \n// GJBaseGameLayer::removeGroundLayer from 0x1001de394 to 0x1001de3dc (72 bytes)\n// \n// 1 xrefs:\n// > LevelSettingsLayer::selectArtClosed @ 0x10017c1e4\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::removeGroundLayer(GJBaseGameLayer *a1)\n{\n  GJGroundLayer *m_groundLayer; // x0\n\n  m_groundLayer = a1->m_groundLayer;\n  if ( m_groundLayer )\n  {\n    ((void (__fastcall *)(GJGroundLayer *))m_groundLayer->removeFromParent)(m_groundLayer);\n    a1->m_groundLayer = nullptr;\n    ((void (__fastcall *)(GJGroundLayer *))a1->m_groundLayer2->removeFromParent)(a1->m_groundLayer2);\n    a1->m_groundLayer2 = nullptr;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::removeGroundLayer from 0x1001de394 to 0x1001de3dc (72 bytes)\n; \n; 1 xrefs:\n; > LevelSettingsLayer::selectArtClosed @ 0x10017c1e4\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1001de394\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001de398\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001de39c\nMOV             X19, X0                                                ; +0xc, 0x1001de3a0\nLDR             X0, [X0,#0xF08]                                        ; +0x10, 0x1001de3a4\nCBZ             X0, loc_1001DE3D0                                      ; +0x14, 0x1001de3a8\nLDR             X8, [X0]                                               ; +0x18, 0x1001de3ac\nLDR             X8, [X8,#0x1F8]                                        ; +0x1c, 0x1001de3b0\nBLR             X8                                                     ; +0x20, 0x1001de3b4\nSTR             XZR, [X19,#0xF08]                                      ; +0x24, 0x1001de3b8\nLDR             X0, [X19,#0xF10]                                       ; +0x28, 0x1001de3bc\nLDR             X8, [X0]                                               ; +0x2c, 0x1001de3c0\nLDR             X8, [X8,#0x1F8]                                        ; +0x30, 0x1001de3c4\nBLR             X8                                                     ; +0x34, 0x1001de3c8\nSTR             XZR, [X19,#0xF10]                                      ; +0x38, 0x1001de3cc\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x3c, 0x1001de3d0\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x40, 0x1001de3d4\nRET                                                                    ; +0x44, 0x1001de3d8", "xrefs": ["LevelSettingsLayer::selectArtClosed @ 0x10017c1e4"], "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"}