{"type": "func", "start": 4298597520, "end": 4298597636, "name": "GameManager::didExitPlayscene", "pseudocode": "// \n// GameManager::didExitPlayscene from 0x100376490 to 0x100376504 (116 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::onQuit @ 0x1000804ce\n// \n// This function is hookable on this platform (idp: pc, 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 12:29:04 +0000\n// \n\nvoid __fastcall GameManager::didExitPlayscene(__int64 a1, __int64 a2)\n{\n  __int64 v2; // rdi\n  void *v3; // rbx\n\n  if ( *(_BYTE *)(a1 + 1028) == 1 )\n  {\n    *(_BYTE *)(a1 + 1028) = 0;\n    if ( *(int *)(cocos2d::CCDirector::sharedDirector(a1, a2) + 180) >= 10 )\n    {\n      v2 = qword_100BE3098;\n      if ( !qword_100BE3098 )\n      {\n        v3 = operator new(0x6B8u);\n        sub_100377960(v3);\n        qword_100BE3098 = (__int64)v3;\n        (*(void (__fastcall **)(void *))(*(_QWORD *)v3 + 80LL))(v3);\n        v2 = qword_100BE3098;\n      }\n      GameManager::setGameVariable(v2, (std::string::value_type *)\"0023\");\n    }\n  }\n}", "assembly": "; \n; GameManager::didExitPlayscene from 0x100376490 to 0x100376504 (116 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::onQuit @ 0x1000804ce\n; \n; This function is hookable on this platform (idp: pc, 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 12:29:04 +0000\n; \npush    rbp                                                            ; +0x0, 0x100376490\nmov     rbp, rsp                                                       ; +0x1, 0x100376491\npush    r14                                                            ; +0x4, 0x100376494\npush    rbx                                                            ; +0x6, 0x100376496\ncmp     byte ptr [rdi+404h], 1                                         ; +0x7, 0x100376497\njnz     short loc_1003764FF                                            ; +0xe, 0x10037649e\nmov     byte ptr [rdi+404h], 0                                         ; +0x10, 0x1003764a0\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x17, 0x1003764a7\ncmp     dword ptr [rax+0B4h], 0Ah                                      ; +0x1c, 0x1003764ac\njl      short loc_1003764FF                                            ; +0x23, 0x1003764b3\nmov     rdi, cs:qword_100BE3098                                        ; +0x25, 0x1003764b5\ntest    rdi, rdi                                                       ; +0x2c, 0x1003764bc\njnz     short loc_1003764ED                                            ; +0x2f, 0x1003764bf\nmov     edi, 6B8h; __sz                                                ; +0x31, 0x1003764c1\ncall    __Znwm; operator new(ulong)                                    ; +0x36, 0x1003764c6\nmov     rbx, rax                                                       ; +0x3b, 0x1003764cb\nmov     rdi, rax                                                       ; +0x3e, 0x1003764ce\ncall    sub_100377960                                                  ; +0x41, 0x1003764d1\nmov     cs:qword_100BE3098, rbx                                        ; +0x46, 0x1003764d6\nmov     rax, [rbx]                                                     ; +0x4d, 0x1003764dd\nmov     rdi, rbx                                                       ; +0x50, 0x1003764e0\ncall    qword ptr [rax+50h]                                            ; +0x53, 0x1003764e3\nmov     rdi, cs:qword_100BE3098                                        ; +0x56, 0x1003764e6\nlea     rsi, a0023; \"0023\"                                             ; +0x5d, 0x1003764ed\nxor     edx, edx                                                       ; +0x64, 0x1003764f4\npop     rbx                                                            ; +0x66, 0x1003764f6\npop     r14                                                            ; +0x67, 0x1003764f7\npop     rbp                                                            ; +0x69, 0x1003764f9\njmp     GameManager__setGameVariable                                   ; +0x6a, 0x1003764fa\npop     rbx                                                            ; +0x6f, 0x1003764ff\npop     r14                                                            ; +0x70, 0x100376500\npop     rbp                                                            ; +0x72, 0x100376502\nretn                                                                   ; +0x73, 0x100376503", "xrefs": ["PlayLayer::onQuit @ 0x1000804ce"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}