{"type": "func", "start": 6443246528, "end": 6443246648, "name": "cocos2d::CCDirector::popScene", "pseudocode": "// \n// cocos2d::CCDirector::popScene from 0x1800c23c0 to 0x1800c2438 (120 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c34e0\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 11:22:25 +0000\n// \n\nvoid __fastcall cocos2d::CCDirector::popScene(cocos2d::CCDirector *this)\n{\n  int v2; // eax\n  cocos2d::CCArray *v3; // rcx\n\n  if ( *((_QWORD *)this + 12)\n    && *((struct cocos2d::CCObject **)this + 12) == cocos2d::CCArray::lastObject(*((cocos2d::CCArray **)this + 37)) )\n  {\n    *((_QWORD *)this + 12) = 0;\n  }\n  cocos2d::CCArray::removeLastObject(*((cocos2d::CCArray **)this + 37), 1u);\n  v2 = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 37));\n  if ( v2 )\n  {\n    v3 = *((cocos2d::CCArray **)this + 37);\n    *((_BYTE *)this + 288) = 1;\n    *((_QWORD *)this + 35) = cocos2d::CCArray::stringAtIndex(v3, v2 - 1);\n  }\n  else\n  {\n    *((_BYTE *)this + 184) = 1;\n  }\n}", "assembly": "; \n; cocos2d::CCDirector::popScene from 0x1800c23c0 to 0x1800c2438 (120 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c34e0\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 11:22:25 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800c23c0\nsub     rsp, 20h                                                       ; +0x2, 0x1800c23c2\ncmp     qword ptr [rcx+60h], 0                                         ; +0x6, 0x1800c23c6\nmov     rbx, rcx                                                       ; +0xb, 0x1800c23cb\njz      short loc_1800C23EA                                            ; +0xe, 0x1800c23ce\nmov     rcx, [rcx+128h]; this                                          ; +0x10, 0x1800c23d0\ncall    ?lastObject@CCArray@cocos2d@@QEAAPEAVCCObject@2@XZ; cocos2d::CCArray::lastObject(void) ; +0x17, 0x1800c23d7\ncmp     [rbx+60h], rax                                                 ; +0x1c, 0x1800c23dc\njnz     short loc_1800C23EA                                            ; +0x20, 0x1800c23e0\nmov     qword ptr [rbx+60h], 0                                         ; +0x22, 0x1800c23e2\nmov     rcx, [rbx+128h]; this                                          ; +0x2a, 0x1800c23ea\nmov     dl, 1; bool                                                    ; +0x31, 0x1800c23f1\ncall    ?removeLastObject@CCArray@cocos2d@@QEAAX_N@Z; cocos2d::CCArray::removeLastObject(bool) ; +0x33, 0x1800c23f3\nmov     rcx, [rbx+128h]; this                                          ; +0x38, 0x1800c23f8\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3f, 0x1800c23ff\ntest    eax, eax                                                       ; +0x44, 0x1800c2404\njnz     short loc_1800C2415                                            ; +0x46, 0x1800c2406\nmov     byte ptr [rbx+0B8h], 1                                         ; +0x48, 0x1800c2408\nadd     rsp, 20h                                                       ; +0x4f, 0x1800c240f\npop     rbx                                                            ; +0x53, 0x1800c2413\nretn                                                                   ; +0x54, 0x1800c2414\nmov     rcx, [rbx+128h]; this                                          ; +0x55, 0x1800c2415\nlea     edx, [rax-1]; unsigned int                                     ; +0x5c, 0x1800c241c\nmov     byte ptr [rbx+120h], 1                                         ; +0x5f, 0x1800c241f\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x66, 0x1800c2426\nmov     [rbx+118h], rax                                                ; +0x6b, 0x1800c242b\nadd     rsp, 20h                                                       ; +0x72, 0x1800c2432\npop     rbx                                                            ; +0x76, 0x1800c2436\nretn                                                                   ; +0x77, 0x1800c2437", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c34e0"], "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"}