{"type": "func", "start": 4298685072, "end": 4298685188, "name": "GameManager::didExitPlayscene", "pseudocode": "// \n// GameManager::didExitPlayscene from 0x10038ba90 to 0x10038bb04 (116 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::onQuit @ 0x1000b2f65\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; // rdi\n  void *v2; // rbx\n\n  if ( a1->m_unkBool8 )\n  {\n    a1->m_unkBool8 = 0;\n    if ( cocos2d::CCDirector::sharedDirector()->m_nSmoothFixCounter >= 10 )\n    {\n      v1 = (GameManager *)qword_1009A0E18;\n      if ( !qword_1009A0E18 )\n      {\n        v2 = operator new(0x638u);\n        sub_10038CE40(v2);\n        qword_1009A0E18 = (__int64)v2;\n        (*(void (__fastcall **)(void *))(*(_QWORD *)v2 + 80LL))(v2);\n        v1 = (GameManager *)qword_1009A0E18;\n      }\n      GameManager::setGameVariable(v1, \"0023\", 0);\n    }\n  }\n}", "assembly": "; \n; GameManager::didExitPlayscene from 0x10038ba90 to 0x10038bb04 (116 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::onQuit @ 0x1000b2f65\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, 0x10038ba90\nmov     rbp, rsp                                                       ; +0x1, 0x10038ba91\npush    r14                                                            ; +0x4, 0x10038ba94\npush    rbx                                                            ; +0x6, 0x10038ba96\ncmp     byte ptr [rdi+3D0h], 1                                         ; +0x7, 0x10038ba97\njnz     short loc_10038BAFF                                            ; +0xe, 0x10038ba9e\nmov     byte ptr [rdi+3D0h], 0                                         ; +0x10, 0x10038baa0\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x17, 0x10038baa7\ncmp     dword ptr [rax+0ACh], 0Ah                                      ; +0x1c, 0x10038baac\njl      short loc_10038BAFF                                            ; +0x23, 0x10038bab3\nmov     rdi, cs:qword_1009A0E18                                        ; +0x25, 0x10038bab5\ntest    rdi, rdi                                                       ; +0x2c, 0x10038babc\njnz     short loc_10038BAED                                            ; +0x2f, 0x10038babf\nmov     edi, 638h; __sz                                                ; +0x31, 0x10038bac1\ncall    __Znwm; operator new(ulong)                                    ; +0x36, 0x10038bac6\nmov     rbx, rax                                                       ; +0x3b, 0x10038bacb\nmov     rdi, rax                                                       ; +0x3e, 0x10038bace\ncall    sub_10038CE40                                                  ; +0x41, 0x10038bad1\nmov     cs:qword_1009A0E18, rbx                                        ; +0x46, 0x10038bad6\nmov     rax, [rbx]                                                     ; +0x4d, 0x10038badd\nmov     rdi, rbx                                                       ; +0x50, 0x10038bae0\ncall    qword ptr [rax+50h]                                            ; +0x53, 0x10038bae3\nmov     rdi, cs:qword_1009A0E18                                        ; +0x56, 0x10038bae6\nlea     rsi, a0023; \"0023\"                                             ; +0x5d, 0x10038baed\nxor     edx, edx                                                       ; +0x64, 0x10038baf4\npop     rbx                                                            ; +0x66, 0x10038baf6\npop     r14                                                            ; +0x67, 0x10038baf7\npop     rbp                                                            ; +0x69, 0x10038baf9\njmp     GameManager__setGameVariable                                   ; +0x6a, 0x10038bafa\npop     rbx                                                            ; +0x6f, 0x10038baff\npop     r14                                                            ; +0x70, 0x10038bb00\npop     rbp                                                            ; +0x72, 0x10038bb02\nretn                                                                   ; +0x73, 0x10038bb03", "xrefs": ["PlayLayer::onQuit @ 0x1000b2f65"], "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"}