{"type": "func", "start": 4298132672, "end": 4298132756, "name": "MenuLayer::onPlay", "pseudocode": "// \n// MenuLayer::onPlay from 0x100304cc0 to 0x100304d14 (84 bytes)\n// \n// 2 xrefs:\n// > MenuLayer::keyDown @ 0x100305958\n// > MenuLayer::init @ 0x1003039d4\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:07 +0000\n// \n\n__int64 __fastcall MenuLayer::onPlay(__int64 result)\n{\n  __int64 v1; // x0\n  __int64 v2; // x19\n  __int64 v3; // x0\n  char *v4; // x0\n\n  if ( (*(_BYTE *)(result + 432) & 1) == 0 )\n  {\n    v1 = MenuLayer::willClose(result);\n    *(_DWORD *)(GameManager::sharedState(v1) + 708) = 8;\n    v2 = cocos2d::CCDirector::sharedDirector();\n    v3 = LevelSelectLayer::scene(0);\n    v4 = cocos2d::CCTransitionFade::create_1(v3, 0.5);\n    return cocos2d::CCDirector::replaceScene(v2, v4);\n  }\n  return result;\n}", "assembly": "; \n; MenuLayer::onPlay from 0x100304cc0 to 0x100304d14 (84 bytes)\n; \n; 2 xrefs:\n; > MenuLayer::keyDown @ 0x100305958\n; > MenuLayer::init @ 0x1003039d4\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:07 +0000\n; \nLDRB            W8, [X0,#0x1B0]                                        ; +0x0, 0x100304cc0\nTBZ             W8, #0, loc_100304CCC                                  ; +0x4, 0x100304cc4\nRET                                                                    ; +0x8, 0x100304cc8\nSTP             X20, X19, [SP,#var_20]!                                ; +0xc, 0x100304ccc\nSTP             X29, X30, [SP,#0x20+var_10]                            ; +0x10, 0x100304cd0\nADD             X29, SP, #0x20+var_10                                  ; +0x14, 0x100304cd4\nBL              MenuLayer__willClose                                   ; +0x18, 0x100304cd8\nBL              GameManager__sharedState                               ; +0x1c, 0x100304cdc\nMOV             W8, #8                                                 ; +0x20, 0x100304ce0\nSTR             W8, [X0,#0x2C4]                                        ; +0x24, 0x100304ce4\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x28, 0x100304ce8\nMOV             X19, X0                                                ; +0x2c, 0x100304cec\nMOV             W0, #0                                                 ; +0x30, 0x100304cf0\nBL              LevelSelectLayer__scene                                ; +0x34, 0x100304cf4\nFMOV            S0, #0.5                                               ; +0x38, 0x100304cf8\nBL              cocos2d__CCTransitionFade__create_1                    ; +0x3c, 0x100304cfc\nMOV             X1, X0; lpsrc                                          ; +0x40, 0x100304d00\nMOV             X0, X19; int                                           ; +0x44, 0x100304d04\nLDP             X29, X30, [SP,#0x20+var_10]                            ; +0x48, 0x100304d08\nLDP             X20, X19, [SP+0x20+var_20],#0x20                       ; +0x4c, 0x100304d0c\nB               cocos2d__CCDirector__replaceScene                      ; +0x50, 0x100304d10", "xrefs": ["MenuLayer::keyDown @ 0x100305958", "MenuLayer::init @ 0x1003039d4"], "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"}