{"type": "func", "start": 6443232240, "end": 6443232463, "name": "cocos2d::CCDirector::popSceneWithTransition", "pseudocode": "// \n// cocos2d::CCDirector::popSceneWithTransition from 0x1800bebf0 to 0x1800beccf (223 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b9228\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\nchar __fastcall cocos2d::CCDirector::popSceneWithTransition(\n        cocos2d::CCDirector *this,\n        float a2,\n        enum cocos2d::PopTransition a3)\n{\n  int v6; // eax\n  cocos2d::CCArray *m_pobScenesStack; // rcx\n  struct cocos2d::CCString *v8; // rax\n  cocos2d::CCScene *v9; // rax\n\n  if ( this->m_bIsTransitioning )\n    return 0;\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  v6 = cocos2d::CCArray::count(this->m_pobScenesStack);\n  if ( v6 )\n  {\n    m_pobScenesStack = this->m_pobScenesStack;\n    this->m_bSendCleanupToScene = 1;\n    v8 = cocos2d::CCArray::stringAtIndex(m_pobScenesStack, v6 - 1);\n    this->m_pNextScene = (cocos2d::CCScene *)v8;\n    if ( a3 == kPopTransitionMoveInT )\n      v9 = cocos2d::CCTransitionMoveInT::create(a2, (struct cocos2d::CCScene *)v8);\n    else\n      v9 = cocos2d::CCTransitionFade::create(a2, (struct cocos2d::CCScene *)v8);\n    this->m_pNextScene = v9;\n    this->m_bIsTransitioning = 1;\n    return 1;\n  }\n  else\n  {\n    this->m_bPurgeDirecotorInNextLoop = 1;\n    return 1;\n  }\n}", "assembly": "; \n; cocos2d::CCDirector::popSceneWithTransition from 0x1800bebf0 to 0x1800beccf (223 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b9228\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800bebf0\npush    rdi                                                            ; +0x5, 0x1800bebf5\nsub     rsp, 30h                                                       ; +0x6, 0x1800bebf6\ncmp     byte ptr [rcx+0A8h], 0                                         ; +0xa, 0x1800bebfa\nmov     edi, r8d                                                       ; +0x11, 0x1800bec01\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x14, 0x1800bec04\nmov     rbx, rcx                                                       ; +0x19, 0x1800bec09\nmovaps  xmm6, xmm1                                                     ; +0x1c, 0x1800bec0c\njz      short loc_1800BEC23                                            ; +0x1f, 0x1800bec0f\nxor     al, al                                                         ; +0x21, 0x1800bec11\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x23, 0x1800bec13\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x28, 0x1800bec18\nadd     rsp, 30h                                                       ; +0x2d, 0x1800bec1d\npop     rdi                                                            ; +0x31, 0x1800bec21\nretn                                                                   ; +0x32, 0x1800bec22\ncmp     qword ptr [rcx+60h], 0                                         ; +0x33, 0x1800bec23\njz      short loc_1800BEC44                                            ; +0x38, 0x1800bec28\nmov     rcx, [rcx+120h]; this                                          ; +0x3a, 0x1800bec2a\ncall    ?lastObject@CCArray@cocos2d@@QEAAPEAVCCObject@2@XZ; cocos2d::CCArray::lastObject(void) ; +0x41, 0x1800bec31\ncmp     [rbx+60h], rax                                                 ; +0x46, 0x1800bec36\njnz     short loc_1800BEC44                                            ; +0x4a, 0x1800bec3a\nmov     qword ptr [rbx+60h], 0                                         ; +0x4c, 0x1800bec3c\nmov     rcx, [rbx+120h]; this                                          ; +0x54, 0x1800bec44\nmov     dl, 1; bool                                                    ; +0x5b, 0x1800bec4b\ncall    ?removeLastObject@CCArray@cocos2d@@QEAAX_N@Z; cocos2d::CCArray::removeLastObject(bool) ; +0x5d, 0x1800bec4d\nmov     rcx, [rbx+120h]; this                                          ; +0x62, 0x1800bec52\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x69, 0x1800bec59\ntest    eax, eax                                                       ; +0x6e, 0x1800bec5e\njnz     short loc_1800BEC7B                                            ; +0x70, 0x1800bec60\nmov     byte ptr [rbx+0B0h], 1                                         ; +0x72, 0x1800bec62\nmov     al, 1                                                          ; +0x79, 0x1800bec69\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x7b, 0x1800bec6b\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x80, 0x1800bec70\nadd     rsp, 30h                                                       ; +0x85, 0x1800bec75\npop     rdi                                                            ; +0x89, 0x1800bec79\nretn                                                                   ; +0x8a, 0x1800bec7a\nmov     rcx, [rbx+120h]; this                                          ; +0x8b, 0x1800bec7b\nlea     edx, [rax-1]; unsigned int                                     ; +0x92, 0x1800bec82\nmov     byte ptr [rbx+118h], 1                                         ; +0x95, 0x1800bec85\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x9c, 0x1800bec8c\nmov     [rbx+110h], rax                                                ; +0xa1, 0x1800bec91\nmov     rdx, rax; struct cocos2d::CCScene *                            ; +0xa8, 0x1800bec98\nmovaps  xmm0, xmm6; float                                              ; +0xab, 0x1800bec9b\ncmp     edi, 1                                                         ; +0xae, 0x1800bec9e\njnz     short loc_1800BECAA                                            ; +0xb1, 0x1800beca1\ncall    ?create@CCTransitionMoveInT@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionMoveInT::create(float,cocos2d::CCScene *) ; +0xb3, 0x1800beca3\njmp     short loc_1800BECAF                                            ; +0xb8, 0x1800beca8\ncall    ?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0xba, 0x1800becaa\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xbf, 0x1800becaf\nmov     [rbx+110h], rax                                                ; +0xc4, 0x1800becb4\nmov     al, 1                                                          ; +0xcb, 0x1800becbb\nmov     byte ptr [rbx+0A8h], 1                                         ; +0xcd, 0x1800becbd\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xd4, 0x1800becc4\nadd     rsp, 30h                                                       ; +0xd9, 0x1800becc9\npop     rdi                                                            ; +0xdd, 0x1800beccd\nretn                                                                   ; +0xde, 0x1800becce", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b9228"], "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"}