{"type": "func", "start": 6443246656, "end": 6443246879, "name": "cocos2d::CCDirector::popSceneWithTransition", "pseudocode": "// \n// cocos2d::CCDirector::popSceneWithTransition from 0x1800c2440 to 0x1800c251f (223 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c34ec\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\nchar __fastcall cocos2d::CCDirector::popSceneWithTransition(__int64 a1, float a2, int a3)\n{\n  int v6; // eax\n  cocos2d::CCArray *v7; // rcx\n  struct cocos2d::CCScene *v8; // rax\n  struct cocos2d::CCTransitionMoveInT *v9; // rax\n\n  if ( *(_BYTE *)(a1 + 176) )\n    return 0;\n  if ( *(_QWORD *)(a1 + 96)\n    && *(struct cocos2d::CCObject **)(a1 + 96) == cocos2d::CCArray::lastObject(*(cocos2d::CCArray **)(a1 + 296)) )\n  {\n    *(_QWORD *)(a1 + 96) = 0;\n  }\n  cocos2d::CCArray::removeLastObject(*(cocos2d::CCArray **)(a1 + 296), 1u);\n  v6 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 296));\n  if ( v6 )\n  {\n    v7 = *(cocos2d::CCArray **)(a1 + 296);\n    *(_BYTE *)(a1 + 288) = 1;\n    v8 = cocos2d::CCArray::stringAtIndex(v7, v6 - 1);\n    *(_QWORD *)(a1 + 280) = v8;\n    if ( a3 == 1 )\n      v9 = cocos2d::CCTransitionMoveInT::create(a2, v8);\n    else\n      v9 = cocos2d::CCTransitionFade::create(a2, v8);\n    *(_QWORD *)(a1 + 280) = v9;\n    *(_BYTE *)(a1 + 176) = 1;\n    return 1;\n  }\n  else\n  {\n    *(_BYTE *)(a1 + 184) = 1;\n    return 1;\n  }\n}", "assembly": "; \n; cocos2d::CCDirector::popSceneWithTransition from 0x1800c2440 to 0x1800c251f (223 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c34ec\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; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800c2440\npush    rdi                                                            ; +0x5, 0x1800c2445\nsub     rsp, 30h                                                       ; +0x6, 0x1800c2446\ncmp     byte ptr [rcx+0B0h], 0                                         ; +0xa, 0x1800c244a\nmov     edi, r8d                                                       ; +0x11, 0x1800c2451\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x14, 0x1800c2454\nmov     rbx, rcx                                                       ; +0x19, 0x1800c2459\nmovaps  xmm6, xmm1                                                     ; +0x1c, 0x1800c245c\njz      short loc_1800C2473                                            ; +0x1f, 0x1800c245f\nxor     al, al                                                         ; +0x21, 0x1800c2461\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x23, 0x1800c2463\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x28, 0x1800c2468\nadd     rsp, 30h                                                       ; +0x2d, 0x1800c246d\npop     rdi                                                            ; +0x31, 0x1800c2471\nretn                                                                   ; +0x32, 0x1800c2472\ncmp     qword ptr [rcx+60h], 0                                         ; +0x33, 0x1800c2473\njz      short loc_1800C2494                                            ; +0x38, 0x1800c2478\nmov     rcx, [rcx+128h]; this                                          ; +0x3a, 0x1800c247a\ncall    ?lastObject@CCArray@cocos2d@@QEAAPEAVCCObject@2@XZ; cocos2d::CCArray::lastObject(void) ; +0x41, 0x1800c2481\ncmp     [rbx+60h], rax                                                 ; +0x46, 0x1800c2486\njnz     short loc_1800C2494                                            ; +0x4a, 0x1800c248a\nmov     qword ptr [rbx+60h], 0                                         ; +0x4c, 0x1800c248c\nmov     rcx, [rbx+128h]; this                                          ; +0x54, 0x1800c2494\nmov     dl, 1; bool                                                    ; +0x5b, 0x1800c249b\ncall    ?removeLastObject@CCArray@cocos2d@@QEAAX_N@Z; cocos2d::CCArray::removeLastObject(bool) ; +0x5d, 0x1800c249d\nmov     rcx, [rbx+128h]; this                                          ; +0x62, 0x1800c24a2\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x69, 0x1800c24a9\ntest    eax, eax                                                       ; +0x6e, 0x1800c24ae\njnz     short loc_1800C24CB                                            ; +0x70, 0x1800c24b0\nmov     byte ptr [rbx+0B8h], 1                                         ; +0x72, 0x1800c24b2\nmov     al, 1                                                          ; +0x79, 0x1800c24b9\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x7b, 0x1800c24bb\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x80, 0x1800c24c0\nadd     rsp, 30h                                                       ; +0x85, 0x1800c24c5\npop     rdi                                                            ; +0x89, 0x1800c24c9\nretn                                                                   ; +0x8a, 0x1800c24ca\nmov     rcx, [rbx+128h]; this                                          ; +0x8b, 0x1800c24cb\nlea     edx, [rax-1]; unsigned int                                     ; +0x92, 0x1800c24d2\nmov     byte ptr [rbx+120h], 1                                         ; +0x95, 0x1800c24d5\ncall    ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x9c, 0x1800c24dc\nmov     [rbx+118h], rax                                                ; +0xa1, 0x1800c24e1\nmov     rdx, rax; struct cocos2d::CCScene *                            ; +0xa8, 0x1800c24e8\nmovaps  xmm0, xmm6; float                                              ; +0xab, 0x1800c24eb\ncmp     edi, 1                                                         ; +0xae, 0x1800c24ee\njnz     short loc_1800C24FA                                            ; +0xb1, 0x1800c24f1\ncall    ?create@CCTransitionMoveInT@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionMoveInT::create(float,cocos2d::CCScene *) ; +0xb3, 0x1800c24f3\njmp     short loc_1800C24FF                                            ; +0xb8, 0x1800c24f8\ncall    ?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0xba, 0x1800c24fa\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xbf, 0x1800c24ff\nmov     [rbx+118h], rax                                                ; +0xc4, 0x1800c2504\nmov     al, 1                                                          ; +0xcb, 0x1800c250b\nmov     byte ptr [rbx+0B0h], 1                                         ; +0xcd, 0x1800c250d\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xd4, 0x1800c2514\nadd     rsp, 30h                                                       ; +0xd9, 0x1800c2519\npop     rdi                                                            ; +0xdd, 0x1800c251d\nretn                                                                   ; +0xde, 0x1800c251e", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c34ec"], "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"}