{"type": "func", "start": 6443232112, "end": 6443232232, "name": "cocos2d::CCDirector::popScene", "pseudocode": "// \n// cocos2d::CCDirector::popScene from 0x1800beb70 to 0x1800bebe8 (120 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b921c\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 cocos2d::CCDirector::popScene(cocos2d::CCDirector *this)\n{\n  int v2; // eax\n  cocos2d::CCArray *m_pobScenesStack; // rcx\n\n  if ( this->m_pSceneReference && this->m_pSceneReference == cocos2d::CCArray::lastObject(this->m_pobScenesStack) )\n    this->m_pSceneReference = nullptr;\n  cocos2d::CCArray::removeLastObject(this->m_pobScenesStack, 1u);\n  v2 = cocos2d::CCArray::count(this->m_pobScenesStack);\n  if ( v2 )\n  {\n    m_pobScenesStack = this->m_pobScenesStack;\n    this->m_bSendCleanupToScene = 1;\n    this->m_pNextScene = (cocos2d::CCScene *)cocos2d::CCArray::stringAtIndex(m_pobScenesStack, v2 - 1);\n  }\n  else\n  {\n    this->m_bPurgeDirecotorInNextLoop = 1;\n  }\n}", "assembly": "; \n; cocos2d::CCDirector::popScene from 0x1800beb70 to 0x1800bebe8 (120 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b921c\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    rbx                                                            ; +0x0, 0x1800beb70\nsub     rsp, 20h                                                       ; +0x2, 0x1800beb72\ncmp     qword ptr [rcx+60h], 0                                         ; +0x6, 0x1800beb76\nmov     rbx, rcx                                                       ; +0xb, 0x1800beb7b\njz      short loc_1800BEB9A                                            ; +0xe, 0x1800beb7e\nmov     rcx, [rcx+120h]; this                                          ; +0x10, 0x1800beb80\ncall    ?lastObject@CCArray@cocos2d@@QEAAPEAVCCObject@2@XZ; cocos2d::CCArray::lastObject(void) ; +0x17, 0x1800beb87\ncmp     [rbx+60h], rax                                                 ; +0x1c, 0x1800beb8c\njnz     short loc_1800BEB9A                                            ; +0x20, 0x1800beb90\nmov     qword ptr [rbx+60h], 0                                         ; +0x22, 0x1800beb92\nmov     rcx, [rbx+120h]; this                                          ; +0x2a, 0x1800beb9a\nmov     dl, 1; bool                                                    ; +0x31, 0x1800beba1\ncall    ?removeLastObject@CCArray@cocos2d@@QEAAX_N@Z; cocos2d::CCArray::removeLastObject(bool) ; +0x33, 0x1800beba3\nmov     rcx, [rbx+120h]; this                                          ; +0x38, 0x1800beba8\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3f, 0x1800bebaf\ntest    eax, eax                                                       ; +0x44, 0x1800bebb4\njnz     short loc_1800BEBC5                                            ; +0x46, 0x1800bebb6\nmov     byte ptr [rbx+0B0h], 1                                         ; +0x48, 0x1800bebb8\nadd     rsp, 20h                                                       ; +0x4f, 0x1800bebbf\npop     rbx                                                            ; +0x53, 0x1800bebc3\nretn                                                                   ; +0x54, 0x1800bebc4\nmov     rcx, [rbx+120h]; this                                          ; +0x55, 0x1800bebc5\nlea     edx, [rax-1]; unsigned int                                     ; +0x5c, 0x1800bebcc\nmov     byte ptr [rbx+118h], 1                                         ; +0x5f, 0x1800bebcf\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x66, 0x1800bebd6\nmov     [rbx+110h], rax                                                ; +0x6b, 0x1800bebdb\nadd     rsp, 20h                                                       ; +0x72, 0x1800bebe2\npop     rbx                                                            ; +0x76, 0x1800bebe6\nretn                                                                   ; +0x77, 0x1800bebe7", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b921c"], "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"}