{"type": "func", "start": 8745564, "end": 8745620, "name": "GJBaseGameLayer::removeMiddleground", "pseudocode": "// \n// GJBaseGameLayer::removeMiddleground from 0x85725c to 0x857294 (56 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::createMiddleground @ 0x8572b0\n// > LevelSettingsLayer::selectArtClosed @ 0xa34694\n// > <???> @ 0x93120\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; // x1\n\n  m_middleground = a1->m_middleground;\n  if ( m_middleground )\n  {\n    m_middleground->removeFromParent(a1->m_middleground);\n    a1->m_middleground = nullptr;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::removeMiddleground from 0x85725c to 0x857294 (56 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::createMiddleground @ 0x8572b0\n; > LevelSettingsLayer::selectArtClosed @ 0xa34694\n; > <???> @ 0x93120\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             X29, X30, [SP,#var_20]!                                ; +0x0, 0x85725c\nMOV             X29, SP                                                ; +0x4, 0x857260\nLDR             X1, [X0,#0x1068]                                       ; +0x8, 0x857264\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0x857268\nCBZ             X1, loc_857288                                         ; +0x10, 0x85726c\nLDR             X2, [X1]                                               ; +0x14, 0x857270\nMOV             X19, X0                                                ; +0x18, 0x857274\nMOV             X0, X1                                                 ; +0x1c, 0x857278\nLDR             X1, [X2,#0x1F8]                                        ; +0x20, 0x85727c\nBLR             X1                                                     ; +0x24, 0x857280\nSTR             XZR, [X19,#0x1068]                                     ; +0x28, 0x857284\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x2c, 0x857288\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x30, 0x85728c\nRET                                                                    ; +0x34, 0x857290", "xrefs": ["GJBaseGameLayer::createMiddleground @ 0x8572b0", "LevelSettingsLayer::selectArtClosed @ 0xa34694", "<???> @ 0x93120"], "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"}