{"type": "func", "start": 4296100944, "end": 4296100992, "name": "GJBaseGameLayer::removeMiddleground", "pseudocode": "// \n// GJBaseGameLayer::removeMiddleground from 0x100114c50 to 0x100114c80 (48 bytes)\n// \n// 1 xrefs:\n// > LevelSettingsLayer::selectArtClosed @ 0x10026f522\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::removeMiddleground(GJBaseGameLayer *a1)\n{\n  GJMGLayer *m_middleground; // rdi\n\n  m_middleground = a1->m_middleground;\n  if ( m_middleground )\n  {\n    ((void (__fastcall *)(GJMGLayer *))m_middleground->removeFromParent)(m_middleground);\n    a1->m_middleground = nullptr;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::removeMiddleground from 0x100114c50 to 0x100114c80 (48 bytes)\n; \n; 1 xrefs:\n; > LevelSettingsLayer::selectArtClosed @ 0x10026f522\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    rbp                                                            ; +0x0, 0x100114c50\nmov     rbp, rsp                                                       ; +0x1, 0x100114c51\npush    rbx                                                            ; +0x4, 0x100114c54\npush    rax                                                            ; +0x5, 0x100114c55\nmov     rbx, rdi                                                       ; +0x6, 0x100114c56\nmov     rdi, [rdi+0EF0h]                                               ; +0x9, 0x100114c59\ntest    rdi, rdi                                                       ; +0x10, 0x100114c60\njz      short loc_100114C79                                            ; +0x13, 0x100114c63\nmov     rax, [rdi]                                                     ; +0x15, 0x100114c65\ncall    qword ptr [rax+1F8h]                                           ; +0x18, 0x100114c68\nmov     qword ptr [rbx+0EF0h], 0                                       ; +0x1e, 0x100114c6e\nadd     rsp, 8                                                         ; +0x29, 0x100114c79\npop     rbx                                                            ; +0x2d, 0x100114c7d\npop     rbp                                                            ; +0x2e, 0x100114c7e\nretn                                                                   ; +0x2f, 0x100114c7f", "xrefs": ["LevelSettingsLayer::selectArtClosed @ 0x10026f522"], "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"}