{"type": "func", "start": 4641388, "end": 4641430, "name": "GJBaseGameLayer::removeGroundLayer", "pseudocode": "// \n// GJBaseGameLayer::removeGroundLayer from 0x46d26c to 0x46d296 (42 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::createGroundLayer @ 0x46d2a6\n// > LevelSettingsLayer::selectArtClosed @ 0x56f9a0\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::removeGroundLayer(GJBaseGameLayer *a1)\n{\n  GJGroundLayer *m_groundLayer; // r0\n  GJGroundLayer *m_groundLayer2; // r0\n\n  m_groundLayer = a1->m_groundLayer;\n  if ( m_groundLayer )\n  {\n    m_groundLayer->removeFromParent(m_groundLayer);\n    m_groundLayer2 = a1->m_groundLayer2;\n    a1->m_groundLayer = nullptr;\n    m_groundLayer2->removeFromParent(m_groundLayer2);\n    a1->m_groundLayer2 = nullptr;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::removeGroundLayer from 0x46d26c to 0x46d296 (42 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::createGroundLayer @ 0x46d2a6\n; > LevelSettingsLayer::selectArtClosed @ 0x56f9a0\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\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x46d26c\nMOV             R4, R0                                                 ; +0x2, 0x46d26e\nLDR.W           R0, [R0,#0xA04]                                        ; +0x4, 0x46d270\nCBZ             R0, locret_46D294                                      ; +0x8, 0x46d274\nLDR             R3, [R0]                                               ; +0xa, 0x46d276\nMOVS            R5, #0                                                 ; +0xc, 0x46d278\nLDR.W           R3, [R3,#0xFC]                                         ; +0xe, 0x46d27a\nBLX             R3                                                     ; +0x12, 0x46d27e\nLDR.W           R0, [R4,#0xA08]                                        ; +0x14, 0x46d280\nSTR.W           R5, [R4,#0xA04]                                        ; +0x18, 0x46d284\nLDR             R3, [R0]                                               ; +0x1c, 0x46d288\nLDR.W           R3, [R3,#0xFC]                                         ; +0x1e, 0x46d28a\nBLX             R3                                                     ; +0x22, 0x46d28e\nSTR.W           R5, [R4,#0xA08]                                        ; +0x24, 0x46d290\nPOP             {R3-R5,PC}                                             ; +0x28, 0x46d294", "xrefs": ["GJBaseGameLayer::createGroundLayer @ 0x46d2a6", "LevelSettingsLayer::selectArtClosed @ 0x56f9a0"], "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"}