{"type": "func", "start": 4298127052, "end": 4298127116, "name": "MenuLayer::willClose", "pseudocode": "// \n// MenuLayer::willClose from 0x1003036cc to 0x10030370c (64 bytes)\n// \n// 4 xrefs:\n// > sub_10030364C @ 0x1003036b4\n// > MenuLayer::onPlay @ 0x100304cd8\n// > MenuLayer::onGarage @ 0x100304d2c\n// > MenuLayer::onCreator @ 0x100304d7c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:03:06 +0000\n// \n\n__int64 __fastcall MenuLayer::willClose(__int64 a1)\n{\n  _QWORD *v2; // x0\n  __int64 result; // x0\n\n  v2 = GooglePlayManager::sharedState();\n  if ( v2[40] == a1 + 416 )\n  {\n    v2 = GooglePlayManager::sharedState();\n    v2[40] = 0;\n  }\n  result = GameManager::sharedState(v2);\n  *(_BYTE *)(result + 584) = 0;\n  return result;\n}", "assembly": "; \n; MenuLayer::willClose from 0x1003036cc to 0x10030370c (64 bytes)\n; \n; 4 xrefs:\n; > sub_10030364C @ 0x1003036b4\n; > MenuLayer::onPlay @ 0x100304cd8\n; > MenuLayer::onGarage @ 0x100304d2c\n; > MenuLayer::onCreator @ 0x100304d7c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:03:06 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1003036cc\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1003036d0\nADD             X29, SP, #0x10                                         ; +0x8, 0x1003036d4\nMOV             X19, X0                                                ; +0xc, 0x1003036d8\nBL              GooglePlayManager__sharedState                         ; +0x10, 0x1003036dc\nLDR             X8, [X0,#0x140]                                        ; +0x14, 0x1003036e0\nADD             X9, X19, #0x1A0                                        ; +0x18, 0x1003036e4\nCMP             X8, X9                                                 ; +0x1c, 0x1003036e8\nB.NE            loc_1003036F8                                          ; +0x20, 0x1003036ec\nBL              GooglePlayManager__sharedState                         ; +0x24, 0x1003036f0\nSTR             XZR, [X0,#0x140]                                       ; +0x28, 0x1003036f4\nBL              GameManager__sharedState                               ; +0x2c, 0x1003036f8\nSTRB            WZR, [X0,#0x248]                                       ; +0x30, 0x1003036fc\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x34, 0x100303700\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x38, 0x100303704\nRET                                                                    ; +0x3c, 0x100303708", "xrefs": ["sub_10030364C @ 0x1003036b4", "MenuLayer::onPlay @ 0x100304cd8", "MenuLayer::onGarage @ 0x100304d2c", "MenuLayer::onCreator @ 0x100304d7c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}