{"type": "func", "start": 4298232592, "end": 4298232664, "name": "GameManager::didExitPlayscene", "pseudocode": "// \n// GameManager::didExitPlayscene from 0x10031d310 to 0x10031d358 (72 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::onQuit @ 0x100119554\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 GameManager::didExitPlayscene(GameManager *a1)\n{\n  GameManager *v1; // x0\n\n  if ( a1->m_unkBool8 )\n  {\n    a1->m_unkBool8 = 0;\n    if ( cocos2d::CCDirector::sharedDirector()->m_nSmoothFixCounter >= 10 )\n    {\n      v1 = GameManager::sharedState();\n      GameManager::setGameVariable(v1, \"0023\", 0);\n    }\n  }\n}", "assembly": "; \n; GameManager::didExitPlayscene from 0x10031d310 to 0x10031d358 (72 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::onQuit @ 0x100119554\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,#-0x10+var_s0]!                          ; +0x0, 0x10031d310\nMOV             X29, SP                                                ; +0x4, 0x10031d314\nLDRB            W8, [X0,#0x3D0]                                        ; +0x8, 0x10031d318\nCMP             W8, #1                                                 ; +0xc, 0x10031d31c\nB.NE            loc_10031D350                                          ; +0x10, 0x10031d320\nSTRB            WZR, [X0,#0x3D0]                                       ; +0x14, 0x10031d324\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x18, 0x10031d328\nLDR             W8, [X0,#0xAC]                                         ; +0x1c, 0x10031d32c\nCMP             W8, #0xA                                               ; +0x20, 0x10031d330\nB.LT            loc_10031D350                                          ; +0x24, 0x10031d334\nBL              GameManager__sharedState                               ; +0x28, 0x10031d338\nADRL            X1, a0023; \"0023\"                                      ; +0x2c, 0x10031d33c\nMOV             W2, #0                                                 ; +0x34, 0x10031d344\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x38, 0x10031d348\nB               GameManager__setGameVariable                           ; +0x3c, 0x10031d34c\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x40, 0x10031d350\nRET                                                                    ; +0x44, 0x10031d354", "xrefs": ["PlayLayer::onQuit @ 0x100119554"], "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"}