{"type": "func", "start": 4641292, "end": 4641318, "name": "GJBaseGameLayer::removeMiddleground", "pseudocode": "// \n// GJBaseGameLayer::removeMiddleground from 0x46d20c to 0x46d226 (26 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::createMiddleground @ 0x46d232\n// > LevelSettingsLayer::selectArtClosed @ 0x56fa18\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::removeMiddleground(GJBaseGameLayer *a1)\n{\n  GJMGLayer *m_middleground; // r0\n\n  m_middleground = a1->m_middleground;\n  if ( m_middleground )\n  {\n    m_middleground->removeFromParent(m_middleground);\n    a1->m_middleground = nullptr;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::removeMiddleground from 0x46d20c to 0x46d226 (26 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::createMiddleground @ 0x46d232\n; > LevelSettingsLayer::selectArtClosed @ 0x56fa18\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            {R4,LR}                                                ; +0x0, 0x46d20c\nMOV             R4, R0                                                 ; +0x2, 0x46d20e\nLDR.W           R0, [R0,#0xA0C]                                        ; +0x4, 0x46d210\nCBZ             R0, locret_46D224                                      ; +0x8, 0x46d214\nLDR             R3, [R0]                                               ; +0xa, 0x46d216\nLDR.W           R3, [R3,#0xFC]                                         ; +0xc, 0x46d218\nBLX             R3                                                     ; +0x10, 0x46d21c\nMOVS            R3, #0                                                 ; +0x12, 0x46d21e\nSTR.W           R3, [R4,#0xA0C]                                        ; +0x14, 0x46d220\nPOP             {R4,PC}                                                ; +0x18, 0x46d224", "xrefs": ["GJBaseGameLayer::createMiddleground @ 0x46d232", "LevelSettingsLayer::selectArtClosed @ 0x56fa18"], "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"}